0s autopkgtest [12:56:04]: starting date and time: 2025-05-02 12:56:04+0000 0s autopkgtest [12:56:04]: git checkout: 9986aa8c Merge branch 'skia/fix_network_interface' into 'ubuntu/production' 0s autopkgtest [12:56:04]: host juju-7f2275-prod-proposed-migration-environment-2; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.yx9xsr6o/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:python3.13 --apt-upgrade glib2.0 --timeout-short=1200 --timeout-copy=80000 --timeout-build=80000 --env=ADT_TEST_TRIGGERS=python3.13/3.13.3-2 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-cpu2-ram4-disk20-riscv64 --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-2@sto01-riscv64-10.secgroup --name adt-questing-riscv64-glib2.0-20250502-110436-juju-7f2275-prod-proposed-migration-environment-2-186e66bb-bad7-40ad-b287-81863b073ef4 --image adt/ubuntu-questing-riscv64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-2 --net-id=net_prod-autopkgtest-workers-riscv64 -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/ 191s autopkgtest [12:59:15]: testbed dpkg architecture: riscv64 192s autopkgtest [12:59:16]: testbed apt version: 3.0.0 193s autopkgtest [12:59:17]: @@@@@@@@@@@@@@@@@@@@ test bed setup 194s autopkgtest [12:59:18]: testbed release detected to be: None 198s autopkgtest [12:59:22]: updating testbed package index (apt update) 200s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [110 kB] 200s Hit:2 http://ftpmaster.internal/ubuntu questing InRelease 200s Hit:3 http://ftpmaster.internal/ubuntu questing-updates InRelease 201s Hit:4 http://ftpmaster.internal/ubuntu questing-security InRelease 201s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [44.4 kB] 201s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [171 kB] 202s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [2029 kB] 202s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 Packages [197 kB] 202s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/universe riscv64 Packages [788 kB] 203s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/multiverse riscv64 Packages [8624 B] 206s Fetched 3348 kB in 5s (630 kB/s) 219s Reading package lists... 223s autopkgtest [12:59:47]: upgrading testbed (apt dist-upgrade and autopurge) 224s Reading package lists... 226s Building dependency tree... 226s Reading state information... 227s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 228s Starting 2 pkgProblemResolver with broken count: 0 228s Done 230s Entering ResolveByKeep 230s 231s Calculating upgrade... 232s The following packages will be upgraded: 232s htop libnpth0t64 libpython3.13 libpython3.13-minimal libpython3.13-stdlib 232s nano python3.13 python3.13-gdbm python3.13-minimal usb.ids 232s 10 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 232s Need to get 9242 kB of archives. 232s After this operation, 7168 B of additional disk space will be used. 232s Get:1 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 python3.13 riscv64 3.13.3-2 [739 kB] 233s Get:2 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 libpython3.13 riscv64 3.13.3-2 [2427 kB] 233s Get:3 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 libpython3.13-stdlib riscv64 3.13.3-2 [2063 kB] 233s Get:4 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 python3.13-minimal riscv64 3.13.3-2 [2401 kB] 233s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 libpython3.13-minimal riscv64 3.13.3-2 [882 kB] 233s Get:6 http://ftpmaster.internal/ubuntu questing/main riscv64 libnpth0t64 riscv64 1.8-3 [8790 B] 233s Get:7 http://ftpmaster.internal/ubuntu questing/main riscv64 nano riscv64 8.4-1 [299 kB] 234s Get:8 http://ftpmaster.internal/ubuntu questing/main riscv64 usb.ids all 2025.04.01-1 [223 kB] 234s Get:9 http://ftpmaster.internal/ubuntu questing/main riscv64 htop riscv64 3.4.1-4 [168 kB] 234s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 python3.13-gdbm riscv64 3.13.3-2 [31.5 kB] 239s Fetched 9242 kB in 2s (6070 kB/s) 240s (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 ... 114197 files and directories currently installed.) 240s Preparing to unpack .../0-python3.13_3.13.3-2_riscv64.deb ... 241s Unpacking python3.13 (3.13.3-2) over (3.13.3-1) ... 242s Preparing to unpack .../1-libpython3.13_3.13.3-2_riscv64.deb ... 242s Unpacking libpython3.13:riscv64 (3.13.3-2) over (3.13.3-1) ... 243s Preparing to unpack .../2-libpython3.13-stdlib_3.13.3-2_riscv64.deb ... 244s Unpacking libpython3.13-stdlib:riscv64 (3.13.3-2) over (3.13.3-1) ... 246s Preparing to unpack .../3-python3.13-minimal_3.13.3-2_riscv64.deb ... 246s Unpacking python3.13-minimal (3.13.3-2) over (3.13.3-1) ... 248s Preparing to unpack .../4-libpython3.13-minimal_3.13.3-2_riscv64.deb ... 248s Unpacking libpython3.13-minimal:riscv64 (3.13.3-2) over (3.13.3-1) ... 250s Preparing to unpack .../5-libnpth0t64_1.8-3_riscv64.deb ... 250s Unpacking libnpth0t64:riscv64 (1.8-3) over (1.8-2) ... 250s Setting up libnpth0t64:riscv64 (1.8-3) ... 252s (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 ... 114197 files and directories currently installed.) 252s Preparing to unpack .../nano_8.4-1_riscv64.deb ... 252s Unpacking nano (8.4-1) over (8.3-1) ... 252s Preparing to unpack .../usb.ids_2025.04.01-1_all.deb ... 252s Unpacking usb.ids (2025.04.01-1) over (2025.01.14-1) ... 253s Preparing to unpack .../htop_3.4.1-4_riscv64.deb ... 253s Unpacking htop (3.4.1-4) over (3.4.0-2) ... 254s Preparing to unpack .../python3.13-gdbm_3.13.3-2_riscv64.deb ... 254s Unpacking python3.13-gdbm (3.13.3-2) over (3.13.3-1) ... 254s Setting up htop (3.4.1-4) ... 254s Setting up libpython3.13-minimal:riscv64 (3.13.3-2) ... 254s Setting up usb.ids (2025.04.01-1) ... 254s Setting up nano (8.4-1) ... 254s Installing new version of config file /etc/nanorc ... 254s Setting up python3.13-minimal (3.13.3-2) ... 267s Setting up libpython3.13-stdlib:riscv64 (3.13.3-2) ... 267s Setting up python3.13-gdbm (3.13.3-2) ... 267s Setting up libpython3.13:riscv64 (3.13.3-2) ... 267s Setting up python3.13 (3.13.3-2) ... 281s Processing triggers for systemd (257.4-1ubuntu3) ... 281s Processing triggers for man-db (2.13.0-1) ... 284s Processing triggers for install-info (7.1.1-1) ... 287s Processing triggers for libc-bin (2.41-6ubuntu1) ... 293s Reading package lists... 295s Building dependency tree... 295s Reading state information... 296s Starting pkgProblemResolver with broken count: 0 296s Starting 2 pkgProblemResolver with broken count: 0 296s Done 298s Solving dependencies... 299s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 312s autopkgtest [13:01:16]: testbed running kernel: Linux 6.14.0-13-generic #13.2-Ubuntu SMP PREEMPT_DYNAMIC Sun Apr 6 05:26:54 UTC 2025 313s autopkgtest [13:01:17]: @@@@@@@@@@@@@@@@@@@@ apt-source glib2.0 385s Get:1 http://ftpmaster.internal/ubuntu questing/main glib2.0 2.84.1-1 (dsc) [4812 B] 385s Get:2 http://ftpmaster.internal/ubuntu questing/main glib2.0 2.84.1-1 (tar) [661 kB] 385s Get:3 http://ftpmaster.internal/ubuntu questing/main glib2.0 2.84.1-1 (tar) [5615 kB] 385s Get:4 http://ftpmaster.internal/ubuntu questing/main glib2.0 2.84.1-1 (diff) [136 kB] 387s gpgv: Signature made Fri Apr 4 19:02:25 2025 UTC 387s gpgv: using RSA key 4D0BE12F0E4776D8AACE9696E66C775AEBFE6C7D 387s gpgv: Can't check signature: No public key 387s dpkg-source: warning: cannot verify inline signature for ./glib2.0_2.84.1-1.dsc: no acceptable signature found 397s autopkgtest [13:02:41]: testing package glib2.0 version 2.84.1-1 404s autopkgtest [13:02:48]: build not needed 420s autopkgtest [13:03:04]: test build: preparing testbed 424s Reading package lists... 425s Building dependency tree... 425s Reading state information... 426s Starting pkgProblemResolver with broken count: 0 426s Starting 2 pkgProblemResolver with broken count: 0 426s Done 428s The following NEW packages will be installed: 428s build-essential cpp cpp-14 cpp-14-riscv64-linux-gnu cpp-riscv64-linux-gnu 428s g++ g++-14 g++-14-riscv64-linux-gnu g++-riscv64-linux-gnu gcc gcc-14 428s gcc-14-riscv64-linux-gnu gcc-riscv64-linux-gnu libasan8 libblkid-dev 428s libcc1-0 libffi-dev libgcc-14-dev libgio-2.0-dev libgomp1 libisl23 libitm1 428s liblsan0 libmount-dev libmpc3 libpcre2-16-0 libpcre2-32-0 libpcre2-dev 428s libpcre2-posix3 libpkgconf3 libselinux1-dev libsepol-dev libstdc++-14-dev 428s libsysprof-capture-4-dev libtsan2 libubsan1 pkgconf pkgconf-bin uuid-dev 428s zlib1g-dev 429s 0 upgraded, 40 newly installed, 0 to remove and 0 not upgraded. 429s Need to get 95.7 MB of archives. 429s After this operation, 457 MB of additional disk space will be used. 429s Get:1 http://ftpmaster.internal/ubuntu questing/main riscv64 libisl23 riscv64 0.27-1 [722 kB] 429s Get:2 http://ftpmaster.internal/ubuntu questing/main riscv64 libmpc3 riscv64 1.3.1-1build2 [61.5 kB] 429s Get:3 http://ftpmaster.internal/ubuntu questing/main riscv64 cpp-14-riscv64-linux-gnu riscv64 14.2.0-19ubuntu2 [15.2 MB] 432s Get:4 http://ftpmaster.internal/ubuntu questing/main riscv64 cpp-14 riscv64 14.2.0-19ubuntu2 [1028 B] 432s Get:5 http://ftpmaster.internal/ubuntu questing/main riscv64 cpp-riscv64-linux-gnu riscv64 4:14.2.0-1ubuntu1 [5554 B] 432s Get:6 http://ftpmaster.internal/ubuntu questing/main riscv64 cpp riscv64 4:14.2.0-1ubuntu1 [22.4 kB] 432s Get:7 http://ftpmaster.internal/ubuntu questing/main riscv64 libcc1-0 riscv64 15-20250404-0ubuntu1 [46.1 kB] 432s Get:8 http://ftpmaster.internal/ubuntu questing/main riscv64 libgomp1 riscv64 15-20250404-0ubuntu1 [149 kB] 432s Get:9 http://ftpmaster.internal/ubuntu questing/main riscv64 libitm1 riscv64 15-20250404-0ubuntu1 [29.7 kB] 432s Get:10 http://ftpmaster.internal/ubuntu questing/main riscv64 libasan8 riscv64 15-20250404-0ubuntu1 [3300 kB] 432s Get:11 http://ftpmaster.internal/ubuntu questing/main riscv64 liblsan0 riscv64 15-20250404-0ubuntu1 [1470 kB] 432s Get:12 http://ftpmaster.internal/ubuntu questing/main riscv64 libtsan2 riscv64 15-20250404-0ubuntu1 [2983 kB] 433s Get:13 http://ftpmaster.internal/ubuntu questing/main riscv64 libubsan1 riscv64 15-20250404-0ubuntu1 [1310 kB] 433s Get:14 http://ftpmaster.internal/ubuntu questing/main riscv64 libgcc-14-dev riscv64 14.2.0-19ubuntu2 [5994 kB] 433s Get:15 http://ftpmaster.internal/ubuntu questing/main riscv64 gcc-14-riscv64-linux-gnu riscv64 14.2.0-19ubuntu2 [29.9 MB] 437s Get:16 http://ftpmaster.internal/ubuntu questing/main riscv64 gcc-14 riscv64 14.2.0-19ubuntu2 [529 kB] 437s Get:17 http://ftpmaster.internal/ubuntu questing/main riscv64 gcc-riscv64-linux-gnu riscv64 4:14.2.0-1ubuntu1 [1198 B] 437s Get:18 http://ftpmaster.internal/ubuntu questing/main riscv64 gcc riscv64 4:14.2.0-1ubuntu1 [4998 B] 437s Get:19 http://ftpmaster.internal/ubuntu questing/main riscv64 libstdc++-14-dev riscv64 14.2.0-19ubuntu2 [6141 kB] 438s Get:20 http://ftpmaster.internal/ubuntu questing/main riscv64 g++-14-riscv64-linux-gnu riscv64 14.2.0-19ubuntu2 [16.8 MB] 439s Get:21 http://ftpmaster.internal/ubuntu questing/main riscv64 g++-14 riscv64 14.2.0-19ubuntu2 [23.0 kB] 440s Get:22 http://ftpmaster.internal/ubuntu questing/main riscv64 g++-riscv64-linux-gnu riscv64 4:14.2.0-1ubuntu1 [960 B] 440s Get:23 http://ftpmaster.internal/ubuntu questing/main riscv64 g++ riscv64 4:14.2.0-1ubuntu1 [1080 B] 440s Get:24 http://ftpmaster.internal/ubuntu questing/main riscv64 build-essential riscv64 12.12ubuntu1 [5090 B] 440s Get:25 http://ftpmaster.internal/ubuntu questing/main riscv64 libffi-dev riscv64 3.4.7-1 [88.8 kB] 440s Get:26 http://ftpmaster.internal/ubuntu questing/main riscv64 uuid-dev riscv64 2.40.2-14ubuntu1 [73.6 kB] 440s Get:27 http://ftpmaster.internal/ubuntu questing/main riscv64 libblkid-dev riscv64 2.40.2-14ubuntu1 [586 kB] 440s Get:28 http://ftpmaster.internal/ubuntu questing/main riscv64 libsepol-dev riscv64 3.7-1 [1216 kB] 440s Get:29 http://ftpmaster.internal/ubuntu questing/main riscv64 libpcre2-16-0 riscv64 10.45-1 [246 kB] 440s Get:30 http://ftpmaster.internal/ubuntu questing/main riscv64 libpcre2-32-0 riscv64 10.45-1 [232 kB] 440s Get:31 http://ftpmaster.internal/ubuntu questing/main riscv64 libpcre2-posix3 riscv64 10.45-1 [6820 B] 440s Get:32 http://ftpmaster.internal/ubuntu questing/main riscv64 libpcre2-dev riscv64 10.45-1 [2204 kB] 440s Get:33 http://ftpmaster.internal/ubuntu questing/main riscv64 libselinux1-dev riscv64 3.7-3ubuntu3 [321 kB] 440s Get:34 http://ftpmaster.internal/ubuntu questing/main riscv64 libmount-dev riscv64 2.40.2-14ubuntu1 [34.6 kB] 440s Get:35 http://ftpmaster.internal/ubuntu questing/main riscv64 libsysprof-capture-4-dev riscv64 48.0-2 [132 kB] 440s Get:36 http://ftpmaster.internal/ubuntu questing/main riscv64 libpkgconf3 riscv64 1.8.1-4 [31.6 kB] 440s Get:37 http://ftpmaster.internal/ubuntu questing/main riscv64 pkgconf-bin riscv64 1.8.1-4 [21.8 kB] 440s Get:38 http://ftpmaster.internal/ubuntu questing/main riscv64 pkgconf riscv64 1.8.1-4 [16.7 kB] 440s Get:39 http://ftpmaster.internal/ubuntu questing/main riscv64 zlib1g-dev riscv64 1:1.3.dfsg+really1.3.1-1ubuntu1 [968 kB] 440s Get:40 http://ftpmaster.internal/ubuntu questing/main riscv64 libgio-2.0-dev riscv64 2.84.1-1 [4889 kB] 446s Fetched 95.7 MB in 12s (7753 kB/s) 446s Selecting previously unselected package libisl23:riscv64. 447s (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 ... 114197 files and directories currently installed.) 447s Preparing to unpack .../00-libisl23_0.27-1_riscv64.deb ... 447s Unpacking libisl23:riscv64 (0.27-1) ... 448s Selecting previously unselected package libmpc3:riscv64. 448s Preparing to unpack .../01-libmpc3_1.3.1-1build2_riscv64.deb ... 448s Unpacking libmpc3:riscv64 (1.3.1-1build2) ... 448s Selecting previously unselected package cpp-14-riscv64-linux-gnu. 448s Preparing to unpack .../02-cpp-14-riscv64-linux-gnu_14.2.0-19ubuntu2_riscv64.deb ... 448s Unpacking cpp-14-riscv64-linux-gnu (14.2.0-19ubuntu2) ... 455s Selecting previously unselected package cpp-14. 455s Preparing to unpack .../03-cpp-14_14.2.0-19ubuntu2_riscv64.deb ... 455s Unpacking cpp-14 (14.2.0-19ubuntu2) ... 455s Selecting previously unselected package cpp-riscv64-linux-gnu. 455s Preparing to unpack .../04-cpp-riscv64-linux-gnu_4%3a14.2.0-1ubuntu1_riscv64.deb ... 455s Unpacking cpp-riscv64-linux-gnu (4:14.2.0-1ubuntu1) ... 456s Selecting previously unselected package cpp. 456s Preparing to unpack .../05-cpp_4%3a14.2.0-1ubuntu1_riscv64.deb ... 456s Unpacking cpp (4:14.2.0-1ubuntu1) ... 456s Selecting previously unselected package libcc1-0:riscv64. 457s Preparing to unpack .../06-libcc1-0_15-20250404-0ubuntu1_riscv64.deb ... 457s Unpacking libcc1-0:riscv64 (15-20250404-0ubuntu1) ... 457s Selecting previously unselected package libgomp1:riscv64. 457s Preparing to unpack .../07-libgomp1_15-20250404-0ubuntu1_riscv64.deb ... 457s Unpacking libgomp1:riscv64 (15-20250404-0ubuntu1) ... 457s Selecting previously unselected package libitm1:riscv64. 458s Preparing to unpack .../08-libitm1_15-20250404-0ubuntu1_riscv64.deb ... 458s Unpacking libitm1:riscv64 (15-20250404-0ubuntu1) ... 458s Selecting previously unselected package libasan8:riscv64. 458s Preparing to unpack .../09-libasan8_15-20250404-0ubuntu1_riscv64.deb ... 458s Unpacking libasan8:riscv64 (15-20250404-0ubuntu1) ... 460s Selecting previously unselected package liblsan0:riscv64. 460s Preparing to unpack .../10-liblsan0_15-20250404-0ubuntu1_riscv64.deb ... 460s Unpacking liblsan0:riscv64 (15-20250404-0ubuntu1) ... 461s Selecting previously unselected package libtsan2:riscv64. 461s Preparing to unpack .../11-libtsan2_15-20250404-0ubuntu1_riscv64.deb ... 461s Unpacking libtsan2:riscv64 (15-20250404-0ubuntu1) ... 463s Selecting previously unselected package libubsan1:riscv64. 463s Preparing to unpack .../12-libubsan1_15-20250404-0ubuntu1_riscv64.deb ... 463s Unpacking libubsan1:riscv64 (15-20250404-0ubuntu1) ... 464s Selecting previously unselected package libgcc-14-dev:riscv64. 464s Preparing to unpack .../13-libgcc-14-dev_14.2.0-19ubuntu2_riscv64.deb ... 464s Unpacking libgcc-14-dev:riscv64 (14.2.0-19ubuntu2) ... 470s Selecting previously unselected package gcc-14-riscv64-linux-gnu. 470s Preparing to unpack .../14-gcc-14-riscv64-linux-gnu_14.2.0-19ubuntu2_riscv64.deb ... 470s Unpacking gcc-14-riscv64-linux-gnu (14.2.0-19ubuntu2) ... 483s Selecting previously unselected package gcc-14. 483s Preparing to unpack .../15-gcc-14_14.2.0-19ubuntu2_riscv64.deb ... 483s Unpacking gcc-14 (14.2.0-19ubuntu2) ... 484s Selecting previously unselected package gcc-riscv64-linux-gnu. 484s Preparing to unpack .../16-gcc-riscv64-linux-gnu_4%3a14.2.0-1ubuntu1_riscv64.deb ... 484s Unpacking gcc-riscv64-linux-gnu (4:14.2.0-1ubuntu1) ... 484s Selecting previously unselected package gcc. 484s Preparing to unpack .../17-gcc_4%3a14.2.0-1ubuntu1_riscv64.deb ... 484s Unpacking gcc (4:14.2.0-1ubuntu1) ... 484s Selecting previously unselected package libstdc++-14-dev:riscv64. 485s Preparing to unpack .../18-libstdc++-14-dev_14.2.0-19ubuntu2_riscv64.deb ... 485s Unpacking libstdc++-14-dev:riscv64 (14.2.0-19ubuntu2) ... 491s Selecting previously unselected package g++-14-riscv64-linux-gnu. 491s Preparing to unpack .../19-g++-14-riscv64-linux-gnu_14.2.0-19ubuntu2_riscv64.deb ... 491s Unpacking g++-14-riscv64-linux-gnu (14.2.0-19ubuntu2) ... 498s Selecting previously unselected package g++-14. 499s Preparing to unpack .../20-g++-14_14.2.0-19ubuntu2_riscv64.deb ... 499s Unpacking g++-14 (14.2.0-19ubuntu2) ... 499s Selecting previously unselected package g++-riscv64-linux-gnu. 499s Preparing to unpack .../21-g++-riscv64-linux-gnu_4%3a14.2.0-1ubuntu1_riscv64.deb ... 499s Unpacking g++-riscv64-linux-gnu (4:14.2.0-1ubuntu1) ... 499s Selecting previously unselected package g++. 499s Preparing to unpack .../22-g++_4%3a14.2.0-1ubuntu1_riscv64.deb ... 499s Unpacking g++ (4:14.2.0-1ubuntu1) ... 500s Selecting previously unselected package build-essential. 500s Preparing to unpack .../23-build-essential_12.12ubuntu1_riscv64.deb ... 500s Unpacking build-essential (12.12ubuntu1) ... 500s Selecting previously unselected package libffi-dev:riscv64. 500s Preparing to unpack .../24-libffi-dev_3.4.7-1_riscv64.deb ... 500s Unpacking libffi-dev:riscv64 (3.4.7-1) ... 501s Selecting previously unselected package uuid-dev:riscv64. 501s Preparing to unpack .../25-uuid-dev_2.40.2-14ubuntu1_riscv64.deb ... 501s Unpacking uuid-dev:riscv64 (2.40.2-14ubuntu1) ... 502s Selecting previously unselected package libblkid-dev:riscv64. 502s Preparing to unpack .../26-libblkid-dev_2.40.2-14ubuntu1_riscv64.deb ... 502s Unpacking libblkid-dev:riscv64 (2.40.2-14ubuntu1) ... 503s Selecting previously unselected package libsepol-dev:riscv64. 503s Preparing to unpack .../27-libsepol-dev_3.7-1_riscv64.deb ... 503s Unpacking libsepol-dev:riscv64 (3.7-1) ... 504s Selecting previously unselected package libpcre2-16-0:riscv64. 504s Preparing to unpack .../28-libpcre2-16-0_10.45-1_riscv64.deb ... 504s Unpacking libpcre2-16-0:riscv64 (10.45-1) ... 505s Selecting previously unselected package libpcre2-32-0:riscv64. 505s Preparing to unpack .../29-libpcre2-32-0_10.45-1_riscv64.deb ... 505s Unpacking libpcre2-32-0:riscv64 (10.45-1) ... 505s Selecting previously unselected package libpcre2-posix3:riscv64. 506s Preparing to unpack .../30-libpcre2-posix3_10.45-1_riscv64.deb ... 506s Unpacking libpcre2-posix3:riscv64 (10.45-1) ... 506s Selecting previously unselected package libpcre2-dev:riscv64. 506s Preparing to unpack .../31-libpcre2-dev_10.45-1_riscv64.deb ... 506s Unpacking libpcre2-dev:riscv64 (10.45-1) ... 508s Selecting previously unselected package libselinux1-dev:riscv64. 509s Preparing to unpack .../32-libselinux1-dev_3.7-3ubuntu3_riscv64.deb ... 509s Unpacking libselinux1-dev:riscv64 (3.7-3ubuntu3) ... 509s Selecting previously unselected package libmount-dev:riscv64. 509s Preparing to unpack .../33-libmount-dev_2.40.2-14ubuntu1_riscv64.deb ... 509s Unpacking libmount-dev:riscv64 (2.40.2-14ubuntu1) ... 510s Selecting previously unselected package libsysprof-capture-4-dev:riscv64. 510s Preparing to unpack .../34-libsysprof-capture-4-dev_48.0-2_riscv64.deb ... 510s Unpacking libsysprof-capture-4-dev:riscv64 (48.0-2) ... 510s Selecting previously unselected package libpkgconf3:riscv64. 511s Preparing to unpack .../35-libpkgconf3_1.8.1-4_riscv64.deb ... 511s Unpacking libpkgconf3:riscv64 (1.8.1-4) ... 511s Selecting previously unselected package pkgconf-bin. 511s Preparing to unpack .../36-pkgconf-bin_1.8.1-4_riscv64.deb ... 511s Unpacking pkgconf-bin (1.8.1-4) ... 511s Selecting previously unselected package pkgconf:riscv64. 512s Preparing to unpack .../37-pkgconf_1.8.1-4_riscv64.deb ... 512s Unpacking pkgconf:riscv64 (1.8.1-4) ... 512s Selecting previously unselected package zlib1g-dev:riscv64. 512s Preparing to unpack .../38-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1ubuntu1_riscv64.deb ... 512s Unpacking zlib1g-dev:riscv64 (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 513s Selecting previously unselected package libgio-2.0-dev:riscv64. 513s Preparing to unpack .../39-libgio-2.0-dev_2.84.1-1_riscv64.deb ... 513s Unpacking libgio-2.0-dev:riscv64 (2.84.1-1) ... 518s Setting up libgomp1:riscv64 (15-20250404-0ubuntu1) ... 518s Setting up libffi-dev:riscv64 (3.4.7-1) ... 518s Setting up libpcre2-16-0:riscv64 (10.45-1) ... 518s Setting up libsysprof-capture-4-dev:riscv64 (48.0-2) ... 518s Setting up libpcre2-32-0:riscv64 (10.45-1) ... 518s Setting up libpkgconf3:riscv64 (1.8.1-4) ... 518s Setting up uuid-dev:riscv64 (2.40.2-14ubuntu1) ... 518s Setting up libmpc3:riscv64 (1.3.1-1build2) ... 518s Setting up libsepol-dev:riscv64 (3.7-1) ... 518s Setting up pkgconf-bin (1.8.1-4) ... 518s Setting up libubsan1:riscv64 (15-20250404-0ubuntu1) ... 518s Setting up zlib1g-dev:riscv64 (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 518s Setting up libpcre2-posix3:riscv64 (10.45-1) ... 518s Setting up libasan8:riscv64 (15-20250404-0ubuntu1) ... 518s Setting up libtsan2:riscv64 (15-20250404-0ubuntu1) ... 518s Setting up libisl23:riscv64 (0.27-1) ... 518s Setting up libcc1-0:riscv64 (15-20250404-0ubuntu1) ... 518s Setting up liblsan0:riscv64 (15-20250404-0ubuntu1) ... 518s Setting up libitm1:riscv64 (15-20250404-0ubuntu1) ... 518s Setting up libblkid-dev:riscv64 (2.40.2-14ubuntu1) ... 518s Setting up libpcre2-dev:riscv64 (10.45-1) ... 518s Setting up libselinux1-dev:riscv64 (3.7-3ubuntu3) ... 518s Setting up cpp-14-riscv64-linux-gnu (14.2.0-19ubuntu2) ... 518s Setting up pkgconf:riscv64 (1.8.1-4) ... 518s Setting up cpp-14 (14.2.0-19ubuntu2) ... 518s Setting up libgcc-14-dev:riscv64 (14.2.0-19ubuntu2) ... 518s Setting up cpp-riscv64-linux-gnu (4:14.2.0-1ubuntu1) ... 518s Setting up libstdc++-14-dev:riscv64 (14.2.0-19ubuntu2) ... 518s Setting up libmount-dev:riscv64 (2.40.2-14ubuntu1) ... 518s Setting up libgio-2.0-dev:riscv64 (2.84.1-1) ... 518s Setting up gcc-14-riscv64-linux-gnu (14.2.0-19ubuntu2) ... 518s Setting up cpp (4:14.2.0-1ubuntu1) ... 518s Setting up g++-14-riscv64-linux-gnu (14.2.0-19ubuntu2) ... 518s Setting up gcc-14 (14.2.0-19ubuntu2) ... 518s Setting up gcc-riscv64-linux-gnu (4:14.2.0-1ubuntu1) ... 518s Setting up g++-riscv64-linux-gnu (4:14.2.0-1ubuntu1) ... 518s Setting up g++-14 (14.2.0-19ubuntu2) ... 518s Setting up gcc (4:14.2.0-1ubuntu1) ... 519s Setting up g++ (4:14.2.0-1ubuntu1) ... 519s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 519s Setting up build-essential (12.12ubuntu1) ... 519s Processing triggers for libc-bin (2.41-6ubuntu1) ... 519s Processing triggers for man-db (2.13.0-1) ... 523s Processing triggers for libglib2.0-0t64:riscv64 (2.84.1-1) ... 524s No schema files found: doing nothing. 524s Processing triggers for install-info (7.1.1-1) ... 535s autopkgtest [13:04:59]: test build: [----------------------- 536s + mode=dynamic 536s + getopt -o --long static -n debian/tests/build -- 536s + getopt_temp= -- 536s + eval set -- -- 536s + set -- -- 536s + true 536s + shift 536s + break 536s + mktemp -d 536s + WORKDIR=/tmp/tmp.eFBficu85s 536s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 536s + cd /tmp/tmp.eFBficu85s 536s + [ -n ] 536s + CROSS_COMPILE= 536s + cat 536s + cat 536s + cat 536s + cat 536s + cat 537s + cat 537s + cflags= 537s + pcflags= 537s + packages=glib-2.0 537s + pkg-config --cflags --libs glib-2.0 537s + gcc -o glib-dynamic glib.c -I/usr/include/glib-2.0 -I/usr/lib/riscv64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 539s + echo build (glib, dynamic): OK 539s + [ -x glib-dynamic ] 539s + foo=bar ./glib-dynamic 539s build (glib, dynamic): OK 539s run (glib, dynamic): OK 539s + echo run (glib, dynamic): OK 539s + cflags= 539s + pcflags= 539s + packages=gobject-2.0 539s + pkg-config --cflags --libs gobject-2.0 539s + gcc -o gobject-dynamic gobject.c -I/usr/include/glib-2.0 -I/usr/lib/riscv64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 541s + echo build (gobject, dynamic): OK 541s + [ -x gobject-dynamic ] 541s + foo=bar ./gobject-dynamic 541s build (gobject, dynamic): OK 541s + echo run (gobject, dynamic): OK 541s + cflags= 541s + pcflags= 541s + packages=gio-2.0 541s run (gobject, dynamic): OK 541s + pkg-config --cflags --libs gio-2.0 541s + gcc -o gio-dynamic gio.c -I/usr/include/glib-2.0 -I/usr/lib/riscv64-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 545s + echo build (gio, dynamic): OK 545s + [ -x gio-dynamic ] 545s + foo=bar ./gio-dynamic 545s build (gio, dynamic): OK 545s + echo run (gio, dynamic): OK 545s run (gio, dynamic): OK 545s + cflags= 545s + pcflags= 545s + packages=gio-unix-2.0 545s + pkg-config --cflags --libs gio-unix-2.0 545s + gcc -o gio-unix-dynamic gio-unix.c -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib/riscv64-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 549s + echo build (gio-unix, dynamic): OK 549s build (gio-unix, dynamic): OK 549s + [ -x gio-unix-dynamic ] 549s + foo=bar ./gio-unix-dynamic 549s run (gio-unix, dynamic): OK 549s + echo run (gio-unix, dynamic): OK 549s + cflags= 549s + pcflags= 549s + packages=gmodule-2.0 549s + pkg-config --cflags --libs gmodule-2.0 549s + gcc -o gmodule-dynamic gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/riscv64-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 551s build (gmodule, dynamic): OK 551s + echo build (gmodule, dynamic): OK 551s + [ -x gmodule-dynamic ] 551s + foo=bar ./gmodule-dynamic 551s run (gmodule, dynamic): OK 551s + echo run (gmodule, dynamic): OK 551s + cflags= 551s + pcflags= 551s + packages=gthread-2.0 551s + pkg-config --cflags --libs gthread-2.0 551s + gcc -o gthread-dynamic gthread.c -I/usr/include/glib-2.0 -I/usr/lib/riscv64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 553s build (gthread, dynamic): OK 553s + echo build (gthread, dynamic): OK 553s + [ -x gthread-dynamic ] 553s + foo=bar ./gthread-dynamic 553s run (gthread, dynamic): OK 553s + echo run (gthread, dynamic): OK 553s + rm -rf /tmp/tmp.eFBficu85s 554s autopkgtest [13:05:18]: test build: -----------------------] 556s build PASS (superficial) 556s autopkgtest [13:05:20]: test build: - - - - - - - - - - results - - - - - - - - - - 557s autopkgtest [13:05:21]: test build-static: preparing testbed 561s Reading package lists... 562s Building dependency tree... 562s Reading state information... 563s Starting pkgProblemResolver with broken count: 0 564s Starting 2 pkgProblemResolver with broken count: 0 564s Done 565s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 569s autopkgtest [13:05:33]: test build-static: [----------------------- 571s + mode=dynamic 571s + getopt -o --long static -n debian/tests/build -- --static 571s + getopt_temp= --static -- 571s + eval set -- --static -- 571s + set -- --static -- 571s + true 571s + mode=static 571s + shift 571s + continue 571s + true 571s + shift 571s + break 571s + mktemp -d 571s + WORKDIR=/tmp/tmp.HFZ7j1fgkD 571s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 571s + cd /tmp/tmp.HFZ7j1fgkD 571s + [ -n ] 571s + CROSS_COMPILE= 571s + cat 571s + cat 571s + cat 571s + cat 571s + cat 571s + cat 571s + cflags= 571s + pcflags= 571s + packages=glib-2.0 571s + cflags=-static 571s + pcflags=--static 571s + pkg-config --static --cflags --libs glib-2.0 571s + gcc -static -o glib-static glib.c -I/usr/include/glib-2.0 -I/usr/lib/riscv64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 574s /usr/bin/ld: /lib/riscv64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 574s (.text+0xde): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 574s /usr/bin/ld: (.text+0x25a): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 574s /usr/bin/ld: (.text+0x10e): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 580s + echo build (glib, static): OK 580s + [ -x glib-static ] 580s + foo=bar ./glib-static 580s build (glib, static): OK 580s run (glib, static): OK 580s + echo run (glib, static): OK 580s + cflags= 580s + pcflags= 580s + packages=gobject-2.0 580s + cflags=-static 580s + pcflags=--static 580s + pkg-config --static --cflags --libs gobject-2.0 580s + gcc -static -o gobject-static gobject.c -I/usr/include/glib-2.0 -I/usr/lib/riscv64-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 582s /usr/bin/ld: /lib/riscv64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 582s (.text+0xde): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 582s /usr/bin/ld: (.text+0x25a): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 582s /usr/bin/ld: (.text+0x10e): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 588s + echo build (gobject, static): OK 588s + [ -x gobject-static ] 588s + foo=bar ./gobject-static 588s build (gobject, static): OK 588s run (gobject, static): OK 588s + echo run (gobject, static): OK 588s + cflags= 588s + pcflags= 588s + packages=gio-2.0 588s + cflags=-static 588s + pcflags=--static 588s + continue 588s + cflags= 588s + pcflags= 588s + packages=gio-unix-2.0 588s + cflags=-static 588s + pcflags=--static 588s + continue 588s + cflags= 588s + pcflags= 588s + packages=gmodule-2.0 588s + cflags=-static 588s + pcflags=--static 588s + pkg-config --static --cflags --libs gmodule-2.0 588s + gcc -static -o gmodule-static gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/riscv64-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 590s /usr/bin/ld: /lib/riscv64-linux-gnu/libgmodule-2.0.a(gmodule.c.o): in function `g_module_open_full': 590s (.text+0x596): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 591s /usr/bin/ld: /lib/riscv64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 591s (.text+0xde): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 591s /usr/bin/ld: (.text+0x25a): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 591s /usr/bin/ld: (.text+0x10e): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 596s build (gmodule, static): OK 596s + echo build (gmodule, static): OK 596s + [ -x gmodule-static ] 596s + foo=bar ./gmodule-static 596s + echo run (gmodule, static): OK 596s run (gmodule, static): OK 596s + cflags= 596s + pcflags= 596s + packages=gthread-2.0 596s + cflags=-static 596s + pcflags=--static 596s + pkg-config --static --cflags --libs gthread-2.0 596s + gcc -static -o gthread-static gthread.c -I/usr/include/glib-2.0 -I/usr/lib/riscv64-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 600s /usr/bin/ld: /lib/riscv64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 600s (.text+0xde): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 600s /usr/bin/ld: (.text+0x25a): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 600s /usr/bin/ld: (.text+0x10e): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 605s build (gthread, static): OK 605s + echo build (gthread, static): OK 606s + [ -x gthread-static ] 606s + foo=bar ./gthread-static 606s run (gthread, static): OK 606s + echo run (gthread, static): OK 606s + rm -rf /tmp/tmp.HFZ7j1fgkD 607s autopkgtest [13:06:11]: test build-static: -----------------------] 608s autopkgtest [13:06:12]: test build-static: - - - - - - - - - - results - - - - - - - - - - 608s build-static PASS (superficial) 610s autopkgtest [13:06:14]: test girepository-tools: preparing testbed 940s autopkgtest [13:11:44]: testbed dpkg architecture: riscv64 942s autopkgtest [13:11:46]: testbed apt version: 3.0.0 945s autopkgtest [13:11:49]: @@@@@@@@@@@@@@@@@@@@ test bed setup 947s autopkgtest [13:11:51]: testbed release detected to be: questing 954s autopkgtest [13:11:58]: updating testbed package index (apt update) 957s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [110 kB] 958s Hit:2 http://ftpmaster.internal/ubuntu questing InRelease 958s Hit:3 http://ftpmaster.internal/ubuntu questing-updates InRelease 958s Hit:4 http://ftpmaster.internal/ubuntu questing-security InRelease 959s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [171 kB] 960s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [2029 kB] 961s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [44.4 kB] 961s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 Packages [197 kB] 961s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/universe riscv64 Packages [788 kB] 962s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/multiverse riscv64 Packages [8624 B] 969s Fetched 3348 kB in 10s (338 kB/s) 994s Reading package lists... 1000s autopkgtest [13:12:44]: upgrading testbed (apt dist-upgrade and autopurge) 1003s Reading package lists... 1005s Building dependency tree... 1005s Reading state information... 1009s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 1010s Starting 2 pkgProblemResolver with broken count: 0 1010s Done 1015s Entering ResolveByKeep 1016s 1018s Calculating upgrade... 1019s The following packages will be upgraded: 1019s htop libnpth0t64 libpython3.13 libpython3.13-minimal libpython3.13-stdlib 1019s nano python3.13 python3.13-gdbm python3.13-minimal usb.ids 1020s 10 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1020s Need to get 9242 kB of archives. 1020s After this operation, 7168 B of additional disk space will be used. 1020s Get:1 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 python3.13 riscv64 3.13.3-2 [739 kB] 1020s Get:2 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 libpython3.13 riscv64 3.13.3-2 [2427 kB] 1021s Get:3 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 libpython3.13-stdlib riscv64 3.13.3-2 [2063 kB] 1021s Get:4 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 python3.13-minimal riscv64 3.13.3-2 [2401 kB] 1022s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 libpython3.13-minimal riscv64 3.13.3-2 [882 kB] 1022s Get:6 http://ftpmaster.internal/ubuntu questing/main riscv64 libnpth0t64 riscv64 1.8-3 [8790 B] 1022s Get:7 http://ftpmaster.internal/ubuntu questing/main riscv64 nano riscv64 8.4-1 [299 kB] 1022s Get:8 http://ftpmaster.internal/ubuntu questing/main riscv64 usb.ids all 2025.04.01-1 [223 kB] 1022s Get:9 http://ftpmaster.internal/ubuntu questing/main riscv64 htop riscv64 3.4.1-4 [168 kB] 1022s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 python3.13-gdbm riscv64 3.13.3-2 [31.5 kB] 1032s Fetched 9242 kB in 3s (3322 kB/s) 1035s (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 ... 114197 files and directories currently installed.) 1035s Preparing to unpack .../0-python3.13_3.13.3-2_riscv64.deb ... 1036s Unpacking python3.13 (3.13.3-2) over (3.13.3-1) ... 1038s Preparing to unpack .../1-libpython3.13_3.13.3-2_riscv64.deb ... 1038s Unpacking libpython3.13:riscv64 (3.13.3-2) over (3.13.3-1) ... 1041s Preparing to unpack .../2-libpython3.13-stdlib_3.13.3-2_riscv64.deb ... 1042s Unpacking libpython3.13-stdlib:riscv64 (3.13.3-2) over (3.13.3-1) ... 1046s Preparing to unpack .../3-python3.13-minimal_3.13.3-2_riscv64.deb ... 1046s Unpacking python3.13-minimal (3.13.3-2) over (3.13.3-1) ... 1049s Preparing to unpack .../4-libpython3.13-minimal_3.13.3-2_riscv64.deb ... 1051s Unpacking libpython3.13-minimal:riscv64 (3.13.3-2) over (3.13.3-1) ... 1053s Preparing to unpack .../5-libnpth0t64_1.8-3_riscv64.deb ... 1053s Unpacking libnpth0t64:riscv64 (1.8-3) over (1.8-2) ... 1054s Setting up libnpth0t64:riscv64 (1.8-3) ... 1057s (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 ... 114197 files and directories currently installed.) 1057s Preparing to unpack .../nano_8.4-1_riscv64.deb ... 1057s Unpacking nano (8.4-1) over (8.3-1) ... 1058s Preparing to unpack .../usb.ids_2025.04.01-1_all.deb ... 1058s Unpacking usb.ids (2025.04.01-1) over (2025.01.14-1) ... 1059s Preparing to unpack .../htop_3.4.1-4_riscv64.deb ... 1059s Unpacking htop (3.4.1-4) over (3.4.0-2) ... 1060s Preparing to unpack .../python3.13-gdbm_3.13.3-2_riscv64.deb ... 1060s Unpacking python3.13-gdbm (3.13.3-2) over (3.13.3-1) ... 1061s Setting up htop (3.4.1-4) ... 1061s Setting up libpython3.13-minimal:riscv64 (3.13.3-2) ... 1061s Setting up usb.ids (2025.04.01-1) ... 1061s Setting up nano (8.4-1) ... 1061s Installing new version of config file /etc/nanorc ... 1062s Setting up python3.13-minimal (3.13.3-2) ... 1087s Setting up libpython3.13-stdlib:riscv64 (3.13.3-2) ... 1087s Setting up python3.13-gdbm (3.13.3-2) ... 1087s Setting up libpython3.13:riscv64 (3.13.3-2) ... 1087s Setting up python3.13 (3.13.3-2) ... 1111s Processing triggers for systemd (257.4-1ubuntu3) ... 1113s Processing triggers for man-db (2.13.0-1) ... 1119s Processing triggers for install-info (7.1.1-1) ... 1124s Processing triggers for libc-bin (2.41-6ubuntu1) ... 1136s Reading package lists... 1138s Building dependency tree... 1138s Reading state information... 1141s Starting pkgProblemResolver with broken count: 0 1141s Starting 2 pkgProblemResolver with broken count: 0 1141s Done 1145s Solving dependencies... 1146s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1175s Reading package lists... 1178s Building dependency tree... 1178s Reading state information... 1182s Starting pkgProblemResolver with broken count: 0 1182s Starting 2 pkgProblemResolver with broken count: 0 1182s Done 1187s The following NEW packages will be installed: 1187s gir1.2-glib-2.0-dev girepository-tools libgirepository-2.0-0 1187s native-architecture 1188s 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. 1188s Need to get 1104 kB of archives. 1188s After this operation, 12.7 MB of additional disk space will be used. 1188s Get:1 http://ftpmaster.internal/ubuntu questing/main riscv64 gir1.2-glib-2.0-dev riscv64 2.84.1-1 [862 kB] 1188s Get:2 http://ftpmaster.internal/ubuntu questing/main riscv64 native-architecture all 0.2.6 [2140 B] 1188s Get:3 http://ftpmaster.internal/ubuntu questing/main riscv64 libgirepository-2.0-0 riscv64 2.84.1-1 [118 kB] 1188s Get:4 http://ftpmaster.internal/ubuntu questing/main riscv64 girepository-tools riscv64 2.84.1-1 [121 kB] 1196s Fetched 1104 kB in 1s (868 kB/s) 1197s Selecting previously unselected package gir1.2-glib-2.0-dev:riscv64. 1199s (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 ... 114197 files and directories currently installed.) 1199s Preparing to unpack .../gir1.2-glib-2.0-dev_2.84.1-1_riscv64.deb ... 1199s Unpacking gir1.2-glib-2.0-dev:riscv64 (2.84.1-1) ... 1202s Selecting previously unselected package native-architecture. 1202s Preparing to unpack .../native-architecture_0.2.6_all.deb ... 1202s Unpacking native-architecture (0.2.6) ... 1203s Selecting previously unselected package libgirepository-2.0-0:riscv64. 1203s Preparing to unpack .../libgirepository-2.0-0_2.84.1-1_riscv64.deb ... 1203s Unpacking libgirepository-2.0-0:riscv64 (2.84.1-1) ... 1204s Selecting previously unselected package girepository-tools:riscv64. 1205s Preparing to unpack .../girepository-tools_2.84.1-1_riscv64.deb ... 1205s Unpacking girepository-tools:riscv64 (2.84.1-1) ... 1206s Setting up native-architecture (0.2.6) ... 1206s Setting up libgirepository-2.0-0:riscv64 (2.84.1-1) ... 1206s Setting up gir1.2-glib-2.0-dev:riscv64 (2.84.1-1) ... 1206s Setting up girepository-tools:riscv64 (2.84.1-1) ... 1206s Processing triggers for man-db (2.13.0-1) ... 1210s Processing triggers for libc-bin (2.41-6ubuntu1) ... 1259s autopkgtest [13:17:03]: test girepository-tools: [----------------------- 1262s + cd /tmp/autopkgtest.LJV7sh/autopkgtest_tmp 1262s + dpkg-architecture -qDEB_HOST_GNU_TYPE 1264s dpkg-architecture: warning: cannot determine CC system type, falling back to default (native compilation) 1264s + DEB_HOST_GNU_TYPE=riscv64-linux-gnu 1264s + dpkg-architecture -qDEB_HOST_MULTIARCH 1265s dpkg-architecture: warning: cannot determine CC system type, falling back to default (native compilation) 1266s + DEB_HOST_MULTIARCH=riscv64-linux-gnu 1266s + riscv64-linux-gnu-gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 1266s typelib: GLib-2.0 1266s + riscv64-linux-gnu-gi-compile-repository -o GLib.typelib /usr/lib/riscv64-linux-gnu/gir-1.0/GLib-2.0.gir 1269s + riscv64-linux-gnu-gi-decompile-typelib -o GLib.gir GLib.typelib 1272s autopkgtest [13:17:16]: test girepository-tools: -----------------------] 1275s girepository-tools PASS (superficial) 1275s autopkgtest [13:17:19]: test girepository-tools: - - - - - - - - - - results - - - - - - - - - - 1278s autopkgtest [13:17:22]: test libgio-2.0-dev-bin: preparing testbed 1491s autopkgtest [13:20:55]: testbed dpkg architecture: riscv64 1492s autopkgtest [13:20:56]: testbed apt version: 3.0.0 1494s autopkgtest [13:20:58]: @@@@@@@@@@@@@@@@@@@@ test bed setup 1495s autopkgtest [13:20:59]: testbed release detected to be: questing 1499s autopkgtest [13:21:03]: updating testbed package index (apt update) 1501s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [110 kB] 1501s Hit:2 http://ftpmaster.internal/ubuntu questing InRelease 1501s Hit:3 http://ftpmaster.internal/ubuntu questing-updates InRelease 1501s Hit:4 http://ftpmaster.internal/ubuntu questing-security InRelease 1502s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [44.4 kB] 1502s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [171 kB] 1503s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [2029 kB] 1503s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 Packages [197 kB] 1503s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/universe riscv64 Packages [788 kB] 1504s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/multiverse riscv64 Packages [8624 B] 1507s Fetched 3348 kB in 6s (556 kB/s) 1520s Reading package lists... 1524s autopkgtest [13:21:28]: upgrading testbed (apt dist-upgrade and autopurge) 1525s Reading package lists... 1527s Building dependency tree... 1527s Reading state information... 1529s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 1530s Starting 2 pkgProblemResolver with broken count: 0 1530s Done 1532s Entering ResolveByKeep 1533s 1534s Calculating upgrade... 1534s The following packages will be upgraded: 1534s htop libnpth0t64 libpython3.13 libpython3.13-minimal libpython3.13-stdlib 1534s nano python3.13 python3.13-gdbm python3.13-minimal usb.ids 1535s 10 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1535s Need to get 9242 kB of archives. 1535s After this operation, 7168 B of additional disk space will be used. 1535s Get:1 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 python3.13 riscv64 3.13.3-2 [739 kB] 1535s Get:2 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 libpython3.13 riscv64 3.13.3-2 [2427 kB] 1535s Get:3 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 libpython3.13-stdlib riscv64 3.13.3-2 [2063 kB] 1535s Get:4 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 python3.13-minimal riscv64 3.13.3-2 [2401 kB] 1536s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 libpython3.13-minimal riscv64 3.13.3-2 [882 kB] 1536s Get:6 http://ftpmaster.internal/ubuntu questing/main riscv64 libnpth0t64 riscv64 1.8-3 [8790 B] 1536s Get:7 http://ftpmaster.internal/ubuntu questing/main riscv64 nano riscv64 8.4-1 [299 kB] 1536s Get:8 http://ftpmaster.internal/ubuntu questing/main riscv64 usb.ids all 2025.04.01-1 [223 kB] 1536s Get:9 http://ftpmaster.internal/ubuntu questing/main riscv64 htop riscv64 3.4.1-4 [168 kB] 1536s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 python3.13-gdbm riscv64 3.13.3-2 [31.5 kB] 1540s Fetched 9242 kB in 2s (5866 kB/s) 1542s (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 ... 114197 files and directories currently installed.) 1542s Preparing to unpack .../0-python3.13_3.13.3-2_riscv64.deb ... 1543s Unpacking python3.13 (3.13.3-2) over (3.13.3-1) ... 1543s Preparing to unpack .../1-libpython3.13_3.13.3-2_riscv64.deb ... 1543s Unpacking libpython3.13:riscv64 (3.13.3-2) over (3.13.3-1) ... 1545s Preparing to unpack .../2-libpython3.13-stdlib_3.13.3-2_riscv64.deb ... 1546s Unpacking libpython3.13-stdlib:riscv64 (3.13.3-2) over (3.13.3-1) ... 1548s Preparing to unpack .../3-python3.13-minimal_3.13.3-2_riscv64.deb ... 1548s Unpacking python3.13-minimal (3.13.3-2) over (3.13.3-1) ... 1549s Preparing to unpack .../4-libpython3.13-minimal_3.13.3-2_riscv64.deb ... 1550s Unpacking libpython3.13-minimal:riscv64 (3.13.3-2) over (3.13.3-1) ... 1552s Preparing to unpack .../5-libnpth0t64_1.8-3_riscv64.deb ... 1552s Unpacking libnpth0t64:riscv64 (1.8-3) over (1.8-2) ... 1552s Setting up libnpth0t64:riscv64 (1.8-3) ... 1554s (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 ... 114197 files and directories currently installed.) 1554s Preparing to unpack .../nano_8.4-1_riscv64.deb ... 1554s Unpacking nano (8.4-1) over (8.3-1) ... 1554s Preparing to unpack .../usb.ids_2025.04.01-1_all.deb ... 1554s Unpacking usb.ids (2025.04.01-1) over (2025.01.14-1) ... 1555s Preparing to unpack .../htop_3.4.1-4_riscv64.deb ... 1555s Unpacking htop (3.4.1-4) over (3.4.0-2) ... 1556s Preparing to unpack .../python3.13-gdbm_3.13.3-2_riscv64.deb ... 1556s Unpacking python3.13-gdbm (3.13.3-2) over (3.13.3-1) ... 1556s Setting up htop (3.4.1-4) ... 1556s Setting up libpython3.13-minimal:riscv64 (3.13.3-2) ... 1556s Setting up usb.ids (2025.04.01-1) ... 1556s Setting up nano (8.4-1) ... 1556s Installing new version of config file /etc/nanorc ... 1556s Setting up python3.13-minimal (3.13.3-2) ... 1569s Setting up libpython3.13-stdlib:riscv64 (3.13.3-2) ... 1569s Setting up python3.13-gdbm (3.13.3-2) ... 1569s Setting up libpython3.13:riscv64 (3.13.3-2) ... 1569s Setting up python3.13 (3.13.3-2) ... 1582s Processing triggers for systemd (257.4-1ubuntu3) ... 1583s Processing triggers for man-db (2.13.0-1) ... 1586s Processing triggers for install-info (7.1.1-1) ... 1588s Processing triggers for libc-bin (2.41-6ubuntu1) ... 1595s Reading package lists... 1596s Building dependency tree... 1596s Reading state information... 1598s Starting pkgProblemResolver with broken count: 0 1598s Starting 2 pkgProblemResolver with broken count: 0 1598s Done 1599s Solving dependencies... 1600s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1616s Reading package lists... 1618s Building dependency tree... 1618s Reading state information... 1619s Starting pkgProblemResolver with broken count: 0 1619s Starting 2 pkgProblemResolver with broken count: 0 1619s Done 1621s The following NEW packages will be installed: 1621s libgio-2.0-dev-bin python3-packaging 1621s 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. 1621s Need to get 184 kB of archives. 1621s After this operation, 949 kB of additional disk space will be used. 1621s Get:1 http://ftpmaster.internal/ubuntu questing/main riscv64 python3-packaging all 24.2-1 [51.5 kB] 1622s Get:2 http://ftpmaster.internal/ubuntu questing/main riscv64 libgio-2.0-dev-bin riscv64 2.84.1-1 [133 kB] 1626s Fetched 184 kB in 0s (421 kB/s) 1626s Selecting previously unselected package python3-packaging. 1627s (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 ... 114197 files and directories currently installed.) 1627s Preparing to unpack .../python3-packaging_24.2-1_all.deb ... 1627s Unpacking python3-packaging (24.2-1) ... 1627s Selecting previously unselected package libgio-2.0-dev-bin. 1628s Preparing to unpack .../libgio-2.0-dev-bin_2.84.1-1_riscv64.deb ... 1628s Unpacking libgio-2.0-dev-bin (2.84.1-1) ... 1628s Setting up python3-packaging (24.2-1) ... 1631s Setting up libgio-2.0-dev-bin (2.84.1-1) ... 1635s Processing triggers for man-db (2.13.0-1) ... 1670s autopkgtest [13:23:54]: test libgio-2.0-dev-bin: [----------------------- 1671s + gdbus-codegen --help 1672s usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 1672s [--c-namespace NAMESPACE] [--c-generate-object-manager] 1672s [--c-generate-autocleanup {none,objects,all}] 1672s [--generate-docbook OUTFILES] [--generate-md OUTFILES] 1672s [--generate-rst OUTFILES] [--pragma-once] 1672s [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 1672s [--glib-min-required VERSION] 1672s [--glib-max-allowed VERSION] 1672s [--symbol-decorator SYMBOL_DECORATOR] 1672s [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 1672s [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 1672s [--generate-c-code OUTFILES | --header | --body | 1672s --interface-info-header | --interface-info-body] 1672s [--output FILE | --output-directory OUTDIR] 1672s FILE [FILE ...] 1672s 1672s D-Bus code and documentation generator 1672s 1672s positional arguments: 1672s FILE D-Bus introspection XML file 1672s 1672s options: 1672s -h, --help show this help message and exit 1672s --interface-prefix PREFIX 1672s String to strip from D-Bus interface names for code 1672s and docs 1672s --c-namespace NAMESPACE 1672s The namespace to use for generated C code 1672s --c-generate-object-manager 1672s Generate a GDBusObjectManagerClient subclass when 1672s generating C code 1672s --c-generate-autocleanup {none,objects,all} 1672s Generate autocleanup support 1672s --generate-docbook OUTFILES 1672s Generate Docbook in OUTFILES-org.Project.IFace.xml 1672s --generate-md OUTFILES 1672s Generate Markdown in OUTFILES-org.Project.IFace.md 1672s --generate-rst OUTFILES 1672s Generate reStructuredText in OUTFILES- 1672s org.Project.IFace.rst 1672s --pragma-once Use "pragma once" as the inclusion guard 1672s --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 1672s Add annotation (may be used several times) 1672s --glib-min-required VERSION 1672s Minimum version of GLib to be supported by the 1672s outputted code (default: 2.30) 1672s --glib-max-allowed VERSION 1672s Maximum version of GLib to be used by the outputted 1672s code (default: current GLib version) 1672s --symbol-decorator SYMBOL_DECORATOR 1672s Macro used to decorate a symbol in the outputted 1672s header, possibly to export symbols 1672s --symbol-decorator-header SYMBOL_DECORATOR_HEADER 1672s Additional header required for decorator specified by 1672s --symbol-decorator 1672s --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 1672s Additional define required for decorator specified by 1672s --symbol-decorator 1672s --generate-c-code OUTFILES 1672s Generate C code in OUTFILES.[ch] 1672s --header Generate C headers 1672s --body Generate C code 1672s --interface-info-header 1672s Generate GDBusInterfaceInfo C header 1672s --interface-info-body 1672s Generate GDBusInterfaceInfo C code 1672s --output FILE Write output into the specified file 1672s --output-directory OUTDIR 1672s Location to output generated files 1672s + glib-compile-resources --version 1672s 2.84.1 1672s + glib-genmarshal --version 1673s glib-genmarshal version 2.84.1 1673s glib-genmarshal comes with ABSOLUTELY NO WARRANTY. 1673s You may redistribute copies of glib-genmarshal under the terms of 1673s the GNU General Public License which can be found in the 1673s GLib source package. Sources, examples and contact 1673s information are available at http://www.gtk.org 1673s + glib-gettextize --version 1673s /usr/bin/glib-gettextize (GNU glib) 2.84.1 1673s Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc. 1673s This is free software; see the source for copying conditions. There is NO 1673s warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 1673s Written by Ulrich Drepper 1673s + glib-mkenums --version 1673s glib-mkenums version 2.84.1 1673s glib-mkenums comes with ABSOLUTELY NO WARRANTY. 1673s You may redistribute copies of glib-mkenums under the terms of 1673s the GNU General Public License which can be found in the 1673s GLib source package. Sources, examples and contact 1673s information are available at http://www.gtk.org 1673s + gobject-query tree 1674s GObject 1674s + gtester --version 1674s gtester version 2.84.1 1674s + gtester-report --version 1674s gtester-report (GLib utils) version 2.84.1. 1675s autopkgtest [13:23:59]: test libgio-2.0-dev-bin: -----------------------] 1677s autopkgtest [13:24:01]: test libgio-2.0-dev-bin: - - - - - - - - - - results - - - - - - - - - - 1677s libgio-2.0-dev-bin PASS (superficial) 1679s autopkgtest [13:24:03]: test libglib2.0-dev: preparing testbed 1858s autopkgtest [13:27:02]: testbed dpkg architecture: riscv64 1859s autopkgtest [13:27:03]: testbed apt version: 3.0.0 1861s autopkgtest [13:27:05]: @@@@@@@@@@@@@@@@@@@@ test bed setup 1862s autopkgtest [13:27:06]: testbed release detected to be: questing 1866s autopkgtest [13:27:10]: updating testbed package index (apt update) 1868s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [110 kB] 1868s Hit:2 http://ftpmaster.internal/ubuntu questing InRelease 1868s Hit:3 http://ftpmaster.internal/ubuntu questing-updates InRelease 1868s Hit:4 http://ftpmaster.internal/ubuntu questing-security InRelease 1869s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [171 kB] 1869s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [44.4 kB] 1869s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [2029 kB] 1870s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 Packages [197 kB] 1870s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/universe riscv64 Packages [788 kB] 1871s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/multiverse riscv64 Packages [8624 B] 1874s Fetched 3348 kB in 6s (559 kB/s) 1887s Reading package lists... 1891s autopkgtest [13:27:35]: upgrading testbed (apt dist-upgrade and autopurge) 1892s Reading package lists... 1893s Building dependency tree... 1894s Reading state information... 1895s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 1895s Starting 2 pkgProblemResolver with broken count: 0 1895s Done 1897s Entering ResolveByKeep 1898s 1899s Calculating upgrade... 1900s The following packages will be upgraded: 1900s htop libnpth0t64 libpython3.13 libpython3.13-minimal libpython3.13-stdlib 1900s nano python3.13 python3.13-gdbm python3.13-minimal usb.ids 1900s 10 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1900s Need to get 9242 kB of archives. 1900s After this operation, 7168 B of additional disk space will be used. 1900s Get:1 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 python3.13 riscv64 3.13.3-2 [739 kB] 1900s Get:2 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 libpython3.13 riscv64 3.13.3-2 [2427 kB] 1900s Get:3 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 libpython3.13-stdlib riscv64 3.13.3-2 [2063 kB] 1901s Get:4 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 python3.13-minimal riscv64 3.13.3-2 [2401 kB] 1901s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 libpython3.13-minimal riscv64 3.13.3-2 [882 kB] 1901s Get:6 http://ftpmaster.internal/ubuntu questing/main riscv64 libnpth0t64 riscv64 1.8-3 [8790 B] 1901s Get:7 http://ftpmaster.internal/ubuntu questing/main riscv64 nano riscv64 8.4-1 [299 kB] 1901s Get:8 http://ftpmaster.internal/ubuntu questing/main riscv64 usb.ids all 2025.04.01-1 [223 kB] 1901s Get:9 http://ftpmaster.internal/ubuntu questing/main riscv64 htop riscv64 3.4.1-4 [168 kB] 1901s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 python3.13-gdbm riscv64 3.13.3-2 [31.5 kB] 1906s Fetched 9242 kB in 2s (5938 kB/s) 1907s (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 ... 114197 files and directories currently installed.) 1907s Preparing to unpack .../0-python3.13_3.13.3-2_riscv64.deb ... 1908s Unpacking python3.13 (3.13.3-2) over (3.13.3-1) ... 1909s Preparing to unpack .../1-libpython3.13_3.13.3-2_riscv64.deb ... 1909s Unpacking libpython3.13:riscv64 (3.13.3-2) over (3.13.3-1) ... 1910s Preparing to unpack .../2-libpython3.13-stdlib_3.13.3-2_riscv64.deb ... 1911s Unpacking libpython3.13-stdlib:riscv64 (3.13.3-2) over (3.13.3-1) ... 1913s Preparing to unpack .../3-python3.13-minimal_3.13.3-2_riscv64.deb ... 1913s Unpacking python3.13-minimal (3.13.3-2) over (3.13.3-1) ... 1915s Preparing to unpack .../4-libpython3.13-minimal_3.13.3-2_riscv64.deb ... 1916s Unpacking libpython3.13-minimal:riscv64 (3.13.3-2) over (3.13.3-1) ... 1917s Preparing to unpack .../5-libnpth0t64_1.8-3_riscv64.deb ... 1917s Unpacking libnpth0t64:riscv64 (1.8-3) over (1.8-2) ... 1918s Setting up libnpth0t64:riscv64 (1.8-3) ... 1919s (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 ... 114197 files and directories currently installed.) 1919s Preparing to unpack .../nano_8.4-1_riscv64.deb ... 1919s Unpacking nano (8.4-1) over (8.3-1) ... 1920s Preparing to unpack .../usb.ids_2025.04.01-1_all.deb ... 1920s Unpacking usb.ids (2025.04.01-1) over (2025.01.14-1) ... 1921s Preparing to unpack .../htop_3.4.1-4_riscv64.deb ... 1921s Unpacking htop (3.4.1-4) over (3.4.0-2) ... 1921s Preparing to unpack .../python3.13-gdbm_3.13.3-2_riscv64.deb ... 1921s Unpacking python3.13-gdbm (3.13.3-2) over (3.13.3-1) ... 1922s Setting up htop (3.4.1-4) ... 1922s Setting up libpython3.13-minimal:riscv64 (3.13.3-2) ... 1922s Setting up usb.ids (2025.04.01-1) ... 1922s Setting up nano (8.4-1) ... 1922s Installing new version of config file /etc/nanorc ... 1922s Setting up python3.13-minimal (3.13.3-2) ... 1935s Setting up libpython3.13-stdlib:riscv64 (3.13.3-2) ... 1935s Setting up python3.13-gdbm (3.13.3-2) ... 1935s Setting up libpython3.13:riscv64 (3.13.3-2) ... 1935s Setting up python3.13 (3.13.3-2) ... 1948s Processing triggers for systemd (257.4-1ubuntu3) ... 1949s Processing triggers for man-db (2.13.0-1) ... 1952s Processing triggers for install-info (7.1.1-1) ... 1954s Processing triggers for libc-bin (2.41-6ubuntu1) ... 1961s Reading package lists... 1962s Building dependency tree... 1962s Reading state information... 1964s Starting pkgProblemResolver with broken count: 0 1964s Starting 2 pkgProblemResolver with broken count: 0 1964s Done 1966s Solving dependencies... 1966s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1982s Reading package lists... 1984s Building dependency tree... 1984s Reading state information... 1985s Starting pkgProblemResolver with broken count: 0 1985s Starting 2 pkgProblemResolver with broken count: 0 1985s Done 1987s The following NEW packages will be installed: 1987s build-essential cpp cpp-14 cpp-14-riscv64-linux-gnu cpp-riscv64-linux-gnu 1987s g++ g++-14 g++-14-riscv64-linux-gnu g++-riscv64-linux-gnu gcc gcc-14 1987s gcc-14-riscv64-linux-gnu gcc-riscv64-linux-gnu gir1.2-glib-2.0-dev 1987s girepository-tools libasan8 libblkid-dev libcc1-0 libffi-dev libgcc-14-dev 1987s libgio-2.0-dev libgio-2.0-dev-bin libgirepository-2.0-0 libglib2.0-bin 1987s libglib2.0-dev libglib2.0-dev-bin libgomp1 libisl23 libitm1 liblsan0 1987s libmount-dev libmpc3 libpcre2-16-0 libpcre2-32-0 libpcre2-dev 1987s libpcre2-posix3 libpkgconf3 libselinux1-dev libsepol-dev libstdc++-14-dev 1987s libsysprof-capture-4-dev libtsan2 libubsan1 native-architecture pkgconf 1987s pkgconf-bin python3-packaging uuid-dev zlib1g-dev 1988s 0 upgraded, 49 newly installed, 0 to remove and 0 not upgraded. 1988s Need to get 97.1 MB of archives. 1988s After this operation, 472 MB of additional disk space will be used. 1988s Get:1 http://ftpmaster.internal/ubuntu questing/main riscv64 libisl23 riscv64 0.27-1 [722 kB] 1988s Get:2 http://ftpmaster.internal/ubuntu questing/main riscv64 libmpc3 riscv64 1.3.1-1build2 [61.5 kB] 1988s Get:3 http://ftpmaster.internal/ubuntu questing/main riscv64 cpp-14-riscv64-linux-gnu riscv64 14.2.0-19ubuntu2 [15.2 MB] 1990s Get:4 http://ftpmaster.internal/ubuntu questing/main riscv64 cpp-14 riscv64 14.2.0-19ubuntu2 [1028 B] 1990s Get:5 http://ftpmaster.internal/ubuntu questing/main riscv64 cpp-riscv64-linux-gnu riscv64 4:14.2.0-1ubuntu1 [5554 B] 1990s Get:6 http://ftpmaster.internal/ubuntu questing/main riscv64 cpp riscv64 4:14.2.0-1ubuntu1 [22.4 kB] 1990s Get:7 http://ftpmaster.internal/ubuntu questing/main riscv64 libcc1-0 riscv64 15-20250404-0ubuntu1 [46.1 kB] 1990s Get:8 http://ftpmaster.internal/ubuntu questing/main riscv64 libgomp1 riscv64 15-20250404-0ubuntu1 [149 kB] 1990s Get:9 http://ftpmaster.internal/ubuntu questing/main riscv64 libitm1 riscv64 15-20250404-0ubuntu1 [29.7 kB] 1990s Get:10 http://ftpmaster.internal/ubuntu questing/main riscv64 libasan8 riscv64 15-20250404-0ubuntu1 [3300 kB] 1990s Get:11 http://ftpmaster.internal/ubuntu questing/main riscv64 liblsan0 riscv64 15-20250404-0ubuntu1 [1470 kB] 1990s Get:12 http://ftpmaster.internal/ubuntu questing/main riscv64 libtsan2 riscv64 15-20250404-0ubuntu1 [2983 kB] 1991s Get:13 http://ftpmaster.internal/ubuntu questing/main riscv64 libubsan1 riscv64 15-20250404-0ubuntu1 [1310 kB] 1991s Get:14 http://ftpmaster.internal/ubuntu questing/main riscv64 libgcc-14-dev riscv64 14.2.0-19ubuntu2 [5994 kB] 1992s Get:15 http://ftpmaster.internal/ubuntu questing/main riscv64 gcc-14-riscv64-linux-gnu riscv64 14.2.0-19ubuntu2 [29.9 MB] 1995s Get:16 http://ftpmaster.internal/ubuntu questing/main riscv64 gcc-14 riscv64 14.2.0-19ubuntu2 [529 kB] 1995s Get:17 http://ftpmaster.internal/ubuntu questing/main riscv64 gcc-riscv64-linux-gnu riscv64 4:14.2.0-1ubuntu1 [1198 B] 1995s Get:18 http://ftpmaster.internal/ubuntu questing/main riscv64 gcc riscv64 4:14.2.0-1ubuntu1 [4998 B] 1995s Get:19 http://ftpmaster.internal/ubuntu questing/main riscv64 libstdc++-14-dev riscv64 14.2.0-19ubuntu2 [6141 kB] 1996s Get:20 http://ftpmaster.internal/ubuntu questing/main riscv64 g++-14-riscv64-linux-gnu riscv64 14.2.0-19ubuntu2 [16.8 MB] 1998s Get:21 http://ftpmaster.internal/ubuntu questing/main riscv64 g++-14 riscv64 14.2.0-19ubuntu2 [23.0 kB] 1998s Get:22 http://ftpmaster.internal/ubuntu questing/main riscv64 g++-riscv64-linux-gnu riscv64 4:14.2.0-1ubuntu1 [960 B] 1998s Get:23 http://ftpmaster.internal/ubuntu questing/main riscv64 g++ riscv64 4:14.2.0-1ubuntu1 [1080 B] 1998s Get:24 http://ftpmaster.internal/ubuntu questing/main riscv64 build-essential riscv64 12.12ubuntu1 [5090 B] 1998s Get:25 http://ftpmaster.internal/ubuntu questing/main riscv64 gir1.2-glib-2.0-dev riscv64 2.84.1-1 [862 kB] 1998s Get:26 http://ftpmaster.internal/ubuntu questing/main riscv64 native-architecture all 0.2.6 [2140 B] 1998s Get:27 http://ftpmaster.internal/ubuntu questing/main riscv64 libgirepository-2.0-0 riscv64 2.84.1-1 [118 kB] 1998s Get:28 http://ftpmaster.internal/ubuntu questing/main riscv64 girepository-tools riscv64 2.84.1-1 [121 kB] 1998s Get:29 http://ftpmaster.internal/ubuntu questing/main riscv64 libffi-dev riscv64 3.4.7-1 [88.8 kB] 1998s Get:30 http://ftpmaster.internal/ubuntu questing/main riscv64 uuid-dev riscv64 2.40.2-14ubuntu1 [73.6 kB] 1998s Get:31 http://ftpmaster.internal/ubuntu questing/main riscv64 libblkid-dev riscv64 2.40.2-14ubuntu1 [586 kB] 1998s Get:32 http://ftpmaster.internal/ubuntu questing/main riscv64 libsepol-dev riscv64 3.7-1 [1216 kB] 1998s Get:33 http://ftpmaster.internal/ubuntu questing/main riscv64 libpcre2-16-0 riscv64 10.45-1 [246 kB] 1998s Get:34 http://ftpmaster.internal/ubuntu questing/main riscv64 libpcre2-32-0 riscv64 10.45-1 [232 kB] 1998s Get:35 http://ftpmaster.internal/ubuntu questing/main riscv64 libpcre2-posix3 riscv64 10.45-1 [6820 B] 1998s Get:36 http://ftpmaster.internal/ubuntu questing/main riscv64 libpcre2-dev riscv64 10.45-1 [2204 kB] 1998s Get:37 http://ftpmaster.internal/ubuntu questing/main riscv64 libselinux1-dev riscv64 3.7-3ubuntu3 [321 kB] 1998s Get:38 http://ftpmaster.internal/ubuntu questing/main riscv64 libmount-dev riscv64 2.40.2-14ubuntu1 [34.6 kB] 1998s Get:39 http://ftpmaster.internal/ubuntu questing/main riscv64 libsysprof-capture-4-dev riscv64 48.0-2 [132 kB] 1998s Get:40 http://ftpmaster.internal/ubuntu questing/main riscv64 libpkgconf3 riscv64 1.8.1-4 [31.6 kB] 1998s Get:41 http://ftpmaster.internal/ubuntu questing/main riscv64 pkgconf-bin riscv64 1.8.1-4 [21.8 kB] 1998s Get:42 http://ftpmaster.internal/ubuntu questing/main riscv64 pkgconf riscv64 1.8.1-4 [16.7 kB] 1998s Get:43 http://ftpmaster.internal/ubuntu questing/main riscv64 zlib1g-dev riscv64 1:1.3.dfsg+really1.3.1-1ubuntu1 [968 kB] 1999s Get:44 http://ftpmaster.internal/ubuntu questing/main riscv64 libgio-2.0-dev riscv64 2.84.1-1 [4889 kB] 1999s Get:45 http://ftpmaster.internal/ubuntu questing/main riscv64 python3-packaging all 24.2-1 [51.5 kB] 1999s Get:46 http://ftpmaster.internal/ubuntu questing/main riscv64 libgio-2.0-dev-bin riscv64 2.84.1-1 [133 kB] 1999s Get:47 http://ftpmaster.internal/ubuntu questing/main riscv64 libglib2.0-bin riscv64 2.84.1-1 [97.7 kB] 1999s Get:48 http://ftpmaster.internal/ubuntu questing/main riscv64 libglib2.0-dev-bin riscv64 2.84.1-1 [18.1 kB] 1999s Get:49 http://ftpmaster.internal/ubuntu questing/main riscv64 libglib2.0-dev riscv64 2.84.1-1 [18.9 kB] 2004s Fetched 97.1 MB in 12s (8324 kB/s) 2005s Selecting previously unselected package libisl23:riscv64. 2005s (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 ... 114197 files and directories currently installed.) 2005s Preparing to unpack .../00-libisl23_0.27-1_riscv64.deb ... 2005s Unpacking libisl23:riscv64 (0.27-1) ... 2006s Selecting previously unselected package libmpc3:riscv64. 2006s Preparing to unpack .../01-libmpc3_1.3.1-1build2_riscv64.deb ... 2006s Unpacking libmpc3:riscv64 (1.3.1-1build2) ... 2007s Selecting previously unselected package cpp-14-riscv64-linux-gnu. 2007s Preparing to unpack .../02-cpp-14-riscv64-linux-gnu_14.2.0-19ubuntu2_riscv64.deb ... 2007s Unpacking cpp-14-riscv64-linux-gnu (14.2.0-19ubuntu2) ... 2013s Selecting previously unselected package cpp-14. 2014s Preparing to unpack .../03-cpp-14_14.2.0-19ubuntu2_riscv64.deb ... 2014s Unpacking cpp-14 (14.2.0-19ubuntu2) ... 2014s Selecting previously unselected package cpp-riscv64-linux-gnu. 2014s Preparing to unpack .../04-cpp-riscv64-linux-gnu_4%3a14.2.0-1ubuntu1_riscv64.deb ... 2014s Unpacking cpp-riscv64-linux-gnu (4:14.2.0-1ubuntu1) ... 2014s Selecting previously unselected package cpp. 2014s Preparing to unpack .../05-cpp_4%3a14.2.0-1ubuntu1_riscv64.deb ... 2015s Unpacking cpp (4:14.2.0-1ubuntu1) ... 2015s Selecting previously unselected package libcc1-0:riscv64. 2015s Preparing to unpack .../06-libcc1-0_15-20250404-0ubuntu1_riscv64.deb ... 2015s Unpacking libcc1-0:riscv64 (15-20250404-0ubuntu1) ... 2015s Selecting previously unselected package libgomp1:riscv64. 2016s Preparing to unpack .../07-libgomp1_15-20250404-0ubuntu1_riscv64.deb ... 2016s Unpacking libgomp1:riscv64 (15-20250404-0ubuntu1) ... 2016s Selecting previously unselected package libitm1:riscv64. 2016s Preparing to unpack .../08-libitm1_15-20250404-0ubuntu1_riscv64.deb ... 2016s Unpacking libitm1:riscv64 (15-20250404-0ubuntu1) ... 2016s Selecting previously unselected package libasan8:riscv64. 2017s Preparing to unpack .../09-libasan8_15-20250404-0ubuntu1_riscv64.deb ... 2017s Unpacking libasan8:riscv64 (15-20250404-0ubuntu1) ... 2018s Selecting previously unselected package liblsan0:riscv64. 2019s Preparing to unpack .../10-liblsan0_15-20250404-0ubuntu1_riscv64.deb ... 2019s Unpacking liblsan0:riscv64 (15-20250404-0ubuntu1) ... 2020s Selecting previously unselected package libtsan2:riscv64. 2020s Preparing to unpack .../11-libtsan2_15-20250404-0ubuntu1_riscv64.deb ... 2020s Unpacking libtsan2:riscv64 (15-20250404-0ubuntu1) ... 2021s Selecting previously unselected package libubsan1:riscv64. 2022s Preparing to unpack .../12-libubsan1_15-20250404-0ubuntu1_riscv64.deb ... 2022s Unpacking libubsan1:riscv64 (15-20250404-0ubuntu1) ... 2022s Selecting previously unselected package libgcc-14-dev:riscv64. 2022s Preparing to unpack .../13-libgcc-14-dev_14.2.0-19ubuntu2_riscv64.deb ... 2023s Unpacking libgcc-14-dev:riscv64 (14.2.0-19ubuntu2) ... 2028s Selecting previously unselected package gcc-14-riscv64-linux-gnu. 2029s Preparing to unpack .../14-gcc-14-riscv64-linux-gnu_14.2.0-19ubuntu2_riscv64.deb ... 2029s Unpacking gcc-14-riscv64-linux-gnu (14.2.0-19ubuntu2) ... 2042s Selecting previously unselected package gcc-14. 2042s Preparing to unpack .../15-gcc-14_14.2.0-19ubuntu2_riscv64.deb ... 2042s Unpacking gcc-14 (14.2.0-19ubuntu2) ... 2042s Selecting previously unselected package gcc-riscv64-linux-gnu. 2042s Preparing to unpack .../16-gcc-riscv64-linux-gnu_4%3a14.2.0-1ubuntu1_riscv64.deb ... 2043s Unpacking gcc-riscv64-linux-gnu (4:14.2.0-1ubuntu1) ... 2043s Selecting previously unselected package gcc. 2043s Preparing to unpack .../17-gcc_4%3a14.2.0-1ubuntu1_riscv64.deb ... 2043s Unpacking gcc (4:14.2.0-1ubuntu1) ... 2043s Selecting previously unselected package libstdc++-14-dev:riscv64. 2043s Preparing to unpack .../18-libstdc++-14-dev_14.2.0-19ubuntu2_riscv64.deb ... 2043s Unpacking libstdc++-14-dev:riscv64 (14.2.0-19ubuntu2) ... 2050s Selecting previously unselected package g++-14-riscv64-linux-gnu. 2050s Preparing to unpack .../19-g++-14-riscv64-linux-gnu_14.2.0-19ubuntu2_riscv64.deb ... 2050s Unpacking g++-14-riscv64-linux-gnu (14.2.0-19ubuntu2) ... 2057s Selecting previously unselected package g++-14. 2057s Preparing to unpack .../20-g++-14_14.2.0-19ubuntu2_riscv64.deb ... 2057s Unpacking g++-14 (14.2.0-19ubuntu2) ... 2058s Selecting previously unselected package g++-riscv64-linux-gnu. 2058s Preparing to unpack .../21-g++-riscv64-linux-gnu_4%3a14.2.0-1ubuntu1_riscv64.deb ... 2058s Unpacking g++-riscv64-linux-gnu (4:14.2.0-1ubuntu1) ... 2058s Selecting previously unselected package g++. 2058s Preparing to unpack .../22-g++_4%3a14.2.0-1ubuntu1_riscv64.deb ... 2058s Unpacking g++ (4:14.2.0-1ubuntu1) ... 2059s Selecting previously unselected package build-essential. 2059s Preparing to unpack .../23-build-essential_12.12ubuntu1_riscv64.deb ... 2059s Unpacking build-essential (12.12ubuntu1) ... 2059s Selecting previously unselected package gir1.2-glib-2.0-dev:riscv64. 2059s Preparing to unpack .../24-gir1.2-glib-2.0-dev_2.84.1-1_riscv64.deb ... 2059s Unpacking gir1.2-glib-2.0-dev:riscv64 (2.84.1-1) ... 2061s Selecting previously unselected package native-architecture. 2061s Preparing to unpack .../25-native-architecture_0.2.6_all.deb ... 2061s Unpacking native-architecture (0.2.6) ... 2062s Selecting previously unselected package libgirepository-2.0-0:riscv64. 2062s Preparing to unpack .../26-libgirepository-2.0-0_2.84.1-1_riscv64.deb ... 2062s Unpacking libgirepository-2.0-0:riscv64 (2.84.1-1) ... 2062s Selecting previously unselected package girepository-tools:riscv64. 2062s Preparing to unpack .../27-girepository-tools_2.84.1-1_riscv64.deb ... 2062s Unpacking girepository-tools:riscv64 (2.84.1-1) ... 2063s Selecting previously unselected package libffi-dev:riscv64. 2063s Preparing to unpack .../28-libffi-dev_3.4.7-1_riscv64.deb ... 2063s Unpacking libffi-dev:riscv64 (3.4.7-1) ... 2063s Selecting previously unselected package uuid-dev:riscv64. 2063s Preparing to unpack .../29-uuid-dev_2.40.2-14ubuntu1_riscv64.deb ... 2063s Unpacking uuid-dev:riscv64 (2.40.2-14ubuntu1) ... 2064s Selecting previously unselected package libblkid-dev:riscv64. 2064s Preparing to unpack .../30-libblkid-dev_2.40.2-14ubuntu1_riscv64.deb ... 2064s Unpacking libblkid-dev:riscv64 (2.40.2-14ubuntu1) ... 2065s Selecting previously unselected package libsepol-dev:riscv64. 2065s Preparing to unpack .../31-libsepol-dev_3.7-1_riscv64.deb ... 2065s Unpacking libsepol-dev:riscv64 (3.7-1) ... 2066s Selecting previously unselected package libpcre2-16-0:riscv64. 2066s Preparing to unpack .../32-libpcre2-16-0_10.45-1_riscv64.deb ... 2066s Unpacking libpcre2-16-0:riscv64 (10.45-1) ... 2067s Selecting previously unselected package libpcre2-32-0:riscv64. 2067s Preparing to unpack .../33-libpcre2-32-0_10.45-1_riscv64.deb ... 2067s Unpacking libpcre2-32-0:riscv64 (10.45-1) ... 2067s Selecting previously unselected package libpcre2-posix3:riscv64. 2068s Preparing to unpack .../34-libpcre2-posix3_10.45-1_riscv64.deb ... 2068s Unpacking libpcre2-posix3:riscv64 (10.45-1) ... 2068s Selecting previously unselected package libpcre2-dev:riscv64. 2068s Preparing to unpack .../35-libpcre2-dev_10.45-1_riscv64.deb ... 2068s Unpacking libpcre2-dev:riscv64 (10.45-1) ... 2070s Selecting previously unselected package libselinux1-dev:riscv64. 2071s Preparing to unpack .../36-libselinux1-dev_3.7-3ubuntu3_riscv64.deb ... 2071s Unpacking libselinux1-dev:riscv64 (3.7-3ubuntu3) ... 2071s Selecting previously unselected package libmount-dev:riscv64. 2071s Preparing to unpack .../37-libmount-dev_2.40.2-14ubuntu1_riscv64.deb ... 2071s Unpacking libmount-dev:riscv64 (2.40.2-14ubuntu1) ... 2072s Selecting previously unselected package libsysprof-capture-4-dev:riscv64. 2072s Preparing to unpack .../38-libsysprof-capture-4-dev_48.0-2_riscv64.deb ... 2072s Unpacking libsysprof-capture-4-dev:riscv64 (48.0-2) ... 2072s Selecting previously unselected package libpkgconf3:riscv64. 2072s Preparing to unpack .../39-libpkgconf3_1.8.1-4_riscv64.deb ... 2072s Unpacking libpkgconf3:riscv64 (1.8.1-4) ... 2073s Selecting previously unselected package pkgconf-bin. 2073s Preparing to unpack .../40-pkgconf-bin_1.8.1-4_riscv64.deb ... 2073s Unpacking pkgconf-bin (1.8.1-4) ... 2073s Selecting previously unselected package pkgconf:riscv64. 2073s Preparing to unpack .../41-pkgconf_1.8.1-4_riscv64.deb ... 2073s Unpacking pkgconf:riscv64 (1.8.1-4) ... 2074s Selecting previously unselected package zlib1g-dev:riscv64. 2074s Preparing to unpack .../42-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1ubuntu1_riscv64.deb ... 2074s Unpacking zlib1g-dev:riscv64 (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 2075s Selecting previously unselected package libgio-2.0-dev:riscv64. 2075s Preparing to unpack .../43-libgio-2.0-dev_2.84.1-1_riscv64.deb ... 2075s Unpacking libgio-2.0-dev:riscv64 (2.84.1-1) ... 2079s Selecting previously unselected package python3-packaging. 2080s Preparing to unpack .../44-python3-packaging_24.2-1_all.deb ... 2080s Unpacking python3-packaging (24.2-1) ... 2080s Selecting previously unselected package libgio-2.0-dev-bin. 2080s Preparing to unpack .../45-libgio-2.0-dev-bin_2.84.1-1_riscv64.deb ... 2080s Unpacking libgio-2.0-dev-bin (2.84.1-1) ... 2081s Selecting previously unselected package libglib2.0-bin. 2081s Preparing to unpack .../46-libglib2.0-bin_2.84.1-1_riscv64.deb ... 2081s Unpacking libglib2.0-bin (2.84.1-1) ... 2081s Selecting previously unselected package libglib2.0-dev-bin. 2081s Preparing to unpack .../47-libglib2.0-dev-bin_2.84.1-1_riscv64.deb ... 2081s Unpacking libglib2.0-dev-bin (2.84.1-1) ... 2082s Selecting previously unselected package libglib2.0-dev:riscv64. 2082s Preparing to unpack .../48-libglib2.0-dev_2.84.1-1_riscv64.deb ... 2082s Unpacking libglib2.0-dev:riscv64 (2.84.1-1) ... 2082s Setting up native-architecture (0.2.6) ... 2082s Setting up libgirepository-2.0-0:riscv64 (2.84.1-1) ... 2082s Setting up libglib2.0-bin (2.84.1-1) ... 2082s Setting up libgomp1:riscv64 (15-20250404-0ubuntu1) ... 2082s Setting up libffi-dev:riscv64 (3.4.7-1) ... 2082s Setting up libpcre2-16-0:riscv64 (10.45-1) ... 2082s Setting up libsysprof-capture-4-dev:riscv64 (48.0-2) ... 2082s Setting up libpcre2-32-0:riscv64 (10.45-1) ... 2082s Setting up python3-packaging (24.2-1) ... 2085s Setting up libpkgconf3:riscv64 (1.8.1-4) ... 2085s Setting up uuid-dev:riscv64 (2.40.2-14ubuntu1) ... 2085s Setting up libmpc3:riscv64 (1.3.1-1build2) ... 2085s Setting up libsepol-dev:riscv64 (3.7-1) ... 2085s Setting up pkgconf-bin (1.8.1-4) ... 2085s Setting up libubsan1:riscv64 (15-20250404-0ubuntu1) ... 2085s Setting up zlib1g-dev:riscv64 (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 2085s Setting up libpcre2-posix3:riscv64 (10.45-1) ... 2085s Setting up gir1.2-glib-2.0-dev:riscv64 (2.84.1-1) ... 2085s Setting up libasan8:riscv64 (15-20250404-0ubuntu1) ... 2085s Setting up libtsan2:riscv64 (15-20250404-0ubuntu1) ... 2085s Setting up libisl23:riscv64 (0.27-1) ... 2085s Setting up libcc1-0:riscv64 (15-20250404-0ubuntu1) ... 2085s Setting up liblsan0:riscv64 (15-20250404-0ubuntu1) ... 2085s Setting up libitm1:riscv64 (15-20250404-0ubuntu1) ... 2085s Setting up libblkid-dev:riscv64 (2.40.2-14ubuntu1) ... 2085s Setting up libgio-2.0-dev-bin (2.84.1-1) ... 2090s Setting up girepository-tools:riscv64 (2.84.1-1) ... 2090s Setting up libpcre2-dev:riscv64 (10.45-1) ... 2090s Setting up libselinux1-dev:riscv64 (3.7-3ubuntu3) ... 2090s Setting up cpp-14-riscv64-linux-gnu (14.2.0-19ubuntu2) ... 2090s Setting up pkgconf:riscv64 (1.8.1-4) ... 2090s Setting up cpp-14 (14.2.0-19ubuntu2) ... 2090s Setting up libgcc-14-dev:riscv64 (14.2.0-19ubuntu2) ... 2090s Setting up cpp-riscv64-linux-gnu (4:14.2.0-1ubuntu1) ... 2090s Setting up libstdc++-14-dev:riscv64 (14.2.0-19ubuntu2) ... 2090s Setting up libmount-dev:riscv64 (2.40.2-14ubuntu1) ... 2090s Setting up libglib2.0-dev-bin (2.84.1-1) ... 2090s Setting up libgio-2.0-dev:riscv64 (2.84.1-1) ... 2090s Setting up gcc-14-riscv64-linux-gnu (14.2.0-19ubuntu2) ... 2090s Setting up cpp (4:14.2.0-1ubuntu1) ... 2090s Setting up g++-14-riscv64-linux-gnu (14.2.0-19ubuntu2) ... 2090s Setting up gcc-14 (14.2.0-19ubuntu2) ... 2090s Setting up gcc-riscv64-linux-gnu (4:14.2.0-1ubuntu1) ... 2090s Setting up g++-riscv64-linux-gnu (4:14.2.0-1ubuntu1) ... 2090s Setting up g++-14 (14.2.0-19ubuntu2) ... 2090s Setting up gcc (4:14.2.0-1ubuntu1) ... 2090s Setting up g++ (4:14.2.0-1ubuntu1) ... 2090s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 2090s Setting up build-essential (12.12ubuntu1) ... 2090s Processing triggers for install-info (7.1.1-1) ... 2093s Processing triggers for libc-bin (2.41-6ubuntu1) ... 2093s Processing triggers for man-db (2.13.0-1) ... 2097s Processing triggers for libglib2.0-0t64:riscv64 (2.84.1-1) ... 2097s No schema files found: doing nothing. 2098s Setting up libglib2.0-dev:riscv64 (2.84.1-1) ... 2125s autopkgtest [13:31:29]: test libglib2.0-dev: [----------------------- 2127s + debian/tests/build 2127s + mode=dynamic 2127s + getopt -o --long static -n debian/tests/build -- 2127s + getopt_temp= -- 2127s + eval set -- -- 2127s + set -- -- 2127s + true 2127s + shift 2127s + break 2127s + mktemp -d 2127s + WORKDIR=/tmp/tmp.6V11PFRjt0 2127s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 2127s + cd /tmp/tmp.6V11PFRjt0 2127s + [ -n ] 2127s + CROSS_COMPILE= 2127s + cat 2127s + cat 2127s + cat 2127s + cat 2127s + cat 2127s + cat 2127s + cflags= 2127s + pcflags= 2127s + packages=glib-2.0 2127s + pkg-config --cflags --libs glib-2.0 2127s + gcc -o glib-dynamic glib.c -I/usr/include/glib-2.0 -I/usr/lib/riscv64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 2129s + echo build (glib, dynamic): OK 2129s + [ -x glib-dynamic ] 2129s + foo=bar ./glib-dynamic 2129s build (glib, dynamic): OK 2129s run (glib, dynamic): OK 2129s + echo run (glib, dynamic): OK 2129s + cflags= 2129s + pcflags= 2129s + packages=gobject-2.0 2129s + pkg-config --cflags --libs gobject-2.0 2129s + gcc -o gobject-dynamic gobject.c -I/usr/include/glib-2.0 -I/usr/lib/riscv64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 2131s + echo build (gobject, dynamic): OK 2131s + [ -x gobject-dynamic ] 2131s + foo=bar ./gobject-dynamic 2131s build (gobject, dynamic): OK 2131s + echo run (gobject, dynamic): OK 2131s + cflags= 2131s + pcflags= 2131s + packages=gio-2.0 2131s run (gobject, dynamic): OK 2131s + pkg-config --cflags --libs gio-2.0 2132s + gcc -o gio-dynamic gio.c -I/usr/include/glib-2.0 -I/usr/lib/riscv64-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 2135s + echo build (gio, dynamic): OK 2135s + [ -x gio-dynamic ] 2135s + foo=bar ./gio-dynamic 2135s build (gio, dynamic): OK 2135s + echo run (gio, dynamic): OK 2135s + cflags= 2135s + pcflags= 2135s + packages=gio-unix-2.0 2135s run (gio, dynamic): OK 2135s + pkg-config --cflags --libs gio-unix-2.0 2135s + gcc -o gio-unix-dynamic gio-unix.c -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib/riscv64-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 2138s build (gio-unix, dynamic): OK 2138s + echo build (gio-unix, dynamic): OK 2138s + [ -x gio-unix-dynamic ] 2138s + foo=bar ./gio-unix-dynamic 2138s + echo run (gio-unix, dynamic): OK 2138s + cflags= 2138s + pcflags= 2138s + packages=gmodule-2.0 2138s + pkg-config --cflags --libs gmodule-2.0 2138s run (gio-unix, dynamic): OK 2138s + gcc -o gmodule-dynamic gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/riscv64-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 2140s + echo build (gmodule, dynamic): OK 2140s + [ -x gmodule-dynamic ] 2140s + foo=bar ./gmodule-dynamic 2140s build (gmodule, dynamic): OK 2140s run (gmodule, dynamic): OK 2140s + echo run (gmodule, dynamic): OK 2140s + cflags= 2140s + pcflags= 2140s + packages=gthread-2.0 2140s + pkg-config --cflags --libs gthread-2.0 2140s + gcc -o gthread-dynamic gthread.c -I/usr/include/glib-2.0 -I/usr/lib/riscv64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 2142s build (gthread, dynamic): OK 2142s + echo build (gthread, dynamic): OK 2142s + [ -x gthread-dynamic ] 2142s + foo=bar ./gthread-dynamic 2142s run (gthread, dynamic): OK 2142s + echo run (gthread, dynamic): OK 2142s + rm -rf /tmp/tmp.6V11PFRjt0 2142s + debian/tests/build-static 2142s + mode=dynamic 2142s + getopt -o --long static -n debian/tests/build -- --static 2142s + getopt_temp= --static -- 2142s + eval set -- --static -- 2142s + set -- --static -- 2142s + true 2142s + mode=static 2142s + shift 2142s + continue 2142s + true 2142s + shift 2142s + break 2142s + mktemp -d 2142s + WORKDIR=/tmp/tmp.5iBNuM8XEK 2142s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 2142s + cd /tmp/tmp.5iBNuM8XEK 2142s + [ -n ] 2142s + CROSS_COMPILE= 2142s + cat 2142s + cat 2142s + cat 2142s + cat 2142s + cat 2142s + cat 2142s + cflags= 2142s + pcflags= 2142s + packages=glib-2.0 2142s + cflags=-static 2142s + pcflags=--static 2142s + pkg-config --static --cflags --libs glib-2.0 2142s + gcc -static -o glib-static glib.c -I/usr/include/glib-2.0 -I/usr/lib/riscv64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 2145s /usr/bin/ld: /lib/riscv64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 2145s (.text+0xde): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 2145s /usr/bin/ld: (.text+0x25a): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 2145s /usr/bin/ld: (.text+0x10e): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 2151s + echo build (glib, static): OK 2151s + [ -x glib-static ] 2151s build (glib, static): OK 2151s + foo=bar ./glib-static 2151s run (glib, static): OK 2151s + echo run (glib, static): OK 2151s + cflags= 2151s + pcflags= 2151s + packages=gobject-2.0 2151s + cflags=-static 2151s + pcflags=--static 2151s + pkg-config --static --cflags --libs gobject-2.0 2151s + gcc -static -o gobject-static gobject.c -I/usr/include/glib-2.0 -I/usr/lib/riscv64-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 2153s /usr/bin/ld: /lib/riscv64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 2153s (.text+0xde): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 2153s /usr/bin/ld: (.text+0x25a): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 2154s /usr/bin/ld: (.text+0x10e): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 2159s build (gobject, static): OK 2159s + echo build (gobject, static): OK 2159s + [ -x gobject-static ] 2159s + foo=bar ./gobject-static 2159s run (gobject, static): OK 2159s + echo run (gobject, static): OK 2159s + cflags= 2159s + pcflags= 2159s + packages=gio-2.0 2159s + cflags=-static 2159s + pcflags=--static 2159s + continue 2159s + cflags= 2159s + pcflags= 2159s + packages=gio-unix-2.0 2159s + cflags=-static 2159s + pcflags=--static 2159s + continue 2159s + cflags= 2159s + pcflags= 2159s + packages=gmodule-2.0 2159s + cflags=-static 2159s + pcflags=--static 2159s + pkg-config --static --cflags --libs gmodule-2.0 2159s + gcc -static -o gmodule-static gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/riscv64-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 2161s /usr/bin/ld: /lib/riscv64-linux-gnu/libgmodule-2.0.a(gmodule.c.o): in function `g_module_open_full': 2161s (.text+0x596): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 2162s /usr/bin/ld: /lib/riscv64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 2162s (.text+0xde): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 2162s /usr/bin/ld: (.text+0x25a): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 2162s /usr/bin/ld: (.text+0x10e): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 2168s build (gmodule, static): OK 2168s + echo build (gmodule, static): OK 2168s + [ -x gmodule-static ] 2168s + foo=bar ./gmodule-static 2168s + echo run (gmodule, static): OK 2168s run (gmodule, static): OK 2168s + cflags= 2168s + pcflags= 2168s + packages=gthread-2.0 2168s + cflags=-static 2168s + pcflags=--static 2168s + pkg-config --static --cflags --libs gthread-2.0 2168s + gcc -static -o gthread-static gthread.c -I/usr/include/glib-2.0 -I/usr/lib/riscv64-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 2170s /usr/bin/ld: /lib/riscv64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 2170s (.text+0xde): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 2170s /usr/bin/ld: (.text+0x25a): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 2170s /usr/bin/ld: (.text+0x10e): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 2176s build (gthread, static): OK 2176s + echo build (gthread, static): OK 2176s + [ -x gthread-static ] 2176s + foo=bar ./gthread-static 2176s run (gthread, static): OK 2176s + echo run (gthread, static): OK 2176s + rm -rf /tmp/tmp.5iBNuM8XEK 2176s + debian/tests/girepository-tools 2176s + cd /tmp/autopkgtest.LJV7sh/autopkgtest_tmp 2176s + dpkg-architecture -qDEB_HOST_GNU_TYPE 2177s + DEB_HOST_GNU_TYPE=riscv64-linux-gnu 2177s + dpkg-architecture -qDEB_HOST_MULTIARCH 2178s + DEB_HOST_MULTIARCH=riscv64-linux-gnu 2178s + riscv64-linux-gnu-gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 2178s typelib: GLib-2.0 2178s + riscv64-linux-gnu-gi-compile-repository -o GLib.typelib /usr/lib/riscv64-linux-gnu/gir-1.0/GLib-2.0.gir 2180s + riscv64-linux-gnu-gi-decompile-typelib -o GLib.gir GLib.typelib 2180s + debian/tests/libgio-2.0-dev-bin 2180s + gdbus-codegen --help 2182s usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 2182s [--c-namespace NAMESPACE] [--c-generate-object-manager] 2182s [--c-generate-autocleanup {none,objects,all}] 2182s [--generate-docbook OUTFILES] [--generate-md OUTFILES] 2182s [--generate-rst OUTFILES] [--pragma-once] 2182s [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 2182s [--glib-min-required VERSION] 2182s [--glib-max-allowed VERSION] 2182s [--symbol-decorator SYMBOL_DECORATOR] 2182s [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 2182s [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 2182s [--generate-c-code OUTFILES | --header | --body | 2182s --interface-info-header | --interface-info-body] 2182s [--output FILE | --output-directory OUTDIR] 2182s FILE [FILE ...] 2182s 2182s D-Bus code and documentation generator 2182s 2182s positional arguments: 2182s FILE D-Bus introspection XML file 2182s 2182s options: 2182s -h, --help show this help message and exit 2182s --interface-prefix PREFIX 2182s String to strip from D-Bus interface names for code 2182s and docs 2182s --c-namespace NAMESPACE 2182s The namespace to use for generated C code 2182s --c-generate-object-manager 2182s Generate a GDBusObjectManagerClient subclass when 2182s generating C code 2182s --c-generate-autocleanup {none,objects,all} 2182s Generate autocleanup support 2182s --generate-docbook OUTFILES 2182s Generate Docbook in OUTFILES-org.Project.IFace.xml 2182s --generate-md OUTFILES 2182s Generate Markdown in OUTFILES-org.Project.IFace.md 2182s --generate-rst OUTFILES 2182s Generate reStructuredText in OUTFILES- 2182s org.Project.IFace.rst 2182s --pragma-once Use "pragma once" as the inclusion guard 2182s --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 2182s Add annotation (may be used several times) 2182s --glib-min-required VERSION 2182s Minimum version of GLib to be supported by the 2182s outputted code (default: 2.30) 2182s --glib-max-allowed VERSION 2182s Maximum version of GLib to be used by the outputted 2182s code (default: current GLib version) 2182s --symbol-decorator SYMBOL_DECORATOR 2182s Macro used to decorate a symbol in the outputted 2182s header, possibly to export symbols 2182s --symbol-decorator-header SYMBOL_DECORATOR_HEADER 2182s Additional header required for decorator specified by 2182s --symbol-decorator 2182s --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 2182s Additional define required for decorator specified by 2182s --symbol-decorator 2182s --generate-c-code OUTFILES 2182s Generate C code in OUTFILES.[ch] 2182s --header Generate C headers 2182s --body Generate C code 2182s --interface-info-header 2182s Generate GDBusInterfaceInfo C header 2182s --interface-info-body 2182s Generate GDBusInterfaceInfo C code 2182s --output FILE Write output into the specified file 2182s --output-directory OUTDIR 2182s Location to output generated files 2182s + glib-compile-resources --version 2182s 2.84.1 2182s + glib-genmarshal --version 2183s glib-genmarshal version 2.84.1 2183s glib-genmarshal comes with ABSOLUTELY NO WARRANTY. 2183s You may redistribute copies of glib-genmarshal under the terms of 2183s the GNU General Public License which can be found in the 2183s GLib source package. Sources, examples and contact 2183s information are available at http://www.gtk.org 2183s + glib-gettextize --version 2183s /usr/bin/glib-gettextize (GNU glib) 2.84.1 2183s Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc. 2183s This is free software; see the source for copying conditions. There is NO 2183s warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 2183s Written by Ulrich Drepper 2183s + glib-mkenums --version 2183s glib-mkenums version 2.84.1 2183s glib-mkenums comes with ABSOLUTELY NO WARRANTY. 2183s You may redistribute copies of glib-mkenums under the terms of 2183s the GNU General Public License which can be found in the 2183s GLib source package. Sources, examples and contact 2183s information are available at http://www.gtk.org 2183s + gobject-query tree 2183s GObject 2183s + gtester --version 2183s gtester version 2.84.1 2183s + gtester-report --version 2184s gtester-report (GLib utils) version 2.84.1. 2184s + cd /tmp/autopkgtest.LJV7sh/autopkgtest_tmp 2184s + dpkg-architecture -qDEB_HOST_MULTIARCH 2185s + DEB_HOST_MULTIARCH=riscv64-linux-gnu 2185s + gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 2185s typelib: GLib-2.0 2185s + gi-compile-repository -o GLib.typelib /usr/lib/riscv64-linux-gnu/gir-1.0/GLib-2.0.gir 2187s + gi-decompile-typelib -o GLib.gir GLib.typelib 2189s autopkgtest [13:32:33]: test libglib2.0-dev: -----------------------] 2190s autopkgtest [13:32:34]: test libglib2.0-dev: - - - - - - - - - - results - - - - - - - - - - 2190s libglib2.0-dev PASS (superficial) 2192s autopkgtest [13:32:36]: test installed-tests: preparing testbed 2409s autopkgtest [13:36:13]: testbed dpkg architecture: riscv64 2410s autopkgtest [13:36:14]: testbed apt version: 3.0.0 2411s autopkgtest [13:36:15]: @@@@@@@@@@@@@@@@@@@@ test bed setup 2412s autopkgtest [13:36:16]: testbed release detected to be: questing 2416s autopkgtest [13:36:20]: updating testbed package index (apt update) 2418s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [110 kB] 2419s Hit:2 http://ftpmaster.internal/ubuntu questing InRelease 2419s Hit:3 http://ftpmaster.internal/ubuntu questing-updates InRelease 2419s Hit:4 http://ftpmaster.internal/ubuntu questing-security InRelease 2419s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [2029 kB] 2420s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [44.4 kB] 2420s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [171 kB] 2420s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 Packages [197 kB] 2421s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/universe riscv64 Packages [788 kB] 2421s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/multiverse riscv64 Packages [8624 B] 2425s Fetched 3348 kB in 6s (567 kB/s) 2438s Reading package lists... 2441s autopkgtest [13:36:45]: upgrading testbed (apt dist-upgrade and autopurge) 2443s Reading package lists... 2444s Building dependency tree... 2444s Reading state information... 2446s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 2446s Starting 2 pkgProblemResolver with broken count: 0 2446s Done 2448s Entering ResolveByKeep 2449s 2450s Calculating upgrade... 2450s The following packages will be upgraded: 2450s htop libnpth0t64 libpython3.13 libpython3.13-minimal libpython3.13-stdlib 2450s nano python3.13 python3.13-gdbm python3.13-minimal usb.ids 2451s 10 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2451s Need to get 9242 kB of archives. 2451s After this operation, 7168 B of additional disk space will be used. 2451s Get:1 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 python3.13 riscv64 3.13.3-2 [739 kB] 2451s Get:2 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 libpython3.13 riscv64 3.13.3-2 [2427 kB] 2451s Get:3 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 libpython3.13-stdlib riscv64 3.13.3-2 [2063 kB] 2452s Get:4 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 python3.13-minimal riscv64 3.13.3-2 [2401 kB] 2452s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 libpython3.13-minimal riscv64 3.13.3-2 [882 kB] 2452s Get:6 http://ftpmaster.internal/ubuntu questing/main riscv64 libnpth0t64 riscv64 1.8-3 [8790 B] 2452s Get:7 http://ftpmaster.internal/ubuntu questing/main riscv64 nano riscv64 8.4-1 [299 kB] 2452s Get:8 http://ftpmaster.internal/ubuntu questing/main riscv64 usb.ids all 2025.04.01-1 [223 kB] 2452s Get:9 http://ftpmaster.internal/ubuntu questing/main riscv64 htop riscv64 3.4.1-4 [168 kB] 2452s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 python3.13-gdbm riscv64 3.13.3-2 [31.5 kB] 2456s Fetched 9242 kB in 2s (6106 kB/s) 2458s (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 ... 114197 files and directories currently installed.) 2458s Preparing to unpack .../0-python3.13_3.13.3-2_riscv64.deb ... 2459s Unpacking python3.13 (3.13.3-2) over (3.13.3-1) ... 2460s Preparing to unpack .../1-libpython3.13_3.13.3-2_riscv64.deb ... 2460s Unpacking libpython3.13:riscv64 (3.13.3-2) over (3.13.3-1) ... 2461s Preparing to unpack .../2-libpython3.13-stdlib_3.13.3-2_riscv64.deb ... 2462s Unpacking libpython3.13-stdlib:riscv64 (3.13.3-2) over (3.13.3-1) ... 2464s Preparing to unpack .../3-python3.13-minimal_3.13.3-2_riscv64.deb ... 2464s Unpacking python3.13-minimal (3.13.3-2) over (3.13.3-1) ... 2466s Preparing to unpack .../4-libpython3.13-minimal_3.13.3-2_riscv64.deb ... 2467s Unpacking libpython3.13-minimal:riscv64 (3.13.3-2) over (3.13.3-1) ... 2468s Preparing to unpack .../5-libnpth0t64_1.8-3_riscv64.deb ... 2468s Unpacking libnpth0t64:riscv64 (1.8-3) over (1.8-2) ... 2469s Setting up libnpth0t64:riscv64 (1.8-3) ... 2470s (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 ... 114197 files and directories currently installed.) 2470s Preparing to unpack .../nano_8.4-1_riscv64.deb ... 2470s Unpacking nano (8.4-1) over (8.3-1) ... 2471s Preparing to unpack .../usb.ids_2025.04.01-1_all.deb ... 2471s Unpacking usb.ids (2025.04.01-1) over (2025.01.14-1) ... 2471s Preparing to unpack .../htop_3.4.1-4_riscv64.deb ... 2471s Unpacking htop (3.4.1-4) over (3.4.0-2) ... 2472s Preparing to unpack .../python3.13-gdbm_3.13.3-2_riscv64.deb ... 2472s Unpacking python3.13-gdbm (3.13.3-2) over (3.13.3-1) ... 2472s Setting up htop (3.4.1-4) ... 2472s Setting up libpython3.13-minimal:riscv64 (3.13.3-2) ... 2472s Setting up usb.ids (2025.04.01-1) ... 2472s Setting up nano (8.4-1) ... 2472s Installing new version of config file /etc/nanorc ... 2473s Setting up python3.13-minimal (3.13.3-2) ... 2485s Setting up libpython3.13-stdlib:riscv64 (3.13.3-2) ... 2485s Setting up python3.13-gdbm (3.13.3-2) ... 2485s Setting up libpython3.13:riscv64 (3.13.3-2) ... 2485s Setting up python3.13 (3.13.3-2) ... 2499s Processing triggers for systemd (257.4-1ubuntu3) ... 2500s Processing triggers for man-db (2.13.0-1) ... 2503s Processing triggers for install-info (7.1.1-1) ... 2505s Processing triggers for libc-bin (2.41-6ubuntu1) ... 2511s Reading package lists... 2513s Building dependency tree... 2513s Reading state information... 2514s Starting pkgProblemResolver with broken count: 0 2514s Starting 2 pkgProblemResolver with broken count: 0 2514s Done 2516s Solving dependencies... 2517s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2533s Reading package lists... 2535s Building dependency tree... 2535s Reading state information... 2536s Starting pkgProblemResolver with broken count: 0 2536s Starting 2 pkgProblemResolver with broken count: 0 2536s Done 2538s The following NEW packages will be installed: 2538s dbus-x11 desktop-file-utils gir1.2-glib-2.0-dev girepository-tools 2538s gnome-desktop-testing libfontenc1 libgbm1 libgio-2.0-dev-bin 2538s libgirepository-2.0-0 libgl1 libgl1-mesa-dri libglib2.0-bin 2538s libglib2.0-dev-bin libglib2.0-tests libglvnd0 libglx-mesa0 libglx0 libice6 2538s libpixman-1-0 libsm6 libvulkan1 libwayland-server0 libx11-xcb1 libxaw7 2538s libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-randr0 libxcb-shm0 2538s libxcb-sync1 libxcb-xfixes0 libxfont2 libxkbfile1 libxmu6 libxpm4 libxrandr2 2538s libxrender1 libxshmfence1 libxt6t64 libxxf86vm1 mesa-libgallium 2538s native-architecture python3-dbusmock python3-packaging tzdata-legacy 2538s x11-common x11-xkb-utils xserver-common xvfb 2539s 0 upgraded, 49 newly installed, 0 to remove and 0 not upgraded. 2539s Need to get 15.2 MB of archives. 2539s After this operation, 68.3 MB of additional disk space will be used. 2539s Get:1 http://ftpmaster.internal/ubuntu questing/main riscv64 dbus-x11 riscv64 1.16.2-2ubuntu1 [23.8 kB] 2539s Get:2 http://ftpmaster.internal/ubuntu questing/main riscv64 desktop-file-utils riscv64 0.28-1 [52.2 kB] 2539s Get:3 http://ftpmaster.internal/ubuntu questing/main riscv64 gir1.2-glib-2.0-dev riscv64 2.84.1-1 [862 kB] 2539s Get:4 http://ftpmaster.internal/ubuntu questing/main riscv64 native-architecture all 0.2.6 [2140 B] 2539s Get:5 http://ftpmaster.internal/ubuntu questing/main riscv64 libgirepository-2.0-0 riscv64 2.84.1-1 [118 kB] 2539s Get:6 http://ftpmaster.internal/ubuntu questing/main riscv64 girepository-tools riscv64 2.84.1-1 [121 kB] 2539s Get:7 http://ftpmaster.internal/ubuntu questing/universe riscv64 gnome-desktop-testing riscv64 2021.1-4 [16.1 kB] 2539s Get:8 http://ftpmaster.internal/ubuntu questing/main riscv64 libfontenc1 riscv64 1:1.1.8-1build1 [14.2 kB] 2539s Get:9 http://ftpmaster.internal/ubuntu questing/main riscv64 libwayland-server0 riscv64 1.23.1-3 [37.9 kB] 2539s Get:10 http://ftpmaster.internal/ubuntu questing/main riscv64 libx11-xcb1 riscv64 2:1.8.10-2 [7884 B] 2539s Get:11 http://ftpmaster.internal/ubuntu questing/main riscv64 libxcb-dri3-0 riscv64 1.17.0-2 [7548 B] 2539s Get:12 http://ftpmaster.internal/ubuntu questing/main riscv64 libxcb-present0 riscv64 1.17.0-2 [6126 B] 2539s Get:13 http://ftpmaster.internal/ubuntu questing/main riscv64 libxcb-randr0 riscv64 1.17.0-2 [18.9 kB] 2539s Get:14 http://ftpmaster.internal/ubuntu questing/main riscv64 libxcb-sync1 riscv64 1.17.0-2 [9644 B] 2539s Get:15 http://ftpmaster.internal/ubuntu questing/main riscv64 libxcb-xfixes0 riscv64 1.17.0-2 [10.6 kB] 2539s Get:16 http://ftpmaster.internal/ubuntu questing/main riscv64 libxshmfence1 riscv64 1.3-1build5 [4704 B] 2539s Get:17 http://ftpmaster.internal/ubuntu questing/main riscv64 mesa-libgallium riscv64 25.0.3-1ubuntu2 [8170 kB] 2540s Get:18 http://ftpmaster.internal/ubuntu questing/main riscv64 libgbm1 riscv64 25.0.3-1ubuntu2 [36.8 kB] 2540s Get:19 http://ftpmaster.internal/ubuntu questing/main riscv64 python3-packaging all 24.2-1 [51.5 kB] 2540s Get:20 http://ftpmaster.internal/ubuntu questing/main riscv64 libgio-2.0-dev-bin riscv64 2.84.1-1 [133 kB] 2540s Get:21 http://ftpmaster.internal/ubuntu questing/main riscv64 libvulkan1 riscv64 1.4.304.0-1 [145 kB] 2540s Get:22 http://ftpmaster.internal/ubuntu questing/main riscv64 libgl1-mesa-dri riscv64 25.0.3-1ubuntu2 [34.1 kB] 2540s Get:23 http://ftpmaster.internal/ubuntu questing/main riscv64 libglib2.0-bin riscv64 2.84.1-1 [97.7 kB] 2540s Get:24 http://ftpmaster.internal/ubuntu questing/main riscv64 libglib2.0-dev-bin riscv64 2.84.1-1 [18.1 kB] 2540s Get:25 http://ftpmaster.internal/ubuntu questing/universe riscv64 python3-dbusmock all 0.34.3-1 [92.4 kB] 2540s Get:26 http://ftpmaster.internal/ubuntu questing/main riscv64 tzdata-legacy all 2025b-1ubuntu1 [99.2 kB] 2540s Get:27 http://ftpmaster.internal/ubuntu questing/universe riscv64 libglib2.0-tests riscv64 2.84.1-1 [2356 kB] 2540s Get:28 http://ftpmaster.internal/ubuntu questing/main riscv64 libxcb-glx0 riscv64 1.17.0-2 [26.0 kB] 2540s Get:29 http://ftpmaster.internal/ubuntu questing/main riscv64 libxcb-shm0 riscv64 1.17.0-2 [5950 B] 2540s Get:30 http://ftpmaster.internal/ubuntu questing/main riscv64 libxxf86vm1 riscv64 1:1.1.4-1build4 [10.3 kB] 2540s Get:31 http://ftpmaster.internal/ubuntu questing/main riscv64 libglx-mesa0 riscv64 25.0.3-1ubuntu2 [171 kB] 2540s Get:32 http://ftpmaster.internal/ubuntu questing/main riscv64 x11-common all 1:7.7+23ubuntu4 [21.8 kB] 2540s Get:33 http://ftpmaster.internal/ubuntu questing/main riscv64 libice6 riscv64 2:1.1.1-1 [44.2 kB] 2540s Get:34 http://ftpmaster.internal/ubuntu questing/main riscv64 libpixman-1-0 riscv64 0.44.0-3 [206 kB] 2540s Get:35 http://ftpmaster.internal/ubuntu questing/main riscv64 libsm6 riscv64 2:1.2.4-1 [17.5 kB] 2540s Get:36 http://ftpmaster.internal/ubuntu questing/main riscv64 libxt6t64 riscv64 1:1.2.1-1.2build1 [176 kB] 2540s Get:37 http://ftpmaster.internal/ubuntu questing/main riscv64 libxmu6 riscv64 2:1.1.3-3build2 [49.5 kB] 2540s Get:38 http://ftpmaster.internal/ubuntu questing/main riscv64 libxpm4 riscv64 1:3.5.17-1build2 [38.2 kB] 2540s Get:39 http://ftpmaster.internal/ubuntu questing/main riscv64 libxaw7 riscv64 2:1.0.16-1 [192 kB] 2540s Get:40 http://ftpmaster.internal/ubuntu questing/main riscv64 libxfont2 riscv64 1:2.0.6-1build1 [99.8 kB] 2540s Get:41 http://ftpmaster.internal/ubuntu questing/main riscv64 libxkbfile1 riscv64 1:1.1.0-1build4 [72.2 kB] 2540s Get:42 http://ftpmaster.internal/ubuntu questing/main riscv64 libxrender1 riscv64 1:0.9.10-1.1build1 [20.1 kB] 2540s Get:43 http://ftpmaster.internal/ubuntu questing/main riscv64 libxrandr2 riscv64 2:1.5.4-1 [20.8 kB] 2540s Get:44 http://ftpmaster.internal/ubuntu questing/main riscv64 x11-xkb-utils riscv64 7.7+9 [174 kB] 2541s Get:45 http://ftpmaster.internal/ubuntu questing/main riscv64 xserver-common all 2:21.1.16-1ubuntu1 [34.4 kB] 2541s Get:46 http://ftpmaster.internal/ubuntu questing/main riscv64 libglvnd0 riscv64 1.7.0-1build1 [98.9 kB] 2541s Get:47 http://ftpmaster.internal/ubuntu questing/main riscv64 libglx0 riscv64 1.7.0-1build1 [32.5 kB] 2541s Get:48 http://ftpmaster.internal/ubuntu questing/main riscv64 libgl1 riscv64 1.7.0-1build1 [138 kB] 2541s Get:49 http://ftpmaster.internal/ubuntu questing/universe riscv64 xvfb riscv64 2:21.1.16-1ubuntu1 [971 kB] 2546s Fetched 15.2 MB in 2s (6180 kB/s) 2546s Selecting previously unselected package dbus-x11. 2547s (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 ... 114197 files and directories currently installed.) 2547s Preparing to unpack .../00-dbus-x11_1.16.2-2ubuntu1_riscv64.deb ... 2547s Unpacking dbus-x11 (1.16.2-2ubuntu1) ... 2547s Selecting previously unselected package desktop-file-utils. 2547s Preparing to unpack .../01-desktop-file-utils_0.28-1_riscv64.deb ... 2547s Unpacking desktop-file-utils (0.28-1) ... 2548s Selecting previously unselected package gir1.2-glib-2.0-dev:riscv64. 2548s Preparing to unpack .../02-gir1.2-glib-2.0-dev_2.84.1-1_riscv64.deb ... 2548s Unpacking gir1.2-glib-2.0-dev:riscv64 (2.84.1-1) ... 2549s Selecting previously unselected package native-architecture. 2550s Preparing to unpack .../03-native-architecture_0.2.6_all.deb ... 2550s Unpacking native-architecture (0.2.6) ... 2550s Selecting previously unselected package libgirepository-2.0-0:riscv64. 2550s Preparing to unpack .../04-libgirepository-2.0-0_2.84.1-1_riscv64.deb ... 2550s Unpacking libgirepository-2.0-0:riscv64 (2.84.1-1) ... 2550s Selecting previously unselected package girepository-tools:riscv64. 2551s Preparing to unpack .../05-girepository-tools_2.84.1-1_riscv64.deb ... 2551s Unpacking girepository-tools:riscv64 (2.84.1-1) ... 2551s Selecting previously unselected package gnome-desktop-testing. 2551s Preparing to unpack .../06-gnome-desktop-testing_2021.1-4_riscv64.deb ... 2551s Unpacking gnome-desktop-testing (2021.1-4) ... 2551s Selecting previously unselected package libfontenc1:riscv64. 2552s Preparing to unpack .../07-libfontenc1_1%3a1.1.8-1build1_riscv64.deb ... 2552s Unpacking libfontenc1:riscv64 (1:1.1.8-1build1) ... 2552s Selecting previously unselected package libwayland-server0:riscv64. 2552s Preparing to unpack .../08-libwayland-server0_1.23.1-3_riscv64.deb ... 2552s Unpacking libwayland-server0:riscv64 (1.23.1-3) ... 2552s Selecting previously unselected package libx11-xcb1:riscv64. 2552s Preparing to unpack .../09-libx11-xcb1_2%3a1.8.10-2_riscv64.deb ... 2552s Unpacking libx11-xcb1:riscv64 (2:1.8.10-2) ... 2553s Selecting previously unselected package libxcb-dri3-0:riscv64. 2553s Preparing to unpack .../10-libxcb-dri3-0_1.17.0-2_riscv64.deb ... 2553s Unpacking libxcb-dri3-0:riscv64 (1.17.0-2) ... 2553s Selecting previously unselected package libxcb-present0:riscv64. 2553s Preparing to unpack .../11-libxcb-present0_1.17.0-2_riscv64.deb ... 2553s Unpacking libxcb-present0:riscv64 (1.17.0-2) ... 2554s Selecting previously unselected package libxcb-randr0:riscv64. 2554s Preparing to unpack .../12-libxcb-randr0_1.17.0-2_riscv64.deb ... 2554s Unpacking libxcb-randr0:riscv64 (1.17.0-2) ... 2554s Selecting previously unselected package libxcb-sync1:riscv64. 2554s Preparing to unpack .../13-libxcb-sync1_1.17.0-2_riscv64.deb ... 2554s Unpacking libxcb-sync1:riscv64 (1.17.0-2) ... 2555s Selecting previously unselected package libxcb-xfixes0:riscv64. 2555s Preparing to unpack .../14-libxcb-xfixes0_1.17.0-2_riscv64.deb ... 2555s Unpacking libxcb-xfixes0:riscv64 (1.17.0-2) ... 2555s Selecting previously unselected package libxshmfence1:riscv64. 2555s Preparing to unpack .../15-libxshmfence1_1.3-1build5_riscv64.deb ... 2555s Unpacking libxshmfence1:riscv64 (1.3-1build5) ... 2556s Selecting previously unselected package mesa-libgallium:riscv64. 2556s Preparing to unpack .../16-mesa-libgallium_25.0.3-1ubuntu2_riscv64.deb ... 2556s Unpacking mesa-libgallium:riscv64 (25.0.3-1ubuntu2) ... 2560s Selecting previously unselected package libgbm1:riscv64. 2560s Preparing to unpack .../17-libgbm1_25.0.3-1ubuntu2_riscv64.deb ... 2560s Unpacking libgbm1:riscv64 (25.0.3-1ubuntu2) ... 2560s Selecting previously unselected package python3-packaging. 2560s Preparing to unpack .../18-python3-packaging_24.2-1_all.deb ... 2560s Unpacking python3-packaging (24.2-1) ... 2561s Selecting previously unselected package libgio-2.0-dev-bin. 2561s Preparing to unpack .../19-libgio-2.0-dev-bin_2.84.1-1_riscv64.deb ... 2561s Unpacking libgio-2.0-dev-bin (2.84.1-1) ... 2561s Selecting previously unselected package libvulkan1:riscv64. 2561s Preparing to unpack .../20-libvulkan1_1.4.304.0-1_riscv64.deb ... 2561s Unpacking libvulkan1:riscv64 (1.4.304.0-1) ... 2562s Selecting previously unselected package libgl1-mesa-dri:riscv64. 2562s Preparing to unpack .../21-libgl1-mesa-dri_25.0.3-1ubuntu2_riscv64.deb ... 2562s Unpacking libgl1-mesa-dri:riscv64 (25.0.3-1ubuntu2) ... 2563s Selecting previously unselected package libglib2.0-bin. 2563s Preparing to unpack .../22-libglib2.0-bin_2.84.1-1_riscv64.deb ... 2563s Unpacking libglib2.0-bin (2.84.1-1) ... 2563s Selecting previously unselected package libglib2.0-dev-bin. 2564s Preparing to unpack .../23-libglib2.0-dev-bin_2.84.1-1_riscv64.deb ... 2564s Unpacking libglib2.0-dev-bin (2.84.1-1) ... 2564s Selecting previously unselected package python3-dbusmock. 2564s Preparing to unpack .../24-python3-dbusmock_0.34.3-1_all.deb ... 2564s Unpacking python3-dbusmock (0.34.3-1) ... 2565s Selecting previously unselected package tzdata-legacy. 2565s Preparing to unpack .../25-tzdata-legacy_2025b-1ubuntu1_all.deb ... 2565s Unpacking tzdata-legacy (2025b-1ubuntu1) ... 2566s Selecting previously unselected package libglib2.0-tests. 2566s Preparing to unpack .../26-libglib2.0-tests_2.84.1-1_riscv64.deb ... 2566s Unpacking libglib2.0-tests (2.84.1-1) ... 2569s Selecting previously unselected package libxcb-glx0:riscv64. 2569s Preparing to unpack .../27-libxcb-glx0_1.17.0-2_riscv64.deb ... 2569s Unpacking libxcb-glx0:riscv64 (1.17.0-2) ... 2569s Selecting previously unselected package libxcb-shm0:riscv64. 2569s Preparing to unpack .../28-libxcb-shm0_1.17.0-2_riscv64.deb ... 2569s Unpacking libxcb-shm0:riscv64 (1.17.0-2) ... 2570s Selecting previously unselected package libxxf86vm1:riscv64. 2570s Preparing to unpack .../29-libxxf86vm1_1%3a1.1.4-1build4_riscv64.deb ... 2570s Unpacking libxxf86vm1:riscv64 (1:1.1.4-1build4) ... 2570s Selecting previously unselected package libglx-mesa0:riscv64. 2570s Preparing to unpack .../30-libglx-mesa0_25.0.3-1ubuntu2_riscv64.deb ... 2570s Unpacking libglx-mesa0:riscv64 (25.0.3-1ubuntu2) ... 2571s Selecting previously unselected package x11-common. 2571s Preparing to unpack .../31-x11-common_1%3a7.7+23ubuntu4_all.deb ... 2571s Unpacking x11-common (1:7.7+23ubuntu4) ... 2571s Selecting previously unselected package libice6:riscv64. 2571s Preparing to unpack .../32-libice6_2%3a1.1.1-1_riscv64.deb ... 2571s Unpacking libice6:riscv64 (2:1.1.1-1) ... 2572s Selecting previously unselected package libpixman-1-0:riscv64. 2572s Preparing to unpack .../33-libpixman-1-0_0.44.0-3_riscv64.deb ... 2572s Unpacking libpixman-1-0:riscv64 (0.44.0-3) ... 2572s Selecting previously unselected package libsm6:riscv64. 2572s Preparing to unpack .../34-libsm6_2%3a1.2.4-1_riscv64.deb ... 2572s Unpacking libsm6:riscv64 (2:1.2.4-1) ... 2573s Selecting previously unselected package libxt6t64:riscv64. 2573s Preparing to unpack .../35-libxt6t64_1%3a1.2.1-1.2build1_riscv64.deb ... 2573s Unpacking libxt6t64:riscv64 (1:1.2.1-1.2build1) ... 2573s Selecting previously unselected package libxmu6:riscv64. 2573s Preparing to unpack .../36-libxmu6_2%3a1.1.3-3build2_riscv64.deb ... 2573s Unpacking libxmu6:riscv64 (2:1.1.3-3build2) ... 2574s Selecting previously unselected package libxpm4:riscv64. 2574s Preparing to unpack .../37-libxpm4_1%3a3.5.17-1build2_riscv64.deb ... 2574s Unpacking libxpm4:riscv64 (1:3.5.17-1build2) ... 2574s Selecting previously unselected package libxaw7:riscv64. 2574s Preparing to unpack .../38-libxaw7_2%3a1.0.16-1_riscv64.deb ... 2574s Unpacking libxaw7:riscv64 (2:1.0.16-1) ... 2575s Selecting previously unselected package libxfont2:riscv64. 2575s Preparing to unpack .../39-libxfont2_1%3a2.0.6-1build1_riscv64.deb ... 2575s Unpacking libxfont2:riscv64 (1:2.0.6-1build1) ... 2575s Selecting previously unselected package libxkbfile1:riscv64. 2575s Preparing to unpack .../40-libxkbfile1_1%3a1.1.0-1build4_riscv64.deb ... 2575s Unpacking libxkbfile1:riscv64 (1:1.1.0-1build4) ... 2576s Selecting previously unselected package libxrender1:riscv64. 2576s Preparing to unpack .../41-libxrender1_1%3a0.9.10-1.1build1_riscv64.deb ... 2576s Unpacking libxrender1:riscv64 (1:0.9.10-1.1build1) ... 2576s Selecting previously unselected package libxrandr2:riscv64. 2576s Preparing to unpack .../42-libxrandr2_2%3a1.5.4-1_riscv64.deb ... 2576s Unpacking libxrandr2:riscv64 (2:1.5.4-1) ... 2577s Selecting previously unselected package x11-xkb-utils. 2577s Preparing to unpack .../43-x11-xkb-utils_7.7+9_riscv64.deb ... 2577s Unpacking x11-xkb-utils (7.7+9) ... 2577s Selecting previously unselected package xserver-common. 2577s Preparing to unpack .../44-xserver-common_2%3a21.1.16-1ubuntu1_all.deb ... 2577s Unpacking xserver-common (2:21.1.16-1ubuntu1) ... 2578s Selecting previously unselected package libglvnd0:riscv64. 2578s Preparing to unpack .../45-libglvnd0_1.7.0-1build1_riscv64.deb ... 2578s Unpacking libglvnd0:riscv64 (1.7.0-1build1) ... 2578s Selecting previously unselected package libglx0:riscv64. 2578s Preparing to unpack .../46-libglx0_1.7.0-1build1_riscv64.deb ... 2578s Unpacking libglx0:riscv64 (1.7.0-1build1) ... 2579s Selecting previously unselected package libgl1:riscv64. 2579s Preparing to unpack .../47-libgl1_1.7.0-1build1_riscv64.deb ... 2579s Unpacking libgl1:riscv64 (1.7.0-1build1) ... 2579s Selecting previously unselected package xvfb. 2580s Preparing to unpack .../48-xvfb_2%3a21.1.16-1ubuntu1_riscv64.deb ... 2580s Unpacking xvfb (2:21.1.16-1ubuntu1) ... 2580s Setting up gnome-desktop-testing (2021.1-4) ... 2580s Setting up libxcb-dri3-0:riscv64 (1.17.0-2) ... 2581s Setting up libpixman-1-0:riscv64 (0.44.0-3) ... 2581s Setting up libwayland-server0:riscv64 (1.23.1-3) ... 2581s Setting up libx11-xcb1:riscv64 (2:1.8.10-2) ... 2581s Setting up native-architecture (0.2.6) ... 2581s Setting up libxcb-xfixes0:riscv64 (1.17.0-2) ... 2581s Setting up desktop-file-utils (0.28-1) ... 2581s Setting up libxpm4:riscv64 (1:3.5.17-1build2) ... 2581s Setting up libxrender1:riscv64 (1:0.9.10-1.1build1) ... 2581s Setting up libgirepository-2.0-0:riscv64 (2.84.1-1) ... 2581s Setting up libglvnd0:riscv64 (1.7.0-1build1) ... 2581s Setting up libxcb-glx0:riscv64 (1.17.0-2) ... 2581s Setting up x11-common (1:7.7+23ubuntu4) ... 2587s Setting up libglib2.0-bin (2.84.1-1) ... 2587s Setting up libxcb-shm0:riscv64 (1.17.0-2) ... 2587s Setting up python3-dbusmock (0.34.3-1) ... 2590s Setting up tzdata-legacy (2025b-1ubuntu1) ... 2590s Setting up libxxf86vm1:riscv64 (1:1.1.4-1build4) ... 2590s Setting up libxcb-present0:riscv64 (1.17.0-2) ... 2590s Setting up libfontenc1:riscv64 (1:1.1.8-1build1) ... 2590s Setting up python3-packaging (24.2-1) ... 2592s Setting up libxcb-sync1:riscv64 (1.17.0-2) ... 2592s Setting up libxrandr2:riscv64 (2:1.5.4-1) ... 2592s Setting up libvulkan1:riscv64 (1.4.304.0-1) ... 2592s Setting up gir1.2-glib-2.0-dev:riscv64 (2.84.1-1) ... 2592s Setting up libxshmfence1:riscv64 (1.3-1build5) ... 2592s Setting up dbus-x11 (1.16.2-2ubuntu1) ... 2592s Setting up libxcb-randr0:riscv64 (1.17.0-2) ... 2592s Setting up libxkbfile1:riscv64 (1:1.1.0-1build4) ... 2592s Setting up libxfont2:riscv64 (1:2.0.6-1build1) ... 2592s Setting up libice6:riscv64 (2:1.1.1-1) ... 2592s Setting up mesa-libgallium:riscv64 (25.0.3-1ubuntu2) ... 2592s Setting up libgio-2.0-dev-bin (2.84.1-1) ... 2597s Setting up girepository-tools:riscv64 (2.84.1-1) ... 2597s Setting up libgbm1:riscv64 (25.0.3-1ubuntu2) ... 2597s Setting up libgl1-mesa-dri:riscv64 (25.0.3-1ubuntu2) ... 2597s Setting up libsm6:riscv64 (2:1.2.4-1) ... 2597s Setting up libglib2.0-dev-bin (2.84.1-1) ... 2597s Setting up libglx-mesa0:riscv64 (25.0.3-1ubuntu2) ... 2597s Setting up libglx0:riscv64 (1.7.0-1build1) ... 2597s Setting up libgl1:riscv64 (1.7.0-1build1) ... 2597s Setting up libxt6t64:riscv64 (1:1.2.1-1.2build1) ... 2597s Setting up libglib2.0-tests (2.84.1-1) ... 2599s Setting up libxmu6:riscv64 (2:1.1.3-3build2) ... 2599s Setting up libxaw7:riscv64 (2:1.0.16-1) ... 2599s Setting up x11-xkb-utils (7.7+9) ... 2599s Setting up xserver-common (2:21.1.16-1ubuntu1) ... 2599s Setting up xvfb (2:21.1.16-1ubuntu1) ... 2599s Processing triggers for man-db (2.13.0-1) ... 2601s Processing triggers for libc-bin (2.41-6ubuntu1) ... 2625s autopkgtest [13:39:49]: test installed-tests: [----------------------- 2627s Running as: uid=1000(ubuntu) gid=1000(ubuntu) groups=1000(ubuntu),4(adm),24(cdrom),27(sudo),30(dip),103(lxd) 2627s passwd entry: ubuntu:x:1000:1000:Ubuntu:/home/ubuntu:/bin/bash 2627s group entry: ubuntu:x:1000: 2627s Environment: 2627s ADTTMP=/tmp/autopkgtest.LJV7sh/autopkgtest_tmp 2627s ADT_ARTIFACTS=/tmp/autopkgtest.LJV7sh/installed-tests-artifacts 2627s ADT_TEST_TRIGGERS=python3.13/3.13.3-2 2627s AUTOPKGTEST_ARTIFACTS=/tmp/autopkgtest.LJV7sh/installed-tests-artifacts 2627s AUTOPKGTEST_TESTBED_ARCH=riscv64 2627s AUTOPKGTEST_TEST_ARCH=riscv64 2627s AUTOPKGTEST_TMP=/tmp/autopkgtest.LJV7sh/autopkgtest_tmp 2627s DEBIAN_FRONTEND=noninteractive 2627s DEBUGINFOD_URLS=https://debuginfod.ubuntu.com 2627s DEB_BUILD_OPTIONS=parallel=2 2627s GIO_USE_VFS=local 2627s GIO_USE_VOLUME_MONITOR=unix 2627s HOME=/home/ubuntu 2627s LANG=C.UTF-8 2627s LOGNAME=ubuntu 2627s MAIL=/var/mail/ubuntu 2627s OLDPWD=/home/ubuntu 2627s PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin 2627s PWD=/tmp/autopkgtest.LJV7sh/build.Nzr/src 2627s SHELL=/bin/bash 2627s SHLVL=1 2627s SUDO_COMMAND=/var/tmp/autopkgtest-run-wrapper su -s /bin/bash ubuntu -c set -e; exec /tmp/autopkgtest.LJV7sh/wrapper.sh --artifacts=/tmp/autopkgtest.LJV7sh/installed-tests-artifacts --chdir=/tmp/autopkgtest.LJV7sh/build.Nzr/src --env=AUTOPKGTEST_TESTBED_ARCH=riscv64 --env=AUTOPKGTEST_TEST_ARCH=riscv64 --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.LJV7sh/installed-tests-stderr --stdout=/tmp/autopkgtest.LJV7sh/installed-tests-stdout --tmp=/tmp/autopkgtest.LJV7sh/autopkgtest_tmp --env=ADT_TEST_TRIGGERS=python3.13/3.13.3-2 --make-executable=/tmp/autopkgtest.LJV7sh/build.Nzr/src/debian/tests/installed-tests -- /tmp/autopkgtest.LJV7sh/build.Nzr/src/debian/tests/installed-tests 2627s SUDO_GID=1000 2627s SUDO_HOME=/home/ubuntu 2627s SUDO_UID=1000 2627s SUDO_USER=ubuntu 2627s TERM=linux 2627s USER=ubuntu 2627s XDG_RUNTIME_DIR=/tmp/autopkgtest.LJV7sh/autopkgtest_tmp 2627s http_proxy=http://egress.ps7.internal:3128/ 2627s https_proxy=http://egress.ps7.internal:3128/ 2629s run-with-locales: de_DE=ISO-8859-1... 2629s Character set: ISO-8859-1 2629s Source file: de_DE 2629s Output: /tmp/tmp.VVynX1hJhW/de_DE 2633s run-with-locales: de_DE.utf8... 2633s Character set: UTF-8 2633s Source file: de_DE 2633s Output: /tmp/tmp.VVynX1hJhW/de_DE.utf8 2646s run-with-locales: de_DE@euro.utf8... 2646s Character set: UTF-8 2646s Source file: de_DE@euro 2646s Output: /tmp/tmp.VVynX1hJhW/de_DE@euro.utf8 2659s run-with-locales: el_GR.utf8... 2659s Character set: UTF-8 2659s Source file: el_GR 2659s Output: /tmp/tmp.VVynX1hJhW/el_GR.utf8 2671s run-with-locales: en_GB=ISO-8859-1... 2671s Character set: ISO-8859-1 2671s Source file: en_GB 2671s Output: /tmp/tmp.VVynX1hJhW/en_GB 2676s run-with-locales: en_GB.utf8... 2676s Character set: UTF-8 2676s Source file: en_GB 2676s Output: /tmp/tmp.VVynX1hJhW/en_GB.utf8 2688s run-with-locales: en_US=ISO-8859-1... 2688s Character set: ISO-8859-1 2688s Source file: en_US 2688s Output: /tmp/tmp.VVynX1hJhW/en_US 2693s run-with-locales: en_US.utf8... 2693s Character set: UTF-8 2693s Source file: en_US 2693s Output: /tmp/tmp.VVynX1hJhW/en_US.utf8 2706s run-with-locales: es_ES.utf8... 2706s Character set: UTF-8 2706s Source file: es_ES 2706s Output: /tmp/tmp.VVynX1hJhW/es_ES.utf8 2718s run-with-locales: fa_IR=UTF-8... 2718s Character set: UTF-8 2718s Source file: fa_IR 2718s Output: /tmp/tmp.VVynX1hJhW/fa_IR 2730s run-with-locales: fa_IR.utf8... 2730s Character set: UTF-8 2730s Source file: fa_IR 2730s Output: /tmp/tmp.VVynX1hJhW/fa_IR.utf8 2743s run-with-locales: fr_FR.utf8... 2743s Character set: UTF-8 2743s Source file: fr_FR 2743s Output: /tmp/tmp.VVynX1hJhW/fr_FR.utf8 2756s run-with-locales: hr_HR.utf8... 2756s Character set: UTF-8 2756s Source file: hr_HR 2756s Output: /tmp/tmp.VVynX1hJhW/hr_HR.utf8 2768s run-with-locales: ja_JP.utf8... 2768s Character set: UTF-8 2768s Source file: ja_JP 2768s Output: /tmp/tmp.VVynX1hJhW/ja_JP.utf8 2777s run-with-locales: ja_JP.EUC-JP... 2777s Character set: EUC-JP 2777s Source file: ja_JP 2777s Output: /tmp/tmp.VVynX1hJhW/ja_JP.eucjp 2782s run-with-locales: lt_LT.utf8... 2782s Character set: UTF-8 2782s Source file: lt_LT 2782s Output: /tmp/tmp.VVynX1hJhW/lt_LT.utf8 2797s run-with-locales: pl_PL=ISO-8859-2... 2797s Character set: ISO-8859-2 2797s Source file: pl_PL 2797s Output: /tmp/tmp.VVynX1hJhW/pl_PL 2802s run-with-locales: pl_PL.ISO-8859-2... 2802s Character set: ISO-8859-2 2802s Source file: pl_PL 2802s Output: /tmp/tmp.VVynX1hJhW/pl_PL.iso88592 2807s run-with-locales: pl_PL.utf8... 2807s Character set: UTF-8 2807s Source file: pl_PL 2807s Output: /tmp/tmp.VVynX1hJhW/pl_PL.utf8 2819s run-with-locales: ru_RU=ISO-8859-5... 2819s Character set: ISO-8859-5 2819s Source file: ru_RU 2819s Output: /tmp/tmp.VVynX1hJhW/ru_RU 2824s run-with-locales: ru_RU.utf8... 2824s Character set: UTF-8 2824s Source file: ru_RU 2824s Output: /tmp/tmp.VVynX1hJhW/ru_RU.utf8 2836s run-with-locales: sr_RS=UTF-8... 2836s Character set: UTF-8 2836s Source file: sr_RS 2836s Output: /tmp/tmp.VVynX1hJhW/sr_RS 2849s run-with-locales: sr_RS@latin=UTF-8... 2849s Character set: UTF-8 2849s Source file: sr_RS@latin 2849s Output: /tmp/tmp.VVynX1hJhW/sr_RS@latin 2862s run-with-locales: sv_SE=ISO-8859-1... 2862s Character set: ISO-8859-1 2862s Source file: sv_SE 2862s Output: /tmp/tmp.VVynX1hJhW/sv_SE 2867s run-with-locales: sv_SE.utf8... 2867s Character set: UTF-8 2867s Source file: sv_SE 2867s Output: /tmp/tmp.VVynX1hJhW/sv_SE.utf8 2879s run-with-locales: tr_TR=ISO-8859-9... 2879s Character set: ISO-8859-9 2879s Source file: tr_TR 2879s Output: /tmp/tmp.VVynX1hJhW/tr_TR 2883s run-with-locales: tr_TR.utf8... 2883s Character set: UTF-8 2883s Source file: tr_TR 2883s Output: /tmp/tmp.VVynX1hJhW/tr_TR.utf8 2895s run-with-locales: tt_RU=UTF-8... 2895s Character set: UTF-8 2895s Source file: tt_RU 2895s Output: /tmp/tmp.VVynX1hJhW/tt_RU 2908s run-with-locales: tt_RU.utf8... 2908s Character set: UTF-8 2908s Source file: tt_RU 2908s Output: /tmp/tmp.VVynX1hJhW/tt_RU.utf8 2921s run-with-locales: tt_RU@iqtelif=UTF-8... 2921s Character set: UTF-8 2921s Source file: tt_RU@iqtelif 2921s Output: /tmp/tmp.VVynX1hJhW/tt_RU@iqtelif 2933s /tmp/tmp.VVynX1hJhW 2933s /tmp/tmp.VVynX1hJhW/es_ES.utf8 2933s /tmp/tmp.VVynX1hJhW/es_ES.utf8/LC_PAPER 2933s /tmp/tmp.VVynX1hJhW/es_ES.utf8/LC_ADDRESS 2933s /tmp/tmp.VVynX1hJhW/es_ES.utf8/LC_NAME 2933s /tmp/tmp.VVynX1hJhW/es_ES.utf8/LC_IDENTIFICATION 2933s /tmp/tmp.VVynX1hJhW/es_ES.utf8/LC_TELEPHONE 2933s /tmp/tmp.VVynX1hJhW/es_ES.utf8/LC_MEASUREMENT 2933s /tmp/tmp.VVynX1hJhW/es_ES.utf8/LC_MONETARY 2933s /tmp/tmp.VVynX1hJhW/es_ES.utf8/LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/es_ES.utf8/LC_MESSAGES/SYS_LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/es_ES.utf8/LC_TIME 2933s /tmp/tmp.VVynX1hJhW/es_ES.utf8/LC_COLLATE 2933s /tmp/tmp.VVynX1hJhW/es_ES.utf8/LC_NUMERIC 2933s /tmp/tmp.VVynX1hJhW/es_ES.utf8/LC_CTYPE 2933s /tmp/tmp.VVynX1hJhW/tr_TR.utf8 2933s /tmp/tmp.VVynX1hJhW/tr_TR.utf8/LC_PAPER 2933s /tmp/tmp.VVynX1hJhW/tr_TR.utf8/LC_ADDRESS 2933s /tmp/tmp.VVynX1hJhW/tr_TR.utf8/LC_NAME 2933s /tmp/tmp.VVynX1hJhW/tr_TR.utf8/LC_IDENTIFICATION 2933s /tmp/tmp.VVynX1hJhW/tr_TR.utf8/LC_TELEPHONE 2933s /tmp/tmp.VVynX1hJhW/tr_TR.utf8/LC_MEASUREMENT 2933s /tmp/tmp.VVynX1hJhW/tr_TR.utf8/LC_MONETARY 2933s /tmp/tmp.VVynX1hJhW/tr_TR.utf8/LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/tr_TR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/tr_TR.utf8/LC_TIME 2933s /tmp/tmp.VVynX1hJhW/tr_TR.utf8/LC_COLLATE 2933s /tmp/tmp.VVynX1hJhW/tr_TR.utf8/LC_NUMERIC 2933s /tmp/tmp.VVynX1hJhW/tr_TR.utf8/LC_CTYPE 2933s /tmp/tmp.VVynX1hJhW/tt_RU.utf8 2933s /tmp/tmp.VVynX1hJhW/tt_RU.utf8/LC_PAPER 2933s /tmp/tmp.VVynX1hJhW/tt_RU.utf8/LC_ADDRESS 2933s /tmp/tmp.VVynX1hJhW/tt_RU.utf8/LC_NAME 2933s /tmp/tmp.VVynX1hJhW/tt_RU.utf8/LC_IDENTIFICATION 2933s /tmp/tmp.VVynX1hJhW/tt_RU.utf8/LC_TELEPHONE 2933s /tmp/tmp.VVynX1hJhW/tt_RU.utf8/LC_MEASUREMENT 2933s /tmp/tmp.VVynX1hJhW/tt_RU.utf8/LC_MONETARY 2933s /tmp/tmp.VVynX1hJhW/tt_RU.utf8/LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/tt_RU.utf8/LC_MESSAGES/SYS_LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/tt_RU.utf8/LC_TIME 2933s /tmp/tmp.VVynX1hJhW/tt_RU.utf8/LC_COLLATE 2933s /tmp/tmp.VVynX1hJhW/tt_RU.utf8/LC_NUMERIC 2933s /tmp/tmp.VVynX1hJhW/tt_RU.utf8/LC_CTYPE 2933s /tmp/tmp.VVynX1hJhW/en_US.utf8 2933s /tmp/tmp.VVynX1hJhW/en_US.utf8/LC_PAPER 2933s /tmp/tmp.VVynX1hJhW/en_US.utf8/LC_ADDRESS 2933s /tmp/tmp.VVynX1hJhW/en_US.utf8/LC_NAME 2933s /tmp/tmp.VVynX1hJhW/en_US.utf8/LC_IDENTIFICATION 2933s /tmp/tmp.VVynX1hJhW/en_US.utf8/LC_TELEPHONE 2933s /tmp/tmp.VVynX1hJhW/en_US.utf8/LC_MEASUREMENT 2933s /tmp/tmp.VVynX1hJhW/en_US.utf8/LC_MONETARY 2933s /tmp/tmp.VVynX1hJhW/en_US.utf8/LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/en_US.utf8/LC_TIME 2933s /tmp/tmp.VVynX1hJhW/en_US.utf8/LC_COLLATE 2933s /tmp/tmp.VVynX1hJhW/en_US.utf8/LC_NUMERIC 2933s /tmp/tmp.VVynX1hJhW/en_US.utf8/LC_CTYPE 2933s /tmp/tmp.VVynX1hJhW/de_DE.utf8 2933s /tmp/tmp.VVynX1hJhW/de_DE.utf8/LC_PAPER 2933s /tmp/tmp.VVynX1hJhW/de_DE.utf8/LC_ADDRESS 2933s /tmp/tmp.VVynX1hJhW/de_DE.utf8/LC_NAME 2933s /tmp/tmp.VVynX1hJhW/de_DE.utf8/LC_IDENTIFICATION 2933s /tmp/tmp.VVynX1hJhW/de_DE.utf8/LC_TELEPHONE 2933s /tmp/tmp.VVynX1hJhW/de_DE.utf8/LC_MEASUREMENT 2933s /tmp/tmp.VVynX1hJhW/de_DE.utf8/LC_MONETARY 2933s /tmp/tmp.VVynX1hJhW/de_DE.utf8/LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/de_DE.utf8/LC_MESSAGES/SYS_LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/de_DE.utf8/LC_TIME 2933s /tmp/tmp.VVynX1hJhW/de_DE.utf8/LC_COLLATE 2933s /tmp/tmp.VVynX1hJhW/de_DE.utf8/LC_NUMERIC 2933s /tmp/tmp.VVynX1hJhW/de_DE.utf8/LC_CTYPE 2933s /tmp/tmp.VVynX1hJhW/sv_SE 2933s /tmp/tmp.VVynX1hJhW/sv_SE/LC_PAPER 2933s /tmp/tmp.VVynX1hJhW/sv_SE/LC_ADDRESS 2933s /tmp/tmp.VVynX1hJhW/sv_SE/LC_NAME 2933s /tmp/tmp.VVynX1hJhW/sv_SE/LC_IDENTIFICATION 2933s /tmp/tmp.VVynX1hJhW/sv_SE/LC_TELEPHONE 2933s /tmp/tmp.VVynX1hJhW/sv_SE/LC_MEASUREMENT 2933s /tmp/tmp.VVynX1hJhW/sv_SE/LC_MONETARY 2933s /tmp/tmp.VVynX1hJhW/sv_SE/LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/sv_SE/LC_MESSAGES/SYS_LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/sv_SE/LC_TIME 2933s /tmp/tmp.VVynX1hJhW/sv_SE/LC_COLLATE 2933s /tmp/tmp.VVynX1hJhW/sv_SE/LC_NUMERIC 2933s /tmp/tmp.VVynX1hJhW/sv_SE/LC_CTYPE 2933s /tmp/tmp.VVynX1hJhW/fa_IR 2933s /tmp/tmp.VVynX1hJhW/fa_IR/LC_PAPER 2933s /tmp/tmp.VVynX1hJhW/fa_IR/LC_ADDRESS 2933s /tmp/tmp.VVynX1hJhW/fa_IR/LC_NAME 2933s /tmp/tmp.VVynX1hJhW/fa_IR/LC_IDENTIFICATION 2933s /tmp/tmp.VVynX1hJhW/fa_IR/LC_TELEPHONE 2933s /tmp/tmp.VVynX1hJhW/fa_IR/LC_MEASUREMENT 2933s /tmp/tmp.VVynX1hJhW/fa_IR/LC_MONETARY 2933s /tmp/tmp.VVynX1hJhW/fa_IR/LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/fa_IR/LC_MESSAGES/SYS_LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/fa_IR/LC_TIME 2933s /tmp/tmp.VVynX1hJhW/fa_IR/LC_COLLATE 2933s /tmp/tmp.VVynX1hJhW/fa_IR/LC_NUMERIC 2933s /tmp/tmp.VVynX1hJhW/fa_IR/LC_CTYPE 2933s /tmp/tmp.VVynX1hJhW/sr_RS@latin 2933s /tmp/tmp.VVynX1hJhW/sr_RS@latin/LC_PAPER 2933s /tmp/tmp.VVynX1hJhW/sr_RS@latin/LC_ADDRESS 2933s /tmp/tmp.VVynX1hJhW/sr_RS@latin/LC_NAME 2933s /tmp/tmp.VVynX1hJhW/sr_RS@latin/LC_IDENTIFICATION 2933s /tmp/tmp.VVynX1hJhW/sr_RS@latin/LC_TELEPHONE 2933s /tmp/tmp.VVynX1hJhW/sr_RS@latin/LC_MEASUREMENT 2933s /tmp/tmp.VVynX1hJhW/sr_RS@latin/LC_MONETARY 2933s /tmp/tmp.VVynX1hJhW/sr_RS@latin/LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/sr_RS@latin/LC_MESSAGES/SYS_LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/sr_RS@latin/LC_TIME 2933s /tmp/tmp.VVynX1hJhW/sr_RS@latin/LC_COLLATE 2933s /tmp/tmp.VVynX1hJhW/sr_RS@latin/LC_NUMERIC 2933s /tmp/tmp.VVynX1hJhW/sr_RS@latin/LC_CTYPE 2933s /tmp/tmp.VVynX1hJhW/pl_PL.utf8 2933s /tmp/tmp.VVynX1hJhW/pl_PL.utf8/LC_PAPER 2933s /tmp/tmp.VVynX1hJhW/pl_PL.utf8/LC_ADDRESS 2933s /tmp/tmp.VVynX1hJhW/pl_PL.utf8/LC_NAME 2933s /tmp/tmp.VVynX1hJhW/pl_PL.utf8/LC_IDENTIFICATION 2933s /tmp/tmp.VVynX1hJhW/pl_PL.utf8/LC_TELEPHONE 2933s /tmp/tmp.VVynX1hJhW/pl_PL.utf8/LC_MEASUREMENT 2933s /tmp/tmp.VVynX1hJhW/pl_PL.utf8/LC_MONETARY 2933s /tmp/tmp.VVynX1hJhW/pl_PL.utf8/LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/pl_PL.utf8/LC_MESSAGES/SYS_LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/pl_PL.utf8/LC_TIME 2933s /tmp/tmp.VVynX1hJhW/pl_PL.utf8/LC_COLLATE 2933s /tmp/tmp.VVynX1hJhW/pl_PL.utf8/LC_NUMERIC 2933s /tmp/tmp.VVynX1hJhW/pl_PL.utf8/LC_CTYPE 2933s /tmp/tmp.VVynX1hJhW/ja_JP.utf8 2933s /tmp/tmp.VVynX1hJhW/ja_JP.utf8/LC_PAPER 2933s /tmp/tmp.VVynX1hJhW/ja_JP.utf8/LC_ADDRESS 2933s /tmp/tmp.VVynX1hJhW/ja_JP.utf8/LC_NAME 2933s /tmp/tmp.VVynX1hJhW/ja_JP.utf8/LC_IDENTIFICATION 2933s /tmp/tmp.VVynX1hJhW/ja_JP.utf8/LC_TELEPHONE 2933s /tmp/tmp.VVynX1hJhW/ja_JP.utf8/LC_MEASUREMENT 2933s /tmp/tmp.VVynX1hJhW/ja_JP.utf8/LC_MONETARY 2933s /tmp/tmp.VVynX1hJhW/ja_JP.utf8/LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/ja_JP.utf8/LC_MESSAGES/SYS_LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/ja_JP.utf8/LC_TIME 2933s /tmp/tmp.VVynX1hJhW/ja_JP.utf8/LC_COLLATE 2933s /tmp/tmp.VVynX1hJhW/ja_JP.utf8/LC_NUMERIC 2933s /tmp/tmp.VVynX1hJhW/ja_JP.utf8/LC_CTYPE 2933s /tmp/tmp.VVynX1hJhW/de_DE 2933s /tmp/tmp.VVynX1hJhW/de_DE/LC_PAPER 2933s /tmp/tmp.VVynX1hJhW/de_DE/LC_ADDRESS 2933s /tmp/tmp.VVynX1hJhW/de_DE/LC_NAME 2933s /tmp/tmp.VVynX1hJhW/de_DE/LC_IDENTIFICATION 2933s /tmp/tmp.VVynX1hJhW/de_DE/LC_TELEPHONE 2933s /tmp/tmp.VVynX1hJhW/de_DE/LC_MEASUREMENT 2933s /tmp/tmp.VVynX1hJhW/de_DE/LC_MONETARY 2933s /tmp/tmp.VVynX1hJhW/de_DE/LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/de_DE/LC_MESSAGES/SYS_LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/de_DE/LC_TIME 2933s /tmp/tmp.VVynX1hJhW/de_DE/LC_COLLATE 2933s /tmp/tmp.VVynX1hJhW/de_DE/LC_NUMERIC 2933s /tmp/tmp.VVynX1hJhW/de_DE/LC_CTYPE 2933s /tmp/tmp.VVynX1hJhW/lt_LT.utf8 2933s /tmp/tmp.VVynX1hJhW/lt_LT.utf8/LC_PAPER 2933s /tmp/tmp.VVynX1hJhW/lt_LT.utf8/LC_ADDRESS 2933s /tmp/tmp.VVynX1hJhW/lt_LT.utf8/LC_NAME 2933s /tmp/tmp.VVynX1hJhW/lt_LT.utf8/LC_IDENTIFICATION 2933s /tmp/tmp.VVynX1hJhW/lt_LT.utf8/LC_TELEPHONE 2933s /tmp/tmp.VVynX1hJhW/lt_LT.utf8/LC_MEASUREMENT 2933s /tmp/tmp.VVynX1hJhW/lt_LT.utf8/LC_MONETARY 2933s /tmp/tmp.VVynX1hJhW/lt_LT.utf8/LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/lt_LT.utf8/LC_MESSAGES/SYS_LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/lt_LT.utf8/LC_TIME 2933s /tmp/tmp.VVynX1hJhW/lt_LT.utf8/LC_COLLATE 2933s /tmp/tmp.VVynX1hJhW/lt_LT.utf8/LC_NUMERIC 2933s /tmp/tmp.VVynX1hJhW/lt_LT.utf8/LC_CTYPE 2933s /tmp/tmp.VVynX1hJhW/en_GB 2933s /tmp/tmp.VVynX1hJhW/en_GB/LC_PAPER 2933s /tmp/tmp.VVynX1hJhW/en_GB/LC_ADDRESS 2933s /tmp/tmp.VVynX1hJhW/en_GB/LC_NAME 2933s /tmp/tmp.VVynX1hJhW/en_GB/LC_IDENTIFICATION 2933s /tmp/tmp.VVynX1hJhW/en_GB/LC_TELEPHONE 2933s /tmp/tmp.VVynX1hJhW/en_GB/LC_MEASUREMENT 2933s /tmp/tmp.VVynX1hJhW/en_GB/LC_MONETARY 2933s /tmp/tmp.VVynX1hJhW/en_GB/LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/en_GB/LC_MESSAGES/SYS_LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/en_GB/LC_TIME 2933s /tmp/tmp.VVynX1hJhW/en_GB/LC_COLLATE 2933s /tmp/tmp.VVynX1hJhW/en_GB/LC_NUMERIC 2933s /tmp/tmp.VVynX1hJhW/en_GB/LC_CTYPE 2933s /tmp/tmp.VVynX1hJhW/de_DE@euro.utf8 2933s /tmp/tmp.VVynX1hJhW/de_DE@euro.utf8/LC_PAPER 2933s /tmp/tmp.VVynX1hJhW/de_DE@euro.utf8/LC_ADDRESS 2933s /tmp/tmp.VVynX1hJhW/de_DE@euro.utf8/LC_NAME 2933s /tmp/tmp.VVynX1hJhW/de_DE@euro.utf8/LC_IDENTIFICATION 2933s /tmp/tmp.VVynX1hJhW/de_DE@euro.utf8/LC_TELEPHONE 2933s /tmp/tmp.VVynX1hJhW/de_DE@euro.utf8/LC_MEASUREMENT 2933s /tmp/tmp.VVynX1hJhW/de_DE@euro.utf8/LC_MONETARY 2933s /tmp/tmp.VVynX1hJhW/de_DE@euro.utf8/LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/de_DE@euro.utf8/LC_MESSAGES/SYS_LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/de_DE@euro.utf8/LC_TIME 2933s /tmp/tmp.VVynX1hJhW/de_DE@euro.utf8/LC_COLLATE 2933s /tmp/tmp.VVynX1hJhW/de_DE@euro.utf8/LC_NUMERIC 2933s /tmp/tmp.VVynX1hJhW/de_DE@euro.utf8/LC_CTYPE 2933s /tmp/tmp.VVynX1hJhW/sr_RS 2933s /tmp/tmp.VVynX1hJhW/sr_RS/LC_PAPER 2933s /tmp/tmp.VVynX1hJhW/sr_RS/LC_ADDRESS 2933s /tmp/tmp.VVynX1hJhW/sr_RS/LC_NAME 2933s /tmp/tmp.VVynX1hJhW/sr_RS/LC_IDENTIFICATION 2933s /tmp/tmp.VVynX1hJhW/sr_RS/LC_TELEPHONE 2933s /tmp/tmp.VVynX1hJhW/sr_RS/LC_MEASUREMENT 2933s /tmp/tmp.VVynX1hJhW/sr_RS/LC_MONETARY 2933s /tmp/tmp.VVynX1hJhW/sr_RS/LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/sr_RS/LC_MESSAGES/SYS_LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/sr_RS/LC_TIME 2933s /tmp/tmp.VVynX1hJhW/sr_RS/LC_COLLATE 2933s /tmp/tmp.VVynX1hJhW/sr_RS/LC_NUMERIC 2933s /tmp/tmp.VVynX1hJhW/sr_RS/LC_CTYPE 2933s /tmp/tmp.VVynX1hJhW/sv_SE.utf8 2933s /tmp/tmp.VVynX1hJhW/sv_SE.utf8/LC_PAPER 2933s /tmp/tmp.VVynX1hJhW/sv_SE.utf8/LC_ADDRESS 2933s /tmp/tmp.VVynX1hJhW/sv_SE.utf8/LC_NAME 2933s /tmp/tmp.VVynX1hJhW/sv_SE.utf8/LC_IDENTIFICATION 2933s /tmp/tmp.VVynX1hJhW/sv_SE.utf8/LC_TELEPHONE 2933s /tmp/tmp.VVynX1hJhW/sv_SE.utf8/LC_MEASUREMENT 2933s /tmp/tmp.VVynX1hJhW/sv_SE.utf8/LC_MONETARY 2933s /tmp/tmp.VVynX1hJhW/sv_SE.utf8/LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/sv_SE.utf8/LC_MESSAGES/SYS_LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/sv_SE.utf8/LC_TIME 2933s /tmp/tmp.VVynX1hJhW/sv_SE.utf8/LC_COLLATE 2933s /tmp/tmp.VVynX1hJhW/sv_SE.utf8/LC_NUMERIC 2933s /tmp/tmp.VVynX1hJhW/sv_SE.utf8/LC_CTYPE 2933s /tmp/tmp.VVynX1hJhW/hr_HR.utf8 2933s /tmp/tmp.VVynX1hJhW/hr_HR.utf8/LC_PAPER 2933s /tmp/tmp.VVynX1hJhW/hr_HR.utf8/LC_ADDRESS 2933s /tmp/tmp.VVynX1hJhW/hr_HR.utf8/LC_NAME 2933s /tmp/tmp.VVynX1hJhW/hr_HR.utf8/LC_IDENTIFICATION 2933s /tmp/tmp.VVynX1hJhW/hr_HR.utf8/LC_TELEPHONE 2933s /tmp/tmp.VVynX1hJhW/hr_HR.utf8/LC_MEASUREMENT 2933s /tmp/tmp.VVynX1hJhW/hr_HR.utf8/LC_MONETARY 2933s /tmp/tmp.VVynX1hJhW/hr_HR.utf8/LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/hr_HR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/hr_HR.utf8/LC_TIME 2933s /tmp/tmp.VVynX1hJhW/hr_HR.utf8/LC_COLLATE 2933s /tmp/tmp.VVynX1hJhW/hr_HR.utf8/LC_NUMERIC 2933s /tmp/tmp.VVynX1hJhW/hr_HR.utf8/LC_CTYPE 2933s /tmp/tmp.VVynX1hJhW/ru_RU 2933s /tmp/tmp.VVynX1hJhW/ru_RU/LC_PAPER 2933s /tmp/tmp.VVynX1hJhW/ru_RU/LC_ADDRESS 2933s /tmp/tmp.VVynX1hJhW/ru_RU/LC_NAME 2933s /tmp/tmp.VVynX1hJhW/ru_RU/LC_IDENTIFICATION 2933s /tmp/tmp.VVynX1hJhW/ru_RU/LC_TELEPHONE 2933s /tmp/tmp.VVynX1hJhW/ru_RU/LC_MEASUREMENT 2933s /tmp/tmp.VVynX1hJhW/ru_RU/LC_MONETARY 2933s /tmp/tmp.VVynX1hJhW/ru_RU/LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/ru_RU/LC_MESSAGES/SYS_LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/ru_RU/LC_TIME 2933s /tmp/tmp.VVynX1hJhW/ru_RU/LC_COLLATE 2933s /tmp/tmp.VVynX1hJhW/ru_RU/LC_NUMERIC 2933s /tmp/tmp.VVynX1hJhW/ru_RU/LC_CTYPE 2933s /tmp/tmp.VVynX1hJhW/tr_TR 2933s /tmp/tmp.VVynX1hJhW/tr_TR/LC_PAPER 2933s /tmp/tmp.VVynX1hJhW/tr_TR/LC_ADDRESS 2933s /tmp/tmp.VVynX1hJhW/tr_TR/LC_NAME 2933s /tmp/tmp.VVynX1hJhW/tr_TR/LC_IDENTIFICATION 2933s /tmp/tmp.VVynX1hJhW/tr_TR/LC_TELEPHONE 2933s /tmp/tmp.VVynX1hJhW/tr_TR/LC_MEASUREMENT 2933s /tmp/tmp.VVynX1hJhW/tr_TR/LC_MONETARY 2933s /tmp/tmp.VVynX1hJhW/tr_TR/LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/tr_TR/LC_MESSAGES/SYS_LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/tr_TR/LC_TIME 2933s /tmp/tmp.VVynX1hJhW/tr_TR/LC_COLLATE 2933s /tmp/tmp.VVynX1hJhW/tr_TR/LC_NUMERIC 2933s /tmp/tmp.VVynX1hJhW/tr_TR/LC_CTYPE 2933s /tmp/tmp.VVynX1hJhW/tt_RU 2933s /tmp/tmp.VVynX1hJhW/tt_RU/LC_PAPER 2933s /tmp/tmp.VVynX1hJhW/tt_RU/LC_ADDRESS 2933s /tmp/tmp.VVynX1hJhW/tt_RU/LC_NAME 2933s /tmp/tmp.VVynX1hJhW/tt_RU/LC_IDENTIFICATION 2933s /tmp/tmp.VVynX1hJhW/tt_RU/LC_TELEPHONE 2933s /tmp/tmp.VVynX1hJhW/tt_RU/LC_MEASUREMENT 2933s /tmp/tmp.VVynX1hJhW/tt_RU/LC_MONETARY 2933s /tmp/tmp.VVynX1hJhW/tt_RU/LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/tt_RU/LC_MESSAGES/SYS_LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/tt_RU/LC_TIME 2933s /tmp/tmp.VVynX1hJhW/tt_RU/LC_COLLATE 2933s /tmp/tmp.VVynX1hJhW/tt_RU/LC_NUMERIC 2933s /tmp/tmp.VVynX1hJhW/tt_RU/LC_CTYPE 2933s /tmp/tmp.VVynX1hJhW/pl_PL 2933s /tmp/tmp.VVynX1hJhW/pl_PL/LC_PAPER 2933s /tmp/tmp.VVynX1hJhW/pl_PL/LC_ADDRESS 2933s /tmp/tmp.VVynX1hJhW/pl_PL/LC_NAME 2933s /tmp/tmp.VVynX1hJhW/pl_PL/LC_IDENTIFICATION 2933s /tmp/tmp.VVynX1hJhW/pl_PL/LC_TELEPHONE 2933s /tmp/tmp.VVynX1hJhW/pl_PL/LC_MEASUREMENT 2933s /tmp/tmp.VVynX1hJhW/pl_PL/LC_MONETARY 2933s /tmp/tmp.VVynX1hJhW/pl_PL/LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/pl_PL/LC_MESSAGES/SYS_LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/pl_PL/LC_TIME 2933s /tmp/tmp.VVynX1hJhW/pl_PL/LC_COLLATE 2933s /tmp/tmp.VVynX1hJhW/pl_PL/LC_NUMERIC 2933s /tmp/tmp.VVynX1hJhW/pl_PL/LC_CTYPE 2933s /tmp/tmp.VVynX1hJhW/pl_PL.iso88592 2933s /tmp/tmp.VVynX1hJhW/pl_PL.iso88592/LC_PAPER 2933s /tmp/tmp.VVynX1hJhW/pl_PL.iso88592/LC_ADDRESS 2933s /tmp/tmp.VVynX1hJhW/pl_PL.iso88592/LC_NAME 2933s /tmp/tmp.VVynX1hJhW/pl_PL.iso88592/LC_IDENTIFICATION 2933s /tmp/tmp.VVynX1hJhW/pl_PL.iso88592/LC_TELEPHONE 2933s /tmp/tmp.VVynX1hJhW/pl_PL.iso88592/LC_MEASUREMENT 2933s /tmp/tmp.VVynX1hJhW/pl_PL.iso88592/LC_MONETARY 2933s /tmp/tmp.VVynX1hJhW/pl_PL.iso88592/LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/pl_PL.iso88592/LC_MESSAGES/SYS_LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/pl_PL.iso88592/LC_TIME 2933s /tmp/tmp.VVynX1hJhW/pl_PL.iso88592/LC_COLLATE 2933s /tmp/tmp.VVynX1hJhW/pl_PL.iso88592/LC_NUMERIC 2933s /tmp/tmp.VVynX1hJhW/pl_PL.iso88592/LC_CTYPE 2933s /tmp/tmp.VVynX1hJhW/fa_IR.utf8 2933s /tmp/tmp.VVynX1hJhW/fa_IR.utf8/LC_PAPER 2933s /tmp/tmp.VVynX1hJhW/fa_IR.utf8/LC_ADDRESS 2933s /tmp/tmp.VVynX1hJhW/fa_IR.utf8/LC_NAME 2933s /tmp/tmp.VVynX1hJhW/fa_IR.utf8/LC_IDENTIFICATION 2933s /tmp/tmp.VVynX1hJhW/fa_IR.utf8/LC_TELEPHONE 2933s /tmp/tmp.VVynX1hJhW/fa_IR.utf8/LC_MEASUREMENT 2933s /tmp/tmp.VVynX1hJhW/fa_IR.utf8/LC_MONETARY 2933s /tmp/tmp.VVynX1hJhW/fa_IR.utf8/LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/fa_IR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/fa_IR.utf8/LC_TIME 2933s /tmp/tmp.VVynX1hJhW/fa_IR.utf8/LC_COLLATE 2933s /tmp/tmp.VVynX1hJhW/fa_IR.utf8/LC_NUMERIC 2933s /tmp/tmp.VVynX1hJhW/fa_IR.utf8/LC_CTYPE 2933s /tmp/tmp.VVynX1hJhW/el_GR.utf8 2933s /tmp/tmp.VVynX1hJhW/el_GR.utf8/LC_PAPER 2933s /tmp/tmp.VVynX1hJhW/el_GR.utf8/LC_ADDRESS 2933s /tmp/tmp.VVynX1hJhW/el_GR.utf8/LC_NAME 2933s /tmp/tmp.VVynX1hJhW/el_GR.utf8/LC_IDENTIFICATION 2933s /tmp/tmp.VVynX1hJhW/el_GR.utf8/LC_TELEPHONE 2933s /tmp/tmp.VVynX1hJhW/el_GR.utf8/LC_MEASUREMENT 2933s /tmp/tmp.VVynX1hJhW/el_GR.utf8/LC_MONETARY 2933s /tmp/tmp.VVynX1hJhW/el_GR.utf8/LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/el_GR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/el_GR.utf8/LC_TIME 2933s /tmp/tmp.VVynX1hJhW/el_GR.utf8/LC_COLLATE 2933s /tmp/tmp.VVynX1hJhW/el_GR.utf8/LC_NUMERIC 2933s /tmp/tmp.VVynX1hJhW/el_GR.utf8/LC_CTYPE 2933s /tmp/tmp.VVynX1hJhW/fr_FR.utf8 2933s /tmp/tmp.VVynX1hJhW/fr_FR.utf8/LC_PAPER 2933s /tmp/tmp.VVynX1hJhW/fr_FR.utf8/LC_ADDRESS 2933s /tmp/tmp.VVynX1hJhW/fr_FR.utf8/LC_NAME 2933s /tmp/tmp.VVynX1hJhW/fr_FR.utf8/LC_IDENTIFICATION 2933s /tmp/tmp.VVynX1hJhW/fr_FR.utf8/LC_TELEPHONE 2933s /tmp/tmp.VVynX1hJhW/fr_FR.utf8/LC_MEASUREMENT 2933s /tmp/tmp.VVynX1hJhW/fr_FR.utf8/LC_MONETARY 2933s /tmp/tmp.VVynX1hJhW/fr_FR.utf8/LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/fr_FR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/fr_FR.utf8/LC_TIME 2933s /tmp/tmp.VVynX1hJhW/fr_FR.utf8/LC_COLLATE 2933s /tmp/tmp.VVynX1hJhW/fr_FR.utf8/LC_NUMERIC 2933s /tmp/tmp.VVynX1hJhW/fr_FR.utf8/LC_CTYPE 2933s /tmp/tmp.VVynX1hJhW/en_US 2933s /tmp/tmp.VVynX1hJhW/en_US/LC_PAPER 2933s /tmp/tmp.VVynX1hJhW/en_US/LC_ADDRESS 2933s /tmp/tmp.VVynX1hJhW/en_US/LC_NAME 2933s /tmp/tmp.VVynX1hJhW/en_US/LC_IDENTIFICATION 2933s /tmp/tmp.VVynX1hJhW/en_US/LC_TELEPHONE 2933s /tmp/tmp.VVynX1hJhW/en_US/LC_MEASUREMENT 2933s /tmp/tmp.VVynX1hJhW/en_US/LC_MONETARY 2933s /tmp/tmp.VVynX1hJhW/en_US/LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/en_US/LC_MESSAGES/SYS_LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/en_US/LC_TIME 2933s /tmp/tmp.VVynX1hJhW/en_US/LC_COLLATE 2933s /tmp/tmp.VVynX1hJhW/en_US/LC_NUMERIC 2933s /tmp/tmp.VVynX1hJhW/en_US/LC_CTYPE 2933s /tmp/tmp.VVynX1hJhW/en_GB.utf8 2933s /tmp/tmp.VVynX1hJhW/en_GB.utf8/LC_PAPER 2933s /tmp/tmp.VVynX1hJhW/en_GB.utf8/LC_ADDRESS 2933s /tmp/tmp.VVynX1hJhW/en_GB.utf8/LC_NAME 2933s /tmp/tmp.VVynX1hJhW/en_GB.utf8/LC_IDENTIFICATION 2933s /tmp/tmp.VVynX1hJhW/en_GB.utf8/LC_TELEPHONE 2933s /tmp/tmp.VVynX1hJhW/en_GB.utf8/LC_MEASUREMENT 2933s /tmp/tmp.VVynX1hJhW/en_GB.utf8/LC_MONETARY 2933s /tmp/tmp.VVynX1hJhW/en_GB.utf8/LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/en_GB.utf8/LC_MESSAGES/SYS_LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/en_GB.utf8/LC_TIME 2933s /tmp/tmp.VVynX1hJhW/en_GB.utf8/LC_COLLATE 2933s /tmp/tmp.VVynX1hJhW/en_GB.utf8/LC_NUMERIC 2933s /tmp/tmp.VVynX1hJhW/en_GB.utf8/LC_CTYPE 2933s /tmp/tmp.VVynX1hJhW/ru_RU.utf8 2933s /tmp/tmp.VVynX1hJhW/ru_RU.utf8/LC_PAPER 2933s /tmp/tmp.VVynX1hJhW/ru_RU.utf8/LC_ADDRESS 2933s /tmp/tmp.VVynX1hJhW/ru_RU.utf8/LC_NAME 2933s /tmp/tmp.VVynX1hJhW/ru_RU.utf8/LC_IDENTIFICATION 2933s /tmp/tmp.VVynX1hJhW/ru_RU.utf8/LC_TELEPHONE 2933s /tmp/tmp.VVynX1hJhW/ru_RU.utf8/LC_MEASUREMENT 2933s /tmp/tmp.VVynX1hJhW/ru_RU.utf8/LC_MONETARY 2933s /tmp/tmp.VVynX1hJhW/ru_RU.utf8/LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/ru_RU.utf8/LC_MESSAGES/SYS_LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/ru_RU.utf8/LC_TIME 2933s /tmp/tmp.VVynX1hJhW/ru_RU.utf8/LC_COLLATE 2933s /tmp/tmp.VVynX1hJhW/ru_RU.utf8/LC_NUMERIC 2933s /tmp/tmp.VVynX1hJhW/ru_RU.utf8/LC_CTYPE 2933s /tmp/tmp.VVynX1hJhW/tt_RU@iqtelif 2933s /tmp/tmp.VVynX1hJhW/tt_RU@iqtelif/LC_PAPER 2933s /tmp/tmp.VVynX1hJhW/tt_RU@iqtelif/LC_ADDRESS 2933s /tmp/tmp.VVynX1hJhW/tt_RU@iqtelif/LC_NAME 2933s /tmp/tmp.VVynX1hJhW/tt_RU@iqtelif/LC_IDENTIFICATION 2933s /tmp/tmp.VVynX1hJhW/tt_RU@iqtelif/LC_TELEPHONE 2933s /tmp/tmp.VVynX1hJhW/tt_RU@iqtelif/LC_MEASUREMENT 2933s /tmp/tmp.VVynX1hJhW/tt_RU@iqtelif/LC_MONETARY 2933s /tmp/tmp.VVynX1hJhW/tt_RU@iqtelif/LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/tt_RU@iqtelif/LC_MESSAGES/SYS_LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/tt_RU@iqtelif/LC_TIME 2933s /tmp/tmp.VVynX1hJhW/tt_RU@iqtelif/LC_COLLATE 2933s /tmp/tmp.VVynX1hJhW/tt_RU@iqtelif/LC_NUMERIC 2933s /tmp/tmp.VVynX1hJhW/tt_RU@iqtelif/LC_CTYPE 2933s /tmp/tmp.VVynX1hJhW/ja_JP.eucjp 2933s /tmp/tmp.VVynX1hJhW/ja_JP.eucjp/LC_PAPER 2933s /tmp/tmp.VVynX1hJhW/ja_JP.eucjp/LC_ADDRESS 2933s /tmp/tmp.VVynX1hJhW/ja_JP.eucjp/LC_NAME 2933s /tmp/tmp.VVynX1hJhW/ja_JP.eucjp/LC_IDENTIFICATION 2933s /tmp/tmp.VVynX1hJhW/ja_JP.eucjp/LC_TELEPHONE 2933s /tmp/tmp.VVynX1hJhW/ja_JP.eucjp/LC_MEASUREMENT 2933s /tmp/tmp.VVynX1hJhW/ja_JP.eucjp/LC_MONETARY 2933s /tmp/tmp.VVynX1hJhW/ja_JP.eucjp/LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/ja_JP.eucjp/LC_MESSAGES/SYS_LC_MESSAGES 2933s /tmp/tmp.VVynX1hJhW/ja_JP.eucjp/LC_TIME 2933s /tmp/tmp.VVynX1hJhW/ja_JP.eucjp/LC_COLLATE 2933s /tmp/tmp.VVynX1hJhW/ja_JP.eucjp/LC_NUMERIC 2933s /tmp/tmp.VVynX1hJhW/ja_JP.eucjp/LC_CTYPE 2933s 1..323 2933s # Running test: glib/null-settings-backend.test 2933s TAP version 14 2933s # random seed: R02S6e62649467fc63fe36c8d198653804d4 2933s 1..1 2933s # Start of null-settings-backend tests 2933s ok 1 /null-settings-backend/extension-point-registered 2933s # End of null-settings-backend tests 2933s ok - glib/null-settings-backend.test 2934s # Running test: glib/scannerapi.test 2934s TAP version 14 2934s # random seed: R02S4adfd16e4fad97b8808e413ee74dafd0 2934s 1..4 2934s # Start of scanner tests 2934s ok 1 /scanner/warn 2934s ok 2 /scanner/error 2934s ok 3 /scanner/symbols 2934s ok 4 /scanner/tokens 2934s # End of scanner tests 2934s ok - glib/scannerapi.test 2934s # Running test: glib/g-icon.test 2934s TAP version 14 2934s # random seed: R02S32ac8046d57cba8b5b9bd46c96c9784a 2934s 1..6 2934s # Start of icons tests 2934s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 2934s ok 1 /icons/to-string 2934s ok 2 /icons/serialize 2934s ok 3 /icons/themed 2934s ok 4 /icons/emblemed 2934s ok 5 /icons/file 2934s ok 6 /icons/bytes 2934s # End of icons tests 2934s ok - glib/g-icon.test 2934s # Running test: glib/type-flags.test 2934s TAP version 14 2934s # random seed: R02S2533a9f55697e13675f016f33080aa89 2934s 1..4 2934s # Start of type tests 2934s # Start of flags tests 2934s ok 1 /type/flags/interface 2934s ok 2 /type/flags/final 2934s # /type/flags/deprecated summary: Test that trying to instantiate a deprecated type results in a warning. 2934s ok 3 /type/flags/deprecated 2934s # Start of final tests 2934s ok 4 /type/flags/final/instance-check 2934s # End of final tests 2934s # End of flags tests 2934s # End of type tests 2934s ok - glib/type-flags.test 2934s # Running test: glib/performance-threaded.test 2934s Running test "liststore-is-a" 2935s 1121 runs, min/avg/max = 0.847/0.888/5.232 ms 2935s Running test "liststore-interface-peek" 2936s 3127 runs, min/avg/max = 0.285/0.316/0.934 ms 2936s Running test "liststore-interface-peek-same" 2938s 3088 runs, min/avg/max = 0.287/0.322/6.260 ms 2938s ok - glib/performance-threaded.test 2938s # Running test: glib/gsocketclient-slow.test 2938s TAP version 14 2938s # random seed: R02S1a10eac89e181f72bafd8c613fc04169 2938s 1..4 2938s # Start of socket-client tests 2938s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3184 2938s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ?gio-proxy-resolver? 2938s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x556458583a70 and GSocketClientAsyncConnectData 0x55645857e0d0 2938s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 2938s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 2938s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x556458587600 for GSocketClientAsyncConnectData 0x55645857e0d0 2938s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 2938s # GLib-GIO-DEBUG: GSocketClient: Connection attempt delay reached, trying another enumeration 2938s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 2938s # GLib-GIO-DEBUG: GSocketClient: Connection attempt failed: Connection refused 2938s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 2938s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 2938s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x556458587600 for GSocketClientAsyncConnectData 0x55645857e0d0 2938s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 2939s # Executing: glib/gsocketclient-slow.test 2939s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 2939s # GLib-GIO-DEBUG: GSocketClient: Connection attempt failed: Connection refused 2939s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Could not connect to localhost: Connection refused 2939s ok 1 /socket-client/connection-fail 2939s # slow test /socket-client/connection-fail executed in 1.32 secs 2939s # Start of happy-eyeballs tests 2939s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x556458586320 and GSocketClientAsyncConnectData 0x556458586f70 2939s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 2939s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 2939s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x55645858aaf0 for GSocketClientAsyncConnectData 0x556458586f70 2939s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 2940s # GLib-GIO-DEBUG: GSocketClient: Connection attempt delay reached, trying another enumeration 2940s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 2940s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 2940s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 2940s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 2940s ok 2 /socket-client/happy-eyeballs/slow 2940s # slow test /socket-client/happy-eyeballs/slow executed in 0.65 secs 2940s # Start of cancellation tests 2940s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x556458586c50 and GSocketClientAsyncConnectData 0x55645858aa20 2940s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 2940s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Operation was cancelled 2940s ok 3 /socket-client/happy-eyeballs/cancellation/instant 2940s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x556458586170 and GSocketClientAsyncConnectData 0x55645858a630 2940s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 2940s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 2940s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x55645858b1f0 for GSocketClientAsyncConnectData 0x55645858a630 2940s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 2940s # GLib-GIO-DEBUG: GSocketClient: Connection attempt delay reached, trying another enumeration 2940s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 2940s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 2940s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 2940s # GLib-GIO-DEBUG: GSocketClient: Connection cancelled! 2940s ok 4 /socket-client/happy-eyeballs/cancellation/delayed 2940s # slow test /socket-client/happy-eyeballs/cancellation/delayed executed in 0.61 secs 2940s # End of cancellation tests 2940s # End of happy-eyeballs tests 2940s # End of socket-client tests 2940s ok - glib/gsocketclient-slow.test 2940s # Running test: glib/utf8-performance.test 2940s TAP version 14 2940s # random seed: R02S8f03ba78bbf420f8191bfda3880a4596 2940s 1..36 2940s # Start of utf8 tests 2940s # Start of perf tests 2940s # Start of get_char tests 2940s # max perf: 0.1 MB/s 2940s ok 1 /utf8/perf/get_char/ascii 2940s # max perf: 0.6 MB/s 2940s ok 2 /utf8/perf/get_char/latin1 2940s # max perf: 26.7 MB/s 2940s ok 3 /utf8/perf/get_char/cyrillic 2940s # max perf: 13.0 MB/s 2940s ok 4 /utf8/perf/get_char/han 2940s # End of get_char tests 2940s # Start of get_char-backwards tests 2940s # max perf: 0.6 MB/s 2940s ok 5 /utf8/perf/get_char-backwards/ascii 2940s # max perf: 5.2 MB/s 2940s ok 6 /utf8/perf/get_char-backwards/latin1 2940s # max perf: 17.8 MB/s 2940s ok 7 /utf8/perf/get_char-backwards/cyrillic 2940s # max perf: 22.3 MB/s 2940s ok 8 /utf8/perf/get_char-backwards/han 2940s # End of get_char-backwards tests 2940s # Start of get_char_validated tests 2940s # max perf: 0.6 MB/s 2940s ok 9 /utf8/perf/get_char_validated/ascii 2940s # max perf: 1.5 MB/s 2940s ok 10 /utf8/perf/get_char_validated/latin1 2940s # max perf: 26.7 MB/s 2940s ok 11 /utf8/perf/get_char_validated/cyrillic 2940s # max perf: 4.9 MB/s 2940s ok 12 /utf8/perf/get_char_validated/han 2940s # End of get_char_validated tests 2940s # Start of utf8_to_ucs4 tests 2940s # max perf: 0.3 MB/s 2940s ok 13 /utf8/perf/utf8_to_ucs4/ascii 2940s # max perf: 0.4 MB/s 2940s ok 14 /utf8/perf/utf8_to_ucs4/latin1 2940s # max perf: 17.8 MB/s 2940s ok 15 /utf8/perf/utf8_to_ucs4/cyrillic 2940s # max perf: 4.0 MB/s 2940s ok 16 /utf8/perf/utf8_to_ucs4/han 2940s # End of utf8_to_ucs4 tests 2940s # Start of utf8_to_ucs4-sized tests 2940s # max perf: 0.7 MB/s 2940s ok 17 /utf8/perf/utf8_to_ucs4-sized/ascii 2940s # max perf: 1.0 MB/s 2940s ok 18 /utf8/perf/utf8_to_ucs4-sized/latin1 2940s # max perf: 20.0 MB/s 2940s ok 19 /utf8/perf/utf8_to_ucs4-sized/cyrillic 2940s # max perf: 6.2 MB/s 2940s ok 20 /utf8/perf/utf8_to_ucs4-sized/han 2940s # End of utf8_to_ucs4-sized tests 2940s # Start of utf8_to_ucs4_fast tests 2940s # max perf: 0.3 MB/s 2940s ok 21 /utf8/perf/utf8_to_ucs4_fast/ascii 2940s # max perf: 3.9 MB/s 2940s ok 22 /utf8/perf/utf8_to_ucs4_fast/latin1 2940s # max perf: 80.0 MB/s 2940s ok 23 /utf8/perf/utf8_to_ucs4_fast/cyrillic 2940s # max perf: 8.2 MB/s 2940s ok 24 /utf8/perf/utf8_to_ucs4_fast/han 2940s # End of utf8_to_ucs4_fast tests 2940s # Start of utf8_to_ucs4_fast-sized tests 2940s # max perf: 0.7 MB/s 2940s ok 25 /utf8/perf/utf8_to_ucs4_fast-sized/ascii 2940s # max perf: 33.5 MB/s 2940s ok 26 /utf8/perf/utf8_to_ucs4_fast-sized/latin1 2940s # max perf: 80.0 MB/s 2940s ok 27 /utf8/perf/utf8_to_ucs4_fast-sized/cyrillic 2940s # max perf: 78.0 MB/s 2940s ok 28 /utf8/perf/utf8_to_ucs4_fast-sized/han 2940s # End of utf8_to_ucs4_fast-sized tests 2940s # Start of utf8_validate tests 2940s # max perf: 1.4 MB/s 2940s ok 29 /utf8/perf/utf8_validate/ascii 2940s ok - glib/utf8-performance.test 2940s # max perf: 1.6 MB/s 2940s ok 30 /utf8/perf/utf8_validate/latin1 2940s # max perf: 53.3 MB/s 2940s ok 31 /utf8/perf/utf8_validate/cyrillic 2940s # max perf: 3.2 MB/s 2940s ok 32 /utf8/perf/utf8_validate/han 2940s # End of utf8_validate tests 2940s # Start of utf8_validate-sized tests 2940s # max perf: 1.3 MB/s 2940s ok 33 /utf8/perf/utf8_validate-sized/ascii 2940s # max perf: 67.0 MB/s 2940s ok 34 /utf8/perf/utf8_validate-sized/latin1 2940s # max perf: 80.0 MB/s 2940s ok 35 /utf8/perf/utf8_validate-sized/cyrillic 2940s # max perf: 156.0 MB/s 2940s ok 36 /utf8/perf/utf8_validate-sized/han 2940s # End of utf8_validate-sized tests 2940s # End of perf tests 2940s # End of utf8 tests 2940s # Running test: glib/defaultvalue.test 2941s TAP version 14 2941s # random seed: R02Sfdca1033ff0f66ca75949451585b1c95 2941s 1..84 2941s # Start of Default Values tests 2941s ok 1 /Default Values/GAppInfoMonitor # SKIP singleton 2941s ok 2 /Default Values/GAppLaunchContext 2941s ok 3 /Default Values/GApplicationCommandLine 2941s # skipping GApplication:is-remote 2941s ok 4 /Default Values/GApplication 2941s ok 5 /Default Values/GBinding # SKIP mandatory construct params 2941s ok 6 /Default Values/GBindingGroup 2941s ok 7 /Default Values/GBufferedInputStream # SKIP mandatory construct params 2941s ok 8 /Default Values/GBufferedOutputStream # SKIP mandatory construct params 2941s ok 9 /Default Values/GBytesIcon 2941s ok 10 /Default Values/GCancellable 2941s ok 11 /Default Values/GCharsetConverter # SKIP mandatory construct params 2941s ok 12 /Default Values/GConverterInputStream # SKIP mandatory construct params 2941s ok 13 /Default Values/GConverterOutputStream # SKIP mandatory construct params 2941s ok 14 /Default Values/GCredentials 2941s ok 15 /Default Values/GDataInputStream # SKIP mandatory construct params 2941s ok 16 /Default Values/GDataOutputStream # SKIP mandatory construct params 2941s ok 17 /Default Values/GDBusActionGroup # SKIP mandatory construct params 2941s ok 18 /Default Values/GDBusAuthObserver 2941s ok 19 /Default Values/GDBusConnection # SKIP mandatory construct params 2941s ok 20 /Default Values/GDBusMenuModel # SKIP crash in finalize 2941s ok 21 /Default Values/GDBusMessage 2941s ok 22 /Default Values/GDBusMethodInvocation # SKIP crash in finalize 2941s ok 23 /Default Values/GDBusObjectManagerClient # SKIP mandatory construct params 2941s ok 24 /Default Values/GDBusObjectManagerServer # SKIP mandatory construct params 2941s ok 25 /Default Values/GDBusObjectProxy 2941s ok 26 /Default Values/GDBusObjectSkeleton 2941s ok 27 /Default Values/GDBusProxy # SKIP mandatory construct params 2941s ok 28 /Default Values/GDBusServer # SKIP mandatory construct params 2941s ok 29 /Default Values/GEmblem 2941s ok 30 /Default Values/GEmblemedIcon 2941s ok 31 /Default Values/GFileEnumerator # SKIP should be abstract 2941s ok 32 /Default Values/GFileInfo 2941s ok 33 /Default Values/GFileInputStream 2941s ok 34 /Default Values/GFileIOStream # SKIP should be abstract 2941s ok 35 /Default Values/GFileOutputStream 2941s ok 36 /Default Values/GFilenameCompleter 2941s ok 37 /Default Values/GInetAddress # SKIP mandatory construct params 2941s ok 38 /Default Values/GInetAddressMask # SKIP initialization failed 2941s ok 39 /Default Values/GInetSocketAddress # SKIP mandatory construct params 2941s ok 40 /Default Values/GInitiallyUnowned 2941s ok 41 /Default Values/GIOModule 2941s ok 42 /Default Values/GListStore 2941s ok 43 /Default Values/GMemoryInputStream 2941s ok 44 /Default Values/GMemoryOutputStream 2941s ok 45 /Default Values/GMenu 2941s ok 46 /Default Values/GMenuItem 2941s ok 47 /Default Values/GMountOperation 2941s ok 48 /Default Values/GNativeSocketAddress 2941s ok 49 /Default Values/GNetworkAddress 2941s ok 50 /Default Values/GNetworkService 2941s ok 51 /Default Values/GNotification 2941s ok 52 /Default Values/GObject 2941s ok 53 /Default Values/GPropertyAction # SKIP mandatory construct params 2941s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ?gio-proxy-resolver? 2941s # skipping GProxyAddressEnumerator:proxy-resolver 2941s ok 54 /Default Values/GProxyAddressEnumerator 2941s ok 55 /Default Values/GProxyAddress # SKIP mandatory construct params 2941s ok 56 /Default Values/GSettings # SKIP mandatory construct params 2941s ok 57 /Default Values/GSignalGroup 2941s ok 58 /Default Values/GSimpleAction 2941s ok 59 /Default Values/GSimpleActionGroup 2941s ok 60 /Default Values/GSimpleAsyncResult 2941s ok 61 /Default Values/GSimpleIOStream # SKIP mandatory construct params 2941s ok 62 /Default Values/GSimplePermission 2941s ok 63 /Default Values/GSimpleProxyResolver 2941s # skipping GSocketClient:proxy-resolver 2941s ok 64 /Default Values/GSocketClient 2941s ok 65 /Default Values/GSocketConnection # SKIP mandatory construct params 2941s ok 66 /Default Values/GSocket # SKIP initialization failed 2941s ok 67 /Default Values/GSocketListener 2941s ok 68 /Default Values/GSocketService 2941s ok 69 /Default Values/GSubprocess # SKIP initialization failed 2941s ok 70 /Default Values/GSubprocessLauncher 2941s # GLib-GIO-DEBUG: GTask 0x555b973eff20 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 2941s ok 71 /Default Values/GTask 2941s ok 72 /Default Values/GTcpConnection # SKIP mandatory construct params 2941s ok 73 /Default Values/GTcpWrapperConnection # SKIP mandatory construct params 2941s ok 74 /Default Values/GTestDBus 2941s ok 75 /Default Values/GThemedIcon # SKIP mandatory construct params 2941s ok 76 /Default Values/GThreadedSocketService 2941s ok 77 /Default Values/GTlsInteraction 2941s ok 78 /Default Values/GTlsPassword 2941s ok 79 /Default Values/GUnixConnection # SKIP mandatory construct params 2941s ok 80 /Default Values/GUnixFDList 2941s ok 81 /Default Values/GVfs 2941s ok 82 /Default Values/GVolumeMonitor 2941s ok 83 /Default Values/GZlibCompressor 2941s ok 84 /Default Values/GZlibDecompressor 2941s # End of Default Values tests 2941s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2941s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2941s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2941s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2941s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2941s ok - glib/defaultvalue.test 2941s # Running test: glib/contenttype.test 2941s TAP version 14 2941s # random seed: R02S4959912a6b8101ee84266dc3e8a0b8db 2941s 1..14 2941s # Start of contenttype tests 2941s ok 1 /contenttype/guess 2941s ok 2 /contenttype/guess_svg_from_data 2941s ok 3 /contenttype/mime_to_content # SKIP mime from content type test not implemented on UNIX 2941s ok 4 /contenttype/mime_from_content # SKIP mime from content type test not implemented on UNIX 2941s ok 5 /contenttype/unknown 2941s ok 6 /contenttype/subtype 2941s ok 7 /contenttype/list 2941s ok 8 /contenttype/executable 2941s ok 9 /contenttype/description 2941s ok 10 /contenttype/icon 2941s ok 11 /contenttype/symbolic-icon 2941s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 2941s ok 12 /contenttype/tree 2941s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3168 2941s ok 13 /contenttype/tree_invalid_encoding 2941s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=782311 2941s ok 14 /contenttype/test_type_is_a_special_case 2941s # End of contenttype tests 2941s ok - glib/contenttype.test 2941s # Running test: glib/fileutils.test 2941s TAP version 14 2941s # random seed: R02S3628df22283b2f69d33e4999ea9716f6 2941s 1..27 2941s # Start of fileutils tests 2941s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0T8U52/fileutils/paths/.dirs/home 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0T8U52/fileutils/paths/.dirs/cache 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0T8U52/fileutils/paths/.dirs/system-config1:/tmp/test_fileutils_0T8U52/fileutils/paths/.dirs/system-config2 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0T8U52/fileutils/paths/.dirs/config 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0T8U52/fileutils/paths/.dirs/system-data1:/tmp/test_fileutils_0T8U52/fileutils/paths/.dirs/system-data2 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0T8U52/fileutils/paths/.dirs/data 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0T8U52/fileutils/paths/.dirs/state 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0T8U52/fileutils/paths/.dirs/runtime 2941s ok 1 /fileutils/paths 2941s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0T8U52/fileutils/build-path/.dirs/home 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0T8U52/fileutils/build-path/.dirs/cache 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0T8U52/fileutils/build-path/.dirs/system-config1:/tmp/test_fileutils_0T8U52/fileutils/build-path/.dirs/system-config2 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0T8U52/fileutils/build-path/.dirs/config 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0T8U52/fileutils/build-path/.dirs/system-data1:/tmp/test_fileutils_0T8U52/fileutils/build-path/.dirs/system-data2 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0T8U52/fileutils/build-path/.dirs/data 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0T8U52/fileutils/build-path/.dirs/state 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0T8U52/fileutils/build-path/.dirs/runtime 2941s ok 2 /fileutils/build-path 2941s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0T8U52/fileutils/build-pathv/.dirs/home 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0T8U52/fileutils/build-pathv/.dirs/cache 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0T8U52/fileutils/build-pathv/.dirs/system-config1:/tmp/test_fileutils_0T8U52/fileutils/build-pathv/.dirs/system-config2 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0T8U52/fileutils/build-pathv/.dirs/config 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0T8U52/fileutils/build-pathv/.dirs/system-data1:/tmp/test_fileutils_0T8U52/fileutils/build-pathv/.dirs/system-data2 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0T8U52/fileutils/build-pathv/.dirs/data 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0T8U52/fileutils/build-pathv/.dirs/state 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0T8U52/fileutils/build-pathv/.dirs/runtime 2941s ok 3 /fileutils/build-pathv 2941s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0T8U52/fileutils/build-filename/.dirs/home 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0T8U52/fileutils/build-filename/.dirs/cache 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0T8U52/fileutils/build-filename/.dirs/system-config1:/tmp/test_fileutils_0T8U52/fileutils/build-filename/.dirs/system-config2 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0T8U52/fileutils/build-filename/.dirs/config 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0T8U52/fileutils/build-filename/.dirs/system-data1:/tmp/test_fileutils_0T8U52/fileutils/build-filename/.dirs/system-data2 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0T8U52/fileutils/build-filename/.dirs/data 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0T8U52/fileutils/build-filename/.dirs/state 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0T8U52/fileutils/build-filename/.dirs/runtime 2941s ok 4 /fileutils/build-filename 2941s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0T8U52/fileutils/build-filenamev/.dirs/home 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0T8U52/fileutils/build-filenamev/.dirs/cache 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0T8U52/fileutils/build-filenamev/.dirs/system-config1:/tmp/test_fileutils_0T8U52/fileutils/build-filenamev/.dirs/system-config2 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0T8U52/fileutils/build-filenamev/.dirs/config 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0T8U52/fileutils/build-filenamev/.dirs/system-data1:/tmp/test_fileutils_0T8U52/fileutils/build-filenamev/.dirs/system-data2 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0T8U52/fileutils/build-filenamev/.dirs/data 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0T8U52/fileutils/build-filenamev/.dirs/state 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0T8U52/fileutils/build-filenamev/.dirs/runtime 2941s ok 5 /fileutils/build-filenamev 2941s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0T8U52/fileutils/mkdir-with-parents/.dirs/home 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0T8U52/fileutils/mkdir-with-parents/.dirs/cache 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0T8U52/fileutils/mkdir-with-parents/.dirs/system-config1:/tmp/test_fileutils_0T8U52/fileutils/mkdir-with-parents/.dirs/system-config2 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0T8U52/fileutils/mkdir-with-parents/.dirs/config 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0T8U52/fileutils/mkdir-with-parents/.dirs/system-data1:/tmp/test_fileutils_0T8U52/fileutils/mkdir-with-parents/.dirs/system-data2 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0T8U52/fileutils/mkdir-with-parents/.dirs/data 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0T8U52/fileutils/mkdir-with-parents/.dirs/state 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0T8U52/fileutils/mkdir-with-parents/.dirs/runtime 2941s # We do not have CAP_DAC_OVERRIDE or equivalent 2941s # Checking g_mkdir_with_parents() in subdir ./hum/ 2941s # Checking g_mkdir_with_parents() in subdir ./hii///haa/hee/ 2941s ok 6 /fileutils/mkdir-with-parents 2941s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0T8U52/fileutils/mkdir-with-parents-permission/.dirs/home 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0T8U52/fileutils/mkdir-with-parents-permission/.dirs/cache 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0T8U52/fileutils/mkdir-with-parents-permission/.dirs/system-config1:/tmp/test_fileutils_0T8U52/fileutils/mkdir-with-parents-permission/.dirs/system-config2 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0T8U52/fileutils/mkdir-with-parents-permission/.dirs/config 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0T8U52/fileutils/mkdir-with-parents-permission/.dirs/system-data1:/tmp/test_fileutils_0T8U52/fileutils/mkdir-with-parents-permission/.dirs/system-data2 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0T8U52/fileutils/mkdir-with-parents-permission/.dirs/data 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0T8U52/fileutils/mkdir-with-parents-permission/.dirs/state 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0T8U52/fileutils/mkdir-with-parents-permission/.dirs/runtime 2941s # We do not have CAP_DAC_OVERRIDE or equivalent 2941s ok 7 /fileutils/mkdir-with-parents-permission 2941s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0T8U52/fileutils/format-size-for-display/.dirs/home 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0T8U52/fileutils/format-size-for-display/.dirs/cache 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0T8U52/fileutils/format-size-for-display/.dirs/system-config1:/tmp/test_fileutils_0T8U52/fileutils/format-size-for-display/.dirs/system-config2 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0T8U52/fileutils/format-size-for-display/.dirs/config 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0T8U52/fileutils/format-size-for-display/.dirs/system-data1:/tmp/test_fileutils_0T8U52/fileutils/format-size-for-display/.dirs/system-data2 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0T8U52/fileutils/format-size-for-display/.dirs/data 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0T8U52/fileutils/format-size-for-display/.dirs/state 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0T8U52/fileutils/format-size-for-display/.dirs/runtime 2941s ok 8 /fileutils/format-size-for-display 2941s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0T8U52/fileutils/errors/.dirs/home 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0T8U52/fileutils/errors/.dirs/cache 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0T8U52/fileutils/errors/.dirs/system-config1:/tmp/test_fileutils_0T8U52/fileutils/errors/.dirs/system-config2 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0T8U52/fileutils/errors/.dirs/config 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0T8U52/fileutils/errors/.dirs/system-data1:/tmp/test_fileutils_0T8U52/fileutils/errors/.dirs/system-data2 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0T8U52/fileutils/errors/.dirs/data 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0T8U52/fileutils/errors/.dirs/state 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0T8U52/fileutils/errors/.dirs/runtime 2941s ok 9 /fileutils/errors 2941s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0T8U52/fileutils/basename/.dirs/home 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0T8U52/fileutils/basename/.dirs/cache 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0T8U52/fileutils/basename/.dirs/system-config1:/tmp/test_fileutils_0T8U52/fileutils/basename/.dirs/system-config2 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0T8U52/fileutils/basename/.dirs/config 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0T8U52/fileutils/basename/.dirs/system-data1:/tmp/test_fileutils_0T8U52/fileutils/basename/.dirs/system-data2 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0T8U52/fileutils/basename/.dirs/data 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0T8U52/fileutils/basename/.dirs/state 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0T8U52/fileutils/basename/.dirs/runtime 2941s ok 10 /fileutils/basename 2941s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0T8U52/fileutils/get-basename/.dirs/home 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0T8U52/fileutils/get-basename/.dirs/cache 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0T8U52/fileutils/get-basename/.dirs/system-config1:/tmp/test_fileutils_0T8U52/fileutils/get-basename/.dirs/system-config2 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0T8U52/fileutils/get-basename/.dirs/config 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0T8U52/fileutils/get-basename/.dirs/system-data1:/tmp/test_fileutils_0T8U52/fileutils/get-basename/.dirs/system-data2 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0T8U52/fileutils/get-basename/.dirs/data 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0T8U52/fileutils/get-basename/.dirs/state 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0T8U52/fileutils/get-basename/.dirs/runtime 2941s ok 11 /fileutils/get-basename 2941s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0T8U52/fileutils/dirname/.dirs/home 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0T8U52/fileutils/dirname/.dirs/cache 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0T8U52/fileutils/dirname/.dirs/system-config1:/tmp/test_fileutils_0T8U52/fileutils/dirname/.dirs/system-config2 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0T8U52/fileutils/dirname/.dirs/config 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0T8U52/fileutils/dirname/.dirs/system-data1:/tmp/test_fileutils_0T8U52/fileutils/dirname/.dirs/system-data2 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0T8U52/fileutils/dirname/.dirs/data 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0T8U52/fileutils/dirname/.dirs/state 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0T8U52/fileutils/dirname/.dirs/runtime 2941s ok 12 /fileutils/dirname 2941s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0T8U52/fileutils/dir-make-tmp/.dirs/home 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0T8U52/fileutils/dir-make-tmp/.dirs/cache 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0T8U52/fileutils/dir-make-tmp/.dirs/system-config1:/tmp/test_fileutils_0T8U52/fileutils/dir-make-tmp/.dirs/system-config2 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0T8U52/fileutils/dir-make-tmp/.dirs/config 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0T8U52/fileutils/dir-make-tmp/.dirs/system-data1:/tmp/test_fileutils_0T8U52/fileutils/dir-make-tmp/.dirs/system-data2 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0T8U52/fileutils/dir-make-tmp/.dirs/data 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0T8U52/fileutils/dir-make-tmp/.dirs/state 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0T8U52/fileutils/dir-make-tmp/.dirs/runtime 2941s ok 13 /fileutils/dir-make-tmp 2941s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0T8U52/fileutils/file-open-tmp/.dirs/home 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0T8U52/fileutils/file-open-tmp/.dirs/cache 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0T8U52/fileutils/file-open-tmp/.dirs/system-config1:/tmp/test_fileutils_0T8U52/fileutils/file-open-tmp/.dirs/system-config2 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0T8U52/fileutils/file-open-tmp/.dirs/config 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0T8U52/fileutils/file-open-tmp/.dirs/system-data1:/tmp/test_fileutils_0T8U52/fileutils/file-open-tmp/.dirs/system-data2 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0T8U52/fileutils/file-open-tmp/.dirs/data 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0T8U52/fileutils/file-open-tmp/.dirs/state 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0T8U52/fileutils/file-open-tmp/.dirs/runtime 2941s ok 14 /fileutils/file-open-tmp 2941s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0T8U52/fileutils/file-test/.dirs/home 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0T8U52/fileutils/file-test/.dirs/cache 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0T8U52/fileutils/file-test/.dirs/system-config1:/tmp/test_fileutils_0T8U52/fileutils/file-test/.dirs/system-config2 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0T8U52/fileutils/file-test/.dirs/config 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0T8U52/fileutils/file-test/.dirs/system-data1:/tmp/test_fileutils_0T8U52/fileutils/file-test/.dirs/system-data2 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0T8U52/fileutils/file-test/.dirs/data 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0T8U52/fileutils/file-test/.dirs/state 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0T8U52/fileutils/file-test/.dirs/runtime 2941s ok 15 /fileutils/file-test 2941s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0T8U52/fileutils/mkstemp/.dirs/home 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0T8U52/fileutils/mkstemp/.dirs/cache 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0T8U52/fileutils/mkstemp/.dirs/system-config1:/tmp/test_fileutils_0T8U52/fileutils/mkstemp/.dirs/system-config2 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0T8U52/fileutils/mkstemp/.dirs/config 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0T8U52/fileutils/mkstemp/.dirs/system-data1:/tmp/test_fileutils_0T8U52/fileutils/mkstemp/.dirs/system-data2 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0T8U52/fileutils/mkstemp/.dirs/data 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0T8U52/fileutils/mkstemp/.dirs/state 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0T8U52/fileutils/mkstemp/.dirs/runtime 2941s ok 16 /fileutils/mkstemp 2941s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0T8U52/fileutils/mkdtemp/.dirs/home 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0T8U52/fileutils/mkdtemp/.dirs/cache 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0T8U52/fileutils/mkdtemp/.dirs/system-config1:/tmp/test_fileutils_0T8U52/fileutils/mkdtemp/.dirs/system-config2 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0T8U52/fileutils/mkdtemp/.dirs/config 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0T8U52/fileutils/mkdtemp/.dirs/system-data1:/tmp/test_fileutils_0T8U52/fileutils/mkdtemp/.dirs/system-data2 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0T8U52/fileutils/mkdtemp/.dirs/data 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0T8U52/fileutils/mkdtemp/.dirs/state 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0T8U52/fileutils/mkdtemp/.dirs/runtime 2941s ok 17 /fileutils/mkdtemp 2941s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0T8U52/fileutils/get-contents/.dirs/home 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0T8U52/fileutils/get-contents/.dirs/cache 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0T8U52/fileutils/get-contents/.dirs/system-config1:/tmp/test_fileutils_0T8U52/fileutils/get-contents/.dirs/system-config2 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0T8U52/fileutils/get-contents/.dirs/config 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0T8U52/fileutils/get-contents/.dirs/system-data1:/tmp/test_fileutils_0T8U52/fileutils/get-contents/.dirs/system-data2 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0T8U52/fileutils/get-contents/.dirs/data 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0T8U52/fileutils/get-contents/.dirs/state 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0T8U52/fileutils/get-contents/.dirs/runtime 2941s ok 18 /fileutils/get-contents 2941s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0T8U52/fileutils/get-contents-large-file/.dirs/home 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0T8U52/fileutils/get-contents-large-file/.dirs/cache 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0T8U52/fileutils/get-contents-large-file/.dirs/system-config1:/tmp/test_fileutils_0T8U52/fileutils/get-contents-large-file/.dirs/system-config2 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0T8U52/fileutils/get-contents-large-file/.dirs/config 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0T8U52/fileutils/get-contents-large-file/.dirs/system-data1:/tmp/test_fileutils_0T8U52/fileutils/get-contents-large-file/.dirs/system-data2 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0T8U52/fileutils/get-contents-large-file/.dirs/data 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0T8U52/fileutils/get-contents-large-file/.dirs/state 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0T8U52/fileutils/get-contents-large-file/.dirs/runtime 2941s ok 19 /fileutils/get-contents-large-file # SKIP Skipping slow largefile test 2941s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0T8U52/fileutils/set-contents/.dirs/home 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0T8U52/fileutils/set-contents/.dirs/cache 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0T8U52/fileutils/set-contents/.dirs/system-config1:/tmp/test_fileutils_0T8U52/fileutils/set-contents/.dirs/system-config2 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0T8U52/fileutils/set-contents/.dirs/config 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0T8U52/fileutils/set-contents/.dirs/system-data1:/tmp/test_fileutils_0T8U52/fileutils/set-contents/.dirs/system-data2 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0T8U52/fileutils/set-contents/.dirs/data 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0T8U52/fileutils/set-contents/.dirs/state 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0T8U52/fileutils/set-contents/.dirs/runtime 2941s ok 20 /fileutils/set-contents 2941s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0T8U52/fileutils/set-contents-full/.dirs/home 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0T8U52/fileutils/set-contents-full/.dirs/cache 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0T8U52/fileutils/set-contents-full/.dirs/system-config1:/tmp/test_fileutils_0T8U52/fileutils/set-contents-full/.dirs/system-config2 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0T8U52/fileutils/set-contents-full/.dirs/config 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0T8U52/fileutils/set-contents-full/.dirs/system-data1:/tmp/test_fileutils_0T8U52/fileutils/set-contents-full/.dirs/system-data2 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0T8U52/fileutils/set-contents-full/.dirs/data 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0T8U52/fileutils/set-contents-full/.dirs/state 2941s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0T8U52/fileutils/set-contents-full/.dirs/runtime 2941s # /fileutils/set-contents-full summary: Test g_file_set_contents_full() with various flags 2941s # Flags 0 and test 0 2941s # Flags 0 and test 1 2941s # Flags 0 and test 2 2941s # Flags 0 and test 3 2941s # Flags 0 and test 4 2941s # Flags 0 and test 5 2941s # Flags 1 and test 0 2941s # Flags 1 and test 1 2941s # Flags 1 and test 2 2941s # Flags 1 and test 3 2941s # Flags 1 and test 4 2941s # Flags 1 and test 5 2941s # Flags 2 and test 0 2941s # Flags 2 and test 1 2941s # Flags 2 and test 2 2941s # Flags 2 and test 3 2941s # Flags 2 and test 4 2941s # Flags 2 and test 5 2941s # Flags 3 and test 0 2941s # Flags 3 and test 1 2941s # Flags 3 and test 2 2941s # Flags 3 and test 3 2942s # Flags 3 and test 4 2942s # Flags 3 and test 5 2942s # Flags 4 and test 0 2942s # Flags 4 and test 1 2942s # Flags 4 and test 2 2942s # Flags 4 and test 3 2942s # Flags 4 and test 4 2942s # Flags 4 and test 5 2942s # Flags 5 and test 0 2942s # Flags 5 and test 1 2942s # Flags 5 and test 2 2942s # Flags 5 and test 3 2942s # Flags 5 and test 4 2942s # Flags 5 and test 5 2942s # Flags 6 and test 0 2942s # Flags 6 and test 1 2942s # Flags 6 and test 2 2942s # Flags 6 and test 3 2942s # Flags 6 and test 4 2942s # Flags 6 and test 5 2942s ok 21 /fileutils/set-contents-full 2942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0T8U52/fileutils/read-link/.dirs/home 2942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0T8U52/fileutils/read-link/.dirs/cache 2942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0T8U52/fileutils/read-link/.dirs/system-config1:/tmp/test_fileutils_0T8U52/fileutils/read-link/.dirs/system-config2 2942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0T8U52/fileutils/read-link/.dirs/config 2942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0T8U52/fileutils/read-link/.dirs/system-data1:/tmp/test_fileutils_0T8U52/fileutils/read-link/.dirs/system-data2 2942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0T8U52/fileutils/read-link/.dirs/data 2942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0T8U52/fileutils/read-link/.dirs/state 2942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0T8U52/fileutils/read-link/.dirs/runtime 2942s ok 22 /fileutils/read-link 2942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0T8U52/fileutils/stdio-wrappers/.dirs/home 2942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0T8U52/fileutils/stdio-wrappers/.dirs/cache 2942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0T8U52/fileutils/stdio-wrappers/.dirs/system-config1:/tmp/test_fileutils_0T8U52/fileutils/stdio-wrappers/.dirs/system-config2 2942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0T8U52/fileutils/stdio-wrappers/.dirs/config 2942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0T8U52/fileutils/stdio-wrappers/.dirs/system-data1:/tmp/test_fileutils_0T8U52/fileutils/stdio-wrappers/.dirs/system-data2 2942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0T8U52/fileutils/stdio-wrappers/.dirs/data 2942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0T8U52/fileutils/stdio-wrappers/.dirs/state 2942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0T8U52/fileutils/stdio-wrappers/.dirs/runtime 2942s # We do not have CAP_DAC_OVERRIDE or equivalent 2942s ok 23 /fileutils/stdio-wrappers 2942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0T8U52/fileutils/fopen-modes/.dirs/home 2942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0T8U52/fileutils/fopen-modes/.dirs/cache 2942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0T8U52/fileutils/fopen-modes/.dirs/system-config1:/tmp/test_fileutils_0T8U52/fileutils/fopen-modes/.dirs/system-config2 2942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0T8U52/fileutils/fopen-modes/.dirs/config 2942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0T8U52/fileutils/fopen-modes/.dirs/system-data1:/tmp/test_fileutils_0T8U52/fileutils/fopen-modes/.dirs/system-data2 2942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0T8U52/fileutils/fopen-modes/.dirs/data 2942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0T8U52/fileutils/fopen-modes/.dirs/state 2942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0T8U52/fileutils/fopen-modes/.dirs/runtime 2942s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/119 2942s # Testing fopen() mode 'w' 2942s # Testing fopen() mode 'r' 2942s # Testing fopen() mode 'a' 2942s # Testing fopen() mode 'w+' 2942s # Testing fopen() mode 'r+' 2942s # Testing fopen() mode 'a+' 2942s # Testing fopen() mode 'wb' 2942s # Testing fopen() mode 'rb' 2942s # Testing fopen() mode 'ab' 2942s # Testing fopen() mode 'w+b' 2942s # Testing fopen() mode 'r+b' 2942s # Testing fopen() mode 'a+b' 2942s # Testing fopen() mode 'wb+' 2942s # Testing fopen() mode 'rb+' 2942s # Testing fopen() mode 'ab+' 2942s ok 24 /fileutils/fopen-modes 2942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0T8U52/fileutils/clear-fd/.dirs/home 2942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0T8U52/fileutils/clear-fd/.dirs/cache 2942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0T8U52/fileutils/clear-fd/.dirs/system-config1:/tmp/test_fileutils_0T8U52/fileutils/clear-fd/.dirs/system-config2 2942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0T8U52/fileutils/clear-fd/.dirs/config 2942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0T8U52/fileutils/clear-fd/.dirs/system-data1:/tmp/test_fileutils_0T8U52/fileutils/clear-fd/.dirs/system-data2 2942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0T8U52/fileutils/clear-fd/.dirs/data 2942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0T8U52/fileutils/clear-fd/.dirs/state 2942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0T8U52/fileutils/clear-fd/.dirs/runtime 2942s # /fileutils/clear-fd summary: Test g_clear_fd() and g_autofd 2942s # Will be closed by autocleanup: 3, -42 2942s # Testing error handling 2942s ok 25 /fileutils/clear-fd 2942s # Start of set-contents-full tests 2942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0T8U52/fileutils/set-contents-full/read-only-file/.dirs/home 2942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0T8U52/fileutils/set-contents-full/read-only-file/.dirs/cache 2942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0T8U52/fileutils/set-contents-full/read-only-file/.dirs/system-config1:/tmp/test_fileutils_0T8U52/fileutils/set-contents-full/read-only-file/.dirs/system-config2 2942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0T8U52/fileutils/set-contents-full/read-only-file/.dirs/config 2942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0T8U52/fileutils/set-contents-full/read-only-file/.dirs/system-data1:/tmp/test_fileutils_0T8U52/fileutils/set-contents-full/read-only-file/.dirs/system-data2 2942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0T8U52/fileutils/set-contents-full/read-only-file/.dirs/data 2942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0T8U52/fileutils/set-contents-full/read-only-file/.dirs/state 2942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0T8U52/fileutils/set-contents-full/read-only-file/.dirs/runtime 2942s # We do not have CAP_DAC_OVERRIDE or equivalent 2942s # /fileutils/set-contents-full/read-only-file summary: Test g_file_set_contents_full() on a read-only file 2942s ok 26 /fileutils/set-contents-full/read-only-file 2942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_0T8U52/fileutils/set-contents-full/read-only-directory/.dirs/home 2942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_0T8U52/fileutils/set-contents-full/read-only-directory/.dirs/cache 2942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_0T8U52/fileutils/set-contents-full/read-only-directory/.dirs/system-config1:/tmp/test_fileutils_0T8U52/fileutils/set-contents-full/read-only-directory/.dirs/system-config2 2942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_0T8U52/fileutils/set-contents-full/read-only-directory/.dirs/config 2942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_0T8U52/fileutils/set-contents-full/read-only-directory/.dirs/system-data1:/tmp/test_fileutils_0T8U52/fileutils/set-contents-full/read-only-directory/.dirs/system-data2 2942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_0T8U52/fileutils/set-contents-full/read-only-directory/.dirs/data 2942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_0T8U52/fileutils/set-contents-full/read-only-directory/.dirs/state 2942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_0T8U52/fileutils/set-contents-full/read-only-directory/.dirs/runtime 2942s # /fileutils/set-contents-full/read-only-directory summary: Test g_file_set_contents_full() on a file in a read-only directory 2942s # Flags 0 2942s # We do not have CAP_DAC_OVERRIDE or equivalent 2942s # Flags 1 2942s # We do not have CAP_DAC_OVERRIDE or equivalent 2942s # Flags 2 2942s # We do not have CAP_DAC_OVERRIDE or equivalent 2942s # Flags 3 2942s # We do not have CAP_DAC_OVERRIDE or equivalent 2942s # Flags 4 2942s # We do not have CAP_DAC_OVERRIDE or equivalent 2942s # Flags 5 2942s # We do not have CAP_DAC_OVERRIDE or equivalent 2942s # Flags 6 2942s # We do not have CAP_DAC_OVERRIDE or equivalent 2942s ok 27 /fileutils/set-contents-full/read-only-directory 2942s # End of set-contents-full tests 2942s # Start of clear-fd tests 2942s # Start of subprocess tests 2942s # End of subprocess tests 2942s # End of clear-fd tests 2942s # End of fileutils tests 2942s Unable to clean up temporary directory /tmp/test_fileutils_0T8U52/glib-file-set-contents-full-rodir-PM7X52: Directory not empty 2942s Unable to clean up temporary directory /tmp/test_fileutils_0T8U52/glib-file-set-contents-full-rodir-8EZX52: Directory not empty 2942s Unable to clean up temporary directory /tmp/test_fileutils_0T8U52/glib-file-set-contents-full-rodir-Y2QX52: Directory not empty 2942s Unable to clean up temporary directory /tmp/test_fileutils_0T8U52/glib-file-set-contents-full-rodir-75HY52: Directory not empty 2942s Unable to clean up temporary directory /tmp/test_fileutils_0T8U52/glib-file-set-contents-full-rodir-P0ZX52: Directory not empty 2942s Unable to clean up temporary directory /tmp/test_fileutils_0T8U52/glib-file-set-contents-full-rodir-G4PX52: Directory not empty 2942s Unable to clean up temporary directory /tmp/test_fileutils_0T8U52/glib-file-set-contents-full-rodir-DZBY52: Directory not empty 2942s Unable to clean up temporary directory /tmp/test_fileutils_0T8U52: Directory not empty 2942s ok - glib/fileutils.test 2942s # Running test: glib/mount-operation.test 2942s TAP version 14 2942s # random seed: R02Sbc69fd144534359e3eaedbbb10a4beea 2942s 1..2 2942s # Start of mount-operation tests 2942s ok 1 /mount-operation/construction 2942s ok 2 /mount-operation/properties 2942s # End of mount-operation tests 2942s ok - glib/mount-operation.test 2942s # Running test: glib/thread-deprecated.test 2942s TAP version 14 2942s # random seed: R02S5372820bcf1faea329fde55b6e08aaaa 2942s 1..6 2942s # Start of thread tests 2942s ok 1 /thread/mutex 2943s ok 2 /thread/static-rec-mutex 2944s # Executing: glib/thread-deprecated.test 2947s ok 3 /thread/static-private 2947s # slow test /thread/static-private executed in 4.42 secs 2949s # Executing: glib/thread-deprecated.test 2952s ok 4 /thread/static-rw-lock 2952s # slow test /thread/static-rw-lock executed in 5.01 secs 2952s ok 5 /thread/once 2954s # Executing: glib/thread-deprecated.test 2959s # Executing: glib/thread-deprecated.test 2962s ok 6 /thread/rerun-all 2962s # slow test /thread/rerun-all executed in 9.85 secs 2962s # End of thread tests 2962s ok - glib/thread-deprecated.test 2962s # Running test: glib/1bit-mutex.test 2962s TAP version 14 2962s # random seed: R02S6dbf51218c59098df8783572b06064a0 2962s 1..2 2962s # Start of glib tests 2962s # Start of 1bit-mutex tests 2964s # Executing: glib/1bit-mutex.test 2969s # Executing: glib/1bit-mutex.test 2974s # Executing: glib/1bit-mutex.test 2979s # Executing: glib/1bit-mutex.test 2984s # Executing: glib/1bit-mutex.test 2989s # Executing: glib/1bit-mutex.test 2993s ok 1 /glib/1bit-mutex/int 2993s # slow test /glib/1bit-mutex/int executed in 30.88 secs 2994s # Executing: glib/1bit-mutex.test 2999s # Executing: glib/1bit-mutex.test 3004s # Executing: glib/1bit-mutex.test 3009s # Executing: glib/1bit-mutex.test 3014s # Executing: glib/1bit-mutex.test 3019s # Executing: glib/1bit-mutex.test 3024s # Executing: glib/1bit-mutex.test 3025s ok 2 /glib/1bit-mutex/pointer 3025s # slow test /glib/1bit-mutex/pointer executed in 31.74 secs 3025s # End of 1bit-mutex tests 3025s # End of glib tests 3025s ok - glib/1bit-mutex.test 3025s # Running test: glib/timer.test 3025s TAP version 14 3025s # random seed: R02Sc4f119d1600808f74c1ff475221051a8 3025s 1..10 3025s # Start of timer tests 3025s ok 1 /timer/basic # SKIP Not reliable due to floating-point rounding (glib#820) 3025s ok 2 /timer/stop 3025s ok 3 /timer/continue 3025s ok 4 /timer/reset 3025s ok 5 /timer/is_active 3025s # End of timer tests 3025s # Start of timeval tests 3025s ok 6 /timeval/add 3025s ok 7 /timeval/from-iso8601 3025s ok 8 /timeval/to-iso8601 3025s # Start of to-iso8601 tests 3025s ok 9 /timeval/to-iso8601/overflow 3025s # End of to-iso8601 tests 3025s # End of timeval tests 3025s # Start of usleep tests 3025s ok 10 /usleep/with-zero-wait 3025s # End of usleep tests 3025s ok - glib/timer.test 3025s # Running test: glib/cmph-bdz.test 3025s TAP version 14 3025s # random seed: R02S6676686d0f6fc1566afd957cc0301228 3025s 1..2 3025s # Start of cmph-bdz tests 3025s ok 1 /cmph-bdz/search 3025s ok 2 /cmph-bdz/search-packed 3025s # End of cmph-bdz tests 3025s ok - glib/cmph-bdz.test 3025s # Running test: glib/gdbus-connection-loss.test 3025s TAP version 14 3025s # random seed: R02S781333d1b6fb85a4b46156830829be28 3025s 1..1 3025s # Start of gdbus tests 3025s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-loss_AL4T52/gdbus/connection-loss/.dirs/home 3025s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-loss_AL4T52/gdbus/connection-loss/.dirs/cache 3025s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-loss_AL4T52/gdbus/connection-loss/.dirs/system-config1:/tmp/test_gdbus-connection-loss_AL4T52/gdbus/connection-loss/.dirs/system-config2 3025s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-loss_AL4T52/gdbus/connection-loss/.dirs/config 3025s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-loss_AL4T52/gdbus/connection-loss/.dirs/system-data1:/tmp/test_gdbus-connection-loss_AL4T52/gdbus/connection-loss/.dirs/system-data2 3025s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-loss_AL4T52/gdbus/connection-loss/.dirs/data 3025s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-loss_AL4T52/gdbus/connection-loss/.dirs/state 3025s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-loss_AL4T52/gdbus/connection-loss/.dirs/runtime 3026s ok 1 /gdbus/connection-loss 3026s # End of gdbus tests 3026s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3026s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3026s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3026s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3026s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3026s ok - glib/gdbus-connection-loss.test 3026s # Running test: glib/power-profile-monitor-portal.test 3029s # Executing: glib/power-profile-monitor-portal.test 3030s TAP version 13 3030s ok 1 __main__.TestPowerProfileMonitorPortal.test_power_profile_power_saver_enabled_portal # SKIP xdg-desktop-portal not available 3032s ok 2 __main__.TestPowerProfileMonitorPortal.test_power_profile_power_saver_enabled_portal_default # SKIP xdg-desktop-portal not available 3032s 1..2 3032s ok - glib/power-profile-monitor-portal.test 3032s # Running test: glib/tls-certificate.test 3032s TAP version 14 3032s # random seed: R02Sd6b61d284ed1ce603ee77e28be09fe43 3032s 1..19 3032s # Start of tls-certificate tests 3032s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ?gio-tls-backend? 3032s ok 1 /tls-certificate/pem-parser 3032s ok 2 /tls-certificate/pem-parser-handles-chain 3032s ok 3 /tls-certificate/from_file 3032s ok 4 /tls-certificate/from_files 3032s ok 5 /tls-certificate/from_files_crlf 3032s ok 6 /tls-certificate/from_files_pkcs8 3032s ok 7 /tls-certificate/from_files_pkcs8enc 3032s ok 8 /tls-certificate/list_from_file 3032s ok 9 /tls-certificate/pkcs11-uri 3032s ok 10 /tls-certificate/pkcs11-uri-unsupported 3032s ok 11 /tls-certificate/from_pkcs12 3032s ok 12 /tls-certificate/from_pkcs12_file 3032s ok 13 /tls-certificate/not-valid-before 3032s ok 14 /tls-certificate/not-valid-after 3032s ok 15 /tls-certificate/subject-name 3032s ok 16 /tls-certificate/issuer-name 3032s ok 17 /tls-certificate/dns-names 3032s ok 18 /tls-certificate/ip-addresses 3032s ok 19 /tls-certificate/pem-parser-no-sentinel 3032s # End of tls-certificate tests 3032s ok - glib/tls-certificate.test 3032s # Running test: glib/mapping.test 3032s TAP version 14 3032s # random seed: R02Sf3515d0e07d5a9d6ea62dab4d5d16ca8 3032s 1..3 3032s # Start of mapping tests 3032s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mapping_Y0EV52/mapping/flags/.dirs/home 3032s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mapping_Y0EV52/mapping/flags/.dirs/cache 3032s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mapping_Y0EV52/mapping/flags/.dirs/system-config1:/tmp/test_mapping_Y0EV52/mapping/flags/.dirs/system-config2 3032s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mapping_Y0EV52/mapping/flags/.dirs/config 3032s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mapping_Y0EV52/mapping/flags/.dirs/system-data1:/tmp/test_mapping_Y0EV52/mapping/flags/.dirs/system-data2 3032s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mapping_Y0EV52/mapping/flags/.dirs/data 3032s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mapping_Y0EV52/mapping/flags/.dirs/state 3032s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mapping_Y0EV52/mapping/flags/.dirs/runtime 3032s # test_mapping: ok 3032s ok 1 /mapping/flags 3032s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mapping_Y0EV52/mapping/private/.dirs/home 3032s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mapping_Y0EV52/mapping/private/.dirs/cache 3032s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mapping_Y0EV52/mapping/private/.dirs/system-config1:/tmp/test_mapping_Y0EV52/mapping/private/.dirs/system-config2 3032s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mapping_Y0EV52/mapping/private/.dirs/config 3032s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mapping_Y0EV52/mapping/private/.dirs/system-data1:/tmp/test_mapping_Y0EV52/mapping/private/.dirs/system-data2 3032s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mapping_Y0EV52/mapping/private/.dirs/data 3032s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mapping_Y0EV52/mapping/private/.dirs/state 3032s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mapping_Y0EV52/mapping/private/.dirs/runtime 3032s ok 2 /mapping/private 3032s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mapping_Y0EV52/mapping/private-child/.dirs/home 3032s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mapping_Y0EV52/mapping/private-child/.dirs/cache 3032s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mapping_Y0EV52/mapping/private-child/.dirs/system-config1:/tmp/test_mapping_Y0EV52/mapping/private-child/.dirs/system-config2 3032s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mapping_Y0EV52/mapping/private-child/.dirs/config 3032s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mapping_Y0EV52/mapping/private-child/.dirs/system-data1:/tmp/test_mapping_Y0EV52/mapping/private-child/.dirs/system-data2 3032s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mapping_Y0EV52/mapping/private-child/.dirs/data 3032s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mapping_Y0EV52/mapping/private-child/.dirs/state 3032s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mapping_Y0EV52/mapping/private-child/.dirs/runtime 3032s # test_child_private: child spawned 3032s # Subtest: /usr/libexec/installed-tests/glib/mapping 3032s # random seed: R02S30c33e0044efb0c8caff3e3e21d36a25 3032s # test_child_private: received first child signal 3032s # test_child_private: received parent signal 3032s # Child exited with status 0 3032s # test_child_private: received second child signal 3032s ok 3 /mapping/private-child 3032s # End of mapping tests 3032s ok - glib/mapping.test 3032s # Running test: glib/timeout.test 3032s TAP version 14 3032s # random seed: R02Sebe79c5144162777f9f100a21379c206 3032s 1..5 3032s # Start of timeout tests 3032s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642052 3034s # Executing: glib/timeout.test 3034s ok 1 /timeout/seconds 3034s # slow test /timeout/seconds executed in 2.11 secs 3037s ok 2 /timeout/seconds-once 3037s # slow test /timeout/seconds-once executed in 2.11 secs 3037s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1600 3039s ok 3 /timeout/weeks-overflow 3039s # slow test /timeout/weeks-overflow executed in 2.10 secs 3039s ok 4 /timeout/far-future-ready-time 3039s # Executing: glib/timeout.test 3044s # Executing: glib/timeout.test 3049s # Executing: glib/timeout.test 3049s ok 5 /timeout/rounding 3049s # slow test /timeout/rounding executed in 10.10 secs 3049s # End of timeout tests 3049s ok - glib/timeout.test 3049s # Running test: glib/deftype.test 3049s ok - glib/deftype.test 3049s # Running test: glib/mimeapps.test 3049s TAP version 14 3049s # random seed: R02S2ab7bcf9124de3b96a53b969264cb73e 3049s 1..7 3049s # Start of appinfo tests 3049s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_MGHS52/appinfo/all/.dirs/home 3049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_MGHS52/appinfo/all/.dirs/cache 3049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_MGHS52/appinfo/all/.dirs/system-config1:/tmp/test_mimeapps_MGHS52/appinfo/all/.dirs/system-config2 3049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_MGHS52/appinfo/all/.dirs/config 3049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_MGHS52/appinfo/all/.dirs/system-data1:/tmp/test_mimeapps_MGHS52/appinfo/all/.dirs/system-data2 3049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_MGHS52/appinfo/all/.dirs/data 3049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_MGHS52/appinfo/all/.dirs/state 3049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_MGHS52/appinfo/all/.dirs/runtime 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/all/.dirs/system-data1/applications' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/all/.dirs/system-data1/applications/mimeapps.list' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/all/.dirs/data/applications' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/all/.dirs/data/applications/myapp.desktop' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/all/.dirs/data/applications/myapp2.desktop' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/all/.dirs/data/applications/myapp3.desktop' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/all/.dirs/data/applications/myapp4.desktop' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/all/.dirs/data/applications/myapp5.desktop' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/all/.dirs/data/applications/nosuchapp.desktop' 3049s # removing '/tmp/test_mimeapps_MGHS52/appinfo/all/.dirs/data/applications/mimeapps.list' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/all/.dirs/data/applications/mimeinfo.cache' 3049s ok 1 /appinfo/all 3049s # Start of mime tests 3049s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_MGHS52/appinfo/mime/api/.dirs/home 3049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_MGHS52/appinfo/mime/api/.dirs/cache 3049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_MGHS52/appinfo/mime/api/.dirs/system-config1:/tmp/test_mimeapps_MGHS52/appinfo/mime/api/.dirs/system-config2 3049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_MGHS52/appinfo/mime/api/.dirs/config 3049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_MGHS52/appinfo/mime/api/.dirs/system-data1:/tmp/test_mimeapps_MGHS52/appinfo/mime/api/.dirs/system-data2 3049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_MGHS52/appinfo/mime/api/.dirs/data 3049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_MGHS52/appinfo/mime/api/.dirs/state 3049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_MGHS52/appinfo/mime/api/.dirs/runtime 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/api/.dirs/system-data1/applications' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/api/.dirs/system-data1/applications/mimeapps.list' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/api/.dirs/data/applications' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/api/.dirs/data/applications/myapp.desktop' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/api/.dirs/data/applications/myapp2.desktop' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/api/.dirs/data/applications/myapp3.desktop' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/api/.dirs/data/applications/myapp4.desktop' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/api/.dirs/data/applications/myapp5.desktop' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/api/.dirs/data/applications/nosuchapp.desktop' 3049s # removing '/tmp/test_mimeapps_MGHS52/appinfo/mime/api/.dirs/data/applications/mimeapps.list' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/api/.dirs/data/applications/mimeinfo.cache' 3049s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_MGHS52/appinfo/mime/api/.dirs/config 3049s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_MGHS52/appinfo/all/.dirs/config to /tmp/test_mimeapps_MGHS52/appinfo/mime/api/.dirs/config 3049s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_MGHS52/appinfo/mime/api/.dirs/config 3049s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_MGHS52/appinfo/mime/api/.dirs/config 3049s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_MGHS52/appinfo/mime/api/.dirs/config 3049s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_MGHS52/appinfo/mime/api/.dirs/config 3049s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_MGHS52/appinfo/mime/api/.dirs/config 3049s ok 2 /appinfo/mime/api 3049s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_MGHS52/appinfo/mime/default/.dirs/home 3049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_MGHS52/appinfo/mime/default/.dirs/cache 3049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_MGHS52/appinfo/mime/default/.dirs/system-config1:/tmp/test_mimeapps_MGHS52/appinfo/mime/default/.dirs/system-config2 3049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_MGHS52/appinfo/mime/default/.dirs/config 3049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_MGHS52/appinfo/mime/default/.dirs/system-data1:/tmp/test_mimeapps_MGHS52/appinfo/mime/default/.dirs/system-data2 3049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_MGHS52/appinfo/mime/default/.dirs/data 3049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_MGHS52/appinfo/mime/default/.dirs/state 3049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_MGHS52/appinfo/mime/default/.dirs/runtime 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/default/.dirs/system-data1/applications' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/default/.dirs/system-data1/applications/mimeapps.list' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/default/.dirs/data/applications' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/default/.dirs/data/applications/myapp.desktop' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/default/.dirs/data/applications/myapp2.desktop' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/default/.dirs/data/applications/myapp3.desktop' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/default/.dirs/data/applications/myapp4.desktop' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/default/.dirs/data/applications/myapp5.desktop' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/default/.dirs/data/applications/nosuchapp.desktop' 3049s # removing '/tmp/test_mimeapps_MGHS52/appinfo/mime/default/.dirs/data/applications/mimeapps.list' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/default/.dirs/data/applications/mimeinfo.cache' 3049s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_MGHS52/appinfo/mime/default/.dirs/config 3049s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_MGHS52/appinfo/mime/api/.dirs/config to /tmp/test_mimeapps_MGHS52/appinfo/mime/default/.dirs/config 3049s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_MGHS52/appinfo/mime/default/.dirs/config 3049s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_MGHS52/appinfo/mime/default/.dirs/config 3049s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_MGHS52/appinfo/mime/default/.dirs/config 3049s ok 3 /appinfo/mime/default 3049s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_MGHS52/appinfo/mime/file/.dirs/home 3049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_MGHS52/appinfo/mime/file/.dirs/cache 3049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_MGHS52/appinfo/mime/file/.dirs/system-config1:/tmp/test_mimeapps_MGHS52/appinfo/mime/file/.dirs/system-config2 3049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_MGHS52/appinfo/mime/file/.dirs/config 3049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_MGHS52/appinfo/mime/file/.dirs/system-data1:/tmp/test_mimeapps_MGHS52/appinfo/mime/file/.dirs/system-data2 3049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_MGHS52/appinfo/mime/file/.dirs/data 3049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_MGHS52/appinfo/mime/file/.dirs/state 3049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_MGHS52/appinfo/mime/file/.dirs/runtime 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/file/.dirs/system-data1/applications' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/file/.dirs/system-data1/applications/mimeapps.list' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/file/.dirs/data/applications' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/file/.dirs/data/applications/myapp.desktop' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/file/.dirs/data/applications/myapp2.desktop' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/file/.dirs/data/applications/myapp3.desktop' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/file/.dirs/data/applications/myapp4.desktop' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/file/.dirs/data/applications/myapp5.desktop' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/file/.dirs/data/applications/nosuchapp.desktop' 3049s # removing '/tmp/test_mimeapps_MGHS52/appinfo/mime/file/.dirs/data/applications/mimeapps.list' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/file/.dirs/data/applications/mimeinfo.cache' 3049s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_MGHS52/appinfo/mime/file/.dirs/config 3049s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_MGHS52/appinfo/mime/default/.dirs/config to /tmp/test_mimeapps_MGHS52/appinfo/mime/file/.dirs/config 3049s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_MGHS52/appinfo/mime/file/.dirs/config 3049s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_MGHS52/appinfo/mime/file/.dirs/config 3049s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_MGHS52/appinfo/mime/file/.dirs/config 3049s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_MGHS52/appinfo/mime/file/.dirs/config 3049s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_MGHS52/appinfo/mime/file/.dirs/config 3049s ok 4 /appinfo/mime/file 3049s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_MGHS52/appinfo/mime/scheme-handler/.dirs/home 3049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_MGHS52/appinfo/mime/scheme-handler/.dirs/cache 3049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_MGHS52/appinfo/mime/scheme-handler/.dirs/system-config1:/tmp/test_mimeapps_MGHS52/appinfo/mime/scheme-handler/.dirs/system-config2 3049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_MGHS52/appinfo/mime/scheme-handler/.dirs/config 3049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_MGHS52/appinfo/mime/scheme-handler/.dirs/system-data1:/tmp/test_mimeapps_MGHS52/appinfo/mime/scheme-handler/.dirs/system-data2 3049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_MGHS52/appinfo/mime/scheme-handler/.dirs/data 3049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_MGHS52/appinfo/mime/scheme-handler/.dirs/state 3049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_MGHS52/appinfo/mime/scheme-handler/.dirs/runtime 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/scheme-handler/.dirs/system-data1/applications' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/scheme-handler/.dirs/system-data1/applications/mimeapps.list' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/scheme-handler/.dirs/data/applications' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/scheme-handler/.dirs/data/applications/myapp.desktop' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/scheme-handler/.dirs/data/applications/myapp2.desktop' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/scheme-handler/.dirs/data/applications/myapp3.desktop' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/scheme-handler/.dirs/data/applications/myapp4.desktop' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/scheme-handler/.dirs/data/applications/myapp5.desktop' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/scheme-handler/.dirs/data/applications/nosuchapp.desktop' 3049s # removing '/tmp/test_mimeapps_MGHS52/appinfo/mime/scheme-handler/.dirs/data/applications/mimeapps.list' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/scheme-handler/.dirs/data/applications/mimeinfo.cache' 3049s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_MGHS52/appinfo/mime/file/.dirs/config to /tmp/test_mimeapps_MGHS52/appinfo/mime/scheme-handler/.dirs/config 3049s ok 5 /appinfo/mime/scheme-handler 3049s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_MGHS52/appinfo/mime/default-last-used/.dirs/home 3049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_MGHS52/appinfo/mime/default-last-used/.dirs/cache 3049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_MGHS52/appinfo/mime/default-last-used/.dirs/system-config1:/tmp/test_mimeapps_MGHS52/appinfo/mime/default-last-used/.dirs/system-config2 3049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_MGHS52/appinfo/mime/default-last-used/.dirs/config 3049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_MGHS52/appinfo/mime/default-last-used/.dirs/system-data1:/tmp/test_mimeapps_MGHS52/appinfo/mime/default-last-used/.dirs/system-data2 3049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_MGHS52/appinfo/mime/default-last-used/.dirs/data 3049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_MGHS52/appinfo/mime/default-last-used/.dirs/state 3049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_MGHS52/appinfo/mime/default-last-used/.dirs/runtime 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/default-last-used/.dirs/system-data1/applications' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/default-last-used/.dirs/system-data1/applications/mimeapps.list' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/default-last-used/.dirs/data/applications' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/default-last-used/.dirs/data/applications/myapp.desktop' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/default-last-used/.dirs/data/applications/myapp2.desktop' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/default-last-used/.dirs/data/applications/myapp3.desktop' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/default-last-used/.dirs/data/applications/myapp4.desktop' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/default-last-used/.dirs/data/applications/myapp5.desktop' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/default-last-used/.dirs/data/applications/nosuchapp.desktop' 3049s # removing '/tmp/test_mimeapps_MGHS52/appinfo/mime/default-last-used/.dirs/data/applications/mimeapps.list' 3049s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/default-last-used/.dirs/data/applications/mimeinfo.cache' 3049s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_MGHS52/appinfo/mime/default-last-used/.dirs/config 3049s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_MGHS52/appinfo/mime/scheme-handler/.dirs/config to /tmp/test_mimeapps_MGHS52/appinfo/mime/default-last-used/.dirs/config 3049s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_MGHS52/appinfo/mime/default-last-used/.dirs/config 3049s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_MGHS52/appinfo/mime/default-last-used/.dirs/config 3049s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_MGHS52/appinfo/mime/default-last-used/.dirs/config 3049s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_MGHS52/appinfo/mime/default-last-used/.dirs/config 3049s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_MGHS52/appinfo/mime/default-last-used/.dirs/config 3050s ok 6 /appinfo/mime/default-last-used 3050s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_MGHS52/appinfo/mime/ignore-nonexisting/.dirs/home 3050s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_MGHS52/appinfo/mime/ignore-nonexisting/.dirs/cache 3050s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_MGHS52/appinfo/mime/ignore-nonexisting/.dirs/system-config1:/tmp/test_mimeapps_MGHS52/appinfo/mime/ignore-nonexisting/.dirs/system-config2 3050s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_MGHS52/appinfo/mime/ignore-nonexisting/.dirs/config 3050s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_MGHS52/appinfo/mime/ignore-nonexisting/.dirs/system-data1:/tmp/test_mimeapps_MGHS52/appinfo/mime/ignore-nonexisting/.dirs/system-data2 3050s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_MGHS52/appinfo/mime/ignore-nonexisting/.dirs/data 3050s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_MGHS52/appinfo/mime/ignore-nonexisting/.dirs/state 3050s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_MGHS52/appinfo/mime/ignore-nonexisting/.dirs/runtime 3050s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/ignore-nonexisting/.dirs/system-data1/applications' 3050s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/ignore-nonexisting/.dirs/system-data1/applications/mimeapps.list' 3050s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/ignore-nonexisting/.dirs/data/applications' 3050s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp.desktop' 3050s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp2.desktop' 3050s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp3.desktop' 3050s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp4.desktop' 3050s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp5.desktop' 3050s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/ignore-nonexisting/.dirs/data/applications/nosuchapp.desktop' 3050s # removing '/tmp/test_mimeapps_MGHS52/appinfo/mime/ignore-nonexisting/.dirs/data/applications/mimeapps.list' 3050s # creating '/tmp/test_mimeapps_MGHS52/appinfo/mime/ignore-nonexisting/.dirs/data/applications/mimeinfo.cache' 3050s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_MGHS52/appinfo/mime/default-last-used/.dirs/config to /tmp/test_mimeapps_MGHS52/appinfo/mime/ignore-nonexisting/.dirs/config 3050s ok 7 /appinfo/mime/ignore-nonexisting 3050s # End of mime tests 3050s # End of appinfo tests 3050s ok - glib/mimeapps.test 3050s # Running test: glib/convert.test 3050s TAP version 14 3050s # random seed: R02S104b75642c555d2ac377a349d3c04439 3050s 1..14 3050s # Start of conversion tests 3050s ok 1 /conversion/no-conv 3050s ok 2 /conversion/iconv-state 3050s ok 3 /conversion/illegal-sequence 3050s ok 4 /conversion/byte-order 3050s ok 5 /conversion/unicode 3050s ok 6 /conversion/filename-utf8 3050s ok 7 /conversion/filename-display 3050s ok 8 /conversion/convert-embedded-nul 3050s # Start of locale-to-utf8 tests 3050s ok 9 /conversion/locale-to-utf8/embedded-nul 3050s # Start of embedded-nul tests 3050s # Start of subprocess tests 3050s # End of subprocess tests 3050s # End of embedded-nul tests 3050s # End of locale-to-utf8 tests 3050s # Start of locale-from-utf8 tests 3050s ok 10 /conversion/locale-from-utf8/embedded-nul 3050s # Start of embedded-nul tests 3050s # Start of subprocess tests 3050s # End of subprocess tests 3050s # End of embedded-nul tests 3050s # End of locale-from-utf8 tests 3050s # Start of filename-to-utf8 tests 3050s ok 11 /conversion/filename-to-utf8/embedded-nul 3050s # Start of embedded-nul tests 3050s # Start of subprocess tests 3050s # End of subprocess tests 3050s # End of embedded-nul tests 3050s # End of filename-to-utf8 tests 3050s # Start of filename-from-utf8 tests 3050s ok 12 /conversion/filename-from-utf8/embedded-nul 3050s # Start of embedded-nul tests 3050s # Start of subprocess tests 3050s # End of subprocess tests 3050s # End of embedded-nul tests 3050s # End of filename-from-utf8 tests 3050s # Start of filename-from-uri tests 3050s ok 13 /conversion/filename-from-uri/query-is-ignored 3050s ok 14 /conversion/filename-from-uri/fragment-is-ignored 3050s # End of filename-from-uri tests 3050s # End of conversion tests 3050s ok - glib/convert.test 3050s # Running test: glib/642026.test 3050s TAP version 14 3050s # random seed: R02S6edc9321d2412cb44a568feabe1e9b28 3050s 1..1 3050s # Start of glib tests 3050s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642026 3051s ok 1 /glib/642026 3051s # End of glib tests 3051s ok - glib/642026.test 3051s # Running test: glib/trash.test 3051s TAP version 14 3051s # random seed: R02S7afa2b7fb76c1dc08972566906e53866 3051s 1..3 3051s # Start of trash tests 3051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/251 3051s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 3051s # File: /tmp/test-trashAF4652 (parent st_dev: 64769) 3051s # Home: /home/ubuntu (st_dev: 64769) 3051s ok 1 /trash/not-supported # SKIP The file has to be on another filesystem than the home trash to run this test 3051s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1522 3051s ok 2 /trash/symlinks # SKIP Directory '/home/ubuntu/.local' does not exist 3051s ok 3 /trash/long-filename 3051s # End of trash tests 3051s ok - glib/trash.test 3051s # Running test: glib/gdbus-non-socket.test 3051s TAP version 14 3051s # random seed: R02S0a42dc113b8cafba141f4c0d684141e4 3051s 1..1 3051s # Start of gdbus tests 3051s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-non-socket_PK9Z52/gdbus/non-socket/.dirs/home 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-non-socket_PK9Z52/gdbus/non-socket/.dirs/cache 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-non-socket_PK9Z52/gdbus/non-socket/.dirs/system-config1:/tmp/test_gdbus-non-socket_PK9Z52/gdbus/non-socket/.dirs/system-config2 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-non-socket_PK9Z52/gdbus/non-socket/.dirs/config 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-non-socket_PK9Z52/gdbus/non-socket/.dirs/system-data1:/tmp/test_gdbus-non-socket_PK9Z52/gdbus/non-socket/.dirs/system-data2 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-non-socket_PK9Z52/gdbus/non-socket/.dirs/data 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-non-socket_PK9Z52/gdbus/non-socket/.dirs/state 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-non-socket_PK9Z52/gdbus/non-socket/.dirs/runtime 3051s ok 1 /gdbus/non-socket 3051s # End of gdbus tests 3051s ok - glib/gdbus-non-socket.test 3051s # Running test: glib/sort.test 3051s TAP version 14 3051s # random seed: R02S3204c68004913eebe033fb3f1ffbf3aa 3051s 1..5 3051s # Start of sort tests 3051s ok 1 /sort/basic 3051s ok 2 /sort/zero-elements 3051s ok 3 /sort/stable 3051s ok 4 /sort/big 3051s ok 5 /sort/deprecated 3051s # End of sort tests 3051s ok - glib/sort.test 3051s # Running test: glib/references.test 3051s TAP version 14 3051s # random seed: R02S74806b0a452fafb3517d7201e48a6f11 3051s 1..1 3051s # Start of gobject tests 3051s ok 1 /gobject/references 3051s # End of gobject tests 3051s ok - glib/references.test 3051s # Running test: glib/utils-isolated.test 3051s TAP version 14 3051s # random seed: R02S23c3c653003c6815a1822a92a7760ffa 3051s 1..11 3051s # Start of utils-isolated tests 3051s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/tmp-dir/.dirs/home 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/tmp-dir/.dirs/cache 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_NNPA62/utils-isolated/tmp-dir/.dirs/system-config1:/tmp/test_utils-isolated_NNPA62/utils-isolated/tmp-dir/.dirs/system-config2 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/tmp-dir/.dirs/config 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_NNPA62/utils-isolated/tmp-dir/.dirs/system-data1:/tmp/test_utils-isolated_NNPA62/utils-isolated/tmp-dir/.dirs/system-data2 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/tmp-dir/.dirs/data 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/tmp-dir/.dirs/state 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_NNPA62/utils-isolated/tmp-dir/.dirs/runtime 3051s ok 1 /utils-isolated/tmp-dir 3051s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/home-dir/.dirs/home 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/home-dir/.dirs/cache 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_NNPA62/utils-isolated/home-dir/.dirs/system-config1:/tmp/test_utils-isolated_NNPA62/utils-isolated/home-dir/.dirs/system-config2 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/home-dir/.dirs/config 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_NNPA62/utils-isolated/home-dir/.dirs/system-data1:/tmp/test_utils-isolated_NNPA62/utils-isolated/home-dir/.dirs/system-data2 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/home-dir/.dirs/data 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/home-dir/.dirs/state 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_NNPA62/utils-isolated/home-dir/.dirs/runtime 3051s ok 2 /utils-isolated/home-dir 3051s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/user-cache-dir/.dirs/home 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/user-cache-dir/.dirs/cache 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_NNPA62/utils-isolated/user-cache-dir/.dirs/system-config1:/tmp/test_utils-isolated_NNPA62/utils-isolated/user-cache-dir/.dirs/system-config2 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/user-cache-dir/.dirs/config 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_NNPA62/utils-isolated/user-cache-dir/.dirs/system-data1:/tmp/test_utils-isolated_NNPA62/utils-isolated/user-cache-dir/.dirs/system-data2 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/user-cache-dir/.dirs/data 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/user-cache-dir/.dirs/state 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_NNPA62/utils-isolated/user-cache-dir/.dirs/runtime 3051s ok 3 /utils-isolated/user-cache-dir 3051s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/system-config-dirs/.dirs/home 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/system-config-dirs/.dirs/cache 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_NNPA62/utils-isolated/system-config-dirs/.dirs/system-config1:/tmp/test_utils-isolated_NNPA62/utils-isolated/system-config-dirs/.dirs/system-config2 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/system-config-dirs/.dirs/config 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_NNPA62/utils-isolated/system-config-dirs/.dirs/system-data1:/tmp/test_utils-isolated_NNPA62/utils-isolated/system-config-dirs/.dirs/system-data2 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/system-config-dirs/.dirs/data 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/system-config-dirs/.dirs/state 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_NNPA62/utils-isolated/system-config-dirs/.dirs/runtime 3051s ok 4 /utils-isolated/system-config-dirs 3051s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/user-config-dir/.dirs/home 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/user-config-dir/.dirs/cache 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_NNPA62/utils-isolated/user-config-dir/.dirs/system-config1:/tmp/test_utils-isolated_NNPA62/utils-isolated/user-config-dir/.dirs/system-config2 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/user-config-dir/.dirs/config 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_NNPA62/utils-isolated/user-config-dir/.dirs/system-data1:/tmp/test_utils-isolated_NNPA62/utils-isolated/user-config-dir/.dirs/system-data2 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/user-config-dir/.dirs/data 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/user-config-dir/.dirs/state 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_NNPA62/utils-isolated/user-config-dir/.dirs/runtime 3051s ok 5 /utils-isolated/user-config-dir 3051s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/system-data-dirs/.dirs/home 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/system-data-dirs/.dirs/cache 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_NNPA62/utils-isolated/system-data-dirs/.dirs/system-config1:/tmp/test_utils-isolated_NNPA62/utils-isolated/system-data-dirs/.dirs/system-config2 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/system-data-dirs/.dirs/config 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_NNPA62/utils-isolated/system-data-dirs/.dirs/system-data1:/tmp/test_utils-isolated_NNPA62/utils-isolated/system-data-dirs/.dirs/system-data2 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/system-data-dirs/.dirs/data 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/system-data-dirs/.dirs/state 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_NNPA62/utils-isolated/system-data-dirs/.dirs/runtime 3051s ok 6 /utils-isolated/system-data-dirs 3051s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/user-data-dir/.dirs/home 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/user-data-dir/.dirs/cache 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_NNPA62/utils-isolated/user-data-dir/.dirs/system-config1:/tmp/test_utils-isolated_NNPA62/utils-isolated/user-data-dir/.dirs/system-config2 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/user-data-dir/.dirs/config 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_NNPA62/utils-isolated/user-data-dir/.dirs/system-data1:/tmp/test_utils-isolated_NNPA62/utils-isolated/user-data-dir/.dirs/system-data2 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/user-data-dir/.dirs/data 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/user-data-dir/.dirs/state 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_NNPA62/utils-isolated/user-data-dir/.dirs/runtime 3051s ok 7 /utils-isolated/user-data-dir 3051s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/user-state-dir/.dirs/home 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/user-state-dir/.dirs/cache 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_NNPA62/utils-isolated/user-state-dir/.dirs/system-config1:/tmp/test_utils-isolated_NNPA62/utils-isolated/user-state-dir/.dirs/system-config2 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/user-state-dir/.dirs/config 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_NNPA62/utils-isolated/user-state-dir/.dirs/system-data1:/tmp/test_utils-isolated_NNPA62/utils-isolated/user-state-dir/.dirs/system-data2 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/user-state-dir/.dirs/data 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/user-state-dir/.dirs/state 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_NNPA62/utils-isolated/user-state-dir/.dirs/runtime 3051s ok 8 /utils-isolated/user-state-dir 3051s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/user-runtime-dir/.dirs/home 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/user-runtime-dir/.dirs/cache 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_NNPA62/utils-isolated/user-runtime-dir/.dirs/system-config1:/tmp/test_utils-isolated_NNPA62/utils-isolated/user-runtime-dir/.dirs/system-config2 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/user-runtime-dir/.dirs/config 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_NNPA62/utils-isolated/user-runtime-dir/.dirs/system-data1:/tmp/test_utils-isolated_NNPA62/utils-isolated/user-runtime-dir/.dirs/system-data2 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/user-runtime-dir/.dirs/data 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/user-runtime-dir/.dirs/state 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_NNPA62/utils-isolated/user-runtime-dir/.dirs/runtime 3051s ok 9 /utils-isolated/user-runtime-dir 3051s # Start of cleanup tests 3051s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/cleanup/handles-errors/.dirs/home 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/cleanup/handles-errors/.dirs/cache 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_NNPA62/utils-isolated/cleanup/handles-errors/.dirs/system-config1:/tmp/test_utils-isolated_NNPA62/utils-isolated/cleanup/handles-errors/.dirs/system-config2 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/cleanup/handles-errors/.dirs/config 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_NNPA62/utils-isolated/cleanup/handles-errors/.dirs/system-data1:/tmp/test_utils-isolated_NNPA62/utils-isolated/cleanup/handles-errors/.dirs/system-data2 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/cleanup/handles-errors/.dirs/data 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/cleanup/handles-errors/.dirs/state 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_NNPA62/utils-isolated/cleanup/handles-errors/.dirs/runtime 3051s Unable to clean up temporary directory /tmp/test_utils-isolated_NNPA62/utils-isolated/cleanup/handles-errors/.dirs/runtime: Directory not empty 3051s Unable to clean up temporary directory /tmp/test_utils-isolated_NNPA62/utils-isolated/cleanup/handles-errors/.dirs: Directory not empty 3051s Unable to clean up temporary directory /tmp/test_utils-isolated_NNPA62/utils-isolated/cleanup/handles-errors: Directory not empty 3051s ok 10 /utils-isolated/cleanup/handles-errors 3051s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/home 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/cache 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_NNPA62/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-config1:/tmp/test_utils-isolated_NNPA62/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-config2 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/config 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_NNPA62/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-data1:/tmp/test_utils-isolated_NNPA62/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-data2 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/data 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_NNPA62/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/state 3051s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_NNPA62/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/runtime 3052s Unable to clean up temporary directory /tmp/test_utils-isolated_NNPA62/utils-isolated/cleanup/doesnt-follow-symlinks: No such file or directory 3052s ok 11 /utils-isolated/cleanup/doesnt-follow-symlinks 3052s # End of cleanup tests 3052s # End of utils-isolated tests 3052s ok - glib/utils-isolated.test 3052s # Running test: glib/gdbus-message.test 3052s TAP version 14 3052s # random seed: R02S84155be6b7be237540ae9695240665d8 3052s 1..3 3052s # Start of gdbus tests 3052s # Start of message tests 3052s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-message_UU7W52/gdbus/message/lock/.dirs/home 3052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-message_UU7W52/gdbus/message/lock/.dirs/cache 3052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-message_UU7W52/gdbus/message/lock/.dirs/system-config1:/tmp/test_gdbus-message_UU7W52/gdbus/message/lock/.dirs/system-config2 3052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-message_UU7W52/gdbus/message/lock/.dirs/config 3052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-message_UU7W52/gdbus/message/lock/.dirs/system-data1:/tmp/test_gdbus-message_UU7W52/gdbus/message/lock/.dirs/system-data2 3052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-message_UU7W52/gdbus/message/lock/.dirs/data 3052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-message_UU7W52/gdbus/message/lock/.dirs/state 3052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-message_UU7W52/gdbus/message/lock/.dirs/runtime 3052s ok 1 /gdbus/message/lock 3052s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-message_UU7W52/gdbus/message/copy/.dirs/home 3052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-message_UU7W52/gdbus/message/copy/.dirs/cache 3052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-message_UU7W52/gdbus/message/copy/.dirs/system-config1:/tmp/test_gdbus-message_UU7W52/gdbus/message/copy/.dirs/system-config2 3052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-message_UU7W52/gdbus/message/copy/.dirs/config 3052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-message_UU7W52/gdbus/message/copy/.dirs/system-data1:/tmp/test_gdbus-message_UU7W52/gdbus/message/copy/.dirs/system-data2 3052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-message_UU7W52/gdbus/message/copy/.dirs/data 3052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-message_UU7W52/gdbus/message/copy/.dirs/state 3052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-message_UU7W52/gdbus/message/copy/.dirs/runtime 3052s ok 2 /gdbus/message/copy 3052s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-message_UU7W52/gdbus/message/bytes-needed/.dirs/home 3052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-message_UU7W52/gdbus/message/bytes-needed/.dirs/cache 3052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-message_UU7W52/gdbus/message/bytes-needed/.dirs/system-config1:/tmp/test_gdbus-message_UU7W52/gdbus/message/bytes-needed/.dirs/system-config2 3052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-message_UU7W52/gdbus/message/bytes-needed/.dirs/config 3052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-message_UU7W52/gdbus/message/bytes-needed/.dirs/system-data1:/tmp/test_gdbus-message_UU7W52/gdbus/message/bytes-needed/.dirs/system-data2 3052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-message_UU7W52/gdbus/message/bytes-needed/.dirs/data 3052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-message_UU7W52/gdbus/message/bytes-needed/.dirs/state 3052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-message_UU7W52/gdbus/message/bytes-needed/.dirs/runtime 3052s # Vector: 0 3052s # Vector: 1 3052s # Vector: 2 3052s # Vector: 3 3052s # Vector: 4 3052s # Vector: 5 3052s ok 3 /gdbus/message/bytes-needed 3052s # End of message tests 3052s # End of gdbus tests 3052s ok - glib/gdbus-message.test 3052s # Running test: glib/gdbus-subscribe.test 3052s TAP version 14 3052s # random seed: R02S25179b98583011f9266cd8779451a2e9 3052s 1..24 3052s # Start of gdbus tests 3052s # Start of subscribe tests 3052s # Start of conn tests 3052s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/simple/.dirs/home 3052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/simple/.dirs/cache 3052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/simple/.dirs/system-config1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/simple/.dirs/system-config2 3052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/simple/.dirs/config 3052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/simple/.dirs/system-data1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/simple/.dirs/system-data2 3052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/simple/.dirs/data 3052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/simple/.dirs/state 3052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/simple/.dirs/runtime 3052s # subscriber is :1.0 3052s # service is :1.1 3052s # service 2 is :1.2 3052s # attacker is :1.3 3052s # Waiting for AddMatch to be processed 3052s # /gdbus/subscribe/conn/simple summary: A broadcast is only received after subscribing to it 3052s # Step 0: emitting signal 3052s # Sender: service 3052s # Destination: (broadcast) 3052s # Path: /org/gtk/GDBus/ExampleInterface 3052s # Interface: org.gtk.GDBus.ExampleInterface 3052s # Member: Foo 3052s # Argument 0: (not a string) 3052s # Waiting for signal to reach message bus 3052s # Step 1: adding subscription 3052s # Sender: (any) 3052s # Path: /org/gtk/GDBus/ExampleInterface 3052s # Interface: org.gtk.GDBus.ExampleInterface 3052s # Member: (any) 3052s # String argument 0: (any) 3052s # Flags: 0 3052s # Subscribing via connection 3052s # Waiting for AddMatch to be processed 3052s # Step 2: emitting signal 3052s # Sender: service 3052s # Destination: (broadcast) 3052s # Path: /org/gtk/GDBus/ExampleInterface 3052s # Interface: org.gtk.GDBus.ExampleInterface 3052s # Member: Foo 3052s # Argument 0: (not a string) 3052s # Waiting for signal to reach message bus 3052s # Signal received from service :1.1 3052s # Signal received from service :1.1 via connection 3052s # Path: /org/gtk/GDBus/ExampleInterface 3052s # Interface: org.gtk.GDBus.ExampleInterface 3052s # Member: Foo 3052s # Argument 0: (not a string) 3052s # Sent in step: 2 3052s # Received Finished signal from subscriber :1.0 3052s # Received Finished signal from service :1.1 3052s # Received Finished signal from service 2 :1.2 3052s # Received Finished signal from attacker :1.3 3052s # Signal from step 0 was received 0 times by GDBusConnection, expected 0 3052s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 3052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3052s ok 1 /gdbus/subscribe/conn/simple 3052s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/home 3052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/cache 3052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-config1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-config2 3052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/config 3052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-data1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-data2 3052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/data 3052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/state 3052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/runtime 3052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3052s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3052s # subscriber is :1.0 3052s # service is :1.1 3052s # service 2 is :1.2 3052s # attacker is :1.3 3052s # Waiting for AddMatch to be processed 3052s # /gdbus/subscribe/conn/broadcast_from_anyone summary: A subscription with NULL sender accepts broadcast and unicast 3052s # Step 0: adding subscription 3052s # Sender: (any) 3052s # Path: /org/gtk/GDBus/ExampleInterface 3052s # Interface: org.gtk.GDBus.ExampleInterface 3052s # Member: (any) 3052s # String argument 0: (any) 3052s # Flags: 0 3052s # Subscribing via connection 3052s # Waiting for AddMatch to be processed 3052s # Step 1: emitting signal 3052s # Sender: service 3052s # Destination: (broadcast) 3052s # Path: /org/gtk/GDBus/ExampleInterface 3052s # Interface: org.gtk.GDBus.ExampleInterface 3052s # Member: Foo 3052s # Argument 0: (not a string) 3052s # Waiting for signal to reach message bus 3052s # Step 2: emitting signal 3052s # Sender: service 2 3052s # Destination: (broadcast) 3052s # Path: /org/gtk/GDBus/ExampleInterface 3052s # Interface: org.gtk.GDBus.ExampleInterface 3052s # Member: Foo 3052s # Argument 0: (not a string) 3052s # Waiting for signal to reach message bus 3052s # Step 3: emitting signal 3052s # Sender: service 3052s # Destination: subscriber :1.0 3052s # Path: /org/gtk/GDBus/ExampleInterface 3052s # Interface: org.gtk.GDBus.ExampleInterface 3052s # Member: Foo 3052s # Argument 0: (not a string) 3052s # Waiting for signal to reach message bus 3052s # Step 4: emitting signal 3052s # Sender: service 2 3052s # Destination: subscriber :1.0 3052s # Path: /org/gtk/GDBus/ExampleInterface 3052s # Interface: org.gtk.GDBus.ExampleInterface 3052s # Member: Foo 3052s # Argument 0: (not a string) 3052s # Waiting for signal to reach message bus 3052s # Signal received from service :1.1 3052s # Signal received from service :1.1 via connection 3052s # Path: /org/gtk/GDBus/ExampleInterface 3052s # Interface: org.gtk.GDBus.ExampleInterface 3052s # Member: Foo 3052s # Argument 0: (not a string) 3052s # Sent in step: 1 3052s # Signal received from service 2 :1.2 3052s # Signal received from service 2 :1.2 via connection 3052s # Path: /org/gtk/GDBus/ExampleInterface 3052s # Interface: org.gtk.GDBus.ExampleInterface 3052s # Member: Foo 3052s # Argument 0: (not a string) 3052s # Sent in step: 2 3052s # Signal received from service :1.1 3052s # Signal received from service :1.1 via connection 3052s # Path: /org/gtk/GDBus/ExampleInterface 3052s # Interface: org.gtk.GDBus.ExampleInterface 3052s # Member: Foo 3052s # Argument 0: (not a string) 3052s # Sent in step: 3 3052s # Signal received from service 2 :1.2 3052s # Signal received from service 2 :1.2 via connection 3052s # Path: /org/gtk/GDBus/ExampleInterface 3052s # Interface: org.gtk.GDBus.ExampleInterface 3052s # Member: Foo 3052s # Argument 0: (not a string) 3052s # Sent in step: 4 3052s # Received Finished signal from subscriber :1.0 3052s # Received Finished signal from service :1.1 3052s # Received Finished signal from service 2 :1.2 3052s # Received Finished signal from attacker :1.3 3052s # Signal from step 1 was received 1 times by GDBusConnection, expected 1 3052s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 3052s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 3052s # Signal from step 4 was received 1 times by GDBusConnection, expected 1 3052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3052s ok 2 /gdbus/subscribe/conn/broadcast_from_anyone 3052s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/match_twice/.dirs/home 3052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/match_twice/.dirs/cache 3052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/match_twice/.dirs/system-config1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/match_twice/.dirs/system-config2 3052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/match_twice/.dirs/config 3052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/match_twice/.dirs/system-data1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/match_twice/.dirs/system-data2 3052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/match_twice/.dirs/data 3052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/match_twice/.dirs/state 3052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/match_twice/.dirs/runtime 3053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3053s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3053s # subscriber is :1.0 3053s # service is :1.1 3053s # service 2 is :1.2 3053s # attacker is :1.3 3053s # Waiting for AddMatch to be processed 3053s # /gdbus/subscribe/conn/match_twice summary: A message matching more than one subscription is received once per subscription 3053s # Step 0: adding subscription 3053s # Sender: service :1.1 3053s # Path: /org/gtk/GDBus/ExampleInterface 3053s # Interface: org.gtk.GDBus.ExampleInterface 3053s # Member: (any) 3053s # String argument 0: (any) 3053s # Flags: 0 3053s # Subscribing via connection 3053s # Waiting for AddMatch to be processed 3053s # Step 1: adding subscription 3053s # Sender: (any) 3053s # Path: /org/gtk/GDBus/ExampleInterface 3053s # Interface: (any) 3053s # Member: (any) 3053s # String argument 0: (any) 3053s # Flags: 0 3053s # Subscribing via connection 3053s # Waiting for AddMatch to be processed 3053s # Step 2: adding subscription 3053s # Sender: (any) 3053s # Path: (any) 3053s # Interface: org.gtk.GDBus.ExampleInterface 3053s # Member: (any) 3053s # String argument 0: (any) 3053s # Flags: 0 3053s # Subscribing via connection 3053s # Waiting for AddMatch to be processed 3053s # Step 3: adding subscription 3053s # Sender: service :1.1 3053s # Path: /org/gtk/GDBus/ExampleInterface 3053s # Interface: org.gtk.GDBus.ExampleInterface 3053s # Member: (any) 3053s # String argument 0: (any) 3053s # Flags: 0 3053s # Subscribing via connection 3053s # Waiting for AddMatch to be processed 3053s # Step 4: emitting signal 3053s # Sender: service 3053s # Destination: (broadcast) 3053s # Path: /org/gtk/GDBus/ExampleInterface 3053s # Interface: org.gtk.GDBus.ExampleInterface 3053s # Member: Foo 3053s # Argument 0: (not a string) 3053s # Waiting for signal to reach message bus 3053s # Signal received from service :1.1 3053s # Signal received from service :1.1 via connection 3053s # Path: /org/gtk/GDBus/ExampleInterface 3053s # Interface: org.gtk.GDBus.ExampleInterface 3053s # Member: Foo 3053s # Argument 0: (not a string) 3053s # Sent in step: 4 3053s # Signal received from service :1.1 3053s # Signal received from service :1.1 via connection 3053s # Path: /org/gtk/GDBus/ExampleInterface 3053s # Interface: org.gtk.GDBus.ExampleInterface 3053s # Member: Foo 3053s # Argument 0: (not a string) 3053s # Sent in step: 4 3053s # Signal received from service :1.1 3053s # Signal received from service :1.1 via connection 3053s # Path: /org/gtk/GDBus/ExampleInterface 3053s # Interface: org.gtk.GDBus.ExampleInterface 3053s # Member: Foo 3053s # Argument 0: (not a string) 3053s # Sent in step: 4 3053s # Signal received from service :1.1 3053s # Signal received from service :1.1 via connection 3053s # Path: /org/gtk/GDBus/ExampleInterface 3053s # Interface: org.gtk.GDBus.ExampleInterface 3053s # Member: Foo 3053s # Argument 0: (not a string) 3053s # Sent in step: 4 3053s # Received Finished signal from subscriber :1.0 3053s # Received Finished signal from service :1.1 3053s # Received Finished signal from service 2 :1.2 3053s # Received Finished signal from attacker :1.3 3053s # Signal from step 4 was received 4 times by GDBusConnection, expected 4 3053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3053s ok 3 /gdbus/subscribe/conn/match_twice 3053s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/limit_by_unique_name/.dirs/home 3053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/limit_by_unique_name/.dirs/cache 3053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-config2 3053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/limit_by_unique_name/.dirs/config 3053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-data2 3053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/limit_by_unique_name/.dirs/data 3053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/limit_by_unique_name/.dirs/state 3053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/limit_by_unique_name/.dirs/runtime 3053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3053s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3053s # subscriber is :1.0 3053s # service is :1.1 3053s # service 2 is :1.2 3053s # attacker is :1.3 3053s # Waiting for AddMatch to be processed 3053s # /gdbus/subscribe/conn/limit_by_unique_name summary: A subscription via a unique name only accepts messages sent by that same unique name 3053s # Step 0: adding subscription 3053s # Sender: service :1.1 3053s # Path: /org/gtk/GDBus/ExampleInterface 3053s # Interface: org.gtk.GDBus.ExampleInterface 3053s # Member: (any) 3053s # String argument 0: (any) 3053s # Flags: 0 3053s # Subscribing via connection 3053s # Waiting for AddMatch to be processed 3053s # Step 1: emitting signal 3053s # Sender: attacker 3053s # Destination: (broadcast) 3053s # Path: /org/gtk/GDBus/ExampleInterface 3053s # Interface: org.gtk.GDBus.ExampleInterface 3053s # Member: Foo 3053s # Argument 0: (not a string) 3053s # Waiting for signal to reach message bus 3053s # Step 2: emitting signal 3053s # Sender: attacker 3053s # Destination: subscriber :1.0 3053s # Path: /org/gtk/GDBus/ExampleInterface 3053s # Interface: org.gtk.GDBus.ExampleInterface 3053s # Member: Foo 3053s # Argument 0: (not a string) 3053s # Waiting for signal to reach message bus 3053s # Step 3: emitting signal 3053s # Sender: service 3053s # Destination: (broadcast) 3053s # Path: /org/gtk/GDBus/ExampleInterface 3053s # Interface: org.gtk.GDBus.ExampleInterface 3053s # Member: Foo 3053s # Argument 0: (not a string) 3053s # Waiting for signal to reach message bus 3053s # Signal received from service :1.1 3053s # Signal received from service :1.1 via connection 3053s # Path: /org/gtk/GDBus/ExampleInterface 3053s # Interface: org.gtk.GDBus.ExampleInterface 3053s # Member: Foo 3053s # Argument 0: (not a string) 3053s # Sent in step: 3 3053s # Received Finished signal from subscriber :1.0 3053s # Received Finished signal from service :1.1 3053s # Received Finished signal from service 2 :1.2 3053s # Received Finished signal from attacker :1.3 3053s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 3053s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 3053s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 3053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3053s ok 4 /gdbus/subscribe/conn/limit_by_unique_name 3053s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/home 3053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/cache 3053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-config2 3053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/config 3053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-data2 3053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/data 3053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/state 3053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/runtime 3053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3053s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3053s # subscriber is :1.0 3053s # service is :1.1 3053s # service 2 is :1.2 3053s # attacker is :1.3 3053s # Waiting for AddMatch to be processed 3053s # /gdbus/subscribe/conn/nonexistent_unique_name summary: A subscription via a unique name that doesn't exist accepts no messages 3053s # Step 0: adding subscription 3053s # Sender: :0.this.had.better.not.exist 3053s # Path: /org/gtk/GDBus/ExampleInterface 3053s # Interface: org.gtk.GDBus.ExampleInterface 3053s # Member: (any) 3053s # String argument 0: (any) 3053s # Flags: 0 3053s # Subscribing via connection 3053s # Waiting for AddMatch to be processed 3053s # Step 1: emitting signal 3053s # Sender: attacker 3053s # Destination: (broadcast) 3053s # Path: /org/gtk/GDBus/ExampleInterface 3053s # Interface: org.gtk.GDBus.ExampleInterface 3053s # Member: Foo 3053s # Argument 0: (not a string) 3053s # Waiting for signal to reach message bus 3053s # Step 2: emitting signal 3053s # Sender: attacker 3053s # Destination: subscriber :1.0 3053s # Path: /org/gtk/GDBus/ExampleInterface 3053s # Interface: org.gtk.GDBus.ExampleInterface 3053s # Member: Foo 3053s # Argument 0: (not a string) 3053s # Waiting for signal to reach message bus 3053s # Received Finished signal from subscriber :1.0 3053s # Received Finished signal from service :1.1 3053s # Received Finished signal from service 2 :1.2 3053s # Received Finished signal from attacker :1.3 3053s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 3053s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 3053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3053s ok 5 /gdbus/subscribe/conn/nonexistent_unique_name 3053s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/home 3053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/cache 3053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-config2 3053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/config 3053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-data2 3053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/data 3053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/state 3053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/runtime 3053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3053s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3053s # subscriber is :1.0 3053s # service is :1.1 3053s # service 2 is :1.2 3053s # attacker is :1.3 3053s # Waiting for AddMatch to be processed 3053s # /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 3053s # Step 0: claiming bus name 3053s # Name: org.gtk.Test.AlreadyOwned 3053s # Owner: service 3053s # Step 1: adding subscription 3053s # Sender: org.gtk.Test.AlreadyOwned 3053s # Path: /org/gtk/GDBus/ExampleInterface 3053s # Interface: org.gtk.GDBus.ExampleInterface 3053s # Member: (any) 3053s # String argument 0: (any) 3053s # Flags: 0 3053s # Subscribing via connection 3053s # Waiting for AddMatch to be processed 3053s # Step 2: adding subscription 3053s # Sender: org.gtk.Test.OwnedLater 3053s # Path: /org/gtk/GDBus/ExampleInterface 3053s # Interface: org.gtk.GDBus.ExampleInterface 3053s # Member: (any) 3053s # String argument 0: (any) 3053s # Flags: 0 3053s # Subscribing via connection 3053s # Waiting for AddMatch to be processed 3053s # Step 3: emitting signal 3053s # Sender: attacker 3053s # Destination: (broadcast) 3053s # Path: /org/gtk/GDBus/ExampleInterface 3053s # Interface: org.gtk.GDBus.ExampleInterface 3053s # Member: Foo 3053s # Argument 0: (not a string) 3053s # Waiting for signal to reach message bus 3053s # Step 4: emitting signal 3053s # Sender: attacker 3053s # Destination: subscriber :1.0 3053s # Path: /org/gtk/GDBus/ExampleInterface 3053s # Interface: org.gtk.GDBus.ExampleInterface 3053s # Member: Foo 3053s # Argument 0: (not a string) 3053s # Waiting for signal to reach message bus 3053s # Step 5: emitting signal 3053s # Sender: service 3053s # Destination: (broadcast) 3053s # Path: /org/gtk/GDBus/ExampleInterface 3053s # Interface: org.gtk.GDBus.ExampleInterface 3053s # Member: Foo 3053s # Argument 0: (not a string) 3053s # Waiting for signal to reach message bus 3053s # Step 6: claiming bus name 3053s # Name: org.gtk.Test.OwnedLater 3053s # Owner: service 3053s # Step 7: emitting signal 3053s # Sender: service 3053s # Destination: (broadcast) 3053s # Path: /org/gtk/GDBus/ExampleInterface 3053s # Interface: org.gtk.GDBus.ExampleInterface 3053s # Member: Foo 3053s # Argument 0: (not a string) 3053s # Waiting for signal to reach message bus 3053s # Signal received from service :1.1 3053s # Signal received from service :1.1 via connection 3053s # Path: /org/gtk/GDBus/ExampleInterface 3053s # Interface: org.gtk.GDBus.ExampleInterface 3053s # Member: Foo 3053s # Argument 0: (not a string) 3053s # Sent in step: 5 3053s # Signal received from service :1.1 3053s # Signal received from service :1.1 via connection 3053s # Path: /org/gtk/GDBus/ExampleInterface 3053s # Interface: org.gtk.GDBus.ExampleInterface 3053s # Member: Foo 3053s # Argument 0: (not a string) 3053s # Sent in step: 7 3053s # Signal received from service :1.1 3053s # Signal received from service :1.1 via connection 3053s # Path: /org/gtk/GDBus/ExampleInterface 3053s # Interface: org.gtk.GDBus.ExampleInterface 3053s # Member: Foo 3053s # Argument 0: (not a string) 3053s # Sent in step: 7 3053s # Received Finished signal from subscriber :1.0 3053s # Received Finished signal from service :1.1 3053s # Received Finished signal from service 2 :1.2 3053s # Received Finished signal from attacker :1.3 3053s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 3053s # Signal from step 3 was received 0 times by GDBusConnection, expected 0 3053s # Signal from step 4 was received 0 times by GDBusConnection, expected 0 3053s # Signal from step 5 was received 1 times by GDBusConnection, expected 1 3053s # NameOwnerChanged from step 6 was received 0 times by GDBusConnection, expected 0 3053s # Signal from step 7 was received 2 times by GDBusConnection, expected 2 3053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3053s ok 6 /gdbus/subscribe/conn/limit_by_well_known_name 3053s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/limit_to_message_bus/.dirs/home 3053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/limit_to_message_bus/.dirs/cache 3053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-config1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-config2 3053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/limit_to_message_bus/.dirs/config 3053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-data1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-data2 3053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/limit_to_message_bus/.dirs/data 3053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/limit_to_message_bus/.dirs/state 3053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/limit_to_message_bus/.dirs/runtime 3054s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3054s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3054s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3054s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3054s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3054s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3054s # subscriber is :1.0 3054s # service is :1.1 3054s # Executing: glib/gdbus-subscribe.test 3054s # service 2 is :1.2 3054s # attacker is :1.3 3054s # Waiting for AddMatch to be processed 3054s # /gdbus/subscribe/conn/limit_to_message_bus summary: A subscription to the message bus only accepts messages from the message bus 3054s # Step 0: adding subscription 3054s # Sender: org.freedesktop.DBus 3054s # Path: /org/freedesktop/DBus 3054s # Interface: org.freedesktop.DBus 3054s # Member: (any) 3054s # String argument 0: (any) 3054s # Flags: 0 3054s # Subscribing via connection 3054s # Waiting for AddMatch to be processed 3054s # Step 1: emitting signal 3054s # Sender: attacker 3054s # Destination: (broadcast) 3054s # Path: /org/freedesktop/DBus 3054s # Interface: org.freedesktop.DBus 3054s # Member: NameOwnerChanged 3054s # String argument 0: would I lie to you? 3054s # Waiting for signal to reach message bus 3054s # Step 2: emitting signal 3054s # Sender: attacker 3054s # Destination: subscriber :1.0 3054s # Path: /org/freedesktop/DBus 3054s # Interface: org.freedesktop.DBus 3054s # Member: NameOwnerChanged 3054s # Waiting for signal to reach message bus 3054s # Step 3: claiming bus name 3054s # Name: org.gtk.Test.OwnedLater 3054s # Owner: service 3054s # Signal received from message bus org.freedesktop.DBus 3054s # Signal received from (unused) org.freedesktop.DBus via connection 3054s # Path: /org/freedesktop/DBus 3054s # Interface: org.freedesktop.DBus 3054s # Member: NameOwnerChanged 3054s # Received Finished signal from subscriber :1.0 3054s # Received Finished signal from service :1.1 3054s # Received Finished signal from service 2 :1.2 3054s # Received Finished signal from attacker :1.3 3054s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 3054s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 3054s # NameOwnerChanged from step 3 was received 1 times by GDBusConnection, expected 1 3054s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3054s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3054s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3054s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3054s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3054s ok 7 /gdbus/subscribe/conn/limit_to_message_bus 3054s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/home 3054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/cache 3054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-config1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-config2 3054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/config 3054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-data1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-data2 3054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/data 3054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/state 3054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/runtime 3054s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3054s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3054s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3054s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3054s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3054s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3054s # subscriber is :1.0 3054s # service is :1.1 3054s # service 2 is :1.2 3054s # attacker is :1.3 3054s # Waiting for AddMatch to be processed 3054s # /gdbus/subscribe/conn/unsubscribe_immediately summary: Unsubscribing before GetNameOwner can return doesn't result in a crash 3054s # Step 0: claiming bus name 3054s # Name: org.gtk.Test.AlreadyOwned 3054s # Owner: service 3054s # Step 1: adding subscription 3054s # Sender: org.gtk.Test.AlreadyOwned 3054s # Path: /org/gtk/GDBus/ExampleInterface 3054s # Interface: org.gtk.GDBus.ExampleInterface 3054s # Member: (any) 3054s # String argument 0: (any) 3054s # Flags: 0 3054s # Subscribing via connection 3054s # Immediately unsubscribing 3054s # Waiting for AddMatch to be processed 3054s # Step 2: emitting signal 3054s # Sender: service 3054s # Destination: (broadcast) 3054s # Path: /org/gtk/GDBus/ExampleInterface 3054s # Interface: org.gtk.GDBus.ExampleInterface 3054s # Member: Foo 3054s # Argument 0: (not a string) 3054s # Waiting for signal to reach message bus 3054s # Received Finished signal from subscriber :1.0 3054s # Received Finished signal from service :1.1 3054s # Received Finished signal from service 2 :1.2 3054s # Received Finished signal from attacker :1.3 3054s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 3054s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 3054s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3054s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3054s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3054s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3054s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3054s ok 8 /gdbus/subscribe/conn/unsubscribe_immediately 3054s # End of conn tests 3054s # Start of proxy tests 3054s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/simple/.dirs/home 3054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/simple/.dirs/cache 3054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/simple/.dirs/system-config1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/simple/.dirs/system-config2 3054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/simple/.dirs/config 3054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/simple/.dirs/system-data1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/simple/.dirs/system-data2 3054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/simple/.dirs/data 3054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/simple/.dirs/state 3054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/simple/.dirs/runtime 3054s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3054s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3054s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3054s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3054s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3054s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3054s # subscriber is :1.0 3054s # service is :1.1 3054s # service 2 is :1.2 3054s # attacker is :1.3 3054s # Waiting for AddMatch to be processed 3054s # /gdbus/subscribe/proxy/simple summary: A broadcast is only received after subscribing to it 3054s # Step 0: emitting signal 3054s # Sender: service 3054s # Destination: (broadcast) 3054s # Path: /org/gtk/GDBus/ExampleInterface 3054s # Interface: org.gtk.GDBus.ExampleInterface 3054s # Member: Foo 3054s # Argument 0: (not a string) 3054s # Waiting for signal to reach message bus 3054s # Step 1: adding subscription 3054s # Sender: (any) 3054s # Path: /org/gtk/GDBus/ExampleInterface 3054s # Interface: org.gtk.GDBus.ExampleInterface 3054s # Member: (any) 3054s # String argument 0: (any) 3054s # Flags: 0 3054s # Cannot subscribe via proxy: no bus name 3054s # Waiting for AddMatch to be processed 3054s # Step 2: emitting signal 3054s # Sender: service 3054s # Destination: (broadcast) 3054s # Path: /org/gtk/GDBus/ExampleInterface 3054s # Interface: org.gtk.GDBus.ExampleInterface 3054s # Member: Foo 3054s # Argument 0: (not a string) 3054s # Waiting for signal to reach message bus 3054s # Received Finished signal from subscriber :1.0 3054s # Received Finished signal from service :1.1 3054s # Received Finished signal from service 2 :1.2 3054s # Received Finished signal from attacker :1.3 3054s # Signal from step 0 was received 0 times by GDBusProxy, expected 0 3054s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 3054s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3054s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3054s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3054s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3054s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3054s ok 9 /gdbus/subscribe/proxy/simple 3054s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/home 3054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/cache 3054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-config1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-config2 3054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/config 3054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-data1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-data2 3054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/data 3054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/state 3054s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/runtime 3054s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3054s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3054s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3054s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3054s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3054s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3054s # subscriber is :1.0 3055s # service is :1.1 3055s # service 2 is :1.2 3055s # attacker is :1.3 3055s # Waiting for AddMatch to be processed 3055s # /gdbus/subscribe/proxy/broadcast_from_anyone summary: A subscription with NULL sender accepts broadcast and unicast 3055s # Step 0: adding subscription 3055s # Sender: (any) 3055s # Path: /org/gtk/GDBus/ExampleInterface 3055s # Interface: org.gtk.GDBus.ExampleInterface 3055s # Member: (any) 3055s # String argument 0: (any) 3055s # Flags: 0 3055s # Cannot subscribe via proxy: no bus name 3055s # Waiting for AddMatch to be processed 3055s # Step 1: emitting signal 3055s # Sender: service 3055s # Destination: (broadcast) 3055s # Path: /org/gtk/GDBus/ExampleInterface 3055s # Interface: org.gtk.GDBus.ExampleInterface 3055s # Member: Foo 3055s # Argument 0: (not a string) 3055s # Waiting for signal to reach message bus 3055s # Step 2: emitting signal 3055s # Sender: service 2 3055s # Destination: (broadcast) 3055s # Path: /org/gtk/GDBus/ExampleInterface 3055s # Interface: org.gtk.GDBus.ExampleInterface 3055s # Member: Foo 3055s # Argument 0: (not a string) 3055s # Waiting for signal to reach message bus 3055s # Step 3: emitting signal 3055s # Sender: service 3055s # Destination: subscriber :1.0 3055s # Path: /org/gtk/GDBus/ExampleInterface 3055s # Interface: org.gtk.GDBus.ExampleInterface 3055s # Member: Foo 3055s # Argument 0: (not a string) 3055s # Waiting for signal to reach message bus 3055s # Step 4: emitting signal 3055s # Sender: service 2 3055s # Destination: subscriber :1.0 3055s # Path: /org/gtk/GDBus/ExampleInterface 3055s # Interface: org.gtk.GDBus.ExampleInterface 3055s # Member: Foo 3055s # Argument 0: (not a string) 3055s # Waiting for signal to reach message bus 3055s # Received Finished signal from subscriber :1.0 3055s # Received Finished signal from service :1.1 3055s # Received Finished signal from service 2 :1.2 3055s # Received Finished signal from attacker :1.3 3055s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 3055s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 3055s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 3055s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 3055s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3055s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3055s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3055s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3055s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3055s ok 10 /gdbus/subscribe/proxy/broadcast_from_anyone 3055s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/match_twice/.dirs/home 3055s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/match_twice/.dirs/cache 3055s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/match_twice/.dirs/system-config1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/match_twice/.dirs/system-config2 3055s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/match_twice/.dirs/config 3055s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/match_twice/.dirs/system-data1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/match_twice/.dirs/system-data2 3055s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/match_twice/.dirs/data 3055s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/match_twice/.dirs/state 3055s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/match_twice/.dirs/runtime 3055s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3055s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3055s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3055s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3055s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3055s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3055s # subscriber is :1.0 3055s # service is :1.1 3055s # service 2 is :1.2 3055s # attacker is :1.3 3055s # Waiting for AddMatch to be processed 3055s # /gdbus/subscribe/proxy/match_twice summary: A message matching more than one subscription is received once per subscription 3055s # Step 0: adding subscription 3055s # Sender: service :1.1 3055s # Path: /org/gtk/GDBus/ExampleInterface 3055s # Interface: org.gtk.GDBus.ExampleInterface 3055s # Member: (any) 3055s # String argument 0: (any) 3055s # Flags: 0 3055s # Subscribing via proxy 3055s # Waiting for AddMatch to be processed 3055s # Step 1: adding subscription 3055s # Sender: (any) 3055s # Path: /org/gtk/GDBus/ExampleInterface 3055s # Interface: (any) 3055s # Member: (any) 3055s # String argument 0: (any) 3055s # Flags: 0 3055s # Cannot subscribe via proxy: no bus name 3055s # Waiting for AddMatch to be processed 3055s # Step 2: adding subscription 3055s # Sender: (any) 3055s # Path: (any) 3055s # Interface: org.gtk.GDBus.ExampleInterface 3055s # Member: (any) 3055s # String argument 0: (any) 3055s # Flags: 0 3055s # Cannot subscribe via proxy: no bus name 3055s # Waiting for AddMatch to be processed 3055s # Step 3: adding subscription 3055s # Sender: service :1.1 3055s # Path: /org/gtk/GDBus/ExampleInterface 3055s # Interface: org.gtk.GDBus.ExampleInterface 3055s # Member: (any) 3055s # String argument 0: (any) 3055s # Flags: 0 3055s # Subscribing via proxy 3055s # Waiting for AddMatch to be processed 3055s # Step 4: emitting signal 3055s # Sender: service 3055s # Destination: (broadcast) 3055s # Path: /org/gtk/GDBus/ExampleInterface 3055s # Interface: org.gtk.GDBus.ExampleInterface 3055s # Member: Foo 3055s # Argument 0: (not a string) 3055s # Waiting for signal to reach message bus 3055s # Signal received from service :1.1 3055s # Signal received from service :1.1 via proxy 3055s # Path: /org/gtk/GDBus/ExampleInterface 3055s # Interface: org.gtk.GDBus.ExampleInterface 3055s # Member: Foo 3055s # Argument 0: (not a string) 3055s # Sent in step: 4 3055s # Signal received from service :1.1 3055s # Signal received from service :1.1 via proxy 3055s # Path: /org/gtk/GDBus/ExampleInterface 3055s # Interface: org.gtk.GDBus.ExampleInterface 3055s # Member: Foo 3055s # Argument 0: (not a string) 3055s # Sent in step: 4 3055s # Received Finished signal from subscriber :1.0 3055s # Received Finished signal from service :1.1 3055s # Received Finished signal from service 2 :1.2 3055s # Received Finished signal from attacker :1.3 3055s # Signal from step 4 was received 2 times by GDBusProxy, expected 2 3055s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3055s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3055s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3055s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3055s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3055s ok 11 /gdbus/subscribe/proxy/match_twice 3055s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/home 3055s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/cache 3055s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-config2 3055s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/config 3055s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-data2 3055s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/data 3055s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/state 3055s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/runtime 3055s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3055s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3055s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3055s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3055s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3055s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3055s # subscriber is :1.0 3055s # service is :1.1 3055s # service 2 is :1.2 3055s # attacker is :1.3 3055s # Waiting for AddMatch to be processed 3055s # /gdbus/subscribe/proxy/limit_by_unique_name summary: A subscription via a unique name only accepts messages sent by that same unique name 3055s # Step 0: adding subscription 3055s # Sender: service :1.1 3055s # Path: /org/gtk/GDBus/ExampleInterface 3055s # Interface: org.gtk.GDBus.ExampleInterface 3055s # Member: (any) 3055s # String argument 0: (any) 3055s # Flags: 0 3055s # Subscribing via proxy 3055s # Waiting for AddMatch to be processed 3055s # Step 1: emitting signal 3055s # Sender: attacker 3055s # Destination: (broadcast) 3055s # Path: /org/gtk/GDBus/ExampleInterface 3055s # Interface: org.gtk.GDBus.ExampleInterface 3055s # Member: Foo 3055s # Argument 0: (not a string) 3055s # Waiting for signal to reach message bus 3055s # Step 2: emitting signal 3055s # Sender: attacker 3055s # Destination: subscriber :1.0 3055s # Path: /org/gtk/GDBus/ExampleInterface 3055s # Interface: org.gtk.GDBus.ExampleInterface 3055s # Member: Foo 3055s # Argument 0: (not a string) 3055s # Waiting for signal to reach message bus 3055s # Step 3: emitting signal 3055s # Sender: service 3055s # Destination: (broadcast) 3055s # Path: /org/gtk/GDBus/ExampleInterface 3055s # Interface: org.gtk.GDBus.ExampleInterface 3055s # Member: Foo 3055s # Argument 0: (not a string) 3055s # Waiting for signal to reach message bus 3055s # Signal received from service :1.1 3055s # Signal received from service :1.1 via proxy 3055s # Path: /org/gtk/GDBus/ExampleInterface 3055s # Interface: org.gtk.GDBus.ExampleInterface 3055s # Member: Foo 3055s # Argument 0: (not a string) 3055s # Sent in step: 3 3055s # Received Finished signal from subscriber :1.0 3055s # Received Finished signal from service :1.1 3055s # Received Finished signal from service 2 :1.2 3055s # Received Finished signal from attacker :1.3 3055s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 3055s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 3055s # Signal from step 3 was received 1 times by GDBusProxy, expected 1 3055s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3055s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3055s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3055s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3055s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3055s ok 12 /gdbus/subscribe/proxy/limit_by_unique_name 3055s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/home 3055s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/cache 3055s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-config2 3055s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/config 3055s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-data2 3055s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/data 3055s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/state 3055s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/runtime 3055s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3055s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3055s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3055s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3055s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3055s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3055s # subscriber is :1.0 3055s # service is :1.1 3055s # service 2 is :1.2 3055s # attacker is :1.3 3055s # Waiting for AddMatch to be processed 3055s # /gdbus/subscribe/proxy/nonexistent_unique_name summary: A subscription via a unique name that doesn't exist accepts no messages 3055s # Step 0: adding subscription 3055s # Sender: :0.this.had.better.not.exist 3055s # Path: /org/gtk/GDBus/ExampleInterface 3055s # Interface: org.gtk.GDBus.ExampleInterface 3055s # Member: (any) 3055s # String argument 0: (any) 3055s # Flags: 0 3055s # Subscribing via proxy 3055s # Waiting for AddMatch to be processed 3055s # Step 1: emitting signal 3055s # Sender: attacker 3055s # Destination: (broadcast) 3055s # Path: /org/gtk/GDBus/ExampleInterface 3055s # Interface: org.gtk.GDBus.ExampleInterface 3055s # Member: Foo 3055s # Argument 0: (not a string) 3055s # Waiting for signal to reach message bus 3055s # Step 2: emitting signal 3055s # Sender: attacker 3055s # Destination: subscriber :1.0 3055s # Path: /org/gtk/GDBus/ExampleInterface 3055s # Interface: org.gtk.GDBus.ExampleInterface 3055s # Member: Foo 3055s # Argument 0: (not a string) 3055s # Waiting for signal to reach message bus 3055s # Received Finished signal from subscriber :1.0 3055s # Received Finished signal from service :1.1 3055s # Received Finished signal from service 2 :1.2 3055s # Received Finished signal from attacker :1.3 3055s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 3055s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 3055s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3055s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3055s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3055s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3055s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3055s ok 13 /gdbus/subscribe/proxy/nonexistent_unique_name 3055s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/home 3055s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/cache 3055s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-config2 3055s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/config 3055s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-data2 3055s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/data 3055s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/state 3055s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/runtime 3055s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3055s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3055s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3055s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3055s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3055s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3055s # subscriber is :1.0 3056s # service is :1.1 3056s # service 2 is :1.2 3056s # attacker is :1.3 3056s # Waiting for AddMatch to be processed 3056s # /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 3056s # Step 0: claiming bus name 3056s # Name: org.gtk.Test.AlreadyOwned 3056s # Owner: service 3056s # Step 1: adding subscription 3056s # Sender: org.gtk.Test.AlreadyOwned 3056s # Path: /org/gtk/GDBus/ExampleInterface 3056s # Interface: org.gtk.GDBus.ExampleInterface 3056s # Member: (any) 3056s # String argument 0: (any) 3056s # Flags: 0 3056s # Subscribing via proxy 3056s # Waiting for AddMatch to be processed 3056s # Step 2: adding subscription 3056s # Sender: org.gtk.Test.OwnedLater 3056s # Path: /org/gtk/GDBus/ExampleInterface 3056s # Interface: org.gtk.GDBus.ExampleInterface 3056s # Member: (any) 3056s # String argument 0: (any) 3056s # Flags: 0 3056s # Subscribing via proxy 3056s # Waiting for AddMatch to be processed 3056s # Step 3: emitting signal 3056s # Sender: attacker 3056s # Destination: (broadcast) 3056s # Path: /org/gtk/GDBus/ExampleInterface 3056s # Interface: org.gtk.GDBus.ExampleInterface 3056s # Member: Foo 3056s # Argument 0: (not a string) 3056s # Waiting for signal to reach message bus 3056s # Step 4: emitting signal 3056s # Sender: attacker 3056s # Destination: subscriber :1.0 3056s # Path: /org/gtk/GDBus/ExampleInterface 3056s # Interface: org.gtk.GDBus.ExampleInterface 3056s # Member: Foo 3056s # Argument 0: (not a string) 3056s # Waiting for signal to reach message bus 3056s # Step 5: emitting signal 3056s # Sender: service 3056s # Destination: (broadcast) 3056s # Path: /org/gtk/GDBus/ExampleInterface 3056s # Interface: org.gtk.GDBus.ExampleInterface 3056s # Member: Foo 3056s # Argument 0: (not a string) 3056s # Waiting for signal to reach message bus 3056s # Step 6: claiming bus name 3056s # Name: org.gtk.Test.OwnedLater 3056s # Owner: service 3056s # Step 7: emitting signal 3056s # Sender: service 3056s # Destination: (broadcast) 3056s # Path: /org/gtk/GDBus/ExampleInterface 3056s # Interface: org.gtk.GDBus.ExampleInterface 3056s # Member: Foo 3056s # Argument 0: (not a string) 3056s # Waiting for signal to reach message bus 3056s # Signal received from service :1.1 3056s # Signal received from service :1.1 via proxy 3056s # Path: /org/gtk/GDBus/ExampleInterface 3056s # Interface: org.gtk.GDBus.ExampleInterface 3056s # Member: Foo 3056s # Argument 0: (not a string) 3056s # Sent in step: 5 3056s # Signal received from service :1.1 3056s # Signal received from service :1.1 via proxy 3056s # Path: /org/gtk/GDBus/ExampleInterface 3056s # Interface: org.gtk.GDBus.ExampleInterface 3056s # Member: Foo 3056s # Argument 0: (not a string) 3056s # Sent in step: 7 3056s # Signal received from service :1.1 3056s # Signal received from service :1.1 via proxy 3056s # Path: /org/gtk/GDBus/ExampleInterface 3056s # Interface: org.gtk.GDBus.ExampleInterface 3056s # Member: Foo 3056s # Argument 0: (not a string) 3056s # Sent in step: 7 3056s # Received Finished signal from subscriber :1.0 3056s # Received Finished signal from service :1.1 3056s # Received Finished signal from service 2 :1.2 3056s # Received Finished signal from attacker :1.3 3056s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 3056s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 3056s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 3056s # Signal from step 5 was received 1 times by GDBusProxy, expected 1 3056s # NameOwnerChanged from step 6 was received 0 times by GDBusProxy, expected 0 3056s # Signal from step 7 was received 2 times by GDBusProxy, expected 2 3056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3056s ok 14 /gdbus/subscribe/proxy/limit_by_well_known_name 3056s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/home 3056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/cache 3056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-config1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-config2 3056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/config 3056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-data1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-data2 3056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/data 3056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/state 3056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/runtime 3056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3056s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3056s # subscriber is :1.0 3056s # service is :1.1 3056s # service 2 is :1.2 3056s # attacker is :1.3 3056s # Waiting for AddMatch to be processed 3056s # /gdbus/subscribe/proxy/limit_to_message_bus summary: A subscription to the message bus only accepts messages from the message bus 3056s # Step 0: adding subscription 3056s # Sender: org.freedesktop.DBus 3056s # Path: /org/freedesktop/DBus 3056s # Interface: org.freedesktop.DBus 3056s # Member: (any) 3056s # String argument 0: (any) 3056s # Flags: 0 3056s # Subscribing via proxy 3056s # Waiting for AddMatch to be processed 3056s # Step 1: emitting signal 3056s # Sender: attacker 3056s # Destination: (broadcast) 3056s # Path: /org/freedesktop/DBus 3056s # Interface: org.freedesktop.DBus 3056s # Member: NameOwnerChanged 3056s # String argument 0: would I lie to you? 3056s # Waiting for signal to reach message bus 3056s # Step 2: emitting signal 3056s # Sender: attacker 3056s # Destination: subscriber :1.0 3056s # Path: /org/freedesktop/DBus 3056s # Interface: org.freedesktop.DBus 3056s # Member: NameOwnerChanged 3056s # Waiting for signal to reach message bus 3056s # Step 3: claiming bus name 3056s # Name: org.gtk.Test.OwnedLater 3056s # Owner: service 3056s # Signal received from message bus org.freedesktop.DBus 3056s # Signal received from (unused) org.freedesktop.DBus via proxy 3056s # Path: /org/freedesktop/DBus 3056s # Interface: org.freedesktop.DBus 3056s # Member: NameOwnerChanged 3056s # Received Finished signal from subscriber :1.0 3056s # Received Finished signal from service :1.1 3056s # Received Finished signal from service 2 :1.2 3056s # Received Finished signal from attacker :1.3 3056s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 3056s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 3056s # NameOwnerChanged from step 3 was received 1 times by GDBusProxy, expected 1 3056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3056s ok 15 /gdbus/subscribe/proxy/limit_to_message_bus 3056s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/home 3056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/cache 3056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-config1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-config2 3056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/config 3056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-data1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-data2 3056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/data 3056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/state 3056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/runtime 3056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3056s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3056s # subscriber is :1.0 3056s # service is :1.1 3056s # service 2 is :1.2 3056s # attacker is :1.3 3056s # Waiting for AddMatch to be processed 3056s # /gdbus/subscribe/proxy/unsubscribe_immediately summary: Unsubscribing before GetNameOwner can return doesn't result in a crash 3056s # Step 0: claiming bus name 3056s # Name: org.gtk.Test.AlreadyOwned 3056s # Owner: service 3056s # Step 1: adding subscription 3056s # Sender: org.gtk.Test.AlreadyOwned 3056s # Path: /org/gtk/GDBus/ExampleInterface 3056s # Interface: org.gtk.GDBus.ExampleInterface 3056s # Member: (any) 3056s # String argument 0: (any) 3056s # Flags: 0 3056s # Subscribing via proxy 3056s # Waiting for AddMatch to be processed 3056s # Step 2: emitting signal 3056s # Sender: service 3056s # Destination: (broadcast) 3056s # Path: /org/gtk/GDBus/ExampleInterface 3056s # Interface: org.gtk.GDBus.ExampleInterface 3056s # Member: Foo 3056s # Argument 0: (not a string) 3056s # Waiting for signal to reach message bus 3056s # Signal received from service :1.1 3056s # Signal received from service :1.1 via proxy 3056s # Path: /org/gtk/GDBus/ExampleInterface 3056s # Interface: org.gtk.GDBus.ExampleInterface 3056s # Member: Foo 3056s # Argument 0: (not a string) 3056s # Sent in step: 2 3056s # Received Finished signal from subscriber :1.0 3056s # Received Finished signal from service :1.1 3056s # Received Finished signal from service 2 :1.2 3056s # Received Finished signal from attacker :1.3 3056s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 3056s # Signal from step 2 was received 1 times by GDBusProxy, expected 1 3056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3056s ok 16 /gdbus/subscribe/proxy/unsubscribe_immediately 3056s # End of proxy tests 3056s # Start of parallel tests 3056s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/simple/.dirs/home 3056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/simple/.dirs/cache 3056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/simple/.dirs/system-config1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/simple/.dirs/system-config2 3056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/simple/.dirs/config 3056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/simple/.dirs/system-data1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/simple/.dirs/system-data2 3056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/simple/.dirs/data 3056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/simple/.dirs/state 3056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/simple/.dirs/runtime 3056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3056s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3056s # subscriber is :1.0 3056s # service is :1.1 3056s # service 2 is :1.2 3056s # attacker is :1.3 3056s # Waiting for AddMatch to be processed 3056s # /gdbus/subscribe/parallel/simple summary: A broadcast is only received after subscribing to it 3056s # Step 0: emitting signal 3056s # Sender: service 3056s # Destination: (broadcast) 3056s # Path: /org/gtk/GDBus/ExampleInterface 3056s # Interface: org.gtk.GDBus.ExampleInterface 3056s # Member: Foo 3056s # Argument 0: (not a string) 3056s # Waiting for signal to reach message bus 3056s # Step 1: adding subscription 3056s # Sender: (any) 3056s # Path: /org/gtk/GDBus/ExampleInterface 3056s # Interface: org.gtk.GDBus.ExampleInterface 3056s # Member: (any) 3056s # String argument 0: (any) 3056s # Flags: 0 3056s # Subscribing via connection 3056s # Cannot subscribe via proxy: no bus name 3056s # Waiting for AddMatch to be processed 3056s # Step 2: emitting signal 3056s # Sender: service 3056s # Destination: (broadcast) 3056s # Path: /org/gtk/GDBus/ExampleInterface 3056s # Interface: org.gtk.GDBus.ExampleInterface 3056s # Member: Foo 3056s # Argument 0: (not a string) 3056s # Waiting for signal to reach message bus 3056s # Signal received from service :1.1 3056s # Signal received from service :1.1 via connection 3056s # Path: /org/gtk/GDBus/ExampleInterface 3056s # Interface: org.gtk.GDBus.ExampleInterface 3056s # Member: Foo 3056s # Argument 0: (not a string) 3056s # Sent in step: 2 3056s # Received Finished signal from subscriber :1.0 3056s # Received Finished signal from service :1.1 3056s # Received Finished signal from service 2 :1.2 3056s # Received Finished signal from attacker :1.3 3056s # Signal from step 0 was received 0 times by GDBusConnection, expected 0 3056s # Signal from step 0 was received 0 times by GDBusProxy, expected 0 3056s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 3056s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 3056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3056s ok 17 /gdbus/subscribe/parallel/simple 3056s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/home 3056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/cache 3056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-config1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-config2 3056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/config 3056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-data1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-data2 3056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/data 3056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/state 3056s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/runtime 3056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3056s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3056s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3057s # subscriber is :1.0 3057s # service is :1.1 3057s # service 2 is :1.2 3057s # attacker is :1.3 3057s # Waiting for AddMatch to be processed 3057s # /gdbus/subscribe/parallel/broadcast_from_anyone summary: A subscription with NULL sender accepts broadcast and unicast 3057s # Step 0: adding subscription 3057s # Sender: (any) 3057s # Path: /org/gtk/GDBus/ExampleInterface 3057s # Interface: org.gtk.GDBus.ExampleInterface 3057s # Member: (any) 3057s # String argument 0: (any) 3057s # Flags: 0 3057s # Subscribing via connection 3057s # Cannot subscribe via proxy: no bus name 3057s # Waiting for AddMatch to be processed 3057s # Step 1: emitting signal 3057s # Sender: service 3057s # Destination: (broadcast) 3057s # Path: /org/gtk/GDBus/ExampleInterface 3057s # Interface: org.gtk.GDBus.ExampleInterface 3057s # Member: Foo 3057s # Argument 0: (not a string) 3057s # Waiting for signal to reach message bus 3057s # Step 2: emitting signal 3057s # Sender: service 2 3057s # Destination: (broadcast) 3057s # Path: /org/gtk/GDBus/ExampleInterface 3057s # Interface: org.gtk.GDBus.ExampleInterface 3057s # Member: Foo 3057s # Argument 0: (not a string) 3057s # Waiting for signal to reach message bus 3057s # Step 3: emitting signal 3057s # Sender: service 3057s # Destination: subscriber :1.0 3057s # Path: /org/gtk/GDBus/ExampleInterface 3057s # Interface: org.gtk.GDBus.ExampleInterface 3057s # Member: Foo 3057s # Argument 0: (not a string) 3057s # Waiting for signal to reach message bus 3057s # Step 4: emitting signal 3057s # Sender: service 2 3057s # Destination: subscriber :1.0 3057s # Path: /org/gtk/GDBus/ExampleInterface 3057s # Interface: org.gtk.GDBus.ExampleInterface 3057s # Member: Foo 3057s # Argument 0: (not a string) 3057s # Waiting for signal to reach message bus 3057s # Signal received from service :1.1 3057s # Signal received from service :1.1 via connection 3057s # Path: /org/gtk/GDBus/ExampleInterface 3057s # Interface: org.gtk.GDBus.ExampleInterface 3057s # Member: Foo 3057s # Argument 0: (not a string) 3057s # Sent in step: 1 3057s # Signal received from service 2 :1.2 3057s # Signal received from service 2 :1.2 via connection 3057s # Path: /org/gtk/GDBus/ExampleInterface 3057s # Interface: org.gtk.GDBus.ExampleInterface 3057s # Member: Foo 3057s # Argument 0: (not a string) 3057s # Sent in step: 2 3057s # Signal received from service :1.1 3057s # Signal received from service :1.1 via connection 3057s # Path: /org/gtk/GDBus/ExampleInterface 3057s # Interface: org.gtk.GDBus.ExampleInterface 3057s # Member: Foo 3057s # Argument 0: (not a string) 3057s # Sent in step: 3 3057s # Signal received from service 2 :1.2 3057s # Signal received from service 2 :1.2 via connection 3057s # Path: /org/gtk/GDBus/ExampleInterface 3057s # Interface: org.gtk.GDBus.ExampleInterface 3057s # Member: Foo 3057s # Argument 0: (not a string) 3057s # Sent in step: 4 3057s # Received Finished signal from subscriber :1.0 3057s # Received Finished signal from service :1.1 3057s # Received Finished signal from service 2 :1.2 3057s # Received Finished signal from attacker :1.3 3057s # Signal from step 1 was received 1 times by GDBusConnection, expected 1 3057s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 3057s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 3057s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 3057s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 3057s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 3057s # Signal from step 4 was received 1 times by GDBusConnection, expected 1 3057s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 3057s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3057s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3057s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3057s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3057s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3057s ok 18 /gdbus/subscribe/parallel/broadcast_from_anyone 3057s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/match_twice/.dirs/home 3057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/match_twice/.dirs/cache 3057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/match_twice/.dirs/system-config1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/match_twice/.dirs/system-config2 3057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/match_twice/.dirs/config 3057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/match_twice/.dirs/system-data1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/match_twice/.dirs/system-data2 3057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/match_twice/.dirs/data 3057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/match_twice/.dirs/state 3057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/match_twice/.dirs/runtime 3057s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3057s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3057s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3057s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3057s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3057s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3057s # subscriber is :1.0 3057s # service is :1.1 3057s # service 2 is :1.2 3057s # attacker is :1.3 3057s # Waiting for AddMatch to be processed 3057s # /gdbus/subscribe/parallel/match_twice summary: A message matching more than one subscription is received once per subscription 3057s # Step 0: adding subscription 3057s # Sender: service :1.1 3057s # Path: /org/gtk/GDBus/ExampleInterface 3057s # Interface: org.gtk.GDBus.ExampleInterface 3057s # Member: (any) 3057s # String argument 0: (any) 3057s # Flags: 0 3057s # Subscribing via connection 3057s # Subscribing via proxy 3057s # Waiting for AddMatch to be processed 3057s # Step 1: adding subscription 3057s # Sender: (any) 3057s # Path: /org/gtk/GDBus/ExampleInterface 3057s # Interface: (any) 3057s # Member: (any) 3057s # String argument 0: (any) 3057s # Flags: 0 3057s # Subscribing via connection 3057s # Cannot subscribe via proxy: no bus name 3057s # Waiting for AddMatch to be processed 3057s # Step 2: adding subscription 3057s # Sender: (any) 3057s # Path: (any) 3057s # Interface: org.gtk.GDBus.ExampleInterface 3057s # Member: (any) 3057s # String argument 0: (any) 3057s # Flags: 0 3057s # Subscribing via connection 3057s # Cannot subscribe via proxy: no bus name 3057s # Waiting for AddMatch to be processed 3057s # Step 3: adding subscription 3057s # Sender: service :1.1 3057s # Path: /org/gtk/GDBus/ExampleInterface 3057s # Interface: org.gtk.GDBus.ExampleInterface 3057s # Member: (any) 3057s # String argument 0: (any) 3057s # Flags: 0 3057s # Subscribing via connection 3057s # Subscribing via proxy 3057s # Waiting for AddMatch to be processed 3057s # Step 4: emitting signal 3057s # Sender: service 3057s # Destination: (broadcast) 3057s # Path: /org/gtk/GDBus/ExampleInterface 3057s # Interface: org.gtk.GDBus.ExampleInterface 3057s # Member: Foo 3057s # Argument 0: (not a string) 3057s # Waiting for signal to reach message bus 3057s # Signal received from service :1.1 3057s # Signal received from service :1.1 via connection 3057s # Path: /org/gtk/GDBus/ExampleInterface 3057s # Interface: org.gtk.GDBus.ExampleInterface 3057s # Member: Foo 3057s # Argument 0: (not a string) 3057s # Sent in step: 4 3057s # Signal received from service :1.1 3057s # Signal received from service :1.1 via proxy 3057s # Path: /org/gtk/GDBus/ExampleInterface 3057s # Interface: org.gtk.GDBus.ExampleInterface 3057s # Member: Foo 3057s # Argument 0: (not a string) 3057s # Sent in step: 4 3057s # Signal received from service :1.1 3057s # Signal received from service :1.1 via connection 3057s # Path: /org/gtk/GDBus/ExampleInterface 3057s # Interface: org.gtk.GDBus.ExampleInterface 3057s # Member: Foo 3057s # Argument 0: (not a string) 3057s # Sent in step: 4 3057s # Signal received from service :1.1 3057s # Signal received from service :1.1 via proxy 3057s # Path: /org/gtk/GDBus/ExampleInterface 3057s # Interface: org.gtk.GDBus.ExampleInterface 3057s # Member: Foo 3057s # Argument 0: (not a string) 3057s # Sent in step: 4 3057s # Signal received from service :1.1 3057s # Signal received from service :1.1 via connection 3057s # Path: /org/gtk/GDBus/ExampleInterface 3057s # Interface: org.gtk.GDBus.ExampleInterface 3057s # Member: Foo 3057s # Argument 0: (not a string) 3057s # Sent in step: 4 3057s # Signal received from service :1.1 3057s # Signal received from service :1.1 via connection 3057s # Path: /org/gtk/GDBus/ExampleInterface 3057s # Interface: org.gtk.GDBus.ExampleInterface 3057s # Member: Foo 3057s # Argument 0: (not a string) 3057s # Sent in step: 4 3057s # Received Finished signal from subscriber :1.0 3057s # Received Finished signal from service :1.1 3057s # Received Finished signal from service 2 :1.2 3057s # Received Finished signal from attacker :1.3 3057s # Signal from step 4 was received 4 times by GDBusConnection, expected 4 3057s # Signal from step 4 was received 2 times by GDBusProxy, expected 2 3057s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3057s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3057s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3057s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3057s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3057s ok 19 /gdbus/subscribe/parallel/match_twice 3057s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/home 3057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/cache 3057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-config2 3057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/config 3057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-data2 3057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/data 3057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/state 3057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/runtime 3057s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3057s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3057s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3057s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3057s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3057s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3057s # subscriber is :1.0 3057s # service is :1.1 3057s # service 2 is :1.2 3057s # attacker is :1.3 3057s # Waiting for AddMatch to be processed 3057s # /gdbus/subscribe/parallel/limit_by_unique_name summary: A subscription via a unique name only accepts messages sent by that same unique name 3057s # Step 0: adding subscription 3057s # Sender: service :1.1 3057s # Path: /org/gtk/GDBus/ExampleInterface 3057s # Interface: org.gtk.GDBus.ExampleInterface 3057s # Member: (any) 3057s # String argument 0: (any) 3057s # Flags: 0 3057s # Subscribing via connection 3057s # Subscribing via proxy 3057s # Waiting for AddMatch to be processed 3057s # Step 1: emitting signal 3057s # Sender: attacker 3057s # Destination: (broadcast) 3057s # Path: /org/gtk/GDBus/ExampleInterface 3057s # Interface: org.gtk.GDBus.ExampleInterface 3057s # Member: Foo 3057s # Argument 0: (not a string) 3057s # Waiting for signal to reach message bus 3057s # Step 2: emitting signal 3057s # Sender: attacker 3057s # Destination: subscriber :1.0 3057s # Path: /org/gtk/GDBus/ExampleInterface 3057s # Interface: org.gtk.GDBus.ExampleInterface 3057s # Member: Foo 3057s # Argument 0: (not a string) 3057s # Waiting for signal to reach message bus 3057s # Step 3: emitting signal 3057s # Sender: service 3057s # Destination: (broadcast) 3057s # Path: /org/gtk/GDBus/ExampleInterface 3057s # Interface: org.gtk.GDBus.ExampleInterface 3057s # Member: Foo 3057s # Argument 0: (not a string) 3057s # Waiting for signal to reach message bus 3057s # Signal received from service :1.1 3057s # Signal received from service :1.1 via connection 3057s # Path: /org/gtk/GDBus/ExampleInterface 3057s # Interface: org.gtk.GDBus.ExampleInterface 3057s # Member: Foo 3057s # Argument 0: (not a string) 3057s # Sent in step: 3 3057s # Signal received from service :1.1 3057s # Signal received from service :1.1 via proxy 3057s # Path: /org/gtk/GDBus/ExampleInterface 3057s # Interface: org.gtk.GDBus.ExampleInterface 3057s # Member: Foo 3057s # Argument 0: (not a string) 3057s # Sent in step: 3 3057s # Received Finished signal from subscriber :1.0 3057s # Received Finished signal from service :1.1 3057s # Received Finished signal from service 2 :1.2 3057s # Received Finished signal from attacker :1.3 3057s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 3057s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 3057s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 3057s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 3057s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 3057s # Signal from step 3 was received 1 times by GDBusProxy, expected 1 3057s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3057s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3057s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3057s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3057s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3057s ok 20 /gdbus/subscribe/parallel/limit_by_unique_name 3057s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/home 3057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/cache 3057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-config2 3057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/config 3057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-data2 3057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/data 3057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/state 3057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/runtime 3057s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3057s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3057s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3057s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3057s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3057s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3057s # subscriber is :1.0 3057s # service is :1.1 3057s # service 2 is :1.2 3057s # attacker is :1.3 3057s # Waiting for AddMatch to be processed 3057s # /gdbus/subscribe/parallel/nonexistent_unique_name summary: A subscription via a unique name that doesn't exist accepts no messages 3057s # Step 0: adding subscription 3057s # Sender: :0.this.had.better.not.exist 3057s # Path: /org/gtk/GDBus/ExampleInterface 3057s # Interface: org.gtk.GDBus.ExampleInterface 3057s # Member: (any) 3057s # String argument 0: (any) 3057s # Flags: 0 3057s # Subscribing via connection 3057s # Subscribing via proxy 3057s # Waiting for AddMatch to be processed 3057s # Step 1: emitting signal 3057s # Sender: attacker 3057s # Destination: (broadcast) 3057s # Path: /org/gtk/GDBus/ExampleInterface 3057s # Interface: org.gtk.GDBus.ExampleInterface 3057s # Member: Foo 3057s # Argument 0: (not a string) 3057s # Waiting for signal to reach message bus 3057s # Step 2: emitting signal 3057s # Sender: attacker 3057s # Destination: subscriber :1.0 3057s # Path: /org/gtk/GDBus/ExampleInterface 3057s # Interface: org.gtk.GDBus.ExampleInterface 3057s # Member: Foo 3057s # Argument 0: (not a string) 3057s # Waiting for signal to reach message bus 3057s # Received Finished signal from subscriber :1.0 3057s # Received Finished signal from service :1.1 3057s # Received Finished signal from service 2 :1.2 3057s # Received Finished signal from attacker :1.3 3057s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 3057s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 3057s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 3057s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 3057s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3057s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3057s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3057s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3057s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3057s ok 21 /gdbus/subscribe/parallel/nonexistent_unique_name 3057s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/home 3057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/cache 3057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-config2 3057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/config 3057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-data2 3057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/data 3057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/state 3057s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/runtime 3057s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3057s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3057s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3057s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3057s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3057s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3058s # subscriber is :1.0 3058s # service is :1.1 3058s # service 2 is :1.2 3058s # attacker is :1.3 3058s # Waiting for AddMatch to be processed 3058s # /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 3058s # Step 0: claiming bus name 3058s # Name: org.gtk.Test.AlreadyOwned 3058s # Owner: service 3058s # Step 1: adding subscription 3058s # Sender: org.gtk.Test.AlreadyOwned 3058s # Path: /org/gtk/GDBus/ExampleInterface 3058s # Interface: org.gtk.GDBus.ExampleInterface 3058s # Member: (any) 3058s # String argument 0: (any) 3058s # Flags: 0 3058s # Subscribing via connection 3058s # Subscribing via proxy 3058s # Waiting for AddMatch to be processed 3058s # Step 2: adding subscription 3058s # Sender: org.gtk.Test.OwnedLater 3058s # Path: /org/gtk/GDBus/ExampleInterface 3058s # Interface: org.gtk.GDBus.ExampleInterface 3058s # Member: (any) 3058s # String argument 0: (any) 3058s # Flags: 0 3058s # Subscribing via connection 3058s # Subscribing via proxy 3058s # Waiting for AddMatch to be processed 3058s # Step 3: emitting signal 3058s # Sender: attacker 3058s # Destination: (broadcast) 3058s # Path: /org/gtk/GDBus/ExampleInterface 3058s # Interface: org.gtk.GDBus.ExampleInterface 3058s # Member: Foo 3058s # Argument 0: (not a string) 3058s # Waiting for signal to reach message bus 3058s # Step 4: emitting signal 3058s # Sender: attacker 3058s # Destination: subscriber :1.0 3058s # Path: /org/gtk/GDBus/ExampleInterface 3058s # Interface: org.gtk.GDBus.ExampleInterface 3058s # Member: Foo 3058s # Argument 0: (not a string) 3058s # Waiting for signal to reach message bus 3058s # Step 5: emitting signal 3058s # Sender: service 3058s # Destination: (broadcast) 3058s # Path: /org/gtk/GDBus/ExampleInterface 3058s # Interface: org.gtk.GDBus.ExampleInterface 3058s # Member: Foo 3058s # Argument 0: (not a string) 3058s # Waiting for signal to reach message bus 3058s # Step 6: claiming bus name 3058s # Name: org.gtk.Test.OwnedLater 3058s # Owner: service 3058s # Step 7: emitting signal 3058s # Sender: service 3058s # Destination: (broadcast) 3058s # Path: /org/gtk/GDBus/ExampleInterface 3058s # Interface: org.gtk.GDBus.ExampleInterface 3058s # Member: Foo 3058s # Argument 0: (not a string) 3058s # Waiting for signal to reach message bus 3058s # Signal received from service :1.1 3058s # Signal received from service :1.1 via connection 3058s # Path: /org/gtk/GDBus/ExampleInterface 3058s # Interface: org.gtk.GDBus.ExampleInterface 3058s # Member: Foo 3058s # Argument 0: (not a string) 3058s # Sent in step: 5 3058s # Signal received from service :1.1 3058s # Signal received from service :1.1 via proxy 3058s # Path: /org/gtk/GDBus/ExampleInterface 3058s # Interface: org.gtk.GDBus.ExampleInterface 3058s # Member: Foo 3058s # Argument 0: (not a string) 3058s # Sent in step: 5 3058s # Signal received from service :1.1 3058s # Signal received from service :1.1 via connection 3058s # Path: /org/gtk/GDBus/ExampleInterface 3058s # Interface: org.gtk.GDBus.ExampleInterface 3058s # Member: Foo 3058s # Argument 0: (not a string) 3058s # Sent in step: 7 3058s # Signal received from service :1.1 3058s # Signal received from service :1.1 via proxy 3058s # Path: /org/gtk/GDBus/ExampleInterface 3058s # Interface: org.gtk.GDBus.ExampleInterface 3058s # Member: Foo 3058s # Argument 0: (not a string) 3058s # Sent in step: 7 3058s # Signal received from service :1.1 3058s # Signal received from service :1.1 via connection 3058s # Path: /org/gtk/GDBus/ExampleInterface 3058s # Interface: org.gtk.GDBus.ExampleInterface 3058s # Member: Foo 3058s # Argument 0: (not a string) 3058s # Sent in step: 7 3058s # Signal received from service :1.1 3058s # Signal received from service :1.1 via proxy 3058s # Path: /org/gtk/GDBus/ExampleInterface 3058s # Interface: org.gtk.GDBus.ExampleInterface 3058s # Member: Foo 3058s # Argument 0: (not a string) 3058s # Sent in step: 7 3058s # Received Finished signal from subscriber :1.0 3058s # Received Finished signal from service :1.1 3058s # Received Finished signal from service 2 :1.2 3058s # Received Finished signal from attacker :1.3 3058s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 3058s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 3058s # Signal from step 3 was received 0 times by GDBusConnection, expected 0 3058s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 3058s # Signal from step 4 was received 0 times by GDBusConnection, expected 0 3058s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 3058s # Signal from step 5 was received 1 times by GDBusConnection, expected 1 3058s # Signal from step 5 was received 1 times by GDBusProxy, expected 1 3058s # NameOwnerChanged from step 6 was received 0 times by GDBusConnection, expected 0 3058s # NameOwnerChanged from step 6 was received 0 times by GDBusProxy, expected 0 3058s # Signal from step 7 was received 2 times by GDBusConnection, expected 2 3058s # Signal from step 7 was received 2 times by GDBusProxy, expected 2 3058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3058s ok 22 /gdbus/subscribe/parallel/limit_by_well_known_name 3058s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/home 3058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/cache 3058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-config1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-config2 3058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/config 3058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-data1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-data2 3058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/data 3058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/state 3058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/runtime 3058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3058s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3058s # subscriber is :1.0 3058s # service is :1.1 3058s # service 2 is :1.2 3058s # attacker is :1.3 3058s # Waiting for AddMatch to be processed 3058s # /gdbus/subscribe/parallel/limit_to_message_bus summary: A subscription to the message bus only accepts messages from the message bus 3058s # Step 0: adding subscription 3058s # Sender: org.freedesktop.DBus 3058s # Path: /org/freedesktop/DBus 3058s # Interface: org.freedesktop.DBus 3058s # Member: (any) 3058s # String argument 0: (any) 3058s # Flags: 0 3058s # Subscribing via connection 3058s # Subscribing via proxy 3058s # Waiting for AddMatch to be processed 3058s # Step 1: emitting signal 3058s # Sender: attacker 3058s # Destination: (broadcast) 3058s # Path: /org/freedesktop/DBus 3058s # Interface: org.freedesktop.DBus 3058s # Member: NameOwnerChanged 3058s # String argument 0: would I lie to you? 3058s # Waiting for signal to reach message bus 3058s # Step 2: emitting signal 3058s # Sender: attacker 3058s # Destination: subscriber :1.0 3058s # Path: /org/freedesktop/DBus 3058s # Interface: org.freedesktop.DBus 3058s # Member: NameOwnerChanged 3058s # Waiting for signal to reach message bus 3058s # Step 3: claiming bus name 3058s # Name: org.gtk.Test.OwnedLater 3058s # Owner: service 3058s # Signal received from message bus org.freedesktop.DBus 3058s # Signal received from (unused) org.freedesktop.DBus via connection 3058s # Path: /org/freedesktop/DBus 3058s # Interface: org.freedesktop.DBus 3058s # Member: NameOwnerChanged 3058s # Signal received from message bus org.freedesktop.DBus 3058s # Signal received from (unused) org.freedesktop.DBus via proxy 3058s # Path: /org/freedesktop/DBus 3058s # Interface: org.freedesktop.DBus 3058s # Member: NameOwnerChanged 3058s # Received Finished signal from subscriber :1.0 3058s # Received Finished signal from service :1.1 3058s # Received Finished signal from service 2 :1.2 3058s # Received Finished signal from attacker :1.3 3058s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 3058s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 3058s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 3058s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 3058s # NameOwnerChanged from step 3 was received 1 times by GDBusConnection, expected 1 3058s # NameOwnerChanged from step 3 was received 1 times by GDBusProxy, expected 1 3058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3058s ok 23 /gdbus/subscribe/parallel/limit_to_message_bus 3058s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/home 3058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/cache 3058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-config1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-config2 3058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/config 3058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-data1:/tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-data2 3058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/data 3058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/state 3058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_7UUZ52/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/runtime 3058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3058s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3058s # subscriber is :1.0 3058s # service is :1.1 3058s # service 2 is :1.2 3058s # attacker is :1.3 3058s # Waiting for AddMatch to be processed 3058s # /gdbus/subscribe/parallel/unsubscribe_immediately summary: Unsubscribing before GetNameOwner can return doesn't result in a crash 3058s # Step 0: claiming bus name 3058s # Name: org.gtk.Test.AlreadyOwned 3058s # Owner: service 3058s # Step 1: adding subscription 3058s # Sender: org.gtk.Test.AlreadyOwned 3058s # Path: /org/gtk/GDBus/ExampleInterface 3058s # Interface: org.gtk.GDBus.ExampleInterface 3058s # Member: (any) 3058s # String argument 0: (any) 3058s # Flags: 0 3058s # Subscribing via connection 3058s # Immediately unsubscribing 3058s # Subscribing via proxy 3058s # Waiting for AddMatch to be processed 3058s # Step 2: emitting signal 3058s # Sender: service 3058s # Destination: (broadcast) 3058s # Path: /org/gtk/GDBus/ExampleInterface 3058s # Interface: org.gtk.GDBus.ExampleInterface 3058s # Member: Foo 3058s # Argument 0: (not a string) 3058s # Waiting for signal to reach message bus 3058s # Signal received from service :1.1 3058s # Signal received from service :1.1 via proxy 3058s # Path: /org/gtk/GDBus/ExampleInterface 3058s # Interface: org.gtk.GDBus.ExampleInterface 3058s # Member: Foo 3058s # Argument 0: (not a string) 3058s # Sent in step: 2 3058s # Received Finished signal from subscriber :1.0 3058s # Received Finished signal from service :1.1 3058s # Received Finished signal from service 2 :1.2 3058s # Received Finished signal from attacker :1.3 3058s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 3058s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 3058s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 3058s # Signal from step 2 was received 1 times by GDBusProxy, expected 1 3058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3058s ok 24 /gdbus/subscribe/parallel/unsubscribe_immediately 3058s # End of parallel tests 3058s # End of subscribe tests 3058s # End of gdbus tests 3058s ok - glib/gdbus-subscribe.test 3058s # Running test: glib/hook.test 3058s TAP version 14 3058s # random seed: R02Sda4322c7e3c799fc2cf1c594579a2a52 3058s 1..2 3058s # Start of hook tests 3058s ok 1 /hook/basics 3058s ok 2 /hook/corner-cases 3058s # End of hook tests 3058s ok - glib/hook.test 3058s # Running test: glib/function-info.test 3058s TAP version 14 3059s # random seed: R02Sbae5e8cd6e885ebd2d3f30352da4ef6e 3059s 1..1 3059s # Start of function-info tests 3059s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_function-info_PWWA62/function-info/invoker/.dirs/home 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_function-info_PWWA62/function-info/invoker/.dirs/cache 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_function-info_PWWA62/function-info/invoker/.dirs/system-config1:/tmp/test_function-info_PWWA62/function-info/invoker/.dirs/system-config2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_function-info_PWWA62/function-info/invoker/.dirs/config 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_function-info_PWWA62/function-info/invoker/.dirs/system-data1:/tmp/test_function-info_PWWA62/function-info/invoker/.dirs/system-data2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_function-info_PWWA62/function-info/invoker/.dirs/data 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_function-info_PWWA62/function-info/invoker/.dirs/state 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_function-info_PWWA62/function-info/invoker/.dirs/runtime 3059s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3059s # /function-info/invoker summary: Test preparing a function invoker 3059s ok 1 /function-info/invoker 3059s # End of function-info tests 3059s ok - glib/function-info.test 3059s # Running test: glib/autoptr-girepository.test 3059s # Executing: glib/autoptr-girepository.test 3059s TAP version 14 3059s # random seed: R02Sa64dd42f64cbae73329105a0135f4202 3059s 1..24 3059s # Start of autoptr tests 3059s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/repository/.dirs/home 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/repository/.dirs/cache 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_AW6052/autoptr/repository/.dirs/system-config1:/tmp/test_autoptr-girepository_AW6052/autoptr/repository/.dirs/system-config2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/repository/.dirs/config 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_AW6052/autoptr/repository/.dirs/system-data1:/tmp/test_autoptr-girepository_AW6052/autoptr/repository/.dirs/system-data2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/repository/.dirs/data 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/repository/.dirs/state 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_AW6052/autoptr/repository/.dirs/runtime 3059s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3059s ok 1 /autoptr/repository 3059s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/typelib/.dirs/home 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/typelib/.dirs/cache 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_AW6052/autoptr/typelib/.dirs/system-config1:/tmp/test_autoptr-girepository_AW6052/autoptr/typelib/.dirs/system-config2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/typelib/.dirs/config 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_AW6052/autoptr/typelib/.dirs/system-data1:/tmp/test_autoptr-girepository_AW6052/autoptr/typelib/.dirs/system-data2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/typelib/.dirs/data 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/typelib/.dirs/state 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_AW6052/autoptr/typelib/.dirs/runtime 3059s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3059s ok 2 /autoptr/typelib 3059s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/base-info/.dirs/home 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/base-info/.dirs/cache 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_AW6052/autoptr/base-info/.dirs/system-config1:/tmp/test_autoptr-girepository_AW6052/autoptr/base-info/.dirs/system-config2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/base-info/.dirs/config 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_AW6052/autoptr/base-info/.dirs/system-data1:/tmp/test_autoptr-girepository_AW6052/autoptr/base-info/.dirs/system-data2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/base-info/.dirs/data 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/base-info/.dirs/state 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_AW6052/autoptr/base-info/.dirs/runtime 3059s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3059s ok 3 /autoptr/base-info 3059s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/arg-info/.dirs/home 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/arg-info/.dirs/cache 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_AW6052/autoptr/arg-info/.dirs/system-config1:/tmp/test_autoptr-girepository_AW6052/autoptr/arg-info/.dirs/system-config2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/arg-info/.dirs/config 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_AW6052/autoptr/arg-info/.dirs/system-data1:/tmp/test_autoptr-girepository_AW6052/autoptr/arg-info/.dirs/system-data2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/arg-info/.dirs/data 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/arg-info/.dirs/state 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_AW6052/autoptr/arg-info/.dirs/runtime 3059s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3059s ok 4 /autoptr/arg-info 3059s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/callable-info/.dirs/home 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/callable-info/.dirs/cache 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_AW6052/autoptr/callable-info/.dirs/system-config1:/tmp/test_autoptr-girepository_AW6052/autoptr/callable-info/.dirs/system-config2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/callable-info/.dirs/config 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_AW6052/autoptr/callable-info/.dirs/system-data1:/tmp/test_autoptr-girepository_AW6052/autoptr/callable-info/.dirs/system-data2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/callable-info/.dirs/data 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/callable-info/.dirs/state 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_AW6052/autoptr/callable-info/.dirs/runtime 3059s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3059s ok 5 /autoptr/callable-info 3059s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/callback-info/.dirs/home 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/callback-info/.dirs/cache 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_AW6052/autoptr/callback-info/.dirs/system-config1:/tmp/test_autoptr-girepository_AW6052/autoptr/callback-info/.dirs/system-config2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/callback-info/.dirs/config 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_AW6052/autoptr/callback-info/.dirs/system-data1:/tmp/test_autoptr-girepository_AW6052/autoptr/callback-info/.dirs/system-data2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/callback-info/.dirs/data 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/callback-info/.dirs/state 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_AW6052/autoptr/callback-info/.dirs/runtime 3059s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3059s ok 6 /autoptr/callback-info 3059s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/constant-info/.dirs/home 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/constant-info/.dirs/cache 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_AW6052/autoptr/constant-info/.dirs/system-config1:/tmp/test_autoptr-girepository_AW6052/autoptr/constant-info/.dirs/system-config2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/constant-info/.dirs/config 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_AW6052/autoptr/constant-info/.dirs/system-data1:/tmp/test_autoptr-girepository_AW6052/autoptr/constant-info/.dirs/system-data2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/constant-info/.dirs/data 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/constant-info/.dirs/state 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_AW6052/autoptr/constant-info/.dirs/runtime 3059s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3059s ok 7 /autoptr/constant-info 3059s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/enum-info/.dirs/home 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/enum-info/.dirs/cache 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_AW6052/autoptr/enum-info/.dirs/system-config1:/tmp/test_autoptr-girepository_AW6052/autoptr/enum-info/.dirs/system-config2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/enum-info/.dirs/config 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_AW6052/autoptr/enum-info/.dirs/system-data1:/tmp/test_autoptr-girepository_AW6052/autoptr/enum-info/.dirs/system-data2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/enum-info/.dirs/data 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/enum-info/.dirs/state 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_AW6052/autoptr/enum-info/.dirs/runtime 3059s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3059s ok 8 /autoptr/enum-info 3059s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/field-info/.dirs/home 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/field-info/.dirs/cache 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_AW6052/autoptr/field-info/.dirs/system-config1:/tmp/test_autoptr-girepository_AW6052/autoptr/field-info/.dirs/system-config2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/field-info/.dirs/config 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_AW6052/autoptr/field-info/.dirs/system-data1:/tmp/test_autoptr-girepository_AW6052/autoptr/field-info/.dirs/system-data2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/field-info/.dirs/data 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/field-info/.dirs/state 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_AW6052/autoptr/field-info/.dirs/runtime 3059s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3059s ok 9 /autoptr/field-info 3059s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/flags-info/.dirs/home 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/flags-info/.dirs/cache 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_AW6052/autoptr/flags-info/.dirs/system-config1:/tmp/test_autoptr-girepository_AW6052/autoptr/flags-info/.dirs/system-config2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/flags-info/.dirs/config 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_AW6052/autoptr/flags-info/.dirs/system-data1:/tmp/test_autoptr-girepository_AW6052/autoptr/flags-info/.dirs/system-data2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/flags-info/.dirs/data 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/flags-info/.dirs/state 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_AW6052/autoptr/flags-info/.dirs/runtime 3059s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3059s ok 10 /autoptr/flags-info 3059s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/function-info/.dirs/home 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/function-info/.dirs/cache 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_AW6052/autoptr/function-info/.dirs/system-config1:/tmp/test_autoptr-girepository_AW6052/autoptr/function-info/.dirs/system-config2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/function-info/.dirs/config 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_AW6052/autoptr/function-info/.dirs/system-data1:/tmp/test_autoptr-girepository_AW6052/autoptr/function-info/.dirs/system-data2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/function-info/.dirs/data 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/function-info/.dirs/state 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_AW6052/autoptr/function-info/.dirs/runtime 3059s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3059s ok 11 /autoptr/function-info 3059s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/interface-info/.dirs/home 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/interface-info/.dirs/cache 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_AW6052/autoptr/interface-info/.dirs/system-config1:/tmp/test_autoptr-girepository_AW6052/autoptr/interface-info/.dirs/system-config2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/interface-info/.dirs/config 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_AW6052/autoptr/interface-info/.dirs/system-data1:/tmp/test_autoptr-girepository_AW6052/autoptr/interface-info/.dirs/system-data2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/interface-info/.dirs/data 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/interface-info/.dirs/state 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_AW6052/autoptr/interface-info/.dirs/runtime 3059s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3059s ok 12 /autoptr/interface-info 3059s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/object-info/.dirs/home 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/object-info/.dirs/cache 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_AW6052/autoptr/object-info/.dirs/system-config1:/tmp/test_autoptr-girepository_AW6052/autoptr/object-info/.dirs/system-config2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/object-info/.dirs/config 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_AW6052/autoptr/object-info/.dirs/system-data1:/tmp/test_autoptr-girepository_AW6052/autoptr/object-info/.dirs/system-data2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/object-info/.dirs/data 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/object-info/.dirs/state 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_AW6052/autoptr/object-info/.dirs/runtime 3059s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3059s ok 13 /autoptr/object-info 3059s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/property-info/.dirs/home 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/property-info/.dirs/cache 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_AW6052/autoptr/property-info/.dirs/system-config1:/tmp/test_autoptr-girepository_AW6052/autoptr/property-info/.dirs/system-config2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/property-info/.dirs/config 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_AW6052/autoptr/property-info/.dirs/system-data1:/tmp/test_autoptr-girepository_AW6052/autoptr/property-info/.dirs/system-data2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/property-info/.dirs/data 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/property-info/.dirs/state 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_AW6052/autoptr/property-info/.dirs/runtime 3059s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3059s ok 14 /autoptr/property-info 3059s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/registered-type-info/.dirs/home 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/registered-type-info/.dirs/cache 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_AW6052/autoptr/registered-type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_AW6052/autoptr/registered-type-info/.dirs/system-config2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/registered-type-info/.dirs/config 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_AW6052/autoptr/registered-type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_AW6052/autoptr/registered-type-info/.dirs/system-data2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/registered-type-info/.dirs/data 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/registered-type-info/.dirs/state 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_AW6052/autoptr/registered-type-info/.dirs/runtime 3059s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3059s ok 15 /autoptr/registered-type-info 3059s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/signal-info/.dirs/home 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/signal-info/.dirs/cache 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_AW6052/autoptr/signal-info/.dirs/system-config1:/tmp/test_autoptr-girepository_AW6052/autoptr/signal-info/.dirs/system-config2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/signal-info/.dirs/config 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_AW6052/autoptr/signal-info/.dirs/system-data1:/tmp/test_autoptr-girepository_AW6052/autoptr/signal-info/.dirs/system-data2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/signal-info/.dirs/data 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/signal-info/.dirs/state 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_AW6052/autoptr/signal-info/.dirs/runtime 3059s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3059s ok 16 /autoptr/signal-info 3059s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/struct-info/.dirs/home 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/struct-info/.dirs/cache 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_AW6052/autoptr/struct-info/.dirs/system-config1:/tmp/test_autoptr-girepository_AW6052/autoptr/struct-info/.dirs/system-config2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/struct-info/.dirs/config 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_AW6052/autoptr/struct-info/.dirs/system-data1:/tmp/test_autoptr-girepository_AW6052/autoptr/struct-info/.dirs/system-data2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/struct-info/.dirs/data 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/struct-info/.dirs/state 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_AW6052/autoptr/struct-info/.dirs/runtime 3059s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3059s ok 17 /autoptr/struct-info 3059s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/type-info/.dirs/home 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/type-info/.dirs/cache 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_AW6052/autoptr/type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_AW6052/autoptr/type-info/.dirs/system-config2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/type-info/.dirs/config 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_AW6052/autoptr/type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_AW6052/autoptr/type-info/.dirs/system-data2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/type-info/.dirs/data 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/type-info/.dirs/state 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_AW6052/autoptr/type-info/.dirs/runtime 3059s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3059s ok 18 /autoptr/type-info 3059s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/union-info/.dirs/home 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/union-info/.dirs/cache 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_AW6052/autoptr/union-info/.dirs/system-config1:/tmp/test_autoptr-girepository_AW6052/autoptr/union-info/.dirs/system-config2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/union-info/.dirs/config 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_AW6052/autoptr/union-info/.dirs/system-data1:/tmp/test_autoptr-girepository_AW6052/autoptr/union-info/.dirs/system-data2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/union-info/.dirs/data 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/union-info/.dirs/state 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_AW6052/autoptr/union-info/.dirs/runtime 3059s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3059s ok 19 /autoptr/union-info 3059s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/value-info/.dirs/home 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/value-info/.dirs/cache 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_AW6052/autoptr/value-info/.dirs/system-config1:/tmp/test_autoptr-girepository_AW6052/autoptr/value-info/.dirs/system-config2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/value-info/.dirs/config 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_AW6052/autoptr/value-info/.dirs/system-data1:/tmp/test_autoptr-girepository_AW6052/autoptr/value-info/.dirs/system-data2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/value-info/.dirs/data 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/value-info/.dirs/state 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_AW6052/autoptr/value-info/.dirs/runtime 3059s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3059s ok 20 /autoptr/value-info 3059s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/vfunc-info/.dirs/home 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/vfunc-info/.dirs/cache 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_AW6052/autoptr/vfunc-info/.dirs/system-config1:/tmp/test_autoptr-girepository_AW6052/autoptr/vfunc-info/.dirs/system-config2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/vfunc-info/.dirs/config 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_AW6052/autoptr/vfunc-info/.dirs/system-data1:/tmp/test_autoptr-girepository_AW6052/autoptr/vfunc-info/.dirs/system-data2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/vfunc-info/.dirs/data 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_AW6052/autoptr/vfunc-info/.dirs/state 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_AW6052/autoptr/vfunc-info/.dirs/runtime 3059s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3059s ok - glib/autoptr-girepository.test 3059s ok 21 /autoptr/vfunc-info 3059s # End of autoptr tests 3059s # Start of auto tests 3059s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_AW6052/auto/arg-info/.dirs/home 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_AW6052/auto/arg-info/.dirs/cache 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_AW6052/auto/arg-info/.dirs/system-config1:/tmp/test_autoptr-girepository_AW6052/auto/arg-info/.dirs/system-config2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_AW6052/auto/arg-info/.dirs/config 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_AW6052/auto/arg-info/.dirs/system-data1:/tmp/test_autoptr-girepository_AW6052/auto/arg-info/.dirs/system-data2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_AW6052/auto/arg-info/.dirs/data 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_AW6052/auto/arg-info/.dirs/state 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_AW6052/auto/arg-info/.dirs/runtime 3059s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3059s ok 22 /auto/arg-info 3059s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_AW6052/auto/type-info/.dirs/home 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_AW6052/auto/type-info/.dirs/cache 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_AW6052/auto/type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_AW6052/auto/type-info/.dirs/system-config2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_AW6052/auto/type-info/.dirs/config 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_AW6052/auto/type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_AW6052/auto/type-info/.dirs/system-data2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_AW6052/auto/type-info/.dirs/data 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_AW6052/auto/type-info/.dirs/state 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_AW6052/auto/type-info/.dirs/runtime 3059s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3059s ok 23 /auto/type-info 3059s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_AW6052/auto/function-invoker/.dirs/home 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_AW6052/auto/function-invoker/.dirs/cache 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_AW6052/auto/function-invoker/.dirs/system-config1:/tmp/test_autoptr-girepository_AW6052/auto/function-invoker/.dirs/system-config2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_AW6052/auto/function-invoker/.dirs/config 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_AW6052/auto/function-invoker/.dirs/system-data1:/tmp/test_autoptr-girepository_AW6052/auto/function-invoker/.dirs/system-data2 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_AW6052/auto/function-invoker/.dirs/data 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_AW6052/auto/function-invoker/.dirs/state 3059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_AW6052/auto/function-invoker/.dirs/runtime 3059s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3059s ok 24 /auto/function-invoker 3059s # End of auto tests 3059s # Running test: glib/io-channel-basic.test 3059s TAP version 14 3059s # random seed: R02Sb4fea1a858a61088df162bf1a2a373f2 3059s 1..1 3059s # Start of gio tests 3059s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 3059s # random seed: R02S13cd21702ecede2c49ac4c57e5ab7b1a 3060s # GLib-DEBUG: io-channel-basic: child writing 8+810 bytes to 6 3060s # GLib-DEBUG: io-channel-basic: ...from 5: IN 3060s # GLib-DEBUG: io-channel-basic: ...from 5: 810 bytes 3060s # GLib-DEBUG: io-channel-basic: ...from 5: OK 3060s # GLib-DEBUG: io-channel-basic: child writing 8+1325 bytes to 6 3060s # GLib-DEBUG: io-channel-basic: ...from 5: IN 3060s # GLib-DEBUG: io-channel-basic: ...from 5: 1325 bytes 3060s # GLib-DEBUG: io-channel-basic: ...from 5: OK 3060s # GLib-DEBUG: io-channel-basic: child writing 8+3963 bytes to 6 3060s # GLib-DEBUG: io-channel-basic: ...from 5: IN 3060s # GLib-DEBUG: io-channel-basic: ...from 5: 3963 bytes 3060s # GLib-DEBUG: io-channel-basic: ...from 5: OK 3060s # GLib-DEBUG: io-channel-basic: child writing 8+4546 bytes to 6 3060s # GLib-DEBUG: io-channel-basic: ...from 5: IN 3060s # GLib-DEBUG: io-channel-basic: ...from 5: 4546 bytes 3060s # GLib-DEBUG: io-channel-basic: ...from 5: OK 3061s # GLib-DEBUG: io-channel-basic: child writing 8+1332 bytes to 6 3061s # GLib-DEBUG: io-channel-basic: ...from 5: IN 3061s # GLib-DEBUG: io-channel-basic: ...from 5: 1332 bytes 3061s # GLib-DEBUG: io-channel-basic: ...from 5: OK 3061s # GLib-DEBUG: io-channel-basic: child writing 8+4613 bytes to 6 3061s # GLib-DEBUG: io-channel-basic: ...from 5: IN 3061s # GLib-DEBUG: io-channel-basic: ...from 5: 4613 bytes 3061s # GLib-DEBUG: io-channel-basic: ...from 5: OK 3061s # GLib-DEBUG: io-channel-basic: child writing 8+4350 bytes to 6 3061s # GLib-DEBUG: io-channel-basic: ...from 5: IN 3061s # GLib-DEBUG: io-channel-basic: ...from 5: 4350 bytes 3061s # GLib-DEBUG: io-channel-basic: ...from 5: OK 3061s # GLib-DEBUG: io-channel-basic: child writing 8+2348 bytes to 6 3061s # GLib-DEBUG: io-channel-basic: ...from 5: IN 3061s # GLib-DEBUG: io-channel-basic: ...from 5: 2348 bytes 3061s # GLib-DEBUG: io-channel-basic: ...from 5: OK 3062s # GLib-DEBUG: io-channel-basic: child writing 8+2812 bytes to 6 3062s # GLib-DEBUG: io-channel-basic: ...from 5: IN 3062s # GLib-DEBUG: io-channel-basic: ...from 5: 2812 bytes 3062s # GLib-DEBUG: io-channel-basic: ...from 5: OK 3062s # GLib-DEBUG: io-channel-basic: child writing 8+763 bytes to 6 3062s # GLib-DEBUG: io-channel-basic: ...from 5: IN 3062s # GLib-DEBUG: io-channel-basic: ...from 5: 763 bytes 3062s # GLib-DEBUG: io-channel-basic: ...from 5: OK 3062s # GLib-DEBUG: io-channel-basic: child writing 8+2089 bytes to 6 3062s # GLib-DEBUG: io-channel-basic: ...from 5: IN 3062s # GLib-DEBUG: io-channel-basic: ...from 5: 2089 bytes 3062s # GLib-DEBUG: io-channel-basic: ...from 5: OK 3062s # GLib-DEBUG: io-channel-basic: child writing 8+912 bytes to 6 3062s # GLib-DEBUG: io-channel-basic: ...from 5: IN 3062s # GLib-DEBUG: io-channel-basic: ...from 5: 912 bytes 3062s # GLib-DEBUG: io-channel-basic: ...from 5: OK 3063s # GLib-DEBUG: io-channel-basic: child writing 8+4485 bytes to 6 3063s # GLib-DEBUG: io-channel-basic: ...from 5: IN 3063s # GLib-DEBUG: io-channel-basic: ...from 5: 4485 bytes 3063s # GLib-DEBUG: io-channel-basic: ...from 5: OK 3063s # GLib-DEBUG: io-channel-basic: child writing 8+2639 bytes to 6 3063s # GLib-DEBUG: io-channel-basic: ...from 5: IN 3063s # GLib-DEBUG: io-channel-basic: ...from 5: 2639 bytes 3063s # GLib-DEBUG: io-channel-basic: ...from 5: OK 3063s # GLib-DEBUG: io-channel-basic: child writing 8+4801 bytes to 6 3063s # GLib-DEBUG: io-channel-basic: ...from 5: IN 3063s # GLib-DEBUG: io-channel-basic: ...from 5: 4801 bytes 3063s # GLib-DEBUG: io-channel-basic: ...from 5: OK 3063s # GLib-DEBUG: io-channel-basic: child writing 8+4295 bytes to 6 3063s # GLib-DEBUG: io-channel-basic: ...from 5: IN 3063s # GLib-DEBUG: io-channel-basic: ...from 5: 4295 bytes 3063s # GLib-DEBUG: io-channel-basic: ...from 5: OK 3064s # Executing: glib/io-channel-basic.test 3064s # GLib-DEBUG: io-channel-basic: child writing 8+2410 bytes to 6 3064s # GLib-DEBUG: io-channel-basic: ...from 5: IN 3064s # GLib-DEBUG: io-channel-basic: ...from 5: 2410 bytes 3064s # GLib-DEBUG: io-channel-basic: ...from 5: OK 3064s # GLib-DEBUG: io-channel-basic: child writing 8+1226 bytes to 6 3064s # GLib-DEBUG: io-channel-basic: ...from 5: IN 3064s # GLib-DEBUG: io-channel-basic: ...from 5: 1226 bytes 3064s # GLib-DEBUG: io-channel-basic: ...from 5: OK 3064s # GLib-DEBUG: io-channel-basic: child writing 8+4048 bytes to 6 3064s # GLib-DEBUG: io-channel-basic: ...from 5: IN 3064s # GLib-DEBUG: io-channel-basic: ...from 5: 4048 bytes 3064s # GLib-DEBUG: io-channel-basic: ...from 5: OK 3065s # GLib-DEBUG: io-channel-basic: child writing 8+2765 bytes to 6 3065s # GLib-DEBUG: io-channel-basic: ...from 5: IN 3065s # GLib-DEBUG: io-channel-basic: ...from 5: 2765 bytes 3065s # GLib-DEBUG: io-channel-basic: ...from 5: OK 3065s # GLib-DEBUG: io-channel-basic: child writing 8+3618 bytes to 6 3065s # GLib-DEBUG: io-channel-basic: child exiting, closing 6 3065s # GLib-DEBUG: io-channel-basic: ...from 5: HUP IN 3065s # GLib-DEBUG: io-channel-basic: ...from 5: 3618 bytes 3065s # GLib-DEBUG: io-channel-basic: ...from 5: OK 3065s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 3065s # random seed: R02Sf4d64688937b6daffcdfe8620897879a 3065s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 3065s # random seed: R02S803e7af2d27ec73ae83f6566471ed939 3065s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 3065s # random seed: R02S0cb3f0feb02fb364f84f371dc8f45c75 3065s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 3065s # random seed: R02Sf003e9663c0b11db76072458df82d10c 3065s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 3065s # random seed: R02S313be93a0f7842d44874ba7da2ac1564 3065s # GLib-DEBUG: io-channel-basic: child writing 8+2344 bytes to 9 3065s # GLib-DEBUG: io-channel-basic: ...from 8: IN 3065s # GLib-DEBUG: io-channel-basic: ...from 8: 2344 bytes 3065s # GLib-DEBUG: io-channel-basic: ...from 8: OK 3065s # GLib-DEBUG: io-channel-basic: child writing 8+605 bytes to 11 3065s # GLib-DEBUG: io-channel-basic: ...from 10: IN 3065s # GLib-DEBUG: io-channel-basic: ...from 10: 605 bytes 3065s # GLib-DEBUG: io-channel-basic: ...from 10: OK 3065s # GLib-DEBUG: io-channel-basic: child writing 8+3153 bytes to 13 3065s # GLib-DEBUG: io-channel-basic: ...from 12: IN 3065s # GLib-DEBUG: io-channel-basic: ...from 12: 3153 bytes 3065s # GLib-DEBUG: io-channel-basic: ...from 12: OK 3065s # GLib-DEBUG: io-channel-basic: child writing 8+4503 bytes to 15 3065s # GLib-DEBUG: io-channel-basic: ...from 14: IN 3065s # GLib-DEBUG: io-channel-basic: ...from 14: 4503 bytes 3065s # GLib-DEBUG: io-channel-basic: ...from 14: OK 3065s # GLib-DEBUG: io-channel-basic: child writing 8+3315 bytes to 17 3065s # GLib-DEBUG: io-channel-basic: ...from 16: IN 3065s # GLib-DEBUG: io-channel-basic: ...from 16: 3315 bytes 3065s # GLib-DEBUG: io-channel-basic: ...from 16: OK 3065s # GLib-DEBUG: io-channel-basic: child writing 8+3639 bytes to 9 3065s # GLib-DEBUG: io-channel-basic: ...from 8: IN 3065s # GLib-DEBUG: io-channel-basic: ...from 8: 3639 bytes 3065s # GLib-DEBUG: io-channel-basic: ...from 8: OK 3065s # GLib-DEBUG: io-channel-basic: child writing 8+835 bytes to 11 3065s # GLib-DEBUG: io-channel-basic: ...from 10: IN 3065s # GLib-DEBUG: io-channel-basic: ...from 10: 835 bytes 3065s # GLib-DEBUG: io-channel-basic: ...from 10: OK 3066s # GLib-DEBUG: io-channel-basic: child writing 8+591 bytes to 13 3066s # GLib-DEBUG: io-channel-basic: ...from 12: IN 3066s # GLib-DEBUG: io-channel-basic: ...from 12: 591 bytes 3066s # GLib-DEBUG: io-channel-basic: ...from 12: OK 3066s # GLib-DEBUG: io-channel-basic: child writing 8+3769 bytes to 15 3066s # GLib-DEBUG: io-channel-basic: ...from 14: IN 3066s # GLib-DEBUG: io-channel-basic: ...from 14: 3769 bytes 3066s # GLib-DEBUG: io-channel-basic: ...from 14: OK 3066s # GLib-DEBUG: io-channel-basic: child writing 8+3459 bytes to 17 3066s # GLib-DEBUG: io-channel-basic: ...from 16: IN 3066s # GLib-DEBUG: io-channel-basic: ...from 16: 3459 bytes 3066s # GLib-DEBUG: io-channel-basic: ...from 16: OK 3066s # GLib-DEBUG: io-channel-basic: child writing 8+2380 bytes to 9 3066s # GLib-DEBUG: io-channel-basic: ...from 8: IN 3066s # GLib-DEBUG: io-channel-basic: ...from 8: 2380 bytes 3066s # GLib-DEBUG: io-channel-basic: ...from 8: OK 3066s # GLib-DEBUG: io-channel-basic: child writing 8+2990 bytes to 11 3066s # GLib-DEBUG: io-channel-basic: ...from 10: IN 3066s # GLib-DEBUG: io-channel-basic: ...from 10: 2990 bytes 3066s # GLib-DEBUG: io-channel-basic: ...from 10: OK 3066s # GLib-DEBUG: io-channel-basic: child writing 8+2709 bytes to 13 3066s # GLib-DEBUG: io-channel-basic: ...from 12: IN 3066s # GLib-DEBUG: io-channel-basic: ...from 12: 2709 bytes 3066s # GLib-DEBUG: io-channel-basic: ...from 12: OK 3066s # GLib-DEBUG: io-channel-basic: child writing 8+2229 bytes to 17 3066s # GLib-DEBUG: io-channel-basic: ...from 16: IN 3066s # GLib-DEBUG: io-channel-basic: ...from 16: 2229 bytes 3066s # GLib-DEBUG: io-channel-basic: ...from 16: OK 3066s # GLib-DEBUG: io-channel-basic: child writing 8+1433 bytes to 15 3066s # GLib-DEBUG: io-channel-basic: ...from 14: IN 3066s # GLib-DEBUG: io-channel-basic: ...from 14: 1433 bytes 3066s # GLib-DEBUG: io-channel-basic: ...from 14: OK 3066s # GLib-DEBUG: io-channel-basic: child writing 8+2327 bytes to 9 3066s # GLib-DEBUG: io-channel-basic: ...from 8: IN 3066s # GLib-DEBUG: io-channel-basic: ...from 8: 2327 bytes 3066s # GLib-DEBUG: io-channel-basic: ...from 8: OK 3066s # GLib-DEBUG: io-channel-basic: child writing 8+725 bytes to 11 3066s # GLib-DEBUG: io-channel-basic: ...from 10: IN 3066s # GLib-DEBUG: io-channel-basic: ...from 10: 725 bytes 3066s # GLib-DEBUG: io-channel-basic: ...from 10: OK 3066s # GLib-DEBUG: io-channel-basic: child writing 8+1541 bytes to 13 3066s # GLib-DEBUG: io-channel-basic: ...from 12: IN 3066s # GLib-DEBUG: io-channel-basic: ...from 12: 1541 bytes 3066s # GLib-DEBUG: io-channel-basic: ...from 12: OK 3066s # GLib-DEBUG: io-channel-basic: child writing 8+3974 bytes to 15 3066s # GLib-DEBUG: io-channel-basic: ...from 14: IN 3066s # GLib-DEBUG: io-channel-basic: ...from 14: 3974 bytes 3066s # GLib-DEBUG: io-channel-basic: ...from 14: OK 3066s # GLib-DEBUG: io-channel-basic: child writing 8+3132 bytes to 17 3066s # GLib-DEBUG: io-channel-basic: ...from 16: IN 3066s # GLib-DEBUG: io-channel-basic: ...from 16: 3132 bytes 3066s # GLib-DEBUG: io-channel-basic: ...from 16: OK 3066s # GLib-DEBUG: io-channel-basic: child writing 8+4892 bytes to 9 3066s # GLib-DEBUG: io-channel-basic: ...from 8: IN 3066s # GLib-DEBUG: io-channel-basic: ...from 8: 4892 bytes 3066s # GLib-DEBUG: io-channel-basic: ...from 8: OK 3066s # GLib-DEBUG: io-channel-basic: child writing 8+319 bytes to 11 3066s # GLib-DEBUG: io-channel-basic: ...from 10: IN 3066s # GLib-DEBUG: io-channel-basic: ...from 10: 319 bytes 3066s # GLib-DEBUG: io-channel-basic: ...from 10: OK 3066s # GLib-DEBUG: io-channel-basic: child writing 8+306 bytes to 13 3066s # GLib-DEBUG: io-channel-basic: ...from 12: IN 3066s # GLib-DEBUG: io-channel-basic: ...from 12: 306 bytes 3066s # GLib-DEBUG: io-channel-basic: ...from 12: OK 3066s # GLib-DEBUG: io-channel-basic: child writing 8+4047 bytes to 15 3066s # GLib-DEBUG: io-channel-basic: ...from 14: IN 3066s # GLib-DEBUG: io-channel-basic: ...from 14: 4047 bytes 3066s # GLib-DEBUG: io-channel-basic: ...from 14: OK 3066s # GLib-DEBUG: io-channel-basic: child writing 8+1024 bytes to 17 3066s # GLib-DEBUG: io-channel-basic: ...from 16: IN 3066s # GLib-DEBUG: io-channel-basic: ...from 16: 1024 bytes 3066s # GLib-DEBUG: io-channel-basic: ...from 16: OK 3066s # GLib-DEBUG: io-channel-basic: child writing 8+4731 bytes to 9 3066s # GLib-DEBUG: io-channel-basic: ...from 8: IN 3066s # GLib-DEBUG: io-channel-basic: ...from 8: 4731 bytes 3066s # GLib-DEBUG: io-channel-basic: ...from 8: OK 3067s # GLib-DEBUG: io-channel-basic: child writing 8+394 bytes to 11 3067s # GLib-DEBUG: io-channel-basic: ...from 10: IN 3067s # GLib-DEBUG: io-channel-basic: ...from 10: 394 bytes 3067s # GLib-DEBUG: io-channel-basic: ...from 10: OK 3067s # GLib-DEBUG: io-channel-basic: child writing 8+3568 bytes to 13 3067s # GLib-DEBUG: io-channel-basic: ...from 12: IN 3067s # GLib-DEBUG: io-channel-basic: ...from 12: 3568 bytes 3067s # GLib-DEBUG: io-channel-basic: ...from 12: OK 3067s # GLib-DEBUG: io-channel-basic: child writing 8+4628 bytes to 15 3067s # GLib-DEBUG: io-channel-basic: ...from 14: IN 3067s # GLib-DEBUG: io-channel-basic: ...from 14: 4628 bytes 3067s # GLib-DEBUG: io-channel-basic: ...from 14: OK 3067s # GLib-DEBUG: io-channel-basic: child writing 8+354 bytes to 17 3067s # GLib-DEBUG: io-channel-basic: ...from 16: IN 3067s # GLib-DEBUG: io-channel-basic: ...from 16: 354 bytes 3067s # GLib-DEBUG: io-channel-basic: ...from 16: OK 3067s # GLib-DEBUG: io-channel-basic: child writing 8+151 bytes to 9 3067s # GLib-DEBUG: io-channel-basic: ...from 8: IN 3067s # GLib-DEBUG: io-channel-basic: ...from 8: 151 bytes 3067s # GLib-DEBUG: io-channel-basic: ...from 8: OK 3067s # GLib-DEBUG: io-channel-basic: child writing 8+3009 bytes to 13 3067s # GLib-DEBUG: io-channel-basic: ...from 12: IN 3067s # GLib-DEBUG: io-channel-basic: ...from 12: 3009 bytes 3067s # GLib-DEBUG: io-channel-basic: ...from 12: OK 3067s # GLib-DEBUG: io-channel-basic: child writing 8+2945 bytes to 11 3067s # GLib-DEBUG: io-channel-basic: ...from 10: IN 3067s # GLib-DEBUG: io-channel-basic: ...from 10: 2945 bytes 3067s # GLib-DEBUG: io-channel-basic: ...from 10: OK 3067s # GLib-DEBUG: io-channel-basic: child writing 8+776 bytes to 15 3067s # GLib-DEBUG: io-channel-basic: ...from 14: IN 3067s # GLib-DEBUG: io-channel-basic: ...from 14: 776 bytes 3067s # GLib-DEBUG: io-channel-basic: ...from 14: OK 3067s # GLib-DEBUG: io-channel-basic: child writing 8+4978 bytes to 17 3067s # GLib-DEBUG: io-channel-basic: ...from 16: IN 3067s # GLib-DEBUG: io-channel-basic: ...from 16: 4978 bytes 3067s # GLib-DEBUG: io-channel-basic: ...from 16: OK 3067s # GLib-DEBUG: io-channel-basic: child writing 8+286 bytes to 9 3067s # GLib-DEBUG: io-channel-basic: ...from 8: IN 3067s # GLib-DEBUG: io-channel-basic: ...from 8: 286 bytes 3067s # GLib-DEBUG: io-channel-basic: ...from 8: OK 3067s # GLib-DEBUG: io-channel-basic: child writing 8+3870 bytes to 11 3067s # GLib-DEBUG: io-channel-basic: ...from 10: IN 3067s # GLib-DEBUG: io-channel-basic: ...from 10: 3870 bytes 3067s # GLib-DEBUG: io-channel-basic: ...from 10: OK 3067s # GLib-DEBUG: io-channel-basic: child writing 8+936 bytes to 13 3067s # GLib-DEBUG: io-channel-basic: ...from 12: IN 3067s # GLib-DEBUG: io-channel-basic: ...from 12: 936 bytes 3067s # GLib-DEBUG: io-channel-basic: ...from 12: OK 3067s # GLib-DEBUG: io-channel-basic: child writing 8+1697 bytes to 15 3067s # GLib-DEBUG: io-channel-basic: ...from 14: IN 3067s # GLib-DEBUG: io-channel-basic: ...from 14: 1697 bytes 3067s # GLib-DEBUG: io-channel-basic: ...from 14: OK 3067s # GLib-DEBUG: io-channel-basic: child writing 8+3782 bytes to 17 3067s # GLib-DEBUG: io-channel-basic: ...from 16: IN 3067s # GLib-DEBUG: io-channel-basic: ...from 16: 3782 bytes 3067s # GLib-DEBUG: io-channel-basic: ...from 16: OK 3067s # GLib-DEBUG: io-channel-basic: child writing 8+4157 bytes to 9 3067s # GLib-DEBUG: io-channel-basic: ...from 8: IN 3067s # GLib-DEBUG: io-channel-basic: ...from 8: 4157 bytes 3067s # GLib-DEBUG: io-channel-basic: ...from 8: OK 3067s # GLib-DEBUG: io-channel-basic: child writing 8+3337 bytes to 11 3067s # GLib-DEBUG: io-channel-basic: ...from 10: IN 3067s # GLib-DEBUG: io-channel-basic: ...from 10: 3337 bytes 3067s # GLib-DEBUG: io-channel-basic: ...from 10: OK 3067s # GLib-DEBUG: io-channel-basic: child writing 8+3313 bytes to 13 3067s # GLib-DEBUG: io-channel-basic: ...from 12: IN 3067s # GLib-DEBUG: io-channel-basic: ...from 12: 3313 bytes 3067s # GLib-DEBUG: io-channel-basic: ...from 12: OK 3067s # GLib-DEBUG: io-channel-basic: child writing 8+337 bytes to 15 3067s # GLib-DEBUG: io-channel-basic: ...from 14: IN 3067s # GLib-DEBUG: io-channel-basic: ...from 14: 337 bytes 3067s # GLib-DEBUG: io-channel-basic: ...from 14: OK 3067s # GLib-DEBUG: io-channel-basic: child writing 8+2533 bytes to 17 3067s # GLib-DEBUG: io-channel-basic: ...from 16: IN 3067s # GLib-DEBUG: io-channel-basic: ...from 16: 2533 bytes 3067s # GLib-DEBUG: io-channel-basic: ...from 16: OK 3068s # GLib-DEBUG: io-channel-basic: child writing 8+154 bytes to 9 3068s # GLib-DEBUG: io-channel-basic: ...from 8: IN 3068s # GLib-DEBUG: io-channel-basic: ...from 8: 154 bytes 3068s # GLib-DEBUG: io-channel-basic: ...from 8: OK 3068s # GLib-DEBUG: io-channel-basic: child writing 8+3270 bytes to 11 3068s # GLib-DEBUG: io-channel-basic: ...from 10: IN 3068s # GLib-DEBUG: io-channel-basic: ...from 10: 3270 bytes 3068s # GLib-DEBUG: io-channel-basic: ...from 10: OK 3068s # GLib-DEBUG: io-channel-basic: child writing 8+4588 bytes to 13 3068s # GLib-DEBUG: io-channel-basic: ...from 12: IN 3068s # GLib-DEBUG: io-channel-basic: ...from 12: 4588 bytes 3068s # GLib-DEBUG: io-channel-basic: ...from 12: OK 3068s # GLib-DEBUG: io-channel-basic: child writing 8+538 bytes to 15 3068s # GLib-DEBUG: io-channel-basic: ...from 14: IN 3068s # GLib-DEBUG: io-channel-basic: ...from 14: 538 bytes 3068s # GLib-DEBUG: io-channel-basic: ...from 14: OK 3068s # GLib-DEBUG: io-channel-basic: child writing 8+3467 bytes to 17 3068s # GLib-DEBUG: io-channel-basic: ...from 16: IN 3068s # GLib-DEBUG: io-channel-basic: ...from 16: 3467 bytes 3068s # GLib-DEBUG: io-channel-basic: ...from 16: OK 3068s # GLib-DEBUG: io-channel-basic: child writing 8+1698 bytes to 9 3068s # GLib-DEBUG: io-channel-basic: ...from 8: IN 3068s # GLib-DEBUG: io-channel-basic: ...from 8: 1698 bytes 3068s # GLib-DEBUG: io-channel-basic: ...from 8: OK 3068s # GLib-DEBUG: io-channel-basic: child writing 8+2607 bytes to 11 3068s # GLib-DEBUG: io-channel-basic: ...from 10: IN 3068s # GLib-DEBUG: io-channel-basic: ...from 10: 2607 bytes 3068s # GLib-DEBUG: io-channel-basic: ...from 10: OK 3068s # GLib-DEBUG: io-channel-basic: child writing 8+4644 bytes to 13 3068s # GLib-DEBUG: io-channel-basic: ...from 12: IN 3068s # GLib-DEBUG: io-channel-basic: ...from 12: 4644 bytes 3068s # GLib-DEBUG: io-channel-basic: ...from 12: OK 3068s # GLib-DEBUG: io-channel-basic: child writing 8+1957 bytes to 15 3068s # GLib-DEBUG: io-channel-basic: ...from 14: IN 3068s # GLib-DEBUG: io-channel-basic: ...from 14: 1957 bytes 3068s # GLib-DEBUG: io-channel-basic: ...from 14: OK 3068s # GLib-DEBUG: io-channel-basic: child writing 8+1126 bytes to 17 3068s # GLib-DEBUG: io-channel-basic: ...from 16: IN 3068s # GLib-DEBUG: io-channel-basic: ...from 16: 1126 bytes 3068s # GLib-DEBUG: io-channel-basic: ...from 16: OK 3068s # GLib-DEBUG: io-channel-basic: child writing 8+610 bytes to 9 3068s # GLib-DEBUG: io-channel-basic: ...from 8: IN 3068s # GLib-DEBUG: io-channel-basic: ...from 8: 610 bytes 3068s # GLib-DEBUG: io-channel-basic: ...from 8: OK 3068s # GLib-DEBUG: io-channel-basic: child writing 8+3599 bytes to 11 3068s # GLib-DEBUG: io-channel-basic: ...from 10: IN 3068s # GLib-DEBUG: io-channel-basic: ...from 10: 3599 bytes 3068s # GLib-DEBUG: io-channel-basic: ...from 10: OK 3068s # GLib-DEBUG: io-channel-basic: child writing 8+2920 bytes to 13 3068s # GLib-DEBUG: io-channel-basic: ...from 12: IN 3068s # GLib-DEBUG: io-channel-basic: ...from 12: 2920 bytes 3068s # GLib-DEBUG: io-channel-basic: ...from 12: OK 3068s # GLib-DEBUG: io-channel-basic: child writing 8+4218 bytes to 15 3068s # GLib-DEBUG: io-channel-basic: ...from 14: IN 3068s # GLib-DEBUG: io-channel-basic: ...from 14: 4218 bytes 3068s # GLib-DEBUG: io-channel-basic: ...from 14: OK 3068s # GLib-DEBUG: io-channel-basic: child writing 8+3369 bytes to 17 3068s # GLib-DEBUG: io-channel-basic: ...from 16: IN 3068s # GLib-DEBUG: io-channel-basic: ...from 16: 3369 bytes 3068s # GLib-DEBUG: io-channel-basic: ...from 16: OK 3068s # GLib-DEBUG: io-channel-basic: child writing 8+4555 bytes to 9 3068s # GLib-DEBUG: io-channel-basic: ...from 8: IN 3068s # GLib-DEBUG: io-channel-basic: ...from 8: 4555 bytes 3068s # GLib-DEBUG: io-channel-basic: ...from 8: OK 3068s # GLib-DEBUG: io-channel-basic: child writing 8+1407 bytes to 13 3068s # GLib-DEBUG: io-channel-basic: ...from 12: IN 3068s # GLib-DEBUG: io-channel-basic: ...from 12: 1407 bytes 3068s # GLib-DEBUG: io-channel-basic: ...from 12: OK 3068s # GLib-DEBUG: io-channel-basic: child writing 8+1572 bytes to 11 3068s # GLib-DEBUG: io-channel-basic: ...from 10: IN 3068s # GLib-DEBUG: io-channel-basic: ...from 10: 1572 bytes 3068s # GLib-DEBUG: io-channel-basic: ...from 10: OK 3068s # GLib-DEBUG: io-channel-basic: child writing 8+366 bytes to 15 3068s # GLib-DEBUG: io-channel-basic: ...from 14: IN 3068s # GLib-DEBUG: io-channel-basic: ...from 14: 366 bytes 3068s # GLib-DEBUG: io-channel-basic: ...from 14: OK 3068s # GLib-DEBUG: io-channel-basic: child writing 8+2964 bytes to 17 3068s # GLib-DEBUG: io-channel-basic: ...from 16: IN 3068s # GLib-DEBUG: io-channel-basic: ...from 16: 2964 bytes 3068s # GLib-DEBUG: io-channel-basic: ...from 16: OK 3069s # GLib-DEBUG: io-channel-basic: child writing 8+1690 bytes to 9 3069s # GLib-DEBUG: io-channel-basic: child writing 8+3589 bytes to 11 3069s # GLib-DEBUG: io-channel-basic: ...from 8: IN 3069s # GLib-DEBUG: io-channel-basic: ...from 8: 1690 bytes 3069s # GLib-DEBUG: io-channel-basic: ...from 8: OK 3069s # GLib-DEBUG: io-channel-basic: ...from 10: IN 3069s # GLib-DEBUG: io-channel-basic: ...from 10: 3589 bytes 3069s # GLib-DEBUG: io-channel-basic: ...from 10: OK 3069s # GLib-DEBUG: io-channel-basic: child writing 8+3799 bytes to 13 3069s # GLib-DEBUG: io-channel-basic: ...from 12: IN 3069s # GLib-DEBUG: io-channel-basic: ...from 12: 3799 bytes 3069s # GLib-DEBUG: io-channel-basic: ...from 12: OK 3069s # Executing: glib/io-channel-basic.test 3069s # GLib-DEBUG: io-channel-basic: child writing 8+1011 bytes to 15 3069s # GLib-DEBUG: io-channel-basic: ...from 14: IN 3069s # GLib-DEBUG: io-channel-basic: ...from 14: 1011 bytes 3069s # GLib-DEBUG: io-channel-basic: ...from 14: OK 3069s # GLib-DEBUG: io-channel-basic: child writing 8+3463 bytes to 17 3069s # GLib-DEBUG: io-channel-basic: ...from 16: IN 3069s # GLib-DEBUG: io-channel-basic: ...from 16: 3463 bytes 3069s # GLib-DEBUG: io-channel-basic: ...from 16: OK 3069s # GLib-DEBUG: io-channel-basic: child writing 8+1690 bytes to 11 3069s # GLib-DEBUG: io-channel-basic: ...from 10: IN 3069s # GLib-DEBUG: io-channel-basic: ...from 10: 1690 bytes 3069s # GLib-DEBUG: io-channel-basic: ...from 10: OK 3069s # GLib-DEBUG: io-channel-basic: child writing 8+3674 bytes to 9 3069s # GLib-DEBUG: io-channel-basic: ...from 8: IN 3069s # GLib-DEBUG: io-channel-basic: ...from 8: 3674 bytes 3069s # GLib-DEBUG: io-channel-basic: ...from 8: OK 3069s # GLib-DEBUG: io-channel-basic: child writing 8+1303 bytes to 13 3069s # GLib-DEBUG: io-channel-basic: ...from 12: IN 3069s # GLib-DEBUG: io-channel-basic: ...from 12: 1303 bytes 3069s # GLib-DEBUG: io-channel-basic: ...from 12: OK 3069s # GLib-DEBUG: io-channel-basic: child writing 8+805 bytes to 15 3069s # GLib-DEBUG: io-channel-basic: ...from 14: IN 3069s # GLib-DEBUG: io-channel-basic: ...from 14: 805 bytes 3069s # GLib-DEBUG: io-channel-basic: ...from 14: OK 3069s # GLib-DEBUG: io-channel-basic: child writing 8+3747 bytes to 17 3069s # GLib-DEBUG: io-channel-basic: ...from 16: IN 3069s # GLib-DEBUG: io-channel-basic: ...from 16: 3747 bytes 3069s # GLib-DEBUG: io-channel-basic: ...from 16: OK 3069s # GLib-DEBUG: io-channel-basic: child writing 8+2047 bytes to 11 3069s # GLib-DEBUG: io-channel-basic: ...from 10: IN 3069s # GLib-DEBUG: io-channel-basic: ...from 10: 2047 bytes 3069s # GLib-DEBUG: io-channel-basic: ...from 10: OK 3069s # GLib-DEBUG: io-channel-basic: child writing 8+393 bytes to 9 3069s # GLib-DEBUG: io-channel-basic: ...from 8: IN 3069s # GLib-DEBUG: io-channel-basic: ...from 8: 393 bytes 3069s # GLib-DEBUG: io-channel-basic: ...from 8: OK 3069s # GLib-DEBUG: io-channel-basic: child writing 8+1696 bytes to 13 3069s # GLib-DEBUG: io-channel-basic: ...from 12: IN 3069s # GLib-DEBUG: io-channel-basic: ...from 12: 1696 bytes 3069s # GLib-DEBUG: io-channel-basic: ...from 12: OK 3069s # GLib-DEBUG: io-channel-basic: child writing 8+2498 bytes to 15 3069s # GLib-DEBUG: io-channel-basic: ...from 14: IN 3069s # GLib-DEBUG: io-channel-basic: ...from 14: 2498 bytes 3069s # GLib-DEBUG: io-channel-basic: ...from 14: OK 3069s # GLib-DEBUG: io-channel-basic: child writing 8+1343 bytes to 17 3069s # GLib-DEBUG: io-channel-basic: ...from 16: IN 3069s # GLib-DEBUG: io-channel-basic: ...from 16: 1343 bytes 3069s # GLib-DEBUG: io-channel-basic: ...from 16: OK 3069s # GLib-DEBUG: io-channel-basic: child writing 8+3594 bytes to 9 3069s # GLib-DEBUG: io-channel-basic: ...from 8: IN 3069s # GLib-DEBUG: io-channel-basic: ...from 8: 3594 bytes 3069s # GLib-DEBUG: io-channel-basic: ...from 8: OK 3069s # GLib-DEBUG: io-channel-basic: child writing 8+4070 bytes to 11 3069s # GLib-DEBUG: io-channel-basic: ...from 10: IN 3069s # GLib-DEBUG: io-channel-basic: ...from 10: 4070 bytes 3069s # GLib-DEBUG: io-channel-basic: ...from 10: OK 3069s # GLib-DEBUG: io-channel-basic: child writing 8+126 bytes to 13 3069s # GLib-DEBUG: io-channel-basic: ...from 12: IN 3069s # GLib-DEBUG: io-channel-basic: ...from 12: 126 bytes 3069s # GLib-DEBUG: io-channel-basic: ...from 12: OK 3070s # GLib-DEBUG: io-channel-basic: child writing 8+2926 bytes to 15 3070s # GLib-DEBUG: io-channel-basic: ...from 14: IN 3070s # GLib-DEBUG: io-channel-basic: ...from 14: 2926 bytes 3070s # GLib-DEBUG: io-channel-basic: ...from 14: OK 3070s # GLib-DEBUG: io-channel-basic: child writing 8+959 bytes to 17 3070s # GLib-DEBUG: io-channel-basic: ...from 16: IN 3070s # GLib-DEBUG: io-channel-basic: ...from 16: 959 bytes 3070s # GLib-DEBUG: io-channel-basic: ...from 16: OK 3070s # GLib-DEBUG: io-channel-basic: child writing 8+2656 bytes to 9 3070s # GLib-DEBUG: io-channel-basic: ...from 8: IN 3070s # GLib-DEBUG: io-channel-basic: ...from 8: 2656 bytes 3070s # GLib-DEBUG: io-channel-basic: ...from 8: OK 3070s # GLib-DEBUG: io-channel-basic: child writing 8+1495 bytes to 11 3070s # GLib-DEBUG: io-channel-basic: ...from 10: IN 3070s # GLib-DEBUG: io-channel-basic: ...from 10: 1495 bytes 3070s # GLib-DEBUG: io-channel-basic: ...from 10: OK 3070s # GLib-DEBUG: io-channel-basic: child writing 8+1226 bytes to 13 3070s # GLib-DEBUG: io-channel-basic: ...from 12: IN 3070s # GLib-DEBUG: io-channel-basic: ...from 12: 1226 bytes 3070s # GLib-DEBUG: io-channel-basic: ...from 12: OK 3070s # GLib-DEBUG: io-channel-basic: child writing 8+182 bytes to 15 3070s # GLib-DEBUG: io-channel-basic: ...from 14: IN 3070s # GLib-DEBUG: io-channel-basic: ...from 14: 182 bytes 3070s # GLib-DEBUG: io-channel-basic: ...from 14: OK 3070s # GLib-DEBUG: io-channel-basic: child writing 8+3138 bytes to 17 3070s # GLib-DEBUG: io-channel-basic: ...from 16: IN 3070s # GLib-DEBUG: io-channel-basic: ...from 16: 3138 bytes 3070s # GLib-DEBUG: io-channel-basic: ...from 16: OK 3070s # GLib-DEBUG: io-channel-basic: child writing 8+4681 bytes to 11 3070s # GLib-DEBUG: io-channel-basic: ...from 10: IN 3070s # GLib-DEBUG: io-channel-basic: ...from 10: 4681 bytes 3070s # GLib-DEBUG: io-channel-basic: ...from 10: OK 3070s # GLib-DEBUG: io-channel-basic: child writing 8+4176 bytes to 9 3070s # GLib-DEBUG: io-channel-basic: ...from 8: IN 3070s # GLib-DEBUG: io-channel-basic: ...from 8: 4176 bytes 3070s # GLib-DEBUG: io-channel-basic: ...from 8: OK 3070s # GLib-DEBUG: io-channel-basic: child writing 8+1545 bytes to 13 3070s # GLib-DEBUG: io-channel-basic: ...from 12: IN 3070s # GLib-DEBUG: io-channel-basic: ...from 12: 1545 bytes 3070s # GLib-DEBUG: io-channel-basic: ...from 12: OK 3070s # GLib-DEBUG: io-channel-basic: child writing 8+2789 bytes to 15 3070s # GLib-DEBUG: io-channel-basic: ...from 14: IN 3070s # GLib-DEBUG: io-channel-basic: ...from 14: 2789 bytes 3070s # GLib-DEBUG: io-channel-basic: ...from 14: OK 3070s # GLib-DEBUG: io-channel-basic: child writing 8+4755 bytes to 17 3070s # GLib-DEBUG: io-channel-basic: ...from 16: IN 3070s # GLib-DEBUG: io-channel-basic: ...from 16: 4755 bytes 3070s # GLib-DEBUG: io-channel-basic: ...from 16: OK 3070s # GLib-DEBUG: io-channel-basic: child writing 8+2955 bytes to 9 3070s # GLib-DEBUG: io-channel-basic: ...from 8: IN 3070s # GLib-DEBUG: io-channel-basic: ...from 8: 2955 bytes 3070s # GLib-DEBUG: io-channel-basic: ...from 8: OK 3070s # GLib-DEBUG: io-channel-basic: child writing 8+4727 bytes to 11 3070s # GLib-DEBUG: io-channel-basic: ...from 10: IN 3070s # GLib-DEBUG: io-channel-basic: ...from 10: 4727 bytes 3070s # GLib-DEBUG: io-channel-basic: ...from 10: OK 3070s # GLib-DEBUG: io-channel-basic: child writing 8+102 bytes to 13 3070s # GLib-DEBUG: io-channel-basic: child exiting, closing 13 3070s # GLib-DEBUG: io-channel-basic: ...from 12: HUP IN 3070s # GLib-DEBUG: io-channel-basic: ...from 12: 102 bytes 3070s # GLib-DEBUG: io-channel-basic: ...from 12: OK 3070s # GLib-DEBUG: io-channel-basic: child writing 8+1674 bytes to 15 3070s # GLib-DEBUG: io-channel-basic: ...from 14: IN 3070s # GLib-DEBUG: io-channel-basic: ...from 14: 1674 bytes 3070s # GLib-DEBUG: io-channel-basic: ...from 14: OK 3070s # GLib-DEBUG: io-channel-basic: child writing 8+3046 bytes to 17 3070s # GLib-DEBUG: io-channel-basic: ...from 16: IN 3070s # GLib-DEBUG: io-channel-basic: ...from 16: 3046 bytes 3070s # GLib-DEBUG: io-channel-basic: ...from 16: OK 3070s # GLib-DEBUG: io-channel-basic: child writing 8+3729 bytes to 9 3070s # GLib-DEBUG: io-channel-basic: ...from 8: IN 3070s # GLib-DEBUG: io-channel-basic: ...from 8: 3729 bytes 3070s # GLib-DEBUG: io-channel-basic: ...from 8: OK 3070s # GLib-DEBUG: io-channel-basic: child writing 8+2966 bytes to 11 3070s # GLib-DEBUG: io-channel-basic: child exiting, closing 11 3070s # GLib-DEBUG: io-channel-basic: ...from 10: HUP IN 3070s # GLib-DEBUG: io-channel-basic: ...from 10: 2966 bytes 3070s # GLib-DEBUG: io-channel-basic: ...from 10: OK 3071s # GLib-DEBUG: io-channel-basic: child writing 8+1289 bytes to 15 3071s # GLib-DEBUG: io-channel-basic: ...from 14: IN 3071s # GLib-DEBUG: io-channel-basic: ...from 14: 1289 bytes 3071s # GLib-DEBUG: io-channel-basic: ...from 14: OK 3071s # GLib-DEBUG: io-channel-basic: child writing 8+723 bytes to 17 3071s # GLib-DEBUG: io-channel-basic: child exiting, closing 17 3071s # GLib-DEBUG: io-channel-basic: ...from 16: HUP IN 3071s # GLib-DEBUG: io-channel-basic: ...from 16: 723 bytes 3071s # GLib-DEBUG: io-channel-basic: ...from 16: OK 3071s # GLib-DEBUG: io-channel-basic: child writing 8+706 bytes to 9 3071s # GLib-DEBUG: io-channel-basic: ...from 8: IN 3071s # GLib-DEBUG: io-channel-basic: ...from 8: 706 bytes 3071s # GLib-DEBUG: io-channel-basic: ...from 8: OK 3071s # GLib-DEBUG: io-channel-basic: child writing 8+4473 bytes to 15 3071s # GLib-DEBUG: io-channel-basic: ...from 14: IN 3071s # GLib-DEBUG: io-channel-basic: ...from 14: 4473 bytes 3071s # GLib-DEBUG: io-channel-basic: ...from 14: OK 3071s # GLib-DEBUG: io-channel-basic: child writing 8+1895 bytes to 9 3071s # GLib-DEBUG: io-channel-basic: ...from 8: IN 3071s # GLib-DEBUG: io-channel-basic: ...from 8: 1895 bytes 3071s # GLib-DEBUG: io-channel-basic: ...from 8: OK 3071s # GLib-DEBUG: io-channel-basic: child writing 8+3894 bytes to 15 3071s # GLib-DEBUG: io-channel-basic: ...from 14: IN 3071s # GLib-DEBUG: io-channel-basic: ...from 14: 3894 bytes 3071s # GLib-DEBUG: io-channel-basic: ...from 14: OK 3071s # GLib-DEBUG: io-channel-basic: child writing 8+1923 bytes to 9 3071s # GLib-DEBUG: io-channel-basic: child exiting, closing 9 3071s # GLib-DEBUG: io-channel-basic: ...from 8: HUP IN 3071s # GLib-DEBUG: io-channel-basic: ...from 8: 1923 bytes 3071s # GLib-DEBUG: io-channel-basic: ...from 8: OK 3071s # GLib-DEBUG: io-channel-basic: child writing 8+4963 bytes to 15 3071s # GLib-DEBUG: io-channel-basic: ...from 14: IN 3071s # GLib-DEBUG: io-channel-basic: ...from 14: 4963 bytes 3071s # GLib-DEBUG: io-channel-basic: ...from 14: OK 3072s # GLib-DEBUG: io-channel-basic: child writing 8+1616 bytes to 15 3072s # GLib-DEBUG: io-channel-basic: child exiting, closing 15 3072s # GLib-DEBUG: io-channel-basic: ...from 14: HUP IN 3072s # GLib-DEBUG: io-channel-basic: ...from 14: 1616 bytes 3072s # GLib-DEBUG: io-channel-basic: ...from 14: OK 3072s ok 1 /gio/io-basics 3072s # slow test /gio/io-basics executed in 12.38 secs 3072s # End of gio tests 3072s ok - glib/io-channel-basic.test 3072s # Running test: glib/gdbus-server-auth.test 3072s TAP version 14 3072s # random seed: R02S76ffa2045cb8c826e47a2b29191f167a 3072s 1..9 3072s # Start of gdbus tests 3072s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/.dirs/home 3072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/.dirs/cache 3072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/.dirs/system-config1:/tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/.dirs/system-config2 3072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/.dirs/config 3072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/.dirs/system-data1:/tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/.dirs/system-data2 3072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/.dirs/data 3072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/.dirs/state 3072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/.dirs/runtime 3072s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_0OSW52/gdbus-server-auth-4FHW52 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:false 3072s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_0OSW52/gdbus-server-auth-4FHW52/dbus-7yAAEPj3 3072s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 3072s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 3072s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 3072s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 3072s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 3072s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 3072s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 3072s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 3072s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 3072s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 3072s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 3072s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 3072s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 3072s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 3072s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 3072s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 3072s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 3072s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 3072s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 3072s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 3072s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 3072s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 3072s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 3072s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 3072s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 3072s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 3072s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 3072s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 3072s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 3072s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 3072s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 3072s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 3072s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 3072s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 3072s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 3072s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 3072s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 3072s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 3072s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 3072s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 3072s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 3072s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 3072s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 4156 3072s ok 1 /gdbus/server-auth 3072s # Start of server-auth tests 3072s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/abstract/.dirs/home 3072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/abstract/.dirs/cache 3072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/abstract/.dirs/system-config1:/tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/abstract/.dirs/system-config2 3072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/abstract/.dirs/config 3072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/abstract/.dirs/system-data1:/tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/abstract/.dirs/system-data2 3072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/abstract/.dirs/data 3072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/abstract/.dirs/state 3072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/abstract/.dirs/runtime 3072s # Testing GDBus server at unix:tmpdir=/tmp/test_gdbus-server-auth_0OSW52/gdbus-server-auth-CM3R52 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:true tcp:false 3072s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_0OSW52/gdbus-server-auth-CM3R52/dbus-MhSRUTHB 3072s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 3072s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 3072s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 3072s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 3072s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 3072s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 3072s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 3072s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 3072s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 3072s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 3072s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 3072s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 3072s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 3072s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 3072s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 3072s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 3072s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 3072s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 3072s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 3072s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 3072s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 3072s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 3072s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 3072s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 3072s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 3072s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 3072s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 3072s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 3072s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 3072s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 3072s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 3072s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 3072s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 3072s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 3072s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 3072s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 3072s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 3072s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 3072s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 3072s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 3072s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 3072s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 3072s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 4156 3072s ok 2 /gdbus/server-auth/abstract 3072s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/tcp/.dirs/home 3072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/tcp/.dirs/cache 3072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/tcp/.dirs/system-config2 3072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/tcp/.dirs/config 3072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/tcp/.dirs/system-data2 3072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/tcp/.dirs/data 3072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/tcp/.dirs/state 3072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/tcp/.dirs/runtime 3072s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:true 3072s ok 3 /gdbus/server-auth/tcp # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 3072s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/anonymous/.dirs/home 3072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/anonymous/.dirs/cache 3072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/anonymous/.dirs/system-config1:/tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/anonymous/.dirs/system-config2 3072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/anonymous/.dirs/config 3072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/anonymous/.dirs/system-data1:/tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/anonymous/.dirs/system-data2 3072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/anonymous/.dirs/data 3072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/anonymous/.dirs/state 3072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/anonymous/.dirs/runtime 3072s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_0OSW52/gdbus-server-auth-9XV752 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:false 3072s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_0OSW52/gdbus-server-auth-9XV752/dbus-TYcMfoC6 3072s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 3072s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 3072s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 3072s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 3072s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 3072s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 3072s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 3072s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 3072s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 3072s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 3072s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 3072s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 3072s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 3072s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 3072s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 3072s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 3072s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 3072s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 3072s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 3072s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 3072s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 3072s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 3072s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 3072s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 3072s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 3072s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 3072s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 3072s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 3072s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 3072s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 3072s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 3072s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 3072s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 3072s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 3072s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 3072s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 3072s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 3072s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 3072s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 3072s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 3072s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 3072s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 3072s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 4156 3072s ok 4 /gdbus/server-auth/anonymous 3072s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/external/.dirs/home 3072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/external/.dirs/cache 3072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/external/.dirs/system-config1:/tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/external/.dirs/system-config2 3072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/external/.dirs/config 3072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/external/.dirs/system-data1:/tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/external/.dirs/system-data2 3072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/external/.dirs/data 3072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/external/.dirs/state 3072s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/external/.dirs/runtime 3072s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_0OSW52/gdbus-server-auth-UFS252 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 3072s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_0OSW52/gdbus-server-auth-UFS252/dbus-QY3OgHrK 3072s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 3072s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 3072s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 4156 3072s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3072s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 3072s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 3072s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 3072s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3072s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 4156 3073s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3073s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 3073s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 4156 3073s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3073s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 3073s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 4156 3073s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3073s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 3073s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 4156 3073s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3073s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 3073s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 4156 3073s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3073s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 3073s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 4156 3073s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3073s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 3073s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 4156 3073s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3073s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 3073s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 4156 3073s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3073s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 3073s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 4156 3073s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3073s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 3073s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 4156 3073s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3073s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 3073s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 4156 3073s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3073s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 3073s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 4156 3073s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3073s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 3073s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 4156 3073s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3073s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 3073s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 4156 3073s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3073s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 3073s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 4156 3073s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3073s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 3073s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 4156 3073s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3073s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 3073s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 4156 3073s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3073s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 3073s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 4156 3073s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3073s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 3073s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 4156 3073s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3073s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 3073s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 4156 3073s ok 5 /gdbus/server-auth/external 3073s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/sha1/.dirs/home 3073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/sha1/.dirs/cache 3073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/sha1/.dirs/system-config1:/tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/sha1/.dirs/system-config2 3073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/sha1/.dirs/config 3073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/sha1/.dirs/system-data1:/tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/sha1/.dirs/system-data2 3073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/sha1/.dirs/data 3073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/sha1/.dirs/state 3073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/sha1/.dirs/runtime 3073s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_0OSW52/gdbus-server-auth-WQ5452 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:false 3073s ok 6 /gdbus/server-auth/sha1 # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 3073s # Start of anonymous tests 3073s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/anonymous/tcp/.dirs/home 3073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/anonymous/tcp/.dirs/cache 3073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/anonymous/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/anonymous/tcp/.dirs/system-config2 3073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/anonymous/tcp/.dirs/config 3073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/anonymous/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/anonymous/tcp/.dirs/system-data2 3073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/anonymous/tcp/.dirs/data 3073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/anonymous/tcp/.dirs/state 3073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/anonymous/tcp/.dirs/runtime 3073s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:true 3073s ok 7 /gdbus/server-auth/anonymous/tcp # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 3073s # End of anonymous tests 3073s # Start of external tests 3073s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/external/require-same-user/.dirs/home 3073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/external/require-same-user/.dirs/cache 3073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/external/require-same-user/.dirs/system-config1:/tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/external/require-same-user/.dirs/system-config2 3073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/external/require-same-user/.dirs/config 3073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/external/require-same-user/.dirs/system-data1:/tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/external/require-same-user/.dirs/system-data2 3073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/external/require-same-user/.dirs/data 3073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/external/require-same-user/.dirs/state 3073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/external/require-same-user/.dirs/runtime 3073s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_0OSW52/gdbus-server-auth-L5K452 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 3073s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_0OSW52/gdbus-server-auth-L5K452/dbus-K5LKt4oT 3073s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 3073s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 4156 3073s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3073s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 3073s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 4156 3073s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3073s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 3073s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 4156 3073s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3073s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 3073s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 4156 3073s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3073s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 3073s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 4156 3073s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3073s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 3073s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 4156 3073s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3073s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 3073s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 4156 3073s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3073s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 3073s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 4156 3073s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3073s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 3073s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 4156 3073s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3073s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 3073s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 4156 3073s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3073s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 3073s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 4156 3073s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3073s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 3073s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 4156 3073s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3073s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 3073s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 4156 3073s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3073s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 3073s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 4156 3073s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3073s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 3073s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 4156 3073s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3073s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 3073s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 4156 3073s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3073s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 3073s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 4156 3073s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3073s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 3073s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 4156 3073s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3073s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 3073s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 4156 3073s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3073s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 3073s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 4156 3073s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3073s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 3073s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 3073s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=4156,uid=1000,gid=1000 3073s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 4156 3073s ok 8 /gdbus/server-auth/external/require-same-user 3073s # End of external tests 3073s # Start of sha1 tests 3073s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/sha1/tcp/.dirs/home 3073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/sha1/tcp/.dirs/cache 3073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/sha1/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/sha1/tcp/.dirs/system-config2 3073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/sha1/tcp/.dirs/config 3073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/sha1/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/sha1/tcp/.dirs/system-data2 3073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/sha1/tcp/.dirs/data 3073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/sha1/tcp/.dirs/state 3073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_0OSW52/gdbus/server-auth/sha1/tcp/.dirs/runtime 3073s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:true 3073s ok 9 /gdbus/server-auth/sha1/tcp # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 3073s # End of sha1 tests 3073s # End of server-auth tests 3073s # End of gdbus tests 3073s ok - glib/gdbus-server-auth.test 3073s # Running test: glib/properties-refcount1.test 3073s TAP version 14 3073s # random seed: R02Sea2d7cc5adb7a4e076d153b2311056d5 3073s 1..1 3073s # Start of gobject tests 3073s # Start of refcount tests 3073s # .c 3073s # .d 3073s # .e 3073s # .b 3073s # .f 3074s # .c 3074s # Executing: glib/properties-refcount1.test 3074s # .f 3074s # .d 3074s # .b 3074s # .e 3074s # .c 3074s # .b 3074s # .f 3074s # .d 3074s # .e 3074s # .c 3075s # .b 3075s # .d 3075s # .f 3075s # .e 3075s # .c 3075s # .b 3075s # .e 3075s # .f 3075s # .d 3075s # .c 3075s # .b 3075s # .e 3075s # .f 3076s # .d 3076s # .c 3076s # .b 3076s # .f 3076s # .e 3076s # .d 3076s ok 1 /gobject/refcount/properties-1 3076s # slow test /gobject/refcount/properties-1 executed in 3.02 secs 3076s # End of refcount tests 3076s # End of gobject tests 3076s ok - glib/properties-refcount1.test 3076s # Running test: glib/callable-info.test 3076s TAP version 14 3076s # random seed: R02Sf358ac6a93b60550fe122a6c8b1b3c68 3076s 1..5 3076s # Start of callable-info tests 3076s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_Y3ZR52/callable-info/sync-function/.dirs/home 3076s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_Y3ZR52/callable-info/sync-function/.dirs/cache 3076s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_Y3ZR52/callable-info/sync-function/.dirs/system-config1:/tmp/test_callable-info_Y3ZR52/callable-info/sync-function/.dirs/system-config2 3076s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_Y3ZR52/callable-info/sync-function/.dirs/config 3076s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_Y3ZR52/callable-info/sync-function/.dirs/system-data1:/tmp/test_callable-info_Y3ZR52/callable-info/sync-function/.dirs/system-data2 3076s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_Y3ZR52/callable-info/sync-function/.dirs/data 3076s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_Y3ZR52/callable-info/sync-function/.dirs/state 3076s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_Y3ZR52/callable-info/sync-function/.dirs/runtime 3076s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3076s ok 1 /callable-info/sync-function 3076s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_Y3ZR52/callable-info/async-function/.dirs/home 3076s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_Y3ZR52/callable-info/async-function/.dirs/cache 3076s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_Y3ZR52/callable-info/async-function/.dirs/system-config1:/tmp/test_callable-info_Y3ZR52/callable-info/async-function/.dirs/system-config2 3076s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_Y3ZR52/callable-info/async-function/.dirs/config 3076s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_Y3ZR52/callable-info/async-function/.dirs/system-data1:/tmp/test_callable-info_Y3ZR52/callable-info/async-function/.dirs/system-data2 3076s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_Y3ZR52/callable-info/async-function/.dirs/data 3076s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_Y3ZR52/callable-info/async-function/.dirs/state 3076s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_Y3ZR52/callable-info/async-function/.dirs/runtime 3076s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3076s ok 2 /callable-info/async-function 3076s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_Y3ZR52/callable-info/is-method/.dirs/home 3076s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_Y3ZR52/callable-info/is-method/.dirs/cache 3076s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_Y3ZR52/callable-info/is-method/.dirs/system-config1:/tmp/test_callable-info_Y3ZR52/callable-info/is-method/.dirs/system-config2 3076s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_Y3ZR52/callable-info/is-method/.dirs/config 3076s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_Y3ZR52/callable-info/is-method/.dirs/system-data1:/tmp/test_callable-info_Y3ZR52/callable-info/is-method/.dirs/system-data2 3076s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_Y3ZR52/callable-info/is-method/.dirs/data 3076s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_Y3ZR52/callable-info/is-method/.dirs/state 3076s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_Y3ZR52/callable-info/is-method/.dirs/runtime 3076s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3076s ok 3 /callable-info/is-method 3076s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_Y3ZR52/callable-info/static-method/.dirs/home 3076s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_Y3ZR52/callable-info/static-method/.dirs/cache 3076s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_Y3ZR52/callable-info/static-method/.dirs/system-config1:/tmp/test_callable-info_Y3ZR52/callable-info/static-method/.dirs/system-config2 3076s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_Y3ZR52/callable-info/static-method/.dirs/config 3076s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_Y3ZR52/callable-info/static-method/.dirs/system-data1:/tmp/test_callable-info_Y3ZR52/callable-info/static-method/.dirs/system-data2 3076s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_Y3ZR52/callable-info/static-method/.dirs/data 3076s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_Y3ZR52/callable-info/static-method/.dirs/state 3076s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_Y3ZR52/callable-info/static-method/.dirs/runtime 3076s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3076s ok 4 /callable-info/static-method 3076s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_Y3ZR52/callable-info/static-vfunc/.dirs/home 3076s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_Y3ZR52/callable-info/static-vfunc/.dirs/cache 3076s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_Y3ZR52/callable-info/static-vfunc/.dirs/system-config1:/tmp/test_callable-info_Y3ZR52/callable-info/static-vfunc/.dirs/system-config2 3076s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_Y3ZR52/callable-info/static-vfunc/.dirs/config 3076s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_Y3ZR52/callable-info/static-vfunc/.dirs/system-data1:/tmp/test_callable-info_Y3ZR52/callable-info/static-vfunc/.dirs/system-data2 3076s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_Y3ZR52/callable-info/static-vfunc/.dirs/data 3076s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_Y3ZR52/callable-info/static-vfunc/.dirs/state 3076s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_Y3ZR52/callable-info/static-vfunc/.dirs/runtime 3076s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3076s # Bug Reference: https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/361 3076s ok 5 /callable-info/static-vfunc # SKIP g-ir-scanner is not new enough 3076s # End of callable-info tests 3076s ok - glib/callable-info.test 3076s # Running test: glib/gi-compile-repository.py.test 3078s TAP version 13 3078s ok 1 __main__.TestGICompileRepository.test_open_failure 3078s # gir path set to [PosixPath('/usr/lib/riscv64-linux-gnu/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 3078s # gi-compile-repository: /usr/bin/gi-compile-repository 3078s # tmpdir: /tmp/tmpk9rddvm_ 3078s # Running: ['/usr/bin/gi-compile-repository', 'this-is/not/a-file.gir', '--output', '/tmp/tmpk9rddvm_/invalid.typelib'] 3078s # Return code: 1 3078s # Output: 3078s # 3078s # Error: 3078s # Error parsing file ‘this-is/not/a-file.gir’: Failed to open file “this-is/not/a-file.gir”: No such file or directory 3079s # Executing: glib/gi-compile-repository.py.test 3079s ok 2 __main__.TestGICompileRepositoryForGLib.test_compile 3079s # gir path set to [PosixPath('/usr/lib/riscv64-linux-gnu/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 3079s # gi-compile-repository: /usr/bin/gi-compile-repository 3079s # tmpdir: /tmp/tmphu2cbfpa 3079s # Running: ['/usr/bin/gi-compile-repository', '/usr/lib/riscv64-linux-gnu/gir-1.0/GLib-2.0.gir', '--output', '/tmp/tmphu2cbfpa/GLib-2.typelib'] 3079s # Return code: 0 3079s # Output: 3079s # 3079s # Error: 3081s ok 3 __main__.TestGICompileRepositoryForGLib.test_write_failure 3081s # gi-compile-repository: /usr/bin/gi-compile-repository 3081s # tmpdir: /tmp/tmpintyk19l 3081s # Running: ['/usr/bin/gi-compile-repository', '/usr/lib/riscv64-linux-gnu/gir-1.0/GLib-2.0.gir', '--output', 'this-is/not/a-good-output/invalid.typelib'] 3081s # Return code: 1 3081s # Output: 3081s # 3081s # Error: 3081s # Failed to open ‘this-is/not/a-good-output/invalid.typelib.tmp’: No such file or directory 3083s ok 4 __main__.TestGICompileRepositoryForGObject.test_compile 3083s # gir path set to [PosixPath('/usr/lib/riscv64-linux-gnu/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 3083s # gi-compile-repository: /usr/bin/gi-compile-repository 3083s # tmpdir: /tmp/tmpn0fskz7u 3083s # Running: ['/usr/bin/gi-compile-repository', '/usr/share/gir-1.0/GObject-2.0.gir', '--output', '/tmp/tmpn0fskz7u/GObject-2.typelib', '--includedir', '/usr/lib/riscv64-linux-gnu/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 3083s # Return code: 0 3083s # Output: 3083s # 3083s # Error: 3084s # Executing: glib/gi-compile-repository.py.test 3085s ok 5 __main__.TestGICompileRepositoryForGObject.test_write_failure 3085s # gi-compile-repository: /usr/bin/gi-compile-repository 3085s # tmpdir: /tmp/tmps2vwm7vz 3085s # 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/riscv64-linux-gnu/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 3085s # Return code: 1 3085s # Output: 3085s # 3085s # Error: 3085s # Failed to open ‘this-is/not/a-good-output/invalid.typelib.tmp’: No such file or directory 3089s # Executing: glib/gi-compile-repository.py.test 3091s ok 6 __main__.TestGICompileRepositoryForGio.test_compile 3091s # gir path set to [PosixPath('/usr/lib/riscv64-linux-gnu/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 3091s # gi-compile-repository: /usr/bin/gi-compile-repository 3091s # tmpdir: /tmp/tmp1r1ksvz2 3091s # Running: ['/usr/bin/gi-compile-repository', '/usr/share/gir-1.0/Gio-2.0.gir', '--output', '/tmp/tmp1r1ksvz2/Gio-2.typelib', '--includedir', '/usr/lib/riscv64-linux-gnu/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 3091s # Return code: 0 3091s # Output: 3091s # 3091s # Error: 3094s # Executing: glib/gi-compile-repository.py.test 3097s ok 7 __main__.TestGICompileRepositoryForGio.test_write_failure 3097s # gi-compile-repository: /usr/bin/gi-compile-repository 3097s # tmpdir: /tmp/tmpfdm0v1dn 3097s # 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/riscv64-linux-gnu/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 3097s # Return code: 1 3097s # Output: 3097s # 3097s # Error: 3097s # Failed to open ‘this-is/not/a-good-output/invalid.typelib.tmp’: No such file or directory 3097s 1..7 3097s ok - glib/gi-compile-repository.py.test 3097s # Running test: glib/gobject-query.py.test 3098s TAP version 13 3098s ok 1 __main__.TestGobjectQuery.test_froots 3098s # gobject-query: /usr/bin/gobject-query 3098s # tmpdir: /tmp/tmpd42q0szw 3098s # Running: ['/usr/bin/gobject-query', 'froots'] 3098s # Return code: 0 3098s # Output: 3098s # ├void 3098s # ├GInterface 3098s # │ └GTypePlugin 3098s # ├gchar 3098s # ├guchar 3098s # ├gboolean 3098s # ├gint 3098s # ├guint 3098s # ├glong 3098s # ├gulong 3098s # ├gint64 3098s # ├guint64 3098s # ├GEnum 3098s # ├GFlags 3098s # ├gfloat 3098s # ├gdouble 3098s # ├gchararray 3098s # ├gpointer 3098s # │ └GType 3098s # ├GBoxed 3098s # │ └GValueArray 3098s # ├GParam 3098s # │ ├GParamChar 3098s # │ ├GParamUChar 3098s # │ ├GParamBoolean 3098s # │ ├GParamInt 3098s # │ ├GParamUInt 3098s # │ ├GParamLong 3098s # │ ├GParamULong 3098s # │ ├GParamInt64 3098s # │ ├GParamUInt64 3098s # │ ├GParamUnichar 3098s # │ ├GParamEnum 3098s # │ ├GParamFlags 3098s # │ ├GParamFloat 3098s # │ ├GParamDouble 3098s # │ ├GParamString 3098s # │ ├GParamParam 3098s # │ ├GParamBoxed 3098s # │ ├GParamPointer 3098s # │ ├GParamValueArray 3098s # │ ├GParamObject 3098s # │ ├GParamOverride 3098s # │ ├GParamGType 3098s # │ └GParamVariant 3098s # ├GObject 3098s # └GVariant 3098s # Error: 3098s ok 2 __main__.TestGobjectQuery.test_help 3098s # gobject-query: /usr/bin/gobject-query 3098s # tmpdir: /tmp/tmp3zeo86mu 3098s # Running: ['/usr/bin/gobject-query', '--help'] 3098s # Return code: 0 3098s # Output: 3098s # usage: gobject-query <qualifier> [-r <type>] [-{i|b} ""] [-s #] [-{h|x|y}] 3098s # -r specify root type 3098s # -n don't descend type tree 3098s # -h show help 3098s # -b specify indent string 3098s # -i specify incremental indent string 3098s # -s specify line spacing 3098s # qualifiers: 3098s # froots iterate over fundamental roots 3098s # tree print type tree 3098s # Error: 3098s ok 3 __main__.TestGobjectQuery.test_tree 3098s # gobject-query: /usr/bin/gobject-query 3098s # tmpdir: /tmp/tmpfxcf10jb 3098s # Running: ['/usr/bin/gobject-query', 'tree'] 3098s # Return code: 0 3098s # Output: 3098s # GObject 3098s # Error: 3098s ok 4 __main__.TestGobjectQuery.test_version 3098s # gobject-query: /usr/bin/gobject-query 3098s # tmpdir: /tmp/tmpyyfwmzzb 3098s # Running: ['/usr/bin/gobject-query', '--version'] 3098s # Return code: 0 3098s # Output: 3098s # 2.84.1 3098s # Error: 3098s 1..4 3098s ok - glib/gobject-query.py.test 3098s # Running test: glib/mkenums.py.test 3099s # Executing: glib/mkenums.py.test 3100s TAP version 13 3100s ok 1 __main__.TestMkenums.test_available_in 3100s # glib-mkenums: /usr/bin/glib-mkenums 3100s # tmpdir: /tmp/tmpbxzyhz4a 3100s # rspfile: False 3100s # /tmp/tmpbxzyhz4a/tmpjnn4_1bb.h: 3100s # typedef enum { 3100s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_AVAILABLE_ENUMERATOR_IN_2_68 = (1<<2) 3100s # } GDBusServerFlags; 3100s # 3100s # /tmp/tmpbxzyhz4a/tmp8lmi3hbs.template: 3100s # /*** BEGIN file-header ***/ 3100s # file-header 3100s # /*** END file-header ***/ 3100s # 3100s # /*** BEGIN file-production ***/ 3100s # file-production 3100s # filename: @filename@ 3100s # basename: @basename@ 3100s # /*** END file-production ***/ 3100s # 3100s # /*** BEGIN enumeration-production ***/ 3100s # enumeration-production 3100s # EnumName: @EnumName@ 3100s # enum_name: @enum_name@ 3100s # ENUMNAME: @ENUMNAME@ 3100s # ENUMSHORT: @ENUMSHORT@ 3100s # ENUMPREFIX: @ENUMPREFIX@ 3100s # enumsince: @enumsince@ 3100s # type: @type@ 3100s # Type: @Type@ 3100s # TYPE: @TYPE@ 3100s # /*** END enumeration-production ***/ 3100s # 3100s # /*** BEGIN value-header ***/ 3100s # value-header 3100s # EnumName: @EnumName@ 3100s # enum_name: @enum_name@ 3100s # ENUMNAME: @ENUMNAME@ 3100s # ENUMSHORT: @ENUMSHORT@ 3100s # ENUMPREFIX: @ENUMPREFIX@ 3100s # enumsince: @enumsince@ 3100s # type: @type@ 3100s # Type: @Type@ 3100s # TYPE: @TYPE@ 3100s # /*** END value-header ***/ 3100s # 3100s # /*** BEGIN value-production ***/ 3100s # value-production 3100s # VALUENAME: @VALUENAME@ 3100s # valuenick: @valuenick@ 3100s # valuenum: @valuenum@ 3100s # type: @type@ 3100s # Type: @Type@ 3100s # TYPE: @TYPE@ 3100s # /*** END value-production ***/ 3100s # 3100s # /*** BEGIN value-tail ***/ 3100s # value-tail 3100s # EnumName: @EnumName@ 3100s # enum_name: @enum_name@ 3100s # ENUMNAME: @ENUMNAME@ 3100s # ENUMSHORT: @ENUMSHORT@ 3100s # ENUMPREFIX: @ENUMPREFIX@ 3100s # enumsince: @enumsince@ 3100s # type: @type@ 3100s # Type: @Type@ 3100s # TYPE: @TYPE@ 3100s # /*** END value-tail ***/ 3100s # 3100s # /*** BEGIN comment ***/ 3100s # comment 3100s # comment: @comment@ 3100s # /*** END comment ***/ 3100s # 3100s # /*** BEGIN file-tail ***/ 3100s # file-tail 3100s # /*** END file-tail ***/ 3100s # 3100s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpbxzyhz4a/tmp8lmi3hbs.template', '/tmp/tmpbxzyhz4a/tmpjnn4_1bb.h'] 3100s # Return code: 0 3100s # Output: 3100s # comment 3100s # 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. 3100s # 3100s # 3100s # file-header 3100s # file-production 3100s # filename: /tmp/tmpbxzyhz4a/tmpjnn4_1bb.h 3100s # basename: tmpjnn4_1bb.h 3100s # enumeration-production 3100s # EnumName: GDBusServerFlags 3100s # enum_name: g_dbus_server_flags 3100s # ENUMNAME: G_DBUS_SERVER_FLAGS 3100s # ENUMSHORT: DBUS_SERVER_FLAGS 3100s # ENUMPREFIX: G 3100s # enumsince: 3100s # type: flags 3100s # Type: Flags 3100s # TYPE: FLAGS 3100s # value-header 3100s # EnumName: GDBusServerFlags 3100s # enum_name: g_dbus_server_flags 3100s # ENUMNAME: G_DBUS_SERVER_FLAGS 3100s # ENUMSHORT: DBUS_SERVER_FLAGS 3100s # ENUMPREFIX: G 3100s # enumsince: 3100s # type: flags 3100s # Type: Flags 3100s # TYPE: FLAGS 3100s # value-production 3100s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 3100s # valuenick: user 3100s # valuenum: 4 3100s # type: flags 3100s # Type: Flags 3100s # TYPE: FLAGS 3100s # value-tail 3100s # EnumName: GDBusServerFlags 3100s # enum_name: g_dbus_server_flags 3100s # ENUMNAME: G_DBUS_SERVER_FLAGS 3100s # ENUMSHORT: DBUS_SERVER_FLAGS 3100s # ENUMPREFIX: G 3100s # enumsince: 3100s # type: flags 3100s # Type: Flags 3100s # TYPE: FLAGS 3100s # file-tail 3100s # 3100s # comment 3100s # comment: Generated data ends here 3100s # Error: 3101s ok 2 __main__.TestMkenums.test_comma_in_enum_value 3101s # glib-mkenums: /usr/bin/glib-mkenums 3101s # tmpdir: /tmp/tmpphwik9g8 3101s # rspfile: False 3101s # /tmp/tmpphwik9g8/tmp40xjdvb3.h: 3101s # typedef enum { 3101s # ENUM_VALUE_WITH_COMMA = ',', 3101s # } TestCommaEnum; 3101s # 3101s # /tmp/tmpphwik9g8/tmpsurhugx6.template: 3101s # /*** BEGIN file-header ***/ 3101s # file-header 3101s # /*** END file-header ***/ 3101s # 3101s # /*** BEGIN file-production ***/ 3101s # file-production 3101s # filename: @filename@ 3101s # basename: @basename@ 3101s # /*** END file-production ***/ 3101s # 3101s # /*** BEGIN enumeration-production ***/ 3101s # enumeration-production 3101s # EnumName: @EnumName@ 3101s # enum_name: @enum_name@ 3101s # ENUMNAME: @ENUMNAME@ 3101s # ENUMSHORT: @ENUMSHORT@ 3101s # ENUMPREFIX: @ENUMPREFIX@ 3101s # enumsince: @enumsince@ 3101s # type: @type@ 3101s # Type: @Type@ 3101s # TYPE: @TYPE@ 3101s # /*** END enumeration-production ***/ 3101s # 3101s # /*** BEGIN value-header ***/ 3101s # value-header 3101s # EnumName: @EnumName@ 3101s # enum_name: @enum_name@ 3101s # ENUMNAME: @ENUMNAME@ 3101s # ENUMSHORT: @ENUMSHORT@ 3101s # ENUMPREFIX: @ENUMPREFIX@ 3101s # enumsince: @enumsince@ 3101s # type: @type@ 3101s # Type: @Type@ 3101s # TYPE: @TYPE@ 3101s # /*** END value-header ***/ 3101s # 3101s # /*** BEGIN value-production ***/ 3101s # value-production 3101s # VALUENAME: @VALUENAME@ 3101s # valuenick: @valuenick@ 3101s # valuenum: @valuenum@ 3101s # type: @type@ 3101s # Type: @Type@ 3101s # TYPE: @TYPE@ 3101s # /*** END value-production ***/ 3101s # 3101s # /*** BEGIN value-tail ***/ 3101s # value-tail 3101s # EnumName: @EnumName@ 3101s # enum_name: @enum_name@ 3101s # ENUMNAME: @ENUMNAME@ 3101s # ENUMSHORT: @ENUMSHORT@ 3101s # ENUMPREFIX: @ENUMPREFIX@ 3101s # enumsince: @enumsince@ 3101s # type: @type@ 3101s # Type: @Type@ 3101s # TYPE: @TYPE@ 3101s # /*** END value-tail ***/ 3101s # 3101s # /*** BEGIN comment ***/ 3101s # comment 3101s # comment: @comment@ 3101s # /*** END comment ***/ 3101s # 3101s # /*** BEGIN file-tail ***/ 3101s # file-tail 3101s # /*** END file-tail ***/ 3101s # 3101s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpphwik9g8/tmpsurhugx6.template', '/tmp/tmpphwik9g8/tmp40xjdvb3.h'] 3101s # Return code: 0 3101s # Output: 3101s # comment 3101s # 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. 3101s # 3101s # 3101s # file-header 3101s # file-production 3101s # filename: /tmp/tmpphwik9g8/tmp40xjdvb3.h 3101s # basename: tmp40xjdvb3.h 3101s # enumeration-production 3101s # EnumName: TestCommaEnum 3101s # enum_name: test_comma_enum 3101s # ENUMNAME: TEST_COMMA_ENUM 3101s # ENUMSHORT: COMMA_ENUM 3101s # ENUMPREFIX: TEST 3101s # enumsince: 3101s # type: enum 3101s # Type: Enum 3101s # TYPE: ENUM 3101s # value-header 3101s # EnumName: TestCommaEnum 3101s # enum_name: test_comma_enum 3101s # ENUMNAME: TEST_COMMA_ENUM 3101s # ENUMSHORT: COMMA_ENUM 3101s # ENUMPREFIX: TEST 3101s # enumsince: 3101s # type: enum 3101s # Type: Enum 3101s # TYPE: ENUM 3101s # value-production 3101s # VALUENAME: ENUM_VALUE_WITH_COMMA 3101s # valuenick: comma 3101s # valuenum: 44 3101s # type: enum 3101s # Type: Enum 3101s # TYPE: ENUM 3101s # value-tail 3101s # EnumName: TestCommaEnum 3101s # enum_name: test_comma_enum 3101s # ENUMNAME: TEST_COMMA_ENUM 3101s # ENUMSHORT: COMMA_ENUM 3101s # ENUMPREFIX: TEST 3101s # enumsince: 3101s # type: enum 3101s # Type: Enum 3101s # TYPE: ENUM 3101s # file-tail 3101s # 3101s # comment 3101s # comment: Generated data ends here 3101s # Error: 3101s ok 3 __main__.TestMkenums.test_deprecated_in 3101s # glib-mkenums: /usr/bin/glib-mkenums 3101s # tmpdir: /tmp/tmpi2cgriaz 3101s # rspfile: False 3101s # /tmp/tmpi2cgriaz/tmp_1b4jjfk.h: 3101s # typedef enum { 3101s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_DEPRECATED_ENUMERATOR_IN_2_68 = (1<<2) 3101s # } GDBusServerFlags; 3101s # 3101s # /tmp/tmpi2cgriaz/tmp9el9wfzr.template: 3101s # /*** BEGIN file-header ***/ 3101s # file-header 3101s # /*** END file-header ***/ 3101s # 3101s # /*** BEGIN file-production ***/ 3101s # file-production 3101s # filename: @filename@ 3101s # basename: @basename@ 3101s # /*** END file-production ***/ 3101s # 3101s # /*** BEGIN enumeration-production ***/ 3101s # enumeration-production 3101s # EnumName: @EnumName@ 3101s # enum_name: @enum_name@ 3101s # ENUMNAME: @ENUMNAME@ 3101s # ENUMSHORT: @ENUMSHORT@ 3101s # ENUMPREFIX: @ENUMPREFIX@ 3101s # enumsince: @enumsince@ 3101s # type: @type@ 3101s # Type: @Type@ 3101s # TYPE: @TYPE@ 3101s # /*** END enumeration-production ***/ 3101s # 3101s # /*** BEGIN value-header ***/ 3101s # value-header 3101s # EnumName: @EnumName@ 3101s # enum_name: @enum_name@ 3101s # ENUMNAME: @ENUMNAME@ 3101s # ENUMSHORT: @ENUMSHORT@ 3101s # ENUMPREFIX: @ENUMPREFIX@ 3101s # enumsince: @enumsince@ 3101s # type: @type@ 3101s # Type: @Type@ 3101s # TYPE: @TYPE@ 3101s # /*** END value-header ***/ 3101s # 3101s # /*** BEGIN value-production ***/ 3101s # value-production 3101s # VALUENAME: @VALUENAME@ 3101s # valuenick: @valuenick@ 3101s # valuenum: @valuenum@ 3101s # type: @type@ 3101s # Type: @Type@ 3101s # TYPE: @TYPE@ 3101s # /*** END value-production ***/ 3101s # 3101s # /*** BEGIN value-tail ***/ 3101s # value-tail 3101s # EnumName: @EnumName@ 3101s # enum_name: @enum_name@ 3101s # ENUMNAME: @ENUMNAME@ 3101s # ENUMSHORT: @ENUMSHORT@ 3101s # ENUMPREFIX: @ENUMPREFIX@ 3101s # enumsince: @enumsince@ 3101s # type: @type@ 3101s # Type: @Type@ 3101s # TYPE: @TYPE@ 3101s # /*** END value-tail ***/ 3101s # 3101s # /*** BEGIN comment ***/ 3101s # comment 3101s # comment: @comment@ 3101s # /*** END comment ***/ 3101s # 3101s # /*** BEGIN file-tail ***/ 3101s # file-tail 3101s # /*** END file-tail ***/ 3101s # 3101s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpi2cgriaz/tmp9el9wfzr.template', '/tmp/tmpi2cgriaz/tmp_1b4jjfk.h'] 3101s # Return code: 0 3101s # Output: 3101s # comment 3101s # 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. 3101s # 3101s # 3101s # file-header 3101s # file-production 3101s # filename: /tmp/tmpi2cgriaz/tmp_1b4jjfk.h 3101s # basename: tmp_1b4jjfk.h 3101s # enumeration-production 3101s # EnumName: GDBusServerFlags 3101s # enum_name: g_dbus_server_flags 3101s # ENUMNAME: G_DBUS_SERVER_FLAGS 3101s # ENUMSHORT: DBUS_SERVER_FLAGS 3101s # ENUMPREFIX: G 3101s # enumsince: 3101s # type: flags 3101s # Type: Flags 3101s # TYPE: FLAGS 3101s # value-header 3101s # EnumName: GDBusServerFlags 3101s # enum_name: g_dbus_server_flags 3101s # ENUMNAME: G_DBUS_SERVER_FLAGS 3101s # ENUMSHORT: DBUS_SERVER_FLAGS 3101s # ENUMPREFIX: G 3101s # enumsince: 3101s # type: flags 3101s # Type: Flags 3101s # TYPE: FLAGS 3101s # value-production 3101s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 3101s # valuenick: user 3101s # valuenum: 4 3101s # type: flags 3101s # Type: Flags 3101s # TYPE: FLAGS 3101s # value-tail 3101s # EnumName: GDBusServerFlags 3101s # enum_name: g_dbus_server_flags 3101s # ENUMNAME: G_DBUS_SERVER_FLAGS 3101s # ENUMSHORT: DBUS_SERVER_FLAGS 3101s # ENUMPREFIX: G 3101s # enumsince: 3101s # type: flags 3101s # Type: Flags 3101s # TYPE: FLAGS 3101s # file-tail 3101s # 3101s # comment 3101s # comment: Generated data ends here 3101s # Error: 3102s ok 4 __main__.TestMkenums.test_deprecated_in_for 3102s # glib-mkenums: /usr/bin/glib-mkenums 3102s # tmpdir: /tmp/tmp70m7hyaj 3102s # rspfile: False 3102s # /tmp/tmp70m7hyaj/tmpgs8kku8b.h: 3102s # typedef enum { 3102s # 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) 3102s # } GDBusServerFlags; 3102s # 3102s # /tmp/tmp70m7hyaj/tmpykk1c9s5.template: 3102s # /*** BEGIN file-header ***/ 3102s # file-header 3102s # /*** END file-header ***/ 3102s # 3102s # /*** BEGIN file-production ***/ 3102s # file-production 3102s # filename: @filename@ 3102s # basename: @basename@ 3102s # /*** END file-production ***/ 3102s # 3102s # /*** BEGIN enumeration-production ***/ 3102s # enumeration-production 3102s # EnumName: @EnumName@ 3102s # enum_name: @enum_name@ 3102s # ENUMNAME: @ENUMNAME@ 3102s # ENUMSHORT: @ENUMSHORT@ 3102s # ENUMPREFIX: @ENUMPREFIX@ 3102s # enumsince: @enumsince@ 3102s # type: @type@ 3102s # Type: @Type@ 3102s # TYPE: @TYPE@ 3102s # /*** END enumeration-production ***/ 3102s # 3102s # /*** BEGIN value-header ***/ 3102s # value-header 3102s # EnumName: @EnumName@ 3102s # enum_name: @enum_name@ 3102s # ENUMNAME: @ENUMNAME@ 3102s # ENUMSHORT: @ENUMSHORT@ 3102s # ENUMPREFIX: @ENUMPREFIX@ 3102s # enumsince: @enumsince@ 3102s # type: @type@ 3102s # Type: @Type@ 3102s # TYPE: @TYPE@ 3102s # /*** END value-header ***/ 3102s # 3102s # /*** BEGIN value-production ***/ 3102s # value-production 3102s # VALUENAME: @VALUENAME@ 3102s # valuenick: @valuenick@ 3102s # valuenum: @valuenum@ 3102s # type: @type@ 3102s # Type: @Type@ 3102s # TYPE: @TYPE@ 3102s # /*** END value-production ***/ 3102s # 3102s # /*** BEGIN value-tail ***/ 3102s # value-tail 3102s # EnumName: @EnumName@ 3102s # enum_name: @enum_name@ 3102s # ENUMNAME: @ENUMNAME@ 3102s # ENUMSHORT: @ENUMSHORT@ 3102s # ENUMPREFIX: @ENUMPREFIX@ 3102s # enumsince: @enumsince@ 3102s # type: @type@ 3102s # Type: @Type@ 3102s # TYPE: @TYPE@ 3102s # /*** END value-tail ***/ 3102s # 3102s # /*** BEGIN comment ***/ 3102s # comment 3102s # comment: @comment@ 3102s # /*** END comment ***/ 3102s # 3102s # /*** BEGIN file-tail ***/ 3102s # file-tail 3102s # /*** END file-tail ***/ 3102s # 3102s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp70m7hyaj/tmpykk1c9s5.template', '/tmp/tmp70m7hyaj/tmpgs8kku8b.h'] 3102s # Return code: 0 3102s # Output: 3102s # comment 3102s # 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. 3102s # 3102s # 3102s # file-header 3102s # file-production 3102s # filename: /tmp/tmp70m7hyaj/tmpgs8kku8b.h 3102s # basename: tmpgs8kku8b.h 3102s # enumeration-production 3102s # EnumName: GDBusServerFlags 3102s # enum_name: g_dbus_server_flags 3102s # ENUMNAME: G_DBUS_SERVER_FLAGS 3102s # ENUMSHORT: DBUS_SERVER_FLAGS 3102s # ENUMPREFIX: G 3102s # enumsince: 3102s # type: flags 3102s # Type: Flags 3102s # TYPE: FLAGS 3102s # value-header 3102s # EnumName: GDBusServerFlags 3102s # enum_name: g_dbus_server_flags 3102s # ENUMNAME: G_DBUS_SERVER_FLAGS 3102s # ENUMSHORT: DBUS_SERVER_FLAGS 3102s # ENUMPREFIX: G 3102s # enumsince: 3102s # type: flags 3102s # Type: Flags 3102s # TYPE: FLAGS 3102s # value-production 3102s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 3102s # valuenick: user 3102s # valuenum: 4 3102s # type: flags 3102s # Type: Flags 3102s # TYPE: FLAGS 3102s # value-tail 3102s # EnumName: GDBusServerFlags 3102s # enum_name: g_dbus_server_flags 3102s # ENUMNAME: G_DBUS_SERVER_FLAGS 3102s # ENUMSHORT: DBUS_SERVER_FLAGS 3102s # ENUMPREFIX: G 3102s # enumsince: 3102s # type: flags 3102s # Type: Flags 3102s # TYPE: FLAGS 3102s # file-tail 3102s # 3102s # comment 3102s # comment: Generated data ends here 3102s # Error: 3103s ok 5 __main__.TestMkenums.test_empty_header 3103s # glib-mkenums: /usr/bin/glib-mkenums 3103s # tmpdir: /tmp/tmpylhf_0v3 3103s # rspfile: False 3103s # /tmp/tmpylhf_0v3/tmpoa03wo6m.h: 3103s # /tmp/tmpylhf_0v3/tmpn6gofxmt.template: 3103s # /*** BEGIN file-header ***/ 3103s # file-header 3103s # /*** END file-header ***/ 3103s # 3103s # /*** BEGIN file-production ***/ 3103s # file-production 3103s # filename: @filename@ 3103s # basename: @basename@ 3103s # /*** END file-production ***/ 3103s # 3103s # /*** BEGIN enumeration-production ***/ 3103s # enumeration-production 3103s # EnumName: @EnumName@ 3103s # enum_name: @enum_name@ 3103s # ENUMNAME: @ENUMNAME@ 3103s # ENUMSHORT: @ENUMSHORT@ 3103s # ENUMPREFIX: @ENUMPREFIX@ 3103s # enumsince: @enumsince@ 3103s # type: @type@ 3103s # Type: @Type@ 3103s # TYPE: @TYPE@ 3103s # /*** END enumeration-production ***/ 3103s # 3103s # /*** BEGIN value-header ***/ 3103s # value-header 3103s # EnumName: @EnumName@ 3103s # enum_name: @enum_name@ 3103s # ENUMNAME: @ENUMNAME@ 3103s # ENUMSHORT: @ENUMSHORT@ 3103s # ENUMPREFIX: @ENUMPREFIX@ 3103s # enumsince: @enumsince@ 3103s # type: @type@ 3103s # Type: @Type@ 3103s # TYPE: @TYPE@ 3103s # /*** END value-header ***/ 3103s # 3103s # /*** BEGIN value-production ***/ 3103s # value-production 3103s # VALUENAME: @VALUENAME@ 3103s # valuenick: @valuenick@ 3103s # valuenum: @valuenum@ 3103s # type: @type@ 3103s # Type: @Type@ 3103s # TYPE: @TYPE@ 3103s # /*** END value-production ***/ 3103s # 3103s # /*** BEGIN value-tail ***/ 3103s # value-tail 3103s # EnumName: @EnumName@ 3103s # enum_name: @enum_name@ 3103s # ENUMNAME: @ENUMNAME@ 3103s # ENUMSHORT: @ENUMSHORT@ 3103s # ENUMPREFIX: @ENUMPREFIX@ 3103s # enumsince: @enumsince@ 3103s # type: @type@ 3103s # Type: @Type@ 3103s # TYPE: @TYPE@ 3103s # /*** END value-tail ***/ 3103s # 3103s # /*** BEGIN comment ***/ 3103s # comment 3103s # comment: @comment@ 3103s # /*** END comment ***/ 3103s # 3103s # /*** BEGIN file-tail ***/ 3103s # file-tail 3103s # /*** END file-tail ***/ 3103s # 3103s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpylhf_0v3/tmpn6gofxmt.template', '/tmp/tmpylhf_0v3/tmpoa03wo6m.h'] 3103s # Return code: 0 3103s # Output: 3103s # comment 3103s # 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. 3103s # 3103s # 3103s # file-header 3103s # file-tail 3103s # 3103s # comment 3103s # comment: Generated data ends here 3103s # Error: 3103s ok 6 __main__.TestMkenums.test_empty_template 3103s # glib-mkenums: /usr/bin/glib-mkenums 3103s # tmpdir: /tmp/tmpz8ntk3l4 3103s # rspfile: False 3103s # /tmp/tmpz8ntk3l4/tmp2spavrdo.template: 3103s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpz8ntk3l4/tmp2spavrdo.template'] 3103s # Return code: 0 3103s # Output: 3103s # /* 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. */ 3103s # 3103s # 3103s # /* Generated data ends here */ 3103s # Error: 3104s # Executing: glib/mkenums.py.test 3104s ok 7 __main__.TestMkenums.test_enum_name 3104s # glib-mkenums: /usr/bin/glib-mkenums 3104s # tmpdir: /tmp/tmpj7yq0vl_ 3104s # rspfile: False 3104s # /tmp/tmpj7yq0vl_/tmp_libib0c.h: 3104s # typedef enum _SomeEnumIdentifier { 3104s # ENUM_VALUE 3104s # } SomeEnumIdentifier; 3104s # 3104s # /tmp/tmpj7yq0vl_/tmp1e23d31_.template: 3104s # /*** BEGIN file-header ***/ 3104s # file-header 3104s # /*** END file-header ***/ 3104s # 3104s # /*** BEGIN file-production ***/ 3104s # file-production 3104s # filename: @filename@ 3104s # basename: @basename@ 3104s # /*** END file-production ***/ 3104s # 3104s # /*** BEGIN enumeration-production ***/ 3104s # enumeration-production 3104s # EnumName: @EnumName@ 3104s # enum_name: @enum_name@ 3104s # ENUMNAME: @ENUMNAME@ 3104s # ENUMSHORT: @ENUMSHORT@ 3104s # ENUMPREFIX: @ENUMPREFIX@ 3104s # enumsince: @enumsince@ 3104s # type: @type@ 3104s # Type: @Type@ 3104s # TYPE: @TYPE@ 3104s # /*** END enumeration-production ***/ 3104s # 3104s # /*** BEGIN value-header ***/ 3104s # value-header 3104s # EnumName: @EnumName@ 3104s # enum_name: @enum_name@ 3104s # ENUMNAME: @ENUMNAME@ 3104s # ENUMSHORT: @ENUMSHORT@ 3104s # ENUMPREFIX: @ENUMPREFIX@ 3104s # enumsince: @enumsince@ 3104s # type: @type@ 3104s # Type: @Type@ 3104s # TYPE: @TYPE@ 3104s # /*** END value-header ***/ 3104s # 3104s # /*** BEGIN value-production ***/ 3104s # value-production 3104s # VALUENAME: @VALUENAME@ 3104s # valuenick: @valuenick@ 3104s # valuenum: @valuenum@ 3104s # type: @type@ 3104s # Type: @Type@ 3104s # TYPE: @TYPE@ 3104s # /*** END value-production ***/ 3104s # 3104s # /*** BEGIN value-tail ***/ 3104s # value-tail 3104s # EnumName: @EnumName@ 3104s # enum_name: @enum_name@ 3104s # ENUMNAME: @ENUMNAME@ 3104s # ENUMSHORT: @ENUMSHORT@ 3104s # ENUMPREFIX: @ENUMPREFIX@ 3104s # enumsince: @enumsince@ 3104s # type: @type@ 3104s # Type: @Type@ 3104s # TYPE: @TYPE@ 3104s # /*** END value-tail ***/ 3104s # 3104s # /*** BEGIN comment ***/ 3104s # comment 3104s # comment: @comment@ 3104s # /*** END comment ***/ 3104s # 3104s # /*** BEGIN file-tail ***/ 3104s # file-tail 3104s # /*** END file-tail ***/ 3104s # 3104s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpj7yq0vl_/tmp1e23d31_.template', '/tmp/tmpj7yq0vl_/tmp_libib0c.h'] 3104s # Return code: 0 3104s # Output: 3104s # comment 3104s # 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. 3104s # 3104s # 3104s # file-header 3104s # file-production 3104s # filename: /tmp/tmpj7yq0vl_/tmp_libib0c.h 3104s # basename: tmp_libib0c.h 3104s # enumeration-production 3104s # EnumName: SomeEnumIdentifier 3104s # enum_name: some_enum_identifier 3104s # ENUMNAME: SOME_ENUM_IDENTIFIER 3104s # ENUMSHORT: ENUM_IDENTIFIER 3104s # ENUMPREFIX: SOME 3104s # enumsince: 3104s # type: enum 3104s # Type: Enum 3104s # TYPE: ENUM 3104s # value-header 3104s # EnumName: SomeEnumIdentifier 3104s # enum_name: some_enum_identifier 3104s # ENUMNAME: SOME_ENUM_IDENTIFIER 3104s # ENUMSHORT: ENUM_IDENTIFIER 3104s # ENUMPREFIX: SOME 3104s # enumsince: 3104s # type: enum 3104s # Type: Enum 3104s # TYPE: ENUM 3104s # value-production 3104s # VALUENAME: ENUM_VALUE 3104s # valuenick: value 3104s # valuenum: 0 3104s # type: enum 3104s # Type: Enum 3104s # TYPE: ENUM 3104s # value-tail 3104s # EnumName: SomeEnumIdentifier 3104s # enum_name: some_enum_identifier 3104s # ENUMNAME: SOME_ENUM_IDENTIFIER 3104s # ENUMSHORT: ENUM_IDENTIFIER 3104s # ENUMPREFIX: SOME 3104s # enumsince: 3104s # type: enum 3104s # Type: Enum 3104s # TYPE: ENUM 3104s # file-tail 3104s # 3104s # comment 3104s # comment: Generated data ends here 3104s # Error: 3105s ok 8 __main__.TestMkenums.test_enum_private_public 3105s # glib-mkenums: /usr/bin/glib-mkenums 3105s # tmpdir: /tmp/tmp5v44cihi 3105s # rspfile: False 3105s # /tmp/tmp5v44cihi/tmpaegc_gkf.h: 3105s # typedef enum { 3105s # ENUM_VALUE_PUBLIC1, 3105s # /*< private >*/ 3105s # ENUM_VALUE_PRIVATE, 3105s # } SomeEnumA 3105s # 3105s # /tmp/tmp5v44cihi/tmpj7449ni6.template: 3105s # /*** BEGIN file-header ***/ 3105s # file-header 3105s # /*** END file-header ***/ 3105s # 3105s # /*** BEGIN file-production ***/ 3105s # file-production 3105s # filename: @filename@ 3105s # basename: @basename@ 3105s # /*** END file-production ***/ 3105s # 3105s # /*** BEGIN enumeration-production ***/ 3105s # enumeration-production 3105s # EnumName: @EnumName@ 3105s # enum_name: @enum_name@ 3105s # ENUMNAME: @ENUMNAME@ 3105s # ENUMSHORT: @ENUMSHORT@ 3105s # ENUMPREFIX: @ENUMPREFIX@ 3105s # enumsince: @enumsince@ 3105s # type: @type@ 3105s # Type: @Type@ 3105s # TYPE: @TYPE@ 3105s # /*** END enumeration-production ***/ 3105s # 3105s # /*** BEGIN value-header ***/ 3105s # value-header 3105s # EnumName: @EnumName@ 3105s # enum_name: @enum_name@ 3105s # ENUMNAME: @ENUMNAME@ 3105s # ENUMSHORT: @ENUMSHORT@ 3105s # ENUMPREFIX: @ENUMPREFIX@ 3105s # enumsince: @enumsince@ 3105s # type: @type@ 3105s # Type: @Type@ 3105s # TYPE: @TYPE@ 3105s # /*** END value-header ***/ 3105s # 3105s # /*** BEGIN value-production ***/ 3105s # value-production 3105s # VALUENAME: @VALUENAME@ 3105s # valuenick: @valuenick@ 3105s # valuenum: @valuenum@ 3105s # type: @type@ 3105s # Type: @Type@ 3105s # TYPE: @TYPE@ 3105s # /*** END value-production ***/ 3105s # 3105s # /*** BEGIN value-tail ***/ 3105s # value-tail 3105s # EnumName: @EnumName@ 3105s # enum_name: @enum_name@ 3105s # ENUMNAME: @ENUMNAME@ 3105s # ENUMSHORT: @ENUMSHORT@ 3105s # ENUMPREFIX: @ENUMPREFIX@ 3105s # enumsince: @enumsince@ 3105s # type: @type@ 3105s # Type: @Type@ 3105s # TYPE: @TYPE@ 3105s # /*** END value-tail ***/ 3105s # 3105s # /*** BEGIN comment ***/ 3105s # comment 3105s # comment: @comment@ 3105s # /*** END comment ***/ 3105s # 3105s # /*** BEGIN file-tail ***/ 3105s # file-tail 3105s # /*** END file-tail ***/ 3105s # 3105s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp5v44cihi/tmpj7449ni6.template', '/tmp/tmp5v44cihi/tmpaegc_gkf.h'] 3105s # Return code: 0 3105s # Output: 3105s # comment 3105s # 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. 3105s # 3105s # 3105s # file-header 3105s # file-production 3105s # filename: /tmp/tmp5v44cihi/tmpaegc_gkf.h 3105s # basename: tmpaegc_gkf.h 3105s # enumeration-production 3105s # EnumName: SomeEnumA 3105s # enum_name: some_enum_a 3105s # ENUMNAME: SOME_ENUM_A 3105s # ENUMSHORT: ENUM_A 3105s # ENUMPREFIX: SOME 3105s # enumsince: 3105s # type: enum 3105s # Type: Enum 3105s # TYPE: ENUM 3105s # value-header 3105s # EnumName: SomeEnumA 3105s # enum_name: some_enum_a 3105s # ENUMNAME: SOME_ENUM_A 3105s # ENUMSHORT: ENUM_A 3105s # ENUMPREFIX: SOME 3105s # enumsince: 3105s # type: enum 3105s # Type: Enum 3105s # TYPE: ENUM 3105s # value-production 3105s # VALUENAME: ENUM_VALUE_PUBLIC1 3105s # valuenick: public1 3105s # valuenum: 0 3105s # type: enum 3105s # Type: Enum 3105s # TYPE: ENUM 3105s # value-tail 3105s # EnumName: SomeEnumA 3105s # enum_name: some_enum_a 3105s # ENUMNAME: SOME_ENUM_A 3105s # ENUMSHORT: ENUM_A 3105s # ENUMPREFIX: SOME 3105s # enumsince: 3105s # type: enum 3105s # Type: Enum 3105s # TYPE: ENUM 3105s # file-tail 3105s # 3105s # comment 3105s # comment: Generated data ends here 3105s # Error: 3105s # 3105s # /tmp/tmp5v44cihi/tmpmd97apxe.h: 3105s # typedef enum { 3105s # /*< private >*/ 3105s # ENUM_VALUE_PRIVATE, 3105s # /*< public >*/ 3105s # ENUM_VALUE_PUBLIC2, 3105s # } SomeEnumB; 3105s # 3105s # /tmp/tmp5v44cihi/tmptqqkzn1t.template: 3105s # /*** BEGIN file-header ***/ 3105s # file-header 3105s # /*** END file-header ***/ 3105s # 3105s # /*** BEGIN file-production ***/ 3105s # file-production 3105s # filename: @filename@ 3105s # basename: @basename@ 3105s # /*** END file-production ***/ 3105s # 3105s # /*** BEGIN enumeration-production ***/ 3105s # enumeration-production 3105s # EnumName: @EnumName@ 3105s # enum_name: @enum_name@ 3105s # ENUMNAME: @ENUMNAME@ 3105s # ENUMSHORT: @ENUMSHORT@ 3105s # ENUMPREFIX: @ENUMPREFIX@ 3105s # enumsince: @enumsince@ 3105s # type: @type@ 3105s # Type: @Type@ 3105s # TYPE: @TYPE@ 3105s # /*** END enumeration-production ***/ 3105s # 3105s # /*** BEGIN value-header ***/ 3105s # value-header 3105s # EnumName: @EnumName@ 3105s # enum_name: @enum_name@ 3105s # ENUMNAME: @ENUMNAME@ 3105s # ENUMSHORT: @ENUMSHORT@ 3105s # ENUMPREFIX: @ENUMPREFIX@ 3105s # enumsince: @enumsince@ 3105s # type: @type@ 3105s # Type: @Type@ 3105s # TYPE: @TYPE@ 3105s # /*** END value-header ***/ 3105s # 3105s # /*** BEGIN value-production ***/ 3105s # value-production 3105s # VALUENAME: @VALUENAME@ 3105s # valuenick: @valuenick@ 3105s # valuenum: @valuenum@ 3105s # type: @type@ 3105s # Type: @Type@ 3105s # TYPE: @TYPE@ 3105s # /*** END value-production ***/ 3105s # 3105s # /*** BEGIN value-tail ***/ 3105s # value-tail 3105s # EnumName: @EnumName@ 3105s # enum_name: @enum_name@ 3105s # ENUMNAME: @ENUMNAME@ 3105s # ENUMSHORT: @ENUMSHORT@ 3105s # ENUMPREFIX: @ENUMPREFIX@ 3105s # enumsince: @enumsince@ 3105s # type: @type@ 3105s # Type: @Type@ 3105s # TYPE: @TYPE@ 3105s # /*** END value-tail ***/ 3105s # 3105s # /*** BEGIN comment ***/ 3105s # comment 3105s # comment: @comment@ 3105s # /*** END comment ***/ 3105s # 3105s # /*** BEGIN file-tail ***/ 3105s # file-tail 3105s # /*** END file-tail ***/ 3105s # 3105s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp5v44cihi/tmptqqkzn1t.template', '/tmp/tmp5v44cihi/tmpmd97apxe.h'] 3105s # Return code: 0 3105s # Output: 3105s # comment 3105s # 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. 3105s # 3105s # 3105s # file-header 3105s # file-production 3105s # filename: /tmp/tmp5v44cihi/tmpmd97apxe.h 3105s # basename: tmpmd97apxe.h 3105s # enumeration-production 3105s # EnumName: SomeEnumB 3105s # enum_name: some_enum_b 3105s # ENUMNAME: SOME_ENUM_B 3105s # ENUMSHORT: ENUM_B 3105s # ENUMPREFIX: SOME 3105s # enumsince: 3105s # type: enum 3105s # Type: Enum 3105s # TYPE: ENUM 3105s # value-header 3105s # EnumName: SomeEnumB 3105s # enum_name: some_enum_b 3105s # ENUMNAME: SOME_ENUM_B 3105s # ENUMSHORT: ENUM_B 3105s # ENUMPREFIX: SOME 3105s # enumsince: 3105s # type: enum 3105s # Type: Enum 3105s # TYPE: ENUM 3105s # value-production 3105s # VALUENAME: ENUM_VALUE_PUBLIC2 3105s # valuenick: public2 3105s # valuenum: 1 3105s # type: enum 3105s # Type: Enum 3105s # TYPE: ENUM 3105s # value-tail 3105s # EnumName: SomeEnumB 3105s # enum_name: some_enum_b 3105s # ENUMNAME: SOME_ENUM_B 3105s # ENUMSHORT: ENUM_B 3105s # ENUMPREFIX: SOME 3105s # enumsince: 3105s # type: enum 3105s # Type: Enum 3105s # TYPE: ENUM 3105s # file-tail 3105s # 3105s # comment 3105s # comment: Generated data ends here 3105s # Error: 3106s ok 9 __main__.TestMkenums.test_enum_symbolic_expression 3106s # glib-mkenums: /usr/bin/glib-mkenums 3106s # tmpdir: /tmp/tmp9zdy5jzi 3106s # rspfile: False 3106s # /tmp/tmp9zdy5jzi/tmp0kqbhz64.h: 3106s # typedef enum { 3106s # /*< private >*/ 3106s # ENUM_VALUE_PRIVATE = 5, 3106s # /*< public >*/ 3106s # ENUM_VALUE_PUBLIC = ENUM_VALUE_PRIVATE + 2, 3106s # } TestSymbolicEnum; 3106s # 3106s # /tmp/tmp9zdy5jzi/tmphuxzkcs6.template: 3106s # /*** BEGIN file-header ***/ 3106s # file-header 3106s # /*** END file-header ***/ 3106s # 3106s # /*** BEGIN file-production ***/ 3106s # file-production 3106s # filename: @filename@ 3106s # basename: @basename@ 3106s # /*** END file-production ***/ 3106s # 3106s # /*** BEGIN enumeration-production ***/ 3106s # enumeration-production 3106s # EnumName: @EnumName@ 3106s # enum_name: @enum_name@ 3106s # ENUMNAME: @ENUMNAME@ 3106s # ENUMSHORT: @ENUMSHORT@ 3106s # ENUMPREFIX: @ENUMPREFIX@ 3106s # enumsince: @enumsince@ 3106s # type: @type@ 3106s # Type: @Type@ 3106s # TYPE: @TYPE@ 3106s # /*** END enumeration-production ***/ 3106s # 3106s # /*** BEGIN value-header ***/ 3106s # value-header 3106s # EnumName: @EnumName@ 3106s # enum_name: @enum_name@ 3106s # ENUMNAME: @ENUMNAME@ 3106s # ENUMSHORT: @ENUMSHORT@ 3106s # ENUMPREFIX: @ENUMPREFIX@ 3106s # enumsince: @enumsince@ 3106s # type: @type@ 3106s # Type: @Type@ 3106s # TYPE: @TYPE@ 3106s # /*** END value-header ***/ 3106s # 3106s # /*** BEGIN value-production ***/ 3106s # value-production 3106s # VALUENAME: @VALUENAME@ 3106s # valuenick: @valuenick@ 3106s # valuenum: @valuenum@ 3106s # type: @type@ 3106s # Type: @Type@ 3106s # TYPE: @TYPE@ 3106s # /*** END value-production ***/ 3106s # 3106s # /*** BEGIN value-tail ***/ 3106s # value-tail 3106s # EnumName: @EnumName@ 3106s # enum_name: @enum_name@ 3106s # ENUMNAME: @ENUMNAME@ 3106s # ENUMSHORT: @ENUMSHORT@ 3106s # ENUMPREFIX: @ENUMPREFIX@ 3106s # enumsince: @enumsince@ 3106s # type: @type@ 3106s # Type: @Type@ 3106s # TYPE: @TYPE@ 3106s # /*** END value-tail ***/ 3106s # 3106s # /*** BEGIN comment ***/ 3106s # comment 3106s # comment: @comment@ 3106s # /*** END comment ***/ 3106s # 3106s # /*** BEGIN file-tail ***/ 3106s # file-tail 3106s # /*** END file-tail ***/ 3106s # 3106s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp9zdy5jzi/tmphuxzkcs6.template', '/tmp/tmp9zdy5jzi/tmp0kqbhz64.h'] 3106s # Return code: 0 3106s # Output: 3106s # comment 3106s # 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. 3106s # 3106s # 3106s # file-header 3106s # file-production 3106s # filename: /tmp/tmp9zdy5jzi/tmp0kqbhz64.h 3106s # basename: tmp0kqbhz64.h 3106s # enumeration-production 3106s # EnumName: TestSymbolicEnum 3106s # enum_name: test_symbolic_enum 3106s # ENUMNAME: TEST_SYMBOLIC_ENUM 3106s # ENUMSHORT: SYMBOLIC_ENUM 3106s # ENUMPREFIX: TEST 3106s # enumsince: 3106s # type: enum 3106s # Type: Enum 3106s # TYPE: ENUM 3106s # value-header 3106s # EnumName: TestSymbolicEnum 3106s # enum_name: test_symbolic_enum 3106s # ENUMNAME: TEST_SYMBOLIC_ENUM 3106s # ENUMSHORT: SYMBOLIC_ENUM 3106s # ENUMPREFIX: TEST 3106s # enumsince: 3106s # type: enum 3106s # Type: Enum 3106s # TYPE: ENUM 3106s # value-production 3106s # VALUENAME: ENUM_VALUE_PUBLIC 3106s # valuenick: public 3106s # valuenum: 7 3106s # type: enum 3106s # Type: Enum 3106s # TYPE: ENUM 3106s # value-tail 3106s # EnumName: TestSymbolicEnum 3106s # enum_name: test_symbolic_enum 3106s # ENUMNAME: TEST_SYMBOLIC_ENUM 3106s # ENUMSHORT: SYMBOLIC_ENUM 3106s # ENUMPREFIX: TEST 3106s # enumsince: 3106s # type: enum 3106s # Type: Enum 3106s # TYPE: ENUM 3106s # file-tail 3106s # 3106s # comment 3106s # comment: Generated data ends here 3106s # Error: 3106s ok 10 __main__.TestMkenums.test_filename_basename_in_fhead_ftail 3106s # glib-mkenums: /usr/bin/glib-mkenums 3106s # tmpdir: /tmp/tmpd_pry3ax 3106s # rspfile: False 3106s # /tmp/tmpd_pry3ax/tmp_93nnkrn.template: 3106s # /*** BEGIN file-header ***/ 3106s # file-header 3106s # filename: @filename@ 3106s # basename: @basename@ 3106s # /*** END file-header ***/ 3106s # 3106s # /*** BEGIN comment ***/ 3106s # comment 3106s # comment: @comment@ 3106s # /*** END comment ***/ 3106s # 3106s # /*** BEGIN file-tail ***/ 3106s # file-tail 3106s # filename: @filename@ 3106s # basename: @basename@ 3106s # /*** END file-tail ***/ 3106s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpd_pry3ax/tmp_93nnkrn.template'] 3106s # Return code: 0 3106s # Output: 3106s # comment 3106s # 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. 3106s # 3106s # 3106s # file-header 3106s # filename: @filename@ 3106s # basename: @basename@ 3106s # file-tail 3106s # filename: @filename@ 3106s # basename: @basename@ 3106s # 3106s # comment 3106s # comment: Generated data ends here 3106s # Error: 3106s # WARNING: @filename@ used in file-header section. 3106s # WARNING: @basename@ used in file-header section. 3106s # WARNING: @filename@ used in file-tail section. 3106s # WARNING: @basename@ used in file-tail section. 3107s ok 11 __main__.TestMkenums.test_help 3107s # glib-mkenums: /usr/bin/glib-mkenums 3107s # tmpdir: /tmp/tmpbw07suh7 3107s # rspfile: False 3107s # Running: ['/usr/bin/glib-mkenums', '--help'] 3107s # Return code: 0 3107s # Output: 3107s # usage: glib-mkenums [-h] [--identifier-prefix IDPREFIX] 3107s # [--symbol-prefix SYMPREFIX] [--fhead FHEAD] 3107s # [--ftail FTAIL] [--fprod FPROD] [--eprod EPROD] 3107s # [--vhead VHEAD] [--vprod VPROD] [--vtail VTAIL] 3107s # [--comments COMMENT_TMPL] [--template TEMPLATE] 3107s # [--output OUTPUT] [--version] 3107s # [args ...] 3107s # 3107s # positional arguments: 3107s # args One or more input files, or a single argument 3107s # @rspfile_path pointing to a file that contains the 3107s # actual arguments 3107s # 3107s # options: 3107s # -h, --help show this help message and exit 3107s # --identifier-prefix IDPREFIX 3107s # Identifier prefix 3107s # --symbol-prefix SYMPREFIX 3107s # Symbol prefix 3107s # --fhead FHEAD Output file header 3107s # --ftail FTAIL Output file footer 3107s # --fprod FPROD Put out TEXT every time a new input file is being 3107s # processed. 3107s # --eprod EPROD Per enum text, produced prior to value iterations 3107s # --vhead VHEAD Value header, produced before iterating over enum 3107s # values 3107s # --vprod VPROD Value text, produced for each enum value. 3107s # --vtail VTAIL Value tail, produced after iterating over enum values 3107s # --comments COMMENT_TMPL 3107s # Comment structure 3107s # --template TEMPLATE Template file 3107s # --output OUTPUT 3107s # --version, -v Print version information 3107s # 3107s # Production text substitutions: 3107s # @EnumName@ PrefixTheXEnum 3107s # @enum_name@ prefix_the_xenum 3107s # @ENUMNAME@ PREFIX_THE_XENUM 3107s # @ENUMSHORT@ THE_XENUM 3107s # @ENUMPREFIX@ PREFIX 3107s # @enumsince@ the user-provided since value given 3107s # @VALUENAME@ PREFIX_THE_XVALUE 3107s # @valuenick@ the-xvalue 3107s # @valuenum@ the integer value (limited support, Since: 2.26) 3107s # @type@ either enum or flags 3107s # @Type@ either Enum or Flags 3107s # @TYPE@ either ENUM or FLAGS 3107s # @filename@ name of current input file 3107s # @basename@ base name of the current input file (Since: 2.22) 3107s # Error: 3108s ok 12 __main__.TestMkenums.test_no_args 3108s # glib-mkenums: /usr/bin/glib-mkenums 3108s # tmpdir: /tmp/tmprtpy23y8 3108s # rspfile: False 3108s # Running: ['/usr/bin/glib-mkenums'] 3108s # Return code: 0 3108s # Output: 3108s # /* 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. */ 3108s # 3108s # 3108s # /* Generated data ends here */ 3108s # Error: 3108s ok 13 __main__.TestMkenums.test_no_headers 3108s # glib-mkenums: /usr/bin/glib-mkenums 3108s # tmpdir: /tmp/tmp_czrg9da 3108s # rspfile: False 3108s # /tmp/tmp_czrg9da/tmp8itl1qtk.template: 3108s # /*** BEGIN file-header ***/ 3108s # file-header 3108s # /*** END file-header ***/ 3108s # 3108s # /*** BEGIN file-production ***/ 3108s # file-production 3108s # filename: @filename@ 3108s # basename: @basename@ 3108s # /*** END file-production ***/ 3108s # 3108s # /*** BEGIN enumeration-production ***/ 3108s # enumeration-production 3108s # EnumName: @EnumName@ 3108s # enum_name: @enum_name@ 3108s # ENUMNAME: @ENUMNAME@ 3108s # ENUMSHORT: @ENUMSHORT@ 3108s # ENUMPREFIX: @ENUMPREFIX@ 3108s # enumsince: @enumsince@ 3108s # type: @type@ 3108s # Type: @Type@ 3108s # TYPE: @TYPE@ 3108s # /*** END enumeration-production ***/ 3108s # 3108s # /*** BEGIN value-header ***/ 3108s # value-header 3108s # EnumName: @EnumName@ 3108s # enum_name: @enum_name@ 3108s # ENUMNAME: @ENUMNAME@ 3108s # ENUMSHORT: @ENUMSHORT@ 3108s # ENUMPREFIX: @ENUMPREFIX@ 3108s # enumsince: @enumsince@ 3108s # type: @type@ 3108s # Type: @Type@ 3108s # TYPE: @TYPE@ 3108s # /*** END value-header ***/ 3108s # 3108s # /*** BEGIN value-production ***/ 3108s # value-production 3108s # VALUENAME: @VALUENAME@ 3108s # valuenick: @valuenick@ 3108s # valuenum: @valuenum@ 3108s # type: @type@ 3108s # Type: @Type@ 3108s # TYPE: @TYPE@ 3108s # /*** END value-production ***/ 3108s # 3108s # /*** BEGIN value-tail ***/ 3108s # value-tail 3108s # EnumName: @EnumName@ 3108s # enum_name: @enum_name@ 3108s # ENUMNAME: @ENUMNAME@ 3108s # ENUMSHORT: @ENUMSHORT@ 3108s # ENUMPREFIX: @ENUMPREFIX@ 3108s # enumsince: @enumsince@ 3108s # type: @type@ 3108s # Type: @Type@ 3108s # TYPE: @TYPE@ 3108s # /*** END value-tail ***/ 3108s # 3108s # /*** BEGIN comment ***/ 3108s # comment 3108s # comment: @comment@ 3108s # /*** END comment ***/ 3108s # 3108s # /*** BEGIN file-tail ***/ 3108s # file-tail 3108s # /*** END file-tail ***/ 3108s # 3108s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp_czrg9da/tmp8itl1qtk.template'] 3108s # Return code: 0 3108s # Output: 3108s # comment 3108s # 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. 3108s # 3108s # 3108s # file-header 3108s # file-tail 3108s # 3108s # comment 3108s # comment: Generated data ends here 3108s # Error: 3109s # Executing: glib/mkenums.py.test 3109s ok 14 __main__.TestMkenums.test_no_nick 3109s # glib-mkenums: /usr/bin/glib-mkenums 3109s # tmpdir: /tmp/tmpwqn290ac 3109s # rspfile: False 3109s # /tmp/tmpwqn290ac/tmpy73fiycr.h: 3109s # typedef enum { 3109s # GEGL_SAMPLER_NEAREST = 0, /*< desc="nearest" >*/ 3109s # } GeglSamplerType; 3109s # 3109s # /tmp/tmpwqn290ac/tmp7o8947xj.template: 3109s # /*** BEGIN file-header ***/ 3109s # file-header 3109s # /*** END file-header ***/ 3109s # 3109s # /*** BEGIN file-production ***/ 3109s # file-production 3109s # filename: @filename@ 3109s # basename: @basename@ 3109s # /*** END file-production ***/ 3109s # 3109s # /*** BEGIN enumeration-production ***/ 3109s # enumeration-production 3109s # EnumName: @EnumName@ 3109s # enum_name: @enum_name@ 3109s # ENUMNAME: @ENUMNAME@ 3109s # ENUMSHORT: @ENUMSHORT@ 3109s # ENUMPREFIX: @ENUMPREFIX@ 3109s # enumsince: @enumsince@ 3109s # type: @type@ 3109s # Type: @Type@ 3109s # TYPE: @TYPE@ 3109s # /*** END enumeration-production ***/ 3109s # 3109s # /*** BEGIN value-header ***/ 3109s # value-header 3109s # EnumName: @EnumName@ 3109s # enum_name: @enum_name@ 3109s # ENUMNAME: @ENUMNAME@ 3109s # ENUMSHORT: @ENUMSHORT@ 3109s # ENUMPREFIX: @ENUMPREFIX@ 3109s # enumsince: @enumsince@ 3109s # type: @type@ 3109s # Type: @Type@ 3109s # TYPE: @TYPE@ 3109s # /*** END value-header ***/ 3109s # 3109s # /*** BEGIN value-production ***/ 3109s # value-production 3109s # VALUENAME: @VALUENAME@ 3109s # valuenick: @valuenick@ 3109s # valuenum: @valuenum@ 3109s # type: @type@ 3109s # Type: @Type@ 3109s # TYPE: @TYPE@ 3109s # /*** END value-production ***/ 3109s # 3109s # /*** BEGIN value-tail ***/ 3109s # value-tail 3109s # EnumName: @EnumName@ 3109s # enum_name: @enum_name@ 3109s # ENUMNAME: @ENUMNAME@ 3109s # ENUMSHORT: @ENUMSHORT@ 3109s # ENUMPREFIX: @ENUMPREFIX@ 3109s # enumsince: @enumsince@ 3109s # type: @type@ 3109s # Type: @Type@ 3109s # TYPE: @TYPE@ 3109s # /*** END value-tail ***/ 3109s # 3109s # /*** BEGIN comment ***/ 3109s # comment 3109s # comment: @comment@ 3109s # /*** END comment ***/ 3109s # 3109s # /*** BEGIN file-tail ***/ 3109s # file-tail 3109s # /*** END file-tail ***/ 3109s # 3109s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpwqn290ac/tmp7o8947xj.template', '/tmp/tmpwqn290ac/tmpy73fiycr.h'] 3109s # Return code: 0 3109s # Output: 3109s # comment 3109s # 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. 3109s # 3109s # 3109s # file-header 3109s # file-production 3109s # filename: /tmp/tmpwqn290ac/tmpy73fiycr.h 3109s # basename: tmpy73fiycr.h 3109s # enumeration-production 3109s # EnumName: GeglSamplerType 3109s # enum_name: gegl_sampler_type 3109s # ENUMNAME: GEGL_SAMPLER_TYPE 3109s # ENUMSHORT: SAMPLER_TYPE 3109s # ENUMPREFIX: GEGL 3109s # enumsince: 3109s # type: enum 3109s # Type: Enum 3109s # TYPE: ENUM 3109s # value-header 3109s # EnumName: GeglSamplerType 3109s # enum_name: gegl_sampler_type 3109s # ENUMNAME: GEGL_SAMPLER_TYPE 3109s # ENUMSHORT: SAMPLER_TYPE 3109s # ENUMPREFIX: GEGL 3109s # enumsince: 3109s # type: enum 3109s # Type: Enum 3109s # TYPE: ENUM 3109s # value-production 3109s # VALUENAME: GEGL_SAMPLER_NEAREST 3109s # valuenick: nearest 3109s # valuenum: 0 3109s # type: enum 3109s # Type: Enum 3109s # TYPE: ENUM 3109s # value-tail 3109s # EnumName: GeglSamplerType 3109s # enum_name: gegl_sampler_type 3109s # ENUMNAME: GEGL_SAMPLER_TYPE 3109s # ENUMSHORT: SAMPLER_TYPE 3109s # ENUMPREFIX: GEGL 3109s # enumsince: 3109s # type: enum 3109s # Type: Enum 3109s # TYPE: ENUM 3109s # file-tail 3109s # 3109s # comment 3109s # comment: Generated data ends here 3109s # Error: 3110s ok 15 __main__.TestMkenums.test_non_utf8_encoding 3110s # glib-mkenums: /usr/bin/glib-mkenums 3110s # tmpdir: /tmp/tmpgdghpum9 3110s # rspfile: False 3110s # /tmp/tmpgdghpum9/tmp014e5e73.h: 3110s # /* Copyright © La Peña */ 3110s # typedef enum { 3110s # ENUM_VALUE 3110s # } SomeEnumIdentifier; 3110s # 3110s # /tmp/tmpgdghpum9/tmpux01hezy.template: 3110s # /*** BEGIN file-header ***/ 3110s # file-header 3110s # /*** END file-header ***/ 3110s # 3110s # /*** BEGIN file-production ***/ 3110s # file-production 3110s # filename: @filename@ 3110s # basename: @basename@ 3110s # /*** END file-production ***/ 3110s # 3110s # /*** BEGIN enumeration-production ***/ 3110s # enumeration-production 3110s # EnumName: @EnumName@ 3110s # enum_name: @enum_name@ 3110s # ENUMNAME: @ENUMNAME@ 3110s # ENUMSHORT: @ENUMSHORT@ 3110s # ENUMPREFIX: @ENUMPREFIX@ 3110s # enumsince: @enumsince@ 3110s # type: @type@ 3110s # Type: @Type@ 3110s # TYPE: @TYPE@ 3110s # /*** END enumeration-production ***/ 3110s # 3110s # /*** BEGIN value-header ***/ 3110s # value-header 3110s # EnumName: @EnumName@ 3110s # enum_name: @enum_name@ 3110s # ENUMNAME: @ENUMNAME@ 3110s # ENUMSHORT: @ENUMSHORT@ 3110s # ENUMPREFIX: @ENUMPREFIX@ 3110s # enumsince: @enumsince@ 3110s # type: @type@ 3110s # Type: @Type@ 3110s # TYPE: @TYPE@ 3110s # /*** END value-header ***/ 3110s # 3110s # /*** BEGIN value-production ***/ 3110s # value-production 3110s # VALUENAME: @VALUENAME@ 3110s # valuenick: @valuenick@ 3110s # valuenum: @valuenum@ 3110s # type: @type@ 3110s # Type: @Type@ 3110s # TYPE: @TYPE@ 3110s # /*** END value-production ***/ 3110s # 3110s # /*** BEGIN value-tail ***/ 3110s # value-tail 3110s # EnumName: @EnumName@ 3110s # enum_name: @enum_name@ 3110s # ENUMNAME: @ENUMNAME@ 3110s # ENUMSHORT: @ENUMSHORT@ 3110s # ENUMPREFIX: @ENUMPREFIX@ 3110s # enumsince: @enumsince@ 3110s # type: @type@ 3110s # Type: @Type@ 3110s # TYPE: @TYPE@ 3110s # /*** END value-tail ***/ 3110s # 3110s # /*** BEGIN comment ***/ 3110s # comment 3110s # comment: @comment@ 3110s # /*** END comment ***/ 3110s # 3110s # /*** BEGIN file-tail ***/ 3110s # file-tail 3110s # /*** END file-tail ***/ 3110s # 3110s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpgdghpum9/tmpux01hezy.template', '/tmp/tmpgdghpum9/tmp014e5e73.h'] 3110s # Return code: 0 3110s # Output: 3110s # comment 3110s # 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. 3110s # 3110s # 3110s # file-header 3110s # file-production 3110s # filename: /tmp/tmpgdghpum9/tmp014e5e73.h 3110s # basename: tmp014e5e73.h 3110s # enumeration-production 3110s # EnumName: SomeEnumIdentifier 3110s # enum_name: some_enum_identifier 3110s # ENUMNAME: SOME_ENUM_IDENTIFIER 3110s # ENUMSHORT: ENUM_IDENTIFIER 3110s # ENUMPREFIX: SOME 3110s # enumsince: 3110s # type: enum 3110s # Type: Enum 3110s # TYPE: ENUM 3110s # value-header 3110s # EnumName: SomeEnumIdentifier 3110s # enum_name: some_enum_identifier 3110s # ENUMNAME: SOME_ENUM_IDENTIFIER 3110s # ENUMSHORT: ENUM_IDENTIFIER 3110s # ENUMPREFIX: SOME 3110s # enumsince: 3110s # type: enum 3110s # Type: Enum 3110s # TYPE: ENUM 3110s # value-production 3110s # VALUENAME: ENUM_VALUE 3110s # valuenick: value 3110s # valuenum: 0 3110s # type: enum 3110s # Type: Enum 3110s # TYPE: ENUM 3110s # value-tail 3110s # EnumName: SomeEnumIdentifier 3110s # enum_name: some_enum_identifier 3110s # ENUMNAME: SOME_ENUM_IDENTIFIER 3110s # ENUMSHORT: ENUM_IDENTIFIER 3110s # ENUMPREFIX: SOME 3110s # enumsince: 3110s # type: enum 3110s # Type: Enum 3110s # TYPE: ENUM 3110s # file-tail 3110s # 3110s # comment 3110s # comment: Generated data ends here 3110s # Error: 3110s # WARNING: UnicodeWarning: invalid start byte at 22 (b'yright \xa9 La Pe\xf1') 3110s # WARNING: UnicodeWarning: invalid continuation byte at 29 (b'\xa9 La Pe\xf1a */\n ') 3111s ok 16 __main__.TestMkenums.test_reproducible 3111s # glib-mkenums: /usr/bin/glib-mkenums 3111s # tmpdir: /tmp/tmpai4h6o2h 3111s # rspfile: False 3111s # /tmp/tmpai4h6o2h/tmpyawgwha8.template: template 3111s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpai4h6o2h/tmpyawgwha8.template', '/tmp/tmpai4h6o2h/tmpcectmehd1.h', '/tmp/tmpai4h6o2h/tmpng16bq8e2.h'] 3111s # Return code: 0 3111s # Output: 3111s # /* 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. */ 3111s # 3111s # 3111s # /* Generated data ends here */ 3111s # Error: 3111s # 3111s # /tmp/tmpai4h6o2h/tmpaag3_6zw.template: template 3111s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpai4h6o2h/tmpaag3_6zw.template', '/tmp/tmpai4h6o2h/tmpng16bq8e2.h', '/tmp/tmpai4h6o2h/tmpcectmehd1.h'] 3111s # Return code: 0 3111s # Output: 3111s # /* 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. */ 3111s # 3111s # 3111s # /* Generated data ends here */ 3111s # Error: 3111s ok 17 __main__.TestMkenums.test_since 3111s # glib-mkenums: /usr/bin/glib-mkenums 3111s # tmpdir: /tmp/tmpkfmfoa3z 3111s # rspfile: False 3111s # /tmp/tmpkfmfoa3z/tmp4vayakty.h: 3111s # typedef enum { /*< since=1.0 >*/ 3111s # QMI_WMS_MESSAGE_PROTOCOL_CDMA = 0, 3111s # } QmiWmsMessageProtocol; 3111s # 3111s # /tmp/tmpkfmfoa3z/tmpmg1jf_dd.template: 3111s # /*** BEGIN file-header ***/ 3111s # file-header 3111s # /*** END file-header ***/ 3111s # 3111s # /*** BEGIN file-production ***/ 3111s # file-production 3111s # filename: @filename@ 3111s # basename: @basename@ 3111s # /*** END file-production ***/ 3111s # 3111s # /*** BEGIN enumeration-production ***/ 3111s # enumeration-production 3111s # EnumName: @EnumName@ 3111s # enum_name: @enum_name@ 3111s # ENUMNAME: @ENUMNAME@ 3111s # ENUMSHORT: @ENUMSHORT@ 3111s # ENUMPREFIX: @ENUMPREFIX@ 3111s # enumsince: @enumsince@ 3111s # type: @type@ 3111s # Type: @Type@ 3111s # TYPE: @TYPE@ 3111s # /*** END enumeration-production ***/ 3111s # 3111s # /*** BEGIN value-header ***/ 3111s # value-header 3111s # EnumName: @EnumName@ 3111s # enum_name: @enum_name@ 3111s # ENUMNAME: @ENUMNAME@ 3111s # ENUMSHORT: @ENUMSHORT@ 3111s # ENUMPREFIX: @ENUMPREFIX@ 3111s # enumsince: @enumsince@ 3111s # type: @type@ 3111s # Type: @Type@ 3111s # TYPE: @TYPE@ 3111s # /*** END value-header ***/ 3111s # 3111s # /*** BEGIN value-production ***/ 3111s # value-production 3111s # VALUENAME: @VALUENAME@ 3111s # valuenick: @valuenick@ 3111s # valuenum: @valuenum@ 3111s # type: @type@ 3111s # Type: @Type@ 3111s # TYPE: @TYPE@ 3111s # /*** END value-production ***/ 3111s # 3111s # /*** BEGIN value-tail ***/ 3111s # value-tail 3111s # EnumName: @EnumName@ 3111s # enum_name: @enum_name@ 3111s # ENUMNAME: @ENUMNAME@ 3111s # ENUMSHORT: @ENUMSHORT@ 3111s # ENUMPREFIX: @ENUMPREFIX@ 3111s # enumsince: @enumsince@ 3111s # type: @type@ 3111s # Type: @Type@ 3111s # TYPE: @TYPE@ 3111s # /*** END value-tail ***/ 3111s # 3111s # /*** BEGIN comment ***/ 3111s # comment 3111s # comment: @comment@ 3111s # /*** END comment ***/ 3111s # 3111s # /*** BEGIN file-tail ***/ 3111s # file-tail 3111s # /*** END file-tail ***/ 3111s # 3111s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpkfmfoa3z/tmpmg1jf_dd.template', '/tmp/tmpkfmfoa3z/tmp4vayakty.h'] 3111s # Return code: 0 3111s # Output: 3111s # comment 3111s # 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. 3111s # 3111s # 3111s # file-header 3111s # file-production 3111s # filename: /tmp/tmpkfmfoa3z/tmp4vayakty.h 3111s # basename: tmp4vayakty.h 3111s # enumeration-production 3111s # EnumName: QmiWmsMessageProtocol 3111s # enum_name: qmi_wms_message_protocol 3111s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 3111s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 3111s # ENUMPREFIX: QMI 3111s # enumsince: 1.0 3111s # type: enum 3111s # Type: Enum 3111s # TYPE: ENUM 3111s # value-header 3111s # EnumName: QmiWmsMessageProtocol 3111s # enum_name: qmi_wms_message_protocol 3111s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 3111s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 3111s # ENUMPREFIX: QMI 3111s # enumsince: 1.0 3111s # type: enum 3111s # Type: Enum 3111s # TYPE: ENUM 3111s # value-production 3111s # VALUENAME: QMI_WMS_MESSAGE_PROTOCOL_CDMA 3111s # valuenick: cdma 3111s # valuenum: 0 3111s # type: enum 3111s # Type: Enum 3111s # TYPE: ENUM 3111s # value-tail 3111s # EnumName: QmiWmsMessageProtocol 3111s # enum_name: qmi_wms_message_protocol 3111s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 3111s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 3111s # ENUMPREFIX: QMI 3111s # enumsince: 1.0 3111s # type: enum 3111s # Type: Enum 3111s # TYPE: ENUM 3111s # file-tail 3111s # 3111s # comment 3111s # comment: Generated data ends here 3111s # Error: 3112s ok 18 __main__.TestMkenums.test_with_double_quotes 3112s # glib-mkenums: /usr/bin/glib-mkenums 3112s # tmpdir: /tmp/tmppg5hb7r4 3112s # rspfile: False 3112s # /tmp/tmppg5hb7r4/tmpiws4cyh2.h: 3112s # typedef enum { 3112s # FOO_VALUE /*< nick="eek, a comma" >*/ 3112s # } Foo; 3112s # 3112s # /tmp/tmppg5hb7r4/tmpavyp3ew5.template: 3112s # /*** BEGIN file-header ***/ 3112s # file-header 3112s # /*** END file-header ***/ 3112s # 3112s # /*** BEGIN file-production ***/ 3112s # file-production 3112s # filename: @filename@ 3112s # basename: @basename@ 3112s # /*** END file-production ***/ 3112s # 3112s # /*** BEGIN enumeration-production ***/ 3112s # enumeration-production 3112s # EnumName: @EnumName@ 3112s # enum_name: @enum_name@ 3112s # ENUMNAME: @ENUMNAME@ 3112s # ENUMSHORT: @ENUMSHORT@ 3112s # ENUMPREFIX: @ENUMPREFIX@ 3112s # enumsince: @enumsince@ 3112s # type: @type@ 3112s # Type: @Type@ 3112s # TYPE: @TYPE@ 3112s # /*** END enumeration-production ***/ 3112s # 3112s # /*** BEGIN value-header ***/ 3112s # value-header 3112s # EnumName: @EnumName@ 3112s # enum_name: @enum_name@ 3112s # ENUMNAME: @ENUMNAME@ 3112s # ENUMSHORT: @ENUMSHORT@ 3112s # ENUMPREFIX: @ENUMPREFIX@ 3112s # enumsince: @enumsince@ 3112s # type: @type@ 3112s # Type: @Type@ 3112s # TYPE: @TYPE@ 3112s # /*** END value-header ***/ 3112s # 3112s # /*** BEGIN value-production ***/ 3112s # value-production 3112s # VALUENAME: @VALUENAME@ 3112s # valuenick: @valuenick@ 3112s # valuenum: @valuenum@ 3112s # type: @type@ 3112s # Type: @Type@ 3112s # TYPE: @TYPE@ 3112s # /*** END value-production ***/ 3112s # 3112s # /*** BEGIN value-tail ***/ 3112s # value-tail 3112s # EnumName: @EnumName@ 3112s # enum_name: @enum_name@ 3112s # ENUMNAME: @ENUMNAME@ 3112s # ENUMSHORT: @ENUMSHORT@ 3112s # ENUMPREFIX: @ENUMPREFIX@ 3112s # enumsince: @enumsince@ 3112s # type: @type@ 3112s # Type: @Type@ 3112s # TYPE: @TYPE@ 3112s # /*** END value-tail ***/ 3112s # 3112s # /*** BEGIN comment ***/ 3112s # comment 3112s # comment: @comment@ 3112s # /*** END comment ***/ 3112s # 3112s # /*** BEGIN file-tail ***/ 3112s # file-tail 3112s # /*** END file-tail ***/ 3112s # 3112s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmppg5hb7r4/tmpavyp3ew5.template', '/tmp/tmppg5hb7r4/tmpiws4cyh2.h'] 3112s # Return code: 0 3112s # Output: 3112s # comment 3112s # 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. 3112s # 3112s # 3112s # file-header 3112s # file-production 3112s # filename: /tmp/tmppg5hb7r4/tmpiws4cyh2.h 3112s # basename: tmpiws4cyh2.h 3112s # enumeration-production 3112s # EnumName: Foo 3112s # enum_name: foo_ 3112s # ENUMNAME: FOO_ 3112s # ENUMSHORT: 3112s # ENUMPREFIX: FOO 3112s # enumsince: 3112s # type: enum 3112s # Type: Enum 3112s # TYPE: ENUM 3112s # value-header 3112s # EnumName: Foo 3112s # enum_name: foo_ 3112s # ENUMNAME: FOO_ 3112s # ENUMSHORT: 3112s # ENUMPREFIX: FOO 3112s # enumsince: 3112s # type: enum 3112s # Type: Enum 3112s # TYPE: ENUM 3112s # value-production 3112s # VALUENAME: FOO_VALUE 3112s # valuenick: eek, a comma 3112s # valuenum: 0 3112s # type: enum 3112s # Type: Enum 3112s # TYPE: ENUM 3112s # value-tail 3112s # EnumName: Foo 3112s # enum_name: foo_ 3112s # ENUMNAME: FOO_ 3112s # ENUMSHORT: 3112s # ENUMPREFIX: FOO 3112s # enumsince: 3112s # type: enum 3112s # Type: Enum 3112s # TYPE: ENUM 3112s # file-tail 3112s # 3112s # comment 3112s # comment: Generated data ends here 3112s # Error: 3113s ok 19 __main__.TestRspMkenums.test_available_in 3113s # glib-mkenums: /usr/bin/glib-mkenums 3113s # tmpdir: /tmp/tmpbgrflyev 3113s # rspfile: True 3113s # /tmp/tmpbgrflyev/tmpvjxyr100.h: 3113s # typedef enum { 3113s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_AVAILABLE_ENUMERATOR_IN_2_68 = (1<<2) 3113s # } GDBusServerFlags; 3113s # 3113s # /tmp/tmpbgrflyev/tmp6olkiizl.template: 3113s # /*** BEGIN file-header ***/ 3113s # file-header 3113s # /*** END file-header ***/ 3113s # 3113s # /*** BEGIN file-production ***/ 3113s # file-production 3113s # filename: @filename@ 3113s # basename: @basename@ 3113s # /*** END file-production ***/ 3113s # 3113s # /*** BEGIN enumeration-production ***/ 3113s # enumeration-production 3113s # EnumName: @EnumName@ 3113s # enum_name: @enum_name@ 3113s # ENUMNAME: @ENUMNAME@ 3113s # ENUMSHORT: @ENUMSHORT@ 3113s # ENUMPREFIX: @ENUMPREFIX@ 3113s # enumsince: @enumsince@ 3113s # type: @type@ 3113s # Type: @Type@ 3113s # TYPE: @TYPE@ 3113s # /*** END enumeration-production ***/ 3113s # 3113s # /*** BEGIN value-header ***/ 3113s # value-header 3113s # EnumName: @EnumName@ 3113s # enum_name: @enum_name@ 3113s # ENUMNAME: @ENUMNAME@ 3113s # ENUMSHORT: @ENUMSHORT@ 3113s # ENUMPREFIX: @ENUMPREFIX@ 3113s # enumsince: @enumsince@ 3113s # type: @type@ 3113s # Type: @Type@ 3113s # TYPE: @TYPE@ 3113s # /*** END value-header ***/ 3113s # 3113s # /*** BEGIN value-production ***/ 3113s # value-production 3113s # VALUENAME: @VALUENAME@ 3113s # valuenick: @valuenick@ 3113s # valuenum: @valuenum@ 3113s # type: @type@ 3113s # Type: @Type@ 3113s # TYPE: @TYPE@ 3113s # /*** END value-production ***/ 3113s # 3113s # /*** BEGIN value-tail ***/ 3113s # value-tail 3113s # EnumName: @EnumName@ 3113s # enum_name: @enum_name@ 3113s # ENUMNAME: @ENUMNAME@ 3113s # ENUMSHORT: @ENUMSHORT@ 3113s # ENUMPREFIX: @ENUMPREFIX@ 3113s # enumsince: @enumsince@ 3113s # type: @type@ 3113s # Type: @Type@ 3113s # TYPE: @TYPE@ 3113s # /*** END value-tail ***/ 3113s # 3113s # /*** BEGIN comment ***/ 3113s # comment 3113s # comment: @comment@ 3113s # /*** END comment ***/ 3113s # 3113s # /*** BEGIN file-tail ***/ 3113s # file-tail 3113s # /*** END file-tail ***/ 3113s # 3113s # Response file contains: --template /tmp/tmpbgrflyev/tmp6olkiizl.template /tmp/tmpbgrflyev/tmpvjxyr100.h 3113s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpbgrflyev/tmphdgy9ryn'] 3113s # Return code: 0 3113s # Output: 3113s # comment 3113s # 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. 3113s # 3113s # 3113s # file-header 3113s # file-production 3113s # filename: /tmp/tmpbgrflyev/tmpvjxyr100.h 3113s # basename: tmpvjxyr100.h 3113s # enumeration-production 3113s # EnumName: GDBusServerFlags 3113s # enum_name: g_dbus_server_flags 3113s # ENUMNAME: G_DBUS_SERVER_FLAGS 3113s # ENUMSHORT: DBUS_SERVER_FLAGS 3113s # ENUMPREFIX: G 3113s # enumsince: 3113s # type: flags 3113s # Type: Flags 3113s # TYPE: FLAGS 3113s # value-header 3113s # EnumName: GDBusServerFlags 3113s # enum_name: g_dbus_server_flags 3113s # ENUMNAME: G_DBUS_SERVER_FLAGS 3113s # ENUMSHORT: DBUS_SERVER_FLAGS 3113s # ENUMPREFIX: G 3113s # enumsince: 3113s # type: flags 3113s # Type: Flags 3113s # TYPE: FLAGS 3113s # value-production 3113s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 3113s # valuenick: user 3113s # valuenum: 4 3113s # type: flags 3113s # Type: Flags 3113s # TYPE: FLAGS 3113s # value-tail 3113s # EnumName: GDBusServerFlags 3113s # enum_name: g_dbus_server_flags 3113s # ENUMNAME: G_DBUS_SERVER_FLAGS 3113s # ENUMSHORT: DBUS_SERVER_FLAGS 3113s # ENUMPREFIX: G 3113s # enumsince: 3113s # type: flags 3113s # Type: Flags 3113s # TYPE: FLAGS 3113s # file-tail 3113s # 3113s # comment 3113s # comment: Generated data ends here 3113s # Error: 3113s ok 20 __main__.TestRspMkenums.test_comma_in_enum_value 3113s # glib-mkenums: /usr/bin/glib-mkenums 3113s # tmpdir: /tmp/tmpg57t44yh 3113s # rspfile: True 3113s # /tmp/tmpg57t44yh/tmpzzdvvj_3.h: 3113s # typedef enum { 3113s # ENUM_VALUE_WITH_COMMA = ',', 3113s # } TestCommaEnum; 3113s # 3113s # /tmp/tmpg57t44yh/tmp14jl60e3.template: 3113s # /*** BEGIN file-header ***/ 3113s # file-header 3113s # /*** END file-header ***/ 3113s # 3113s # /*** BEGIN file-production ***/ 3113s # file-production 3113s # filename: @filename@ 3113s # basename: @basename@ 3113s # /*** END file-production ***/ 3113s # 3113s # /*** BEGIN enumeration-production ***/ 3113s # enumeration-production 3113s # EnumName: @EnumName@ 3113s # enum_name: @enum_name@ 3113s # ENUMNAME: @ENUMNAME@ 3113s # ENUMSHORT: @ENUMSHORT@ 3113s # ENUMPREFIX: @ENUMPREFIX@ 3113s # enumsince: @enumsince@ 3113s # type: @type@ 3113s # Type: @Type@ 3113s # TYPE: @TYPE@ 3113s # /*** END enumeration-production ***/ 3113s # 3113s # /*** BEGIN value-header ***/ 3113s # value-header 3113s # EnumName: @EnumName@ 3113s # enum_name: @enum_name@ 3113s # ENUMNAME: @ENUMNAME@ 3113s # ENUMSHORT: @ENUMSHORT@ 3113s # ENUMPREFIX: @ENUMPREFIX@ 3113s # enumsince: @enumsince@ 3113s # type: @type@ 3113s # Type: @Type@ 3113s # TYPE: @TYPE@ 3113s # /*** END value-header ***/ 3113s # 3113s # /*** BEGIN value-production ***/ 3113s # value-production 3113s # VALUENAME: @VALUENAME@ 3113s # valuenick: @valuenick@ 3113s # valuenum: @valuenum@ 3113s # type: @type@ 3113s # Type: @Type@ 3113s # TYPE: @TYPE@ 3113s # /*** END value-production ***/ 3113s # 3113s # /*** BEGIN value-tail ***/ 3113s # value-tail 3113s # EnumName: @EnumName@ 3113s # enum_name: @enum_name@ 3113s # ENUMNAME: @ENUMNAME@ 3113s # ENUMSHORT: @ENUMSHORT@ 3113s # ENUMPREFIX: @ENUMPREFIX@ 3113s # enumsince: @enumsince@ 3113s # type: @type@ 3113s # Type: @Type@ 3113s # TYPE: @TYPE@ 3113s # /*** END value-tail ***/ 3113s # 3113s # /*** BEGIN comment ***/ 3113s # comment 3113s # comment: @comment@ 3113s # /*** END comment ***/ 3113s # 3113s # /*** BEGIN file-tail ***/ 3113s # file-tail 3113s # /*** END file-tail ***/ 3113s # 3113s # Response file contains: --template /tmp/tmpg57t44yh/tmp14jl60e3.template /tmp/tmpg57t44yh/tmpzzdvvj_3.h 3113s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpg57t44yh/tmpft8ndd12'] 3113s # Return code: 0 3113s # Output: 3113s # comment 3113s # 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. 3113s # 3113s # 3113s # file-header 3113s # file-production 3113s # filename: /tmp/tmpg57t44yh/tmpzzdvvj_3.h 3113s # basename: tmpzzdvvj_3.h 3113s # enumeration-production 3113s # EnumName: TestCommaEnum 3113s # enum_name: test_comma_enum 3113s # ENUMNAME: TEST_COMMA_ENUM 3113s # ENUMSHORT: COMMA_ENUM 3113s # ENUMPREFIX: TEST 3113s # enumsince: 3113s # type: enum 3113s # Type: Enum 3113s # TYPE: ENUM 3113s # value-header 3113s # EnumName: TestCommaEnum 3113s # enum_name: test_comma_enum 3113s # ENUMNAME: TEST_COMMA_ENUM 3113s # ENUMSHORT: COMMA_ENUM 3113s # ENUMPREFIX: TEST 3113s # enumsince: 3113s # type: enum 3113s # Type: Enum 3113s # TYPE: ENUM 3113s # value-production 3113s # VALUENAME: ENUM_VALUE_WITH_COMMA 3113s # valuenick: comma 3113s # valuenum: 44 3113s # type: enum 3113s # Type: Enum 3113s # TYPE: ENUM 3113s # value-tail 3113s # EnumName: TestCommaEnum 3113s # enum_name: test_comma_enum 3113s # ENUMNAME: TEST_COMMA_ENUM 3113s # ENUMSHORT: COMMA_ENUM 3113s # ENUMPREFIX: TEST 3113s # enumsince: 3113s # type: enum 3113s # Type: Enum 3113s # TYPE: ENUM 3113s # file-tail 3113s # 3113s # comment 3113s # comment: Generated data ends here 3113s # Error: 3114s # Executing: glib/mkenums.py.test 3114s ok 21 __main__.TestRspMkenums.test_deprecated_in 3114s # glib-mkenums: /usr/bin/glib-mkenums 3114s # tmpdir: /tmp/tmp12bu0e4f 3114s # rspfile: True 3114s # /tmp/tmp12bu0e4f/tmpjxz5m8t1.h: 3114s # typedef enum { 3114s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_DEPRECATED_ENUMERATOR_IN_2_68 = (1<<2) 3114s # } GDBusServerFlags; 3114s # 3114s # /tmp/tmp12bu0e4f/tmpno57xdja.template: 3114s # /*** BEGIN file-header ***/ 3114s # file-header 3114s # /*** END file-header ***/ 3114s # 3114s # /*** BEGIN file-production ***/ 3114s # file-production 3114s # filename: @filename@ 3114s # basename: @basename@ 3114s # /*** END file-production ***/ 3114s # 3114s # /*** BEGIN enumeration-production ***/ 3114s # enumeration-production 3114s # EnumName: @EnumName@ 3114s # enum_name: @enum_name@ 3114s # ENUMNAME: @ENUMNAME@ 3114s # ENUMSHORT: @ENUMSHORT@ 3114s # ENUMPREFIX: @ENUMPREFIX@ 3114s # enumsince: @enumsince@ 3114s # type: @type@ 3114s # Type: @Type@ 3114s # TYPE: @TYPE@ 3114s # /*** END enumeration-production ***/ 3114s # 3114s # /*** BEGIN value-header ***/ 3114s # value-header 3114s # EnumName: @EnumName@ 3114s # enum_name: @enum_name@ 3114s # ENUMNAME: @ENUMNAME@ 3114s # ENUMSHORT: @ENUMSHORT@ 3114s # ENUMPREFIX: @ENUMPREFIX@ 3114s # enumsince: @enumsince@ 3114s # type: @type@ 3114s # Type: @Type@ 3114s # TYPE: @TYPE@ 3114s # /*** END value-header ***/ 3114s # 3114s # /*** BEGIN value-production ***/ 3114s # value-production 3114s # VALUENAME: @VALUENAME@ 3114s # valuenick: @valuenick@ 3114s # valuenum: @valuenum@ 3114s # type: @type@ 3114s # Type: @Type@ 3114s # TYPE: @TYPE@ 3114s # /*** END value-production ***/ 3114s # 3114s # /*** BEGIN value-tail ***/ 3114s # value-tail 3114s # EnumName: @EnumName@ 3114s # enum_name: @enum_name@ 3114s # ENUMNAME: @ENUMNAME@ 3114s # ENUMSHORT: @ENUMSHORT@ 3114s # ENUMPREFIX: @ENUMPREFIX@ 3114s # enumsince: @enumsince@ 3114s # type: @type@ 3114s # Type: @Type@ 3114s # TYPE: @TYPE@ 3114s # /*** END value-tail ***/ 3114s # 3114s # /*** BEGIN comment ***/ 3114s # comment 3114s # comment: @comment@ 3114s # /*** END comment ***/ 3114s # 3114s # /*** BEGIN file-tail ***/ 3114s # file-tail 3114s # /*** END file-tail ***/ 3114s # 3114s # Response file contains: --template /tmp/tmp12bu0e4f/tmpno57xdja.template /tmp/tmp12bu0e4f/tmpjxz5m8t1.h 3114s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp12bu0e4f/tmp2kvl5v7j'] 3114s # Return code: 0 3114s # Output: 3114s # comment 3114s # 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. 3114s # 3114s # 3114s # file-header 3114s # file-production 3114s # filename: /tmp/tmp12bu0e4f/tmpjxz5m8t1.h 3114s # basename: tmpjxz5m8t1.h 3114s # enumeration-production 3114s # EnumName: GDBusServerFlags 3114s # enum_name: g_dbus_server_flags 3114s # ENUMNAME: G_DBUS_SERVER_FLAGS 3114s # ENUMSHORT: DBUS_SERVER_FLAGS 3114s # ENUMPREFIX: G 3114s # enumsince: 3114s # type: flags 3114s # Type: Flags 3114s # TYPE: FLAGS 3114s # value-header 3114s # EnumName: GDBusServerFlags 3114s # enum_name: g_dbus_server_flags 3114s # ENUMNAME: G_DBUS_SERVER_FLAGS 3114s # ENUMSHORT: DBUS_SERVER_FLAGS 3114s # ENUMPREFIX: G 3114s # enumsince: 3114s # type: flags 3114s # Type: Flags 3114s # TYPE: FLAGS 3114s # value-production 3114s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 3114s # valuenick: user 3114s # valuenum: 4 3114s # type: flags 3114s # Type: Flags 3114s # TYPE: FLAGS 3114s # value-tail 3114s # EnumName: GDBusServerFlags 3114s # enum_name: g_dbus_server_flags 3114s # ENUMNAME: G_DBUS_SERVER_FLAGS 3114s # ENUMSHORT: DBUS_SERVER_FLAGS 3114s # ENUMPREFIX: G 3114s # enumsince: 3114s # type: flags 3114s # Type: Flags 3114s # TYPE: FLAGS 3114s # file-tail 3114s # 3114s # comment 3114s # comment: Generated data ends here 3114s # Error: 3115s ok 22 __main__.TestRspMkenums.test_deprecated_in_for 3115s # glib-mkenums: /usr/bin/glib-mkenums 3115s # tmpdir: /tmp/tmp2isszrjh 3115s # rspfile: True 3115s # /tmp/tmp2isszrjh/tmpebqkjiki.h: 3115s # typedef enum { 3115s # 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) 3115s # } GDBusServerFlags; 3115s # 3115s # /tmp/tmp2isszrjh/tmpit714cv3.template: 3115s # /*** BEGIN file-header ***/ 3115s # file-header 3115s # /*** END file-header ***/ 3115s # 3115s # /*** BEGIN file-production ***/ 3115s # file-production 3115s # filename: @filename@ 3115s # basename: @basename@ 3115s # /*** END file-production ***/ 3115s # 3115s # /*** BEGIN enumeration-production ***/ 3115s # enumeration-production 3115s # EnumName: @EnumName@ 3115s # enum_name: @enum_name@ 3115s # ENUMNAME: @ENUMNAME@ 3115s # ENUMSHORT: @ENUMSHORT@ 3115s # ENUMPREFIX: @ENUMPREFIX@ 3115s # enumsince: @enumsince@ 3115s # type: @type@ 3115s # Type: @Type@ 3115s # TYPE: @TYPE@ 3115s # /*** END enumeration-production ***/ 3115s # 3115s # /*** BEGIN value-header ***/ 3115s # value-header 3115s # EnumName: @EnumName@ 3115s # enum_name: @enum_name@ 3115s # ENUMNAME: @ENUMNAME@ 3115s # ENUMSHORT: @ENUMSHORT@ 3115s # ENUMPREFIX: @ENUMPREFIX@ 3115s # enumsince: @enumsince@ 3115s # type: @type@ 3115s # Type: @Type@ 3115s # TYPE: @TYPE@ 3115s # /*** END value-header ***/ 3115s # 3115s # /*** BEGIN value-production ***/ 3115s # value-production 3115s # VALUENAME: @VALUENAME@ 3115s # valuenick: @valuenick@ 3115s # valuenum: @valuenum@ 3115s # type: @type@ 3115s # Type: @Type@ 3115s # TYPE: @TYPE@ 3115s # /*** END value-production ***/ 3115s # 3115s # /*** BEGIN value-tail ***/ 3115s # value-tail 3115s # EnumName: @EnumName@ 3115s # enum_name: @enum_name@ 3115s # ENUMNAME: @ENUMNAME@ 3115s # ENUMSHORT: @ENUMSHORT@ 3115s # ENUMPREFIX: @ENUMPREFIX@ 3115s # enumsince: @enumsince@ 3115s # type: @type@ 3115s # Type: @Type@ 3115s # TYPE: @TYPE@ 3115s # /*** END value-tail ***/ 3115s # 3115s # /*** BEGIN comment ***/ 3115s # comment 3115s # comment: @comment@ 3115s # /*** END comment ***/ 3115s # 3115s # /*** BEGIN file-tail ***/ 3115s # file-tail 3115s # /*** END file-tail ***/ 3115s # 3115s # Response file contains: --template /tmp/tmp2isszrjh/tmpit714cv3.template /tmp/tmp2isszrjh/tmpebqkjiki.h 3115s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp2isszrjh/tmpgv97b0xm'] 3115s # Return code: 0 3115s # Output: 3115s # comment 3115s # 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. 3115s # 3115s # 3115s # file-header 3115s # file-production 3115s # filename: /tmp/tmp2isszrjh/tmpebqkjiki.h 3115s # basename: tmpebqkjiki.h 3115s # enumeration-production 3115s # EnumName: GDBusServerFlags 3115s # enum_name: g_dbus_server_flags 3115s # ENUMNAME: G_DBUS_SERVER_FLAGS 3115s # ENUMSHORT: DBUS_SERVER_FLAGS 3115s # ENUMPREFIX: G 3115s # enumsince: 3115s # type: flags 3115s # Type: Flags 3115s # TYPE: FLAGS 3115s # value-header 3115s # EnumName: GDBusServerFlags 3115s # enum_name: g_dbus_server_flags 3115s # ENUMNAME: G_DBUS_SERVER_FLAGS 3115s # ENUMSHORT: DBUS_SERVER_FLAGS 3115s # ENUMPREFIX: G 3115s # enumsince: 3115s # type: flags 3115s # Type: Flags 3115s # TYPE: FLAGS 3115s # value-production 3115s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 3115s # valuenick: user 3115s # valuenum: 4 3115s # type: flags 3115s # Type: Flags 3115s # TYPE: FLAGS 3115s # value-tail 3115s # EnumName: GDBusServerFlags 3115s # enum_name: g_dbus_server_flags 3115s # ENUMNAME: G_DBUS_SERVER_FLAGS 3115s # ENUMSHORT: DBUS_SERVER_FLAGS 3115s # ENUMPREFIX: G 3115s # enumsince: 3115s # type: flags 3115s # Type: Flags 3115s # TYPE: FLAGS 3115s # file-tail 3115s # 3115s # comment 3115s # comment: Generated data ends here 3115s # Error: 3115s ok 23 __main__.TestRspMkenums.test_empty_header 3115s # glib-mkenums: /usr/bin/glib-mkenums 3115s # tmpdir: /tmp/tmpst6gm098 3115s # rspfile: True 3115s # /tmp/tmpst6gm098/tmppvkptwa2.h: 3115s # /tmp/tmpst6gm098/tmpljgr3gbh.template: 3115s # /*** BEGIN file-header ***/ 3115s # file-header 3115s # /*** END file-header ***/ 3115s # 3115s # /*** BEGIN file-production ***/ 3115s # file-production 3115s # filename: @filename@ 3115s # basename: @basename@ 3115s # /*** END file-production ***/ 3115s # 3115s # /*** BEGIN enumeration-production ***/ 3115s # enumeration-production 3115s # EnumName: @EnumName@ 3115s # enum_name: @enum_name@ 3115s # ENUMNAME: @ENUMNAME@ 3115s # ENUMSHORT: @ENUMSHORT@ 3115s # ENUMPREFIX: @ENUMPREFIX@ 3115s # enumsince: @enumsince@ 3115s # type: @type@ 3115s # Type: @Type@ 3115s # TYPE: @TYPE@ 3115s # /*** END enumeration-production ***/ 3115s # 3115s # /*** BEGIN value-header ***/ 3115s # value-header 3115s # EnumName: @EnumName@ 3115s # enum_name: @enum_name@ 3115s # ENUMNAME: @ENUMNAME@ 3115s # ENUMSHORT: @ENUMSHORT@ 3115s # ENUMPREFIX: @ENUMPREFIX@ 3115s # enumsince: @enumsince@ 3115s # type: @type@ 3115s # Type: @Type@ 3115s # TYPE: @TYPE@ 3115s # /*** END value-header ***/ 3115s # 3115s # /*** BEGIN value-production ***/ 3115s # value-production 3115s # VALUENAME: @VALUENAME@ 3115s # valuenick: @valuenick@ 3115s # valuenum: @valuenum@ 3115s # type: @type@ 3115s # Type: @Type@ 3115s # TYPE: @TYPE@ 3115s # /*** END value-production ***/ 3115s # 3115s # /*** BEGIN value-tail ***/ 3115s # value-tail 3115s # EnumName: @EnumName@ 3115s # enum_name: @enum_name@ 3115s # ENUMNAME: @ENUMNAME@ 3115s # ENUMSHORT: @ENUMSHORT@ 3115s # ENUMPREFIX: @ENUMPREFIX@ 3115s # enumsince: @enumsince@ 3115s # type: @type@ 3115s # Type: @Type@ 3115s # TYPE: @TYPE@ 3115s # /*** END value-tail ***/ 3115s # 3115s # /*** BEGIN comment ***/ 3115s # comment 3115s # comment: @comment@ 3115s # /*** END comment ***/ 3115s # 3115s # /*** BEGIN file-tail ***/ 3115s # file-tail 3115s # /*** END file-tail ***/ 3115s # 3115s # Response file contains: --template /tmp/tmpst6gm098/tmpljgr3gbh.template /tmp/tmpst6gm098/tmppvkptwa2.h 3115s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpst6gm098/tmp45m76nsh'] 3115s # Return code: 0 3115s # Output: 3115s # comment 3115s # 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. 3115s # 3115s # 3115s # file-header 3115s # file-tail 3115s # 3115s # comment 3115s # comment: Generated data ends here 3115s # Error: 3116s ok 24 __main__.TestRspMkenums.test_empty_template 3116s # glib-mkenums: /usr/bin/glib-mkenums 3116s # tmpdir: /tmp/tmpgk29yxvg 3116s # rspfile: True 3116s # /tmp/tmpgk29yxvg/tmpezkbiu8v.template: 3116s # Response file contains: --template /tmp/tmpgk29yxvg/tmpezkbiu8v.template 3116s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpgk29yxvg/tmpodktv1v6'] 3116s # Return code: 0 3116s # Output: 3116s # /* 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. */ 3116s # 3116s # 3116s # /* Generated data ends here */ 3116s # Error: 3117s ok 25 __main__.TestRspMkenums.test_enum_name 3117s # glib-mkenums: /usr/bin/glib-mkenums 3117s # tmpdir: /tmp/tmpwgqk4vm9 3117s # rspfile: True 3117s # /tmp/tmpwgqk4vm9/tmpywkkyfqb.h: 3117s # typedef enum _SomeEnumIdentifier { 3117s # ENUM_VALUE 3117s # } SomeEnumIdentifier; 3117s # 3117s # /tmp/tmpwgqk4vm9/tmpvk3sjeqp.template: 3117s # /*** BEGIN file-header ***/ 3117s # file-header 3117s # /*** END file-header ***/ 3117s # 3117s # /*** BEGIN file-production ***/ 3117s # file-production 3117s # filename: @filename@ 3117s # basename: @basename@ 3117s # /*** END file-production ***/ 3117s # 3117s # /*** BEGIN enumeration-production ***/ 3117s # enumeration-production 3117s # EnumName: @EnumName@ 3117s # enum_name: @enum_name@ 3117s # ENUMNAME: @ENUMNAME@ 3117s # ENUMSHORT: @ENUMSHORT@ 3117s # ENUMPREFIX: @ENUMPREFIX@ 3117s # enumsince: @enumsince@ 3117s # type: @type@ 3117s # Type: @Type@ 3117s # TYPE: @TYPE@ 3117s # /*** END enumeration-production ***/ 3117s # 3117s # /*** BEGIN value-header ***/ 3117s # value-header 3117s # EnumName: @EnumName@ 3117s # enum_name: @enum_name@ 3117s # ENUMNAME: @ENUMNAME@ 3117s # ENUMSHORT: @ENUMSHORT@ 3117s # ENUMPREFIX: @ENUMPREFIX@ 3117s # enumsince: @enumsince@ 3117s # type: @type@ 3117s # Type: @Type@ 3117s # TYPE: @TYPE@ 3117s # /*** END value-header ***/ 3117s # 3117s # /*** BEGIN value-production ***/ 3117s # value-production 3117s # VALUENAME: @VALUENAME@ 3117s # valuenick: @valuenick@ 3117s # valuenum: @valuenum@ 3117s # type: @type@ 3117s # Type: @Type@ 3117s # TYPE: @TYPE@ 3117s # /*** END value-production ***/ 3117s # 3117s # /*** BEGIN value-tail ***/ 3117s # value-tail 3117s # EnumName: @EnumName@ 3117s # enum_name: @enum_name@ 3117s # ENUMNAME: @ENUMNAME@ 3117s # ENUMSHORT: @ENUMSHORT@ 3117s # ENUMPREFIX: @ENUMPREFIX@ 3117s # enumsince: @enumsince@ 3117s # type: @type@ 3117s # Type: @Type@ 3117s # TYPE: @TYPE@ 3117s # /*** END value-tail ***/ 3117s # 3117s # /*** BEGIN comment ***/ 3117s # comment 3117s # comment: @comment@ 3117s # /*** END comment ***/ 3117s # 3117s # /*** BEGIN file-tail ***/ 3117s # file-tail 3117s # /*** END file-tail ***/ 3117s # 3117s # Response file contains: --template /tmp/tmpwgqk4vm9/tmpvk3sjeqp.template /tmp/tmpwgqk4vm9/tmpywkkyfqb.h 3117s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpwgqk4vm9/tmpabemp11j'] 3117s # Return code: 0 3117s # Output: 3117s # comment 3117s # 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. 3117s # 3117s # 3117s # file-header 3117s # file-production 3117s # filename: /tmp/tmpwgqk4vm9/tmpywkkyfqb.h 3117s # basename: tmpywkkyfqb.h 3117s # enumeration-production 3117s # EnumName: SomeEnumIdentifier 3117s # enum_name: some_enum_identifier 3117s # ENUMNAME: SOME_ENUM_IDENTIFIER 3117s # ENUMSHORT: ENUM_IDENTIFIER 3117s # ENUMPREFIX: SOME 3117s # enumsince: 3117s # type: enum 3117s # Type: Enum 3117s # TYPE: ENUM 3117s # value-header 3117s # EnumName: SomeEnumIdentifier 3117s # enum_name: some_enum_identifier 3117s # ENUMNAME: SOME_ENUM_IDENTIFIER 3117s # ENUMSHORT: ENUM_IDENTIFIER 3117s # ENUMPREFIX: SOME 3117s # enumsince: 3117s # type: enum 3117s # Type: Enum 3117s # TYPE: ENUM 3117s # value-production 3117s # VALUENAME: ENUM_VALUE 3117s # valuenick: value 3117s # valuenum: 0 3117s # type: enum 3117s # Type: Enum 3117s # TYPE: ENUM 3117s # value-tail 3117s # EnumName: SomeEnumIdentifier 3117s # enum_name: some_enum_identifier 3117s # ENUMNAME: SOME_ENUM_IDENTIFIER 3117s # ENUMSHORT: ENUM_IDENTIFIER 3117s # ENUMPREFIX: SOME 3117s # enumsince: 3117s # type: enum 3117s # Type: Enum 3117s # TYPE: ENUM 3117s # file-tail 3117s # 3117s # comment 3117s # comment: Generated data ends here 3117s # Error: 3118s ok 26 __main__.TestRspMkenums.test_enum_private_public 3118s # glib-mkenums: /usr/bin/glib-mkenums 3118s # tmpdir: /tmp/tmpt74afc9z 3118s # rspfile: True 3118s # /tmp/tmpt74afc9z/tmpfaj7bc7w.h: 3118s # typedef enum { 3118s # ENUM_VALUE_PUBLIC1, 3118s # /*< private >*/ 3118s # ENUM_VALUE_PRIVATE, 3118s # } SomeEnumA 3118s # 3118s # /tmp/tmpt74afc9z/tmpvxbe_4ur.template: 3118s # /*** BEGIN file-header ***/ 3118s # file-header 3118s # /*** END file-header ***/ 3118s # 3118s # /*** BEGIN file-production ***/ 3118s # file-production 3118s # filename: @filename@ 3118s # basename: @basename@ 3118s # /*** END file-production ***/ 3118s # 3118s # /*** BEGIN enumeration-production ***/ 3118s # enumeration-production 3118s # EnumName: @EnumName@ 3118s # enum_name: @enum_name@ 3118s # ENUMNAME: @ENUMNAME@ 3118s # ENUMSHORT: @ENUMSHORT@ 3118s # ENUMPREFIX: @ENUMPREFIX@ 3118s # enumsince: @enumsince@ 3118s # type: @type@ 3118s # Type: @Type@ 3118s # TYPE: @TYPE@ 3118s # /*** END enumeration-production ***/ 3118s # 3118s # /*** BEGIN value-header ***/ 3118s # value-header 3118s # EnumName: @EnumName@ 3118s # enum_name: @enum_name@ 3118s # ENUMNAME: @ENUMNAME@ 3118s # ENUMSHORT: @ENUMSHORT@ 3118s # ENUMPREFIX: @ENUMPREFIX@ 3118s # enumsince: @enumsince@ 3118s # type: @type@ 3118s # Type: @Type@ 3118s # TYPE: @TYPE@ 3118s # /*** END value-header ***/ 3118s # 3118s # /*** BEGIN value-production ***/ 3118s # value-production 3118s # VALUENAME: @VALUENAME@ 3118s # valuenick: @valuenick@ 3118s # valuenum: @valuenum@ 3118s # type: @type@ 3118s # Type: @Type@ 3118s # TYPE: @TYPE@ 3118s # /*** END value-production ***/ 3118s # 3118s # /*** BEGIN value-tail ***/ 3118s # value-tail 3118s # EnumName: @EnumName@ 3118s # enum_name: @enum_name@ 3118s # ENUMNAME: @ENUMNAME@ 3118s # ENUMSHORT: @ENUMSHORT@ 3118s # ENUMPREFIX: @ENUMPREFIX@ 3118s # enumsince: @enumsince@ 3118s # type: @type@ 3118s # Type: @Type@ 3118s # TYPE: @TYPE@ 3118s # /*** END value-tail ***/ 3118s # 3118s # /*** BEGIN comment ***/ 3118s # comment 3118s # comment: @comment@ 3118s # /*** END comment ***/ 3118s # 3118s # /*** BEGIN file-tail ***/ 3118s # file-tail 3118s # /*** END file-tail ***/ 3118s # 3118s # Response file contains: --template /tmp/tmpt74afc9z/tmpvxbe_4ur.template /tmp/tmpt74afc9z/tmpfaj7bc7w.h 3118s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpt74afc9z/tmpwyyliojq'] 3118s # Return code: 0 3118s # Output: 3118s # comment 3118s # 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. 3118s # 3118s # 3118s # file-header 3118s # file-production 3118s # filename: /tmp/tmpt74afc9z/tmpfaj7bc7w.h 3118s # basename: tmpfaj7bc7w.h 3118s # enumeration-production 3118s # EnumName: SomeEnumA 3118s # enum_name: some_enum_a 3118s # ENUMNAME: SOME_ENUM_A 3118s # ENUMSHORT: ENUM_A 3118s # ENUMPREFIX: SOME 3118s # enumsince: 3118s # type: enum 3118s # Type: Enum 3118s # TYPE: ENUM 3118s # value-header 3118s # EnumName: SomeEnumA 3118s # enum_name: some_enum_a 3118s # ENUMNAME: SOME_ENUM_A 3118s # ENUMSHORT: ENUM_A 3118s # ENUMPREFIX: SOME 3118s # enumsince: 3118s # type: enum 3118s # Type: Enum 3118s # TYPE: ENUM 3118s # value-production 3118s # VALUENAME: ENUM_VALUE_PUBLIC1 3118s # valuenick: public1 3118s # valuenum: 0 3118s # type: enum 3118s # Type: Enum 3118s # TYPE: ENUM 3118s # value-tail 3118s # EnumName: SomeEnumA 3118s # enum_name: some_enum_a 3118s # ENUMNAME: SOME_ENUM_A 3118s # ENUMSHORT: ENUM_A 3118s # ENUMPREFIX: SOME 3118s # enumsince: 3118s # type: enum 3118s # Type: Enum 3118s # TYPE: ENUM 3118s # file-tail 3118s # 3118s # comment 3118s # comment: Generated data ends here 3118s # Error: 3118s # 3118s # /tmp/tmpt74afc9z/tmpj56otf8a.h: 3118s # typedef enum { 3118s # /*< private >*/ 3118s # ENUM_VALUE_PRIVATE, 3118s # /*< public >*/ 3118s # ENUM_VALUE_PUBLIC2, 3118s # } SomeEnumB; 3118s # 3118s # /tmp/tmpt74afc9z/tmp0jr1k1z0.template: 3118s # /*** BEGIN file-header ***/ 3118s # file-header 3118s # /*** END file-header ***/ 3118s # 3118s # /*** BEGIN file-production ***/ 3118s # file-production 3118s # filename: @filename@ 3118s # basename: @basename@ 3118s # /*** END file-production ***/ 3118s # 3118s # /*** BEGIN enumeration-production ***/ 3118s # enumeration-production 3118s # EnumName: @EnumName@ 3118s # enum_name: @enum_name@ 3118s # ENUMNAME: @ENUMNAME@ 3118s # ENUMSHORT: @ENUMSHORT@ 3118s # ENUMPREFIX: @ENUMPREFIX@ 3118s # enumsince: @enumsince@ 3118s # type: @type@ 3118s # Type: @Type@ 3118s # TYPE: @TYPE@ 3118s # /*** END enumeration-production ***/ 3118s # 3118s # /*** BEGIN value-header ***/ 3118s # value-header 3118s # EnumName: @EnumName@ 3118s # enum_name: @enum_name@ 3118s # ENUMNAME: @ENUMNAME@ 3118s # ENUMSHORT: @ENUMSHORT@ 3118s # ENUMPREFIX: @ENUMPREFIX@ 3118s # enumsince: @enumsince@ 3118s # type: @type@ 3118s # Type: @Type@ 3118s # TYPE: @TYPE@ 3118s # /*** END value-header ***/ 3118s # 3118s # /*** BEGIN value-production ***/ 3118s # value-production 3118s # VALUENAME: @VALUENAME@ 3118s # valuenick: @valuenick@ 3118s # valuenum: @valuenum@ 3118s # type: @type@ 3118s # Type: @Type@ 3118s # TYPE: @TYPE@ 3118s # /*** END value-production ***/ 3118s # 3118s # /*** BEGIN value-tail ***/ 3118s # value-tail 3118s # EnumName: @EnumName@ 3118s # enum_name: @enum_name@ 3118s # ENUMNAME: @ENUMNAME@ 3118s # ENUMSHORT: @ENUMSHORT@ 3118s # ENUMPREFIX: @ENUMPREFIX@ 3118s # enumsince: @enumsince@ 3118s # type: @type@ 3118s # Type: @Type@ 3118s # TYPE: @TYPE@ 3118s # /*** END value-tail ***/ 3118s # 3118s # /*** BEGIN comment ***/ 3118s # comment 3118s # comment: @comment@ 3118s # /*** END comment ***/ 3118s # 3118s # /*** BEGIN file-tail ***/ 3118s # file-tail 3118s # /*** END file-tail ***/ 3118s # 3118s # Response file contains: --template /tmp/tmpt74afc9z/tmp0jr1k1z0.template /tmp/tmpt74afc9z/tmpj56otf8a.h 3118s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpt74afc9z/tmpg7myqhc7'] 3118s # Return code: 0 3118s # Output: 3118s # comment 3118s # 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. 3118s # 3118s # 3118s # file-header 3118s # file-production 3118s # filename: /tmp/tmpt74afc9z/tmpj56otf8a.h 3118s # basename: tmpj56otf8a.h 3118s # enumeration-production 3118s # EnumName: SomeEnumB 3118s # enum_name: some_enum_b 3118s # ENUMNAME: SOME_ENUM_B 3118s # ENUMSHORT: ENUM_B 3118s # ENUMPREFIX: SOME 3118s # enumsince: 3118s # type: enum 3118s # Type: Enum 3118s # TYPE: ENUM 3118s # value-header 3118s # EnumName: SomeEnumB 3118s # enum_name: some_enum_b 3118s # ENUMNAME: SOME_ENUM_B 3118s # ENUMSHORT: ENUM_B 3118s # ENUMPREFIX: SOME 3118s # enumsince: 3118s # type: enum 3118s # Type: Enum 3118s # TYPE: ENUM 3118s # value-production 3118s # VALUENAME: ENUM_VALUE_PUBLIC2 3118s # valuenick: public2 3118s # valuenum: 1 3118s # type: enum 3118s # Type: Enum 3118s # TYPE: ENUM 3118s # value-tail 3118s # EnumName: SomeEnumB 3118s # enum_name: some_enum_b 3118s # ENUMNAME: SOME_ENUM_B 3118s # ENUMSHORT: ENUM_B 3118s # ENUMPREFIX: SOME 3118s # enumsince: 3118s # type: enum 3118s # Type: Enum 3118s # TYPE: ENUM 3118s # file-tail 3118s # 3118s # comment 3118s # comment: Generated data ends here 3118s # Error: 3119s ok 27 __main__.TestRspMkenums.test_enum_symbolic_expression 3119s # glib-mkenums: /usr/bin/glib-mkenums 3119s # tmpdir: /tmp/tmp9148956s 3119s # rspfile: True 3119s # /tmp/tmp9148956s/tmpx0x1bgkz.h: 3119s # typedef enum { 3119s # /*< private >*/ 3119s # ENUM_VALUE_PRIVATE = 5, 3119s # /*< public >*/ 3119s # ENUM_VALUE_PUBLIC = ENUM_VALUE_PRIVATE + 2, 3119s # } TestSymbolicEnum; 3119s # 3119s # /tmp/tmp9148956s/tmpm0n7i50b.template: 3119s # /*** BEGIN file-header ***/ 3119s # file-header 3119s # /*** END file-header ***/ 3119s # 3119s # /*** BEGIN file-production ***/ 3119s # file-production 3119s # filename: @filename@ 3119s # basename: @basename@ 3119s # /*** END file-production ***/ 3119s # 3119s # /*** BEGIN enumeration-production ***/ 3119s # enumeration-production 3119s # EnumName: @EnumName@ 3119s # enum_name: @enum_name@ 3119s # ENUMNAME: @ENUMNAME@ 3119s # ENUMSHORT: @ENUMSHORT@ 3119s # ENUMPREFIX: @ENUMPREFIX@ 3119s # enumsince: @enumsince@ 3119s # type: @type@ 3119s # Type: @Type@ 3119s # TYPE: @TYPE@ 3119s # /*** END enumeration-production ***/ 3119s # 3119s # /*** BEGIN value-header ***/ 3119s # value-header 3119s # EnumName: @EnumName@ 3119s # enum_name: @enum_name@ 3119s # ENUMNAME: @ENUMNAME@ 3119s # ENUMSHORT: @ENUMSHORT@ 3119s # ENUMPREFIX: @ENUMPREFIX@ 3119s # enumsince: @enumsince@ 3119s # type: @type@ 3119s # Type: @Type@ 3119s # TYPE: @TYPE@ 3119s # /*** END value-header ***/ 3119s # 3119s # /*** BEGIN value-production ***/ 3119s # value-production 3119s # VALUENAME: @VALUENAME@ 3119s # valuenick: @valuenick@ 3119s # valuenum: @valuenum@ 3119s # type: @type@ 3119s # Type: @Type@ 3119s # TYPE: @TYPE@ 3119s # /*** END value-production ***/ 3119s # 3119s # /*** BEGIN value-tail ***/ 3119s # value-tail 3119s # EnumName: @EnumName@ 3119s # enum_name: @enum_name@ 3119s # ENUMNAME: @ENUMNAME@ 3119s # ENUMSHORT: @ENUMSHORT@ 3119s # ENUMPREFIX: @ENUMPREFIX@ 3119s # enumsince: @enumsince@ 3119s # type: @type@ 3119s # Type: @Type@ 3119s # TYPE: @TYPE@ 3119s # /*** END value-tail ***/ 3119s # 3119s # /*** BEGIN comment ***/ 3119s # comment 3119s # comment: @comment@ 3119s # /*** END comment ***/ 3119s # 3119s # /*** BEGIN file-tail ***/ 3119s # file-tail 3119s # /*** END file-tail ***/ 3119s # 3119s # Response file contains: --template /tmp/tmp9148956s/tmpm0n7i50b.template /tmp/tmp9148956s/tmpx0x1bgkz.h 3119s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp9148956s/tmpf09bqpzr'] 3119s # Return code: 0 3119s # Output: 3119s # comment 3119s # 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. 3119s # 3119s # 3119s # file-header 3119s # file-production 3119s # filename: /tmp/tmp9148956s/tmpx0x1bgkz.h 3119s # basename: tmpx0x1bgkz.h 3119s # enumeration-production 3119s # EnumName: TestSymbolicEnum 3119s # enum_name: test_symbolic_enum 3119s # ENUMNAME: TEST_SYMBOLIC_ENUM 3119s # ENUMSHORT: SYMBOLIC_ENUM 3119s # ENUMPREFIX: TEST 3119s # enumsince: 3119s # type: enum 3119s # Type: Enum 3119s # TYPE: ENUM 3119s # value-header 3119s # EnumName: TestSymbolicEnum 3119s # enum_name: test_symbolic_enum 3119s # ENUMNAME: TEST_SYMBOLIC_ENUM 3119s # ENUMSHORT: SYMBOLIC_ENUM 3119s # ENUMPREFIX: TEST 3119s # enumsince: 3119s # type: enum 3119s # Type: Enum 3119s # TYPE: ENUM 3119s # value-production 3119s # VALUENAME: ENUM_VALUE_PUBLIC 3119s # valuenick: public 3119s # valuenum: 7 3119s # type: enum 3119s # Type: Enum 3119s # TYPE: ENUM 3119s # value-tail 3119s # EnumName: TestSymbolicEnum 3119s # enum_name: test_symbolic_enum 3119s # ENUMNAME: TEST_SYMBOLIC_ENUM 3119s # ENUMSHORT: SYMBOLIC_ENUM 3119s # ENUMPREFIX: TEST 3119s # enumsince: 3119s # type: enum 3119s # Type: Enum 3119s # TYPE: ENUM 3119s # file-tail 3119s # 3119s # comment 3119s # comment: Generated data ends here 3119s # Error: 3119s # Executing: glib/mkenums.py.test 3119s ok 28 __main__.TestRspMkenums.test_filename_basename_in_fhead_ftail 3119s # glib-mkenums: /usr/bin/glib-mkenums 3119s # tmpdir: /tmp/tmpml5wxj4r 3119s # rspfile: True 3119s # /tmp/tmpml5wxj4r/tmp5a9ou56h.template: 3119s # /*** BEGIN file-header ***/ 3119s # file-header 3119s # filename: @filename@ 3119s # basename: @basename@ 3119s # /*** END file-header ***/ 3119s # 3119s # /*** BEGIN comment ***/ 3119s # comment 3119s # comment: @comment@ 3119s # /*** END comment ***/ 3119s # 3119s # /*** BEGIN file-tail ***/ 3119s # file-tail 3119s # filename: @filename@ 3119s # basename: @basename@ 3119s # /*** END file-tail ***/ 3119s # Response file contains: --template /tmp/tmpml5wxj4r/tmp5a9ou56h.template 3119s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpml5wxj4r/tmppx_i7k8u'] 3119s # Return code: 0 3119s # Output: 3119s # comment 3119s # 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. 3119s # 3119s # 3119s # file-header 3119s # filename: @filename@ 3119s # basename: @basename@ 3119s # file-tail 3119s # filename: @filename@ 3119s # basename: @basename@ 3119s # 3119s # comment 3119s # comment: Generated data ends here 3119s # Error: 3119s # WARNING: @filename@ used in file-header section. 3119s # WARNING: @basename@ used in file-header section. 3119s # WARNING: @filename@ used in file-tail section. 3119s # WARNING: @basename@ used in file-tail section. 3120s ok 29 __main__.TestRspMkenums.test_help 3120s # glib-mkenums: /usr/bin/glib-mkenums 3120s # tmpdir: /tmp/tmp92jhhs4l 3120s # rspfile: True 3120s # Response file contains: --help 3120s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp92jhhs4l/tmp5s7ed3ws'] 3120s # Return code: 0 3120s # Output: 3120s # usage: glib-mkenums [-h] [--identifier-prefix IDPREFIX] 3120s # [--symbol-prefix SYMPREFIX] [--fhead FHEAD] 3120s # [--ftail FTAIL] [--fprod FPROD] [--eprod EPROD] 3120s # [--vhead VHEAD] [--vprod VPROD] [--vtail VTAIL] 3120s # [--comments COMMENT_TMPL] [--template TEMPLATE] 3120s # [--output OUTPUT] [--version] 3120s # [args ...] 3120s # 3120s # positional arguments: 3120s # args One or more input files, or a single argument 3120s # @rspfile_path pointing to a file that contains the 3120s # actual arguments 3120s # 3120s # options: 3120s # -h, --help show this help message and exit 3120s # --identifier-prefix IDPREFIX 3120s # Identifier prefix 3120s # --symbol-prefix SYMPREFIX 3120s # Symbol prefix 3120s # --fhead FHEAD Output file header 3120s # --ftail FTAIL Output file footer 3120s # --fprod FPROD Put out TEXT every time a new input file is being 3120s # processed. 3120s # --eprod EPROD Per enum text, produced prior to value iterations 3120s # --vhead VHEAD Value header, produced before iterating over enum 3120s # values 3120s # --vprod VPROD Value text, produced for each enum value. 3120s # --vtail VTAIL Value tail, produced after iterating over enum values 3120s # --comments COMMENT_TMPL 3120s # Comment structure 3120s # --template TEMPLATE Template file 3120s # --output OUTPUT 3120s # --version, -v Print version information 3120s # 3120s # Production text substitutions: 3120s # @EnumName@ PrefixTheXEnum 3120s # @enum_name@ prefix_the_xenum 3120s # @ENUMNAME@ PREFIX_THE_XENUM 3120s # @ENUMSHORT@ THE_XENUM 3120s # @ENUMPREFIX@ PREFIX 3120s # @enumsince@ the user-provided since value given 3120s # @VALUENAME@ PREFIX_THE_XVALUE 3120s # @valuenick@ the-xvalue 3120s # @valuenum@ the integer value (limited support, Since: 2.26) 3120s # @type@ either enum or flags 3120s # @Type@ either Enum or Flags 3120s # @TYPE@ either ENUM or FLAGS 3120s # @filename@ name of current input file 3120s # @basename@ base name of the current input file (Since: 2.22) 3120s # Error: 3121s ok 30 __main__.TestRspMkenums.test_no_args 3121s # glib-mkenums: /usr/bin/glib-mkenums 3121s # tmpdir: /tmp/tmp2p8zof8x 3121s # rspfile: True 3121s # Response file contains: 3121s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp2p8zof8x/tmpm7b3boj6'] 3121s # Return code: 0 3121s # Output: 3121s # /* 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. */ 3121s # 3121s # 3121s # /* Generated data ends here */ 3121s # Error: 3121s ok 31 __main__.TestRspMkenums.test_no_headers 3121s # glib-mkenums: /usr/bin/glib-mkenums 3121s # tmpdir: /tmp/tmpju6irpu6 3121s # rspfile: True 3121s # /tmp/tmpju6irpu6/tmpn8_ik2gb.template: 3121s # /*** BEGIN file-header ***/ 3121s # file-header 3121s # /*** END file-header ***/ 3121s # 3121s # /*** BEGIN file-production ***/ 3121s # file-production 3121s # filename: @filename@ 3121s # basename: @basename@ 3121s # /*** END file-production ***/ 3121s # 3121s # /*** BEGIN enumeration-production ***/ 3121s # enumeration-production 3121s # EnumName: @EnumName@ 3121s # enum_name: @enum_name@ 3121s # ENUMNAME: @ENUMNAME@ 3121s # ENUMSHORT: @ENUMSHORT@ 3121s # ENUMPREFIX: @ENUMPREFIX@ 3121s # enumsince: @enumsince@ 3121s # type: @type@ 3121s # Type: @Type@ 3121s # TYPE: @TYPE@ 3121s # /*** END enumeration-production ***/ 3121s # 3121s # /*** BEGIN value-header ***/ 3121s # value-header 3121s # EnumName: @EnumName@ 3121s # enum_name: @enum_name@ 3121s # ENUMNAME: @ENUMNAME@ 3121s # ENUMSHORT: @ENUMSHORT@ 3121s # ENUMPREFIX: @ENUMPREFIX@ 3121s # enumsince: @enumsince@ 3121s # type: @type@ 3121s # Type: @Type@ 3121s # TYPE: @TYPE@ 3121s # /*** END value-header ***/ 3121s # 3121s # /*** BEGIN value-production ***/ 3121s # value-production 3121s # VALUENAME: @VALUENAME@ 3121s # valuenick: @valuenick@ 3121s # valuenum: @valuenum@ 3121s # type: @type@ 3121s # Type: @Type@ 3121s # TYPE: @TYPE@ 3121s # /*** END value-production ***/ 3121s # 3121s # /*** BEGIN value-tail ***/ 3121s # value-tail 3121s # EnumName: @EnumName@ 3121s # enum_name: @enum_name@ 3121s # ENUMNAME: @ENUMNAME@ 3121s # ENUMSHORT: @ENUMSHORT@ 3121s # ENUMPREFIX: @ENUMPREFIX@ 3121s # enumsince: @enumsince@ 3121s # type: @type@ 3121s # Type: @Type@ 3121s # TYPE: @TYPE@ 3121s # /*** END value-tail ***/ 3121s # 3121s # /*** BEGIN comment ***/ 3121s # comment 3121s # comment: @comment@ 3121s # /*** END comment ***/ 3121s # 3121s # /*** BEGIN file-tail ***/ 3121s # file-tail 3121s # /*** END file-tail ***/ 3121s # 3121s # Response file contains: --template /tmp/tmpju6irpu6/tmpn8_ik2gb.template 3121s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpju6irpu6/tmpiw2smerj'] 3121s # Return code: 0 3121s # Output: 3121s # comment 3121s # 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. 3121s # 3121s # 3121s # file-header 3121s # file-tail 3121s # 3121s # comment 3121s # comment: Generated data ends here 3121s # Error: 3122s ok 32 __main__.TestRspMkenums.test_no_nick 3122s # glib-mkenums: /usr/bin/glib-mkenums 3122s # tmpdir: /tmp/tmpjz0gvdmi 3122s # rspfile: True 3122s # /tmp/tmpjz0gvdmi/tmpnegv9did.h: 3122s # typedef enum { 3122s # GEGL_SAMPLER_NEAREST = 0, /*< desc="nearest" >*/ 3122s # } GeglSamplerType; 3122s # 3122s # /tmp/tmpjz0gvdmi/tmph80vhtc6.template: 3122s # /*** BEGIN file-header ***/ 3122s # file-header 3122s # /*** END file-header ***/ 3122s # 3122s # /*** BEGIN file-production ***/ 3122s # file-production 3122s # filename: @filename@ 3122s # basename: @basename@ 3122s # /*** END file-production ***/ 3122s # 3122s # /*** BEGIN enumeration-production ***/ 3122s # enumeration-production 3122s # EnumName: @EnumName@ 3122s # enum_name: @enum_name@ 3122s # ENUMNAME: @ENUMNAME@ 3122s # ENUMSHORT: @ENUMSHORT@ 3122s # ENUMPREFIX: @ENUMPREFIX@ 3122s # enumsince: @enumsince@ 3122s # type: @type@ 3122s # Type: @Type@ 3122s # TYPE: @TYPE@ 3122s # /*** END enumeration-production ***/ 3122s # 3122s # /*** BEGIN value-header ***/ 3122s # value-header 3122s # EnumName: @EnumName@ 3122s # enum_name: @enum_name@ 3122s # ENUMNAME: @ENUMNAME@ 3122s # ENUMSHORT: @ENUMSHORT@ 3122s # ENUMPREFIX: @ENUMPREFIX@ 3122s # enumsince: @enumsince@ 3122s # type: @type@ 3122s # Type: @Type@ 3122s # TYPE: @TYPE@ 3122s # /*** END value-header ***/ 3122s # 3122s # /*** BEGIN value-production ***/ 3122s # value-production 3122s # VALUENAME: @VALUENAME@ 3122s # valuenick: @valuenick@ 3122s # valuenum: @valuenum@ 3122s # type: @type@ 3122s # Type: @Type@ 3122s # TYPE: @TYPE@ 3122s # /*** END value-production ***/ 3122s # 3122s # /*** BEGIN value-tail ***/ 3122s # value-tail 3122s # EnumName: @EnumName@ 3122s # enum_name: @enum_name@ 3122s # ENUMNAME: @ENUMNAME@ 3122s # ENUMSHORT: @ENUMSHORT@ 3122s # ENUMPREFIX: @ENUMPREFIX@ 3122s # enumsince: @enumsince@ 3122s # type: @type@ 3122s # Type: @Type@ 3122s # TYPE: @TYPE@ 3122s # /*** END value-tail ***/ 3122s # 3122s # /*** BEGIN comment ***/ 3122s # comment 3122s # comment: @comment@ 3122s # /*** END comment ***/ 3122s # 3122s # /*** BEGIN file-tail ***/ 3122s # file-tail 3122s # /*** END file-tail ***/ 3122s # 3122s # Response file contains: --template /tmp/tmpjz0gvdmi/tmph80vhtc6.template /tmp/tmpjz0gvdmi/tmpnegv9did.h 3122s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpjz0gvdmi/tmpp4kj9bus'] 3122s # Return code: 0 3122s # Output: 3122s # comment 3122s # 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. 3122s # 3122s # 3122s # file-header 3122s # file-production 3122s # filename: /tmp/tmpjz0gvdmi/tmpnegv9did.h 3122s # basename: tmpnegv9did.h 3122s # enumeration-production 3122s # EnumName: GeglSamplerType 3122s # enum_name: gegl_sampler_type 3122s # ENUMNAME: GEGL_SAMPLER_TYPE 3122s # ENUMSHORT: SAMPLER_TYPE 3122s # ENUMPREFIX: GEGL 3122s # enumsince: 3122s # type: enum 3122s # Type: Enum 3122s # TYPE: ENUM 3122s # value-header 3122s # EnumName: GeglSamplerType 3122s # enum_name: gegl_sampler_type 3122s # ENUMNAME: GEGL_SAMPLER_TYPE 3122s # ENUMSHORT: SAMPLER_TYPE 3122s # ENUMPREFIX: GEGL 3122s # enumsince: 3122s # type: enum 3122s # Type: Enum 3122s # TYPE: ENUM 3122s # value-production 3122s # VALUENAME: GEGL_SAMPLER_NEAREST 3122s # valuenick: nearest 3122s # valuenum: 0 3122s # type: enum 3122s # Type: Enum 3122s # TYPE: ENUM 3122s # value-tail 3122s # EnumName: GeglSamplerType 3122s # enum_name: gegl_sampler_type 3122s # ENUMNAME: GEGL_SAMPLER_TYPE 3122s # ENUMSHORT: SAMPLER_TYPE 3122s # ENUMPREFIX: GEGL 3122s # enumsince: 3122s # type: enum 3122s # Type: Enum 3122s # TYPE: ENUM 3122s # file-tail 3122s # 3122s # comment 3122s # comment: Generated data ends here 3122s # Error: 3123s ok 33 __main__.TestRspMkenums.test_non_utf8_encoding 3123s # glib-mkenums: /usr/bin/glib-mkenums 3123s # tmpdir: /tmp/tmppbfixq5p 3123s # rspfile: True 3123s # /tmp/tmppbfixq5p/tmpfkzsowjo.h: 3123s # /* Copyright © La Peña */ 3123s # typedef enum { 3123s # ENUM_VALUE 3123s # } SomeEnumIdentifier; 3123s # 3123s # /tmp/tmppbfixq5p/tmpifcdmafr.template: 3123s # /*** BEGIN file-header ***/ 3123s # file-header 3123s # /*** END file-header ***/ 3123s # 3123s # /*** BEGIN file-production ***/ 3123s # file-production 3123s # filename: @filename@ 3123s # basename: @basename@ 3123s # /*** END file-production ***/ 3123s # 3123s # /*** BEGIN enumeration-production ***/ 3123s # enumeration-production 3123s # EnumName: @EnumName@ 3123s # enum_name: @enum_name@ 3123s # ENUMNAME: @ENUMNAME@ 3123s # ENUMSHORT: @ENUMSHORT@ 3123s # ENUMPREFIX: @ENUMPREFIX@ 3123s # enumsince: @enumsince@ 3123s # type: @type@ 3123s # Type: @Type@ 3123s # TYPE: @TYPE@ 3123s # /*** END enumeration-production ***/ 3123s # 3123s # /*** BEGIN value-header ***/ 3123s # value-header 3123s # EnumName: @EnumName@ 3123s # enum_name: @enum_name@ 3123s # ENUMNAME: @ENUMNAME@ 3123s # ENUMSHORT: @ENUMSHORT@ 3123s # ENUMPREFIX: @ENUMPREFIX@ 3123s # enumsince: @enumsince@ 3123s # type: @type@ 3123s # Type: @Type@ 3123s # TYPE: @TYPE@ 3123s # /*** END value-header ***/ 3123s # 3123s # /*** BEGIN value-production ***/ 3123s # value-production 3123s # VALUENAME: @VALUENAME@ 3123s # valuenick: @valuenick@ 3123s # valuenum: @valuenum@ 3123s # type: @type@ 3123s # Type: @Type@ 3123s # TYPE: @TYPE@ 3123s # /*** END value-production ***/ 3123s # 3123s # /*** BEGIN value-tail ***/ 3123s # value-tail 3123s # EnumName: @EnumName@ 3123s # enum_name: @enum_name@ 3123s # ENUMNAME: @ENUMNAME@ 3123s # ENUMSHORT: @ENUMSHORT@ 3123s # ENUMPREFIX: @ENUMPREFIX@ 3123s # enumsince: @enumsince@ 3123s # type: @type@ 3123s # Type: @Type@ 3123s # TYPE: @TYPE@ 3123s # /*** END value-tail ***/ 3123s # 3123s # /*** BEGIN comment ***/ 3123s # comment 3123s # comment: @comment@ 3123s # /*** END comment ***/ 3123s # 3123s # /*** BEGIN file-tail ***/ 3123s # file-tail 3123s # /*** END file-tail ***/ 3123s # 3123s # Response file contains: --template /tmp/tmppbfixq5p/tmpifcdmafr.template /tmp/tmppbfixq5p/tmpfkzsowjo.h 3123s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmppbfixq5p/tmp5t8yc_2f'] 3123s # Return code: 0 3123s # Output: 3123s # comment 3123s # 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. 3123s # 3123s # 3123s # file-header 3123s # file-production 3123s # filename: /tmp/tmppbfixq5p/tmpfkzsowjo.h 3123s # basename: tmpfkzsowjo.h 3123s # enumeration-production 3123s # EnumName: SomeEnumIdentifier 3123s # enum_name: some_enum_identifier 3123s # ENUMNAME: SOME_ENUM_IDENTIFIER 3123s # ENUMSHORT: ENUM_IDENTIFIER 3123s # ENUMPREFIX: SOME 3123s # enumsince: 3123s # type: enum 3123s # Type: Enum 3123s # TYPE: ENUM 3123s # value-header 3123s # EnumName: SomeEnumIdentifier 3123s # enum_name: some_enum_identifier 3123s # ENUMNAME: SOME_ENUM_IDENTIFIER 3123s # ENUMSHORT: ENUM_IDENTIFIER 3123s # ENUMPREFIX: SOME 3123s # enumsince: 3123s # type: enum 3123s # Type: Enum 3123s # TYPE: ENUM 3123s # value-production 3123s # VALUENAME: ENUM_VALUE 3123s # valuenick: value 3123s # valuenum: 0 3123s # type: enum 3123s # Type: Enum 3123s # TYPE: ENUM 3123s # value-tail 3123s # EnumName: SomeEnumIdentifier 3123s # enum_name: some_enum_identifier 3123s # ENUMNAME: SOME_ENUM_IDENTIFIER 3123s # ENUMSHORT: ENUM_IDENTIFIER 3123s # ENUMPREFIX: SOME 3123s # enumsince: 3123s # type: enum 3123s # Type: Enum 3123s # TYPE: ENUM 3123s # file-tail 3123s # 3123s # comment 3123s # comment: Generated data ends here 3123s # Error: 3123s # WARNING: UnicodeWarning: invalid start byte at 22 (b'yright \xa9 La Pe\xf1') 3123s # WARNING: UnicodeWarning: invalid continuation byte at 29 (b'\xa9 La Pe\xf1a */\n ') 3124s # Executing: glib/mkenums.py.test 3124s ok 34 __main__.TestRspMkenums.test_reproducible 3124s # glib-mkenums: /usr/bin/glib-mkenums 3124s # tmpdir: /tmp/tmppuq61irj 3124s # rspfile: True 3124s # /tmp/tmppuq61irj/tmpl36ku02k.template: template 3124s # Response file contains: --template /tmp/tmppuq61irj/tmpl36ku02k.template /tmp/tmppuq61irj/tmpjwz7n8bl1.h /tmp/tmppuq61irj/tmppxnbgmfa2.h 3124s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmppuq61irj/tmp3vfb7lqx'] 3124s # Return code: 0 3124s # Output: 3124s # /* 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. */ 3124s # 3124s # 3124s # /* Generated data ends here */ 3124s # Error: 3124s # 3124s # /tmp/tmppuq61irj/tmp5bdoputp.template: template 3124s # Response file contains: --template /tmp/tmppuq61irj/tmp5bdoputp.template /tmp/tmppuq61irj/tmppxnbgmfa2.h /tmp/tmppuq61irj/tmpjwz7n8bl1.h 3124s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmppuq61irj/tmpj215h5r6'] 3124s # Return code: 0 3124s # Output: 3124s # /* 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. */ 3124s # 3124s # 3124s # /* Generated data ends here */ 3124s # Error: 3124s ok 35 __main__.TestRspMkenums.test_since 3124s # glib-mkenums: /usr/bin/glib-mkenums 3124s # tmpdir: /tmp/tmp4kgr7v6z 3124s # rspfile: True 3124s # /tmp/tmp4kgr7v6z/tmpglxr0ca6.h: 3124s # typedef enum { /*< since=1.0 >*/ 3124s # QMI_WMS_MESSAGE_PROTOCOL_CDMA = 0, 3124s # } QmiWmsMessageProtocol; 3124s # 3124s # /tmp/tmp4kgr7v6z/tmpggiku9px.template: 3124s # /*** BEGIN file-header ***/ 3124s # file-header 3124s # /*** END file-header ***/ 3124s # 3124s # /*** BEGIN file-production ***/ 3124s # file-production 3124s # filename: @filename@ 3124s # basename: @basename@ 3124s # /*** END file-production ***/ 3124s # 3124s # /*** BEGIN enumeration-production ***/ 3124s # enumeration-production 3124s # EnumName: @EnumName@ 3124s # enum_name: @enum_name@ 3124s # ENUMNAME: @ENUMNAME@ 3124s # ENUMSHORT: @ENUMSHORT@ 3124s # ENUMPREFIX: @ENUMPREFIX@ 3124s # enumsince: @enumsince@ 3124s # type: @type@ 3124s # Type: @Type@ 3124s # TYPE: @TYPE@ 3124s # /*** END enumeration-production ***/ 3124s # 3124s # /*** BEGIN value-header ***/ 3124s # value-header 3124s # EnumName: @EnumName@ 3124s # enum_name: @enum_name@ 3124s # ENUMNAME: @ENUMNAME@ 3124s # ENUMSHORT: @ENUMSHORT@ 3124s # ENUMPREFIX: @ENUMPREFIX@ 3124s # enumsince: @enumsince@ 3124s # type: @type@ 3124s # Type: @Type@ 3124s # TYPE: @TYPE@ 3124s # /*** END value-header ***/ 3124s # 3124s # /*** BEGIN value-production ***/ 3124s # value-production 3124s # VALUENAME: @VALUENAME@ 3124s # valuenick: @valuenick@ 3124s # valuenum: @valuenum@ 3124s # type: @type@ 3124s # Type: @Type@ 3124s # TYPE: @TYPE@ 3124s # /*** END value-production ***/ 3124s # 3124s # /*** BEGIN value-tail ***/ 3124s # value-tail 3124s # EnumName: @EnumName@ 3124s # enum_name: @enum_name@ 3124s # ENUMNAME: @ENUMNAME@ 3124s # ENUMSHORT: @ENUMSHORT@ 3124s # ENUMPREFIX: @ENUMPREFIX@ 3124s # enumsince: @enumsince@ 3124s # type: @type@ 3124s # Type: @Type@ 3124s # TYPE: @TYPE@ 3124s # /*** END value-tail ***/ 3124s # 3124s # /*** BEGIN comment ***/ 3124s # comment 3124s # comment: @comment@ 3124s # /*** END comment ***/ 3124s # 3124s # /*** BEGIN file-tail ***/ 3124s # file-tail 3124s # /*** END file-tail ***/ 3124s # 3124s # Response file contains: --template /tmp/tmp4kgr7v6z/tmpggiku9px.template /tmp/tmp4kgr7v6z/tmpglxr0ca6.h 3124s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp4kgr7v6z/tmpf03g2ivi'] 3124s # Return code: 0 3124s # Output: 3124s # comment 3124s # 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. 3124s # 3124s # 3124s # file-header 3124s # file-production 3124s # filename: /tmp/tmp4kgr7v6z/tmpglxr0ca6.h 3124s # basename: tmpglxr0ca6.h 3124s # enumeration-production 3124s # EnumName: QmiWmsMessageProtocol 3124s # enum_name: qmi_wms_message_protocol 3124s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 3124s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 3124s # ENUMPREFIX: QMI 3124s # enumsince: 1.0 3124s # type: enum 3124s # Type: Enum 3124s # TYPE: ENUM 3124s # value-header 3124s # EnumName: QmiWmsMessageProtocol 3124s # enum_name: qmi_wms_message_protocol 3124s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 3124s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 3124s # ENUMPREFIX: QMI 3124s # enumsince: 1.0 3124s # type: enum 3124s # Type: Enum 3124s # TYPE: ENUM 3124s # value-production 3124s # VALUENAME: QMI_WMS_MESSAGE_PROTOCOL_CDMA 3124s # valuenick: cdma 3124s # valuenum: 0 3124s # type: enum 3124s # Type: Enum 3124s # TYPE: ENUM 3124s # value-tail 3124s # EnumName: QmiWmsMessageProtocol 3124s # enum_name: qmi_wms_message_protocol 3124s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 3124s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 3124s # ENUMPREFIX: QMI 3124s # enumsince: 1.0 3124s # type: enum 3124s # Type: Enum 3124s # TYPE: ENUM 3124s # file-tail 3124s # 3124s # comment 3124s # comment: Generated data ends here 3124s # Error: 3125s ok 36 __main__.TestRspMkenums.test_with_double_quotes 3125s # glib-mkenums: /usr/bin/glib-mkenums 3125s # tmpdir: /tmp/tmpmrpw_7wr 3125s # rspfile: True 3125s # /tmp/tmpmrpw_7wr/tmpjra037ub.h: 3125s # typedef enum { 3125s # FOO_VALUE /*< nick="eek, a comma" >*/ 3125s # } Foo; 3125s # 3125s # /tmp/tmpmrpw_7wr/tmp_z4rbhhq.template: 3125s # /*** BEGIN file-header ***/ 3125s # file-header 3125s # /*** END file-header ***/ 3125s # 3125s # /*** BEGIN file-production ***/ 3125s # file-production 3125s # filename: @filename@ 3125s # basename: @basename@ 3125s # /*** END file-production ***/ 3125s # 3125s # /*** BEGIN enumeration-production ***/ 3125s # enumeration-production 3125s # EnumName: @EnumName@ 3125s # enum_name: @enum_name@ 3125s # ENUMNAME: @ENUMNAME@ 3125s # ENUMSHORT: @ENUMSHORT@ 3125s # ENUMPREFIX: @ENUMPREFIX@ 3125s # enumsince: @enumsince@ 3125s # type: @type@ 3125s # Type: @Type@ 3125s # TYPE: @TYPE@ 3125s # /*** END enumeration-production ***/ 3125s # 3125s # /*** BEGIN value-header ***/ 3125s # value-header 3125s # EnumName: @EnumName@ 3125s # enum_name: @enum_name@ 3125s # ENUMNAME: @ENUMNAME@ 3125s # ENUMSHORT: @ENUMSHORT@ 3125s # ENUMPREFIX: @ENUMPREFIX@ 3125s # enumsince: @enumsince@ 3125s # type: @type@ 3125s # Type: @Type@ 3125s # TYPE: @TYPE@ 3125s # /*** END value-header ***/ 3125s # 3125s # /*** BEGIN value-production ***/ 3125s # value-production 3125s # VALUENAME: @VALUENAME@ 3125s # valuenick: @valuenick@ 3125s # valuenum: @valuenum@ 3125s # type: @type@ 3125s # Type: @Type@ 3125s # TYPE: @TYPE@ 3125s # /*** END value-production ***/ 3125s # 3125s # /*** BEGIN value-tail ***/ 3125s # value-tail 3125s # EnumName: @EnumName@ 3125s # enum_name: @enum_name@ 3125s # ENUMNAME: @ENUMNAME@ 3125s # ENUMSHORT: @ENUMSHORT@ 3125s # ENUMPREFIX: @ENUMPREFIX@ 3125s # enumsince: @enumsince@ 3125s # type: @type@ 3125s # Type: @Type@ 3125s # TYPE: @TYPE@ 3125s # /*** END value-tail ***/ 3125s # 3125s # /*** BEGIN comment ***/ 3125s # comment 3125s # comment: @comment@ 3125s # /*** END comment ***/ 3125s # 3125s # /*** BEGIN file-tail ***/ 3125s # file-tail 3125s # /*** END file-tail ***/ 3125s # 3125s # Response file contains: --template /tmp/tmpmrpw_7wr/tmp_z4rbhhq.template /tmp/tmpmrpw_7wr/tmpjra037ub.h 3125s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpmrpw_7wr/tmp8jg1illf'] 3125s # Return code: 0 3125s # Output: 3125s # comment 3125s # 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. 3125s # 3125s # 3125s # file-header 3125s # file-production 3125s # filename: /tmp/tmpmrpw_7wr/tmpjra037ub.h 3125s # basename: tmpjra037ub.h 3125s # enumeration-production 3125s # EnumName: Foo 3125s # enum_name: foo_ 3125s # ENUMNAME: FOO_ 3125s # ENUMSHORT: 3125s # ENUMPREFIX: FOO 3125s # enumsince: 3125s # type: enum 3125s # Type: Enum 3125s # TYPE: ENUM 3125s # value-header 3125s # EnumName: Foo 3125s # enum_name: foo_ 3125s # ENUMNAME: FOO_ 3125s # ENUMSHORT: 3125s # ENUMPREFIX: FOO 3125s # enumsince: 3125s # type: enum 3125s # Type: Enum 3125s # TYPE: ENUM 3125s # value-production 3125s # VALUENAME: FOO_VALUE 3125s # valuenick: eek, a comma 3125s # valuenum: 0 3125s # type: enum 3125s # Type: Enum 3125s # TYPE: ENUM 3125s # value-tail 3125s # EnumName: Foo 3125s # enum_name: foo_ 3125s # ENUMNAME: FOO_ 3125s # ENUMSHORT: 3125s # ENUMPREFIX: FOO 3125s # enumsince: 3125s # type: enum 3125s # Type: Enum 3125s # TYPE: ENUM 3125s # file-tail 3125s # 3125s # comment 3125s # comment: Generated data ends here 3125s # Error: 3125s 1..36 3125s ok - glib/mkenums.py.test 3125s # Running test: glib/gthash.test 3125s TAP version 14 3125s # random seed: R02S4dd24f1a5d607552cd5ebe41d80d490d 3125s 1..1 3125s # Start of gthash tests 3125s ok 1 /gthash/build-retrieve 3125s # End of gthash tests 3125s ok - glib/gthash.test 3125s # Running test: glib/object.test 3125s TAP version 14 3125s # random seed: R02Seb448cfe54773fabd30df69f4a4a24c8 3125s 1..2 3125s # Start of object tests 3125s # Start of constructor tests 3125s ok 1 /object/constructor/singleton 3125s ok 2 /object/constructor/infanticide # SKIP skip tests that rely on debug-only warnings 3125s # End of constructor tests 3125s # End of object tests 3125s ok - glib/object.test 3126s # Running test: glib/g-file-info.test 3126s TAP version 14 3126s # random seed: R02S1e2d3a5961092e3ee94ad8bbb5aa3141 3126s 1..6 3126s # Start of g-file-info tests 3126s ok 1 /g-file-info/test_g_file_info 3126s # /g-file-info/xattrs summary: Test setting and getting escaped xattrs 3126s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 3126s ok 2 /g-file-info/xattrs 3126s # /g-file-info/set-modified-date-time-precision summary: Test that g_file_info_set_modified_date_time() preserves microseconds 3126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3116 3126s ok 3 /g-file-info/set-modified-date-time-precision 3126s # Start of test_g_file_info tests 3126s # /g-file-info/test_g_file_info/modification-time summary: Test that getting the modification time of a file works. 3126s ok 4 /g-file-info/test_g_file_info/modification-time 3126s # /g-file-info/test_g_file_info/access-time summary: Test that getting the access time of a file works. 3126s ok 5 /g-file-info/test_g_file_info/access-time 3126s # /g-file-info/test_g_file_info/creation-time summary: Test that getting the creation time of a file works. 3126s ok 6 /g-file-info/test_g_file_info/creation-time 3126s # End of test_g_file_info tests 3126s # End of g-file-info tests 3126s ok - glib/g-file-info.test 3126s # Running test: glib/gobject-private.test 3126s TAP version 14 3126s # random seed: R02Sf17ab91f50db255689ff7219c0e6d7f8 3126s 1..3 3126s # Start of private tests 3126s ok 1 /private/instance 3126s ok 2 /private/derived-instance 3126s ok 3 /private/mixed-derived-instance 3126s # End of private tests 3126s ok - glib/gobject-private.test 3126s # Running test: glib/atomic-c-17.test 3126s TAP version 14 3126s # random seed: R02S637e47422827d48d21f46d2d42a90801 3126s 1..2 3126s # Start of atomic tests 3126s ok 1 /atomic/types 3126s ok 2 /atomic/threaded 3126s # End of atomic tests 3126s ok - glib/atomic-c-17.test 3126s # Running test: glib/asyncqueue.test 3126s TAP version 14 3126s # random seed: R02Sae6018ba79decb5eb040a4be5ad99ef1 3126s 1..7 3126s # Start of asyncqueue tests 3126s ok 1 /asyncqueue/basics 3126s ok 2 /asyncqueue/sort 3126s ok 3 /asyncqueue/destroy 3127s ok 4 /asyncqueue/threads 3127s ok 5 /asyncqueue/timed 3127s ok 6 /asyncqueue/remove 3127s ok 7 /asyncqueue/push_front 3127s # End of asyncqueue tests 3127s ok - glib/asyncqueue.test 3127s # Running test: glib/cxx-98.test 3127s TAP version 14 3127s # random seed: R02Se3240b726722323318ca267104dc7e47 3127s 1..2 3127s # Start of gtask tests 3127s # 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. 3127s ok 1 /gtask/name 3127s # Start of name tests 3127s # 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. 3127s ok 2 /gtask/name/macro-wrapper 3127s # End of name tests 3127s # End of gtask tests 3127s ok - glib/cxx-98.test 3127s # Running test: glib/resolver-parsing.test 3127s TAP version 14 3127s # random seed: R02Sc8cf560673cec0085c12f714126e8bd0 3127s 1..21 3127s # Start of gresolver tests 3127s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/invalid-header/.dirs/home 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/invalid-header/.dirs/cache 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_E4LT52/gresolver/invalid-header/.dirs/system-config1:/tmp/test_resolver-parsing_E4LT52/gresolver/invalid-header/.dirs/system-config2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/invalid-header/.dirs/config 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_E4LT52/gresolver/invalid-header/.dirs/system-data1:/tmp/test_resolver-parsing_E4LT52/gresolver/invalid-header/.dirs/system-data2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/invalid-header/.dirs/data 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/invalid-header/.dirs/state 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_E4LT52/gresolver/invalid-header/.dirs/runtime 3127s ok 1 /gresolver/invalid-header 3127s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/record-ownership/.dirs/home 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/record-ownership/.dirs/cache 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_E4LT52/gresolver/record-ownership/.dirs/system-config1:/tmp/test_resolver-parsing_E4LT52/gresolver/record-ownership/.dirs/system-config2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/record-ownership/.dirs/config 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_E4LT52/gresolver/record-ownership/.dirs/system-data1:/tmp/test_resolver-parsing_E4LT52/gresolver/record-ownership/.dirs/system-data2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/record-ownership/.dirs/data 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/record-ownership/.dirs/state 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_E4LT52/gresolver/record-ownership/.dirs/runtime 3127s ok 2 /gresolver/record-ownership 3127s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/unknown-record-type/.dirs/home 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/unknown-record-type/.dirs/cache 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_E4LT52/gresolver/unknown-record-type/.dirs/system-config1:/tmp/test_resolver-parsing_E4LT52/gresolver/unknown-record-type/.dirs/system-config2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/unknown-record-type/.dirs/config 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_E4LT52/gresolver/unknown-record-type/.dirs/system-data1:/tmp/test_resolver-parsing_E4LT52/gresolver/unknown-record-type/.dirs/system-data2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/unknown-record-type/.dirs/data 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/unknown-record-type/.dirs/state 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_E4LT52/gresolver/unknown-record-type/.dirs/runtime 3127s # GLib-GIO-DEBUG: Unrecognized DNS record type 20 3127s ok 3 /gresolver/unknown-record-type 3127s # Start of mx tests 3127s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/mx/valid/.dirs/home 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/mx/valid/.dirs/cache 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_E4LT52/gresolver/mx/valid/.dirs/system-config1:/tmp/test_resolver-parsing_E4LT52/gresolver/mx/valid/.dirs/system-config2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/mx/valid/.dirs/config 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_E4LT52/gresolver/mx/valid/.dirs/system-data1:/tmp/test_resolver-parsing_E4LT52/gresolver/mx/valid/.dirs/system-data2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/mx/valid/.dirs/data 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/mx/valid/.dirs/state 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_E4LT52/gresolver/mx/valid/.dirs/runtime 3127s ok 4 /gresolver/mx/valid 3127s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/mx/invalid/.dirs/home 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/mx/invalid/.dirs/cache 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_E4LT52/gresolver/mx/invalid/.dirs/system-config1:/tmp/test_resolver-parsing_E4LT52/gresolver/mx/invalid/.dirs/system-config2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/mx/invalid/.dirs/config 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_E4LT52/gresolver/mx/invalid/.dirs/system-data1:/tmp/test_resolver-parsing_E4LT52/gresolver/mx/invalid/.dirs/system-data2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/mx/invalid/.dirs/data 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/mx/invalid/.dirs/state 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_E4LT52/gresolver/mx/invalid/.dirs/runtime 3127s ok 5 /gresolver/mx/invalid 3127s # Start of invalid tests 3127s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/mx/invalid/too-short/.dirs/home 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/mx/invalid/too-short/.dirs/cache 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_E4LT52/gresolver/mx/invalid/too-short/.dirs/system-config1:/tmp/test_resolver-parsing_E4LT52/gresolver/mx/invalid/too-short/.dirs/system-config2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/mx/invalid/too-short/.dirs/config 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_E4LT52/gresolver/mx/invalid/too-short/.dirs/system-data1:/tmp/test_resolver-parsing_E4LT52/gresolver/mx/invalid/too-short/.dirs/system-data2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/mx/invalid/too-short/.dirs/data 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/mx/invalid/too-short/.dirs/state 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_E4LT52/gresolver/mx/invalid/too-short/.dirs/runtime 3127s ok 6 /gresolver/mx/invalid/too-short 3127s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/mx/invalid/too-short2/.dirs/home 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/mx/invalid/too-short2/.dirs/cache 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_E4LT52/gresolver/mx/invalid/too-short2/.dirs/system-config1:/tmp/test_resolver-parsing_E4LT52/gresolver/mx/invalid/too-short2/.dirs/system-config2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/mx/invalid/too-short2/.dirs/config 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_E4LT52/gresolver/mx/invalid/too-short2/.dirs/system-data1:/tmp/test_resolver-parsing_E4LT52/gresolver/mx/invalid/too-short2/.dirs/system-data2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/mx/invalid/too-short2/.dirs/data 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/mx/invalid/too-short2/.dirs/state 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_E4LT52/gresolver/mx/invalid/too-short2/.dirs/runtime 3127s ok 7 /gresolver/mx/invalid/too-short2 3127s # End of invalid tests 3127s # End of mx tests 3127s # Start of ns tests 3127s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/ns/valid/.dirs/home 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/ns/valid/.dirs/cache 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_E4LT52/gresolver/ns/valid/.dirs/system-config1:/tmp/test_resolver-parsing_E4LT52/gresolver/ns/valid/.dirs/system-config2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/ns/valid/.dirs/config 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_E4LT52/gresolver/ns/valid/.dirs/system-data1:/tmp/test_resolver-parsing_E4LT52/gresolver/ns/valid/.dirs/system-data2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/ns/valid/.dirs/data 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/ns/valid/.dirs/state 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_E4LT52/gresolver/ns/valid/.dirs/runtime 3127s ok 8 /gresolver/ns/valid 3127s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/ns/invalid/.dirs/home 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/ns/invalid/.dirs/cache 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_E4LT52/gresolver/ns/invalid/.dirs/system-config1:/tmp/test_resolver-parsing_E4LT52/gresolver/ns/invalid/.dirs/system-config2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/ns/invalid/.dirs/config 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_E4LT52/gresolver/ns/invalid/.dirs/system-data1:/tmp/test_resolver-parsing_E4LT52/gresolver/ns/invalid/.dirs/system-data2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/ns/invalid/.dirs/data 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/ns/invalid/.dirs/state 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_E4LT52/gresolver/ns/invalid/.dirs/runtime 3127s ok 9 /gresolver/ns/invalid 3127s # End of ns tests 3127s # Start of soa tests 3127s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/soa/valid/.dirs/home 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/soa/valid/.dirs/cache 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_E4LT52/gresolver/soa/valid/.dirs/system-config1:/tmp/test_resolver-parsing_E4LT52/gresolver/soa/valid/.dirs/system-config2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/soa/valid/.dirs/config 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_E4LT52/gresolver/soa/valid/.dirs/system-data1:/tmp/test_resolver-parsing_E4LT52/gresolver/soa/valid/.dirs/system-data2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/soa/valid/.dirs/data 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/soa/valid/.dirs/state 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_E4LT52/gresolver/soa/valid/.dirs/runtime 3127s ok 10 /gresolver/soa/valid 3127s # Start of invalid tests 3127s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/soa/invalid/mname/.dirs/home 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/soa/invalid/mname/.dirs/cache 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_E4LT52/gresolver/soa/invalid/mname/.dirs/system-config1:/tmp/test_resolver-parsing_E4LT52/gresolver/soa/invalid/mname/.dirs/system-config2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/soa/invalid/mname/.dirs/config 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_E4LT52/gresolver/soa/invalid/mname/.dirs/system-data1:/tmp/test_resolver-parsing_E4LT52/gresolver/soa/invalid/mname/.dirs/system-data2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/soa/invalid/mname/.dirs/data 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/soa/invalid/mname/.dirs/state 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_E4LT52/gresolver/soa/invalid/mname/.dirs/runtime 3127s ok 11 /gresolver/soa/invalid/mname 3127s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/soa/invalid/rname/.dirs/home 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/soa/invalid/rname/.dirs/cache 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_E4LT52/gresolver/soa/invalid/rname/.dirs/system-config1:/tmp/test_resolver-parsing_E4LT52/gresolver/soa/invalid/rname/.dirs/system-config2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/soa/invalid/rname/.dirs/config 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_E4LT52/gresolver/soa/invalid/rname/.dirs/system-data1:/tmp/test_resolver-parsing_E4LT52/gresolver/soa/invalid/rname/.dirs/system-data2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/soa/invalid/rname/.dirs/data 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/soa/invalid/rname/.dirs/state 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_E4LT52/gresolver/soa/invalid/rname/.dirs/runtime 3127s ok 12 /gresolver/soa/invalid/rname 3127s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/soa/invalid/too-short/.dirs/home 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/soa/invalid/too-short/.dirs/cache 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_E4LT52/gresolver/soa/invalid/too-short/.dirs/system-config1:/tmp/test_resolver-parsing_E4LT52/gresolver/soa/invalid/too-short/.dirs/system-config2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/soa/invalid/too-short/.dirs/config 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_E4LT52/gresolver/soa/invalid/too-short/.dirs/system-data1:/tmp/test_resolver-parsing_E4LT52/gresolver/soa/invalid/too-short/.dirs/system-data2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/soa/invalid/too-short/.dirs/data 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/soa/invalid/too-short/.dirs/state 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_E4LT52/gresolver/soa/invalid/too-short/.dirs/runtime 3127s ok 13 /gresolver/soa/invalid/too-short 3127s # End of invalid tests 3127s # End of soa tests 3127s # Start of srv tests 3127s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/srv/valid/.dirs/home 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/srv/valid/.dirs/cache 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_E4LT52/gresolver/srv/valid/.dirs/system-config1:/tmp/test_resolver-parsing_E4LT52/gresolver/srv/valid/.dirs/system-config2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/srv/valid/.dirs/config 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_E4LT52/gresolver/srv/valid/.dirs/system-data1:/tmp/test_resolver-parsing_E4LT52/gresolver/srv/valid/.dirs/system-data2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/srv/valid/.dirs/data 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/srv/valid/.dirs/state 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_E4LT52/gresolver/srv/valid/.dirs/runtime 3127s ok 14 /gresolver/srv/valid 3127s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/srv/invalid/.dirs/home 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/srv/invalid/.dirs/cache 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_E4LT52/gresolver/srv/invalid/.dirs/system-config1:/tmp/test_resolver-parsing_E4LT52/gresolver/srv/invalid/.dirs/system-config2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/srv/invalid/.dirs/config 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_E4LT52/gresolver/srv/invalid/.dirs/system-data1:/tmp/test_resolver-parsing_E4LT52/gresolver/srv/invalid/.dirs/system-data2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/srv/invalid/.dirs/data 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/srv/invalid/.dirs/state 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_E4LT52/gresolver/srv/invalid/.dirs/runtime 3127s ok 15 /gresolver/srv/invalid 3127s # Start of invalid tests 3127s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/srv/invalid/too-short/.dirs/home 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/srv/invalid/too-short/.dirs/cache 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_E4LT52/gresolver/srv/invalid/too-short/.dirs/system-config1:/tmp/test_resolver-parsing_E4LT52/gresolver/srv/invalid/too-short/.dirs/system-config2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/srv/invalid/too-short/.dirs/config 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_E4LT52/gresolver/srv/invalid/too-short/.dirs/system-data1:/tmp/test_resolver-parsing_E4LT52/gresolver/srv/invalid/too-short/.dirs/system-data2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/srv/invalid/too-short/.dirs/data 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/srv/invalid/too-short/.dirs/state 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_E4LT52/gresolver/srv/invalid/too-short/.dirs/runtime 3127s ok 16 /gresolver/srv/invalid/too-short 3127s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/srv/invalid/too-short2/.dirs/home 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/srv/invalid/too-short2/.dirs/cache 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_E4LT52/gresolver/srv/invalid/too-short2/.dirs/system-config1:/tmp/test_resolver-parsing_E4LT52/gresolver/srv/invalid/too-short2/.dirs/system-config2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/srv/invalid/too-short2/.dirs/config 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_E4LT52/gresolver/srv/invalid/too-short2/.dirs/system-data1:/tmp/test_resolver-parsing_E4LT52/gresolver/srv/invalid/too-short2/.dirs/system-data2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/srv/invalid/too-short2/.dirs/data 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/srv/invalid/too-short2/.dirs/state 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_E4LT52/gresolver/srv/invalid/too-short2/.dirs/runtime 3127s ok 17 /gresolver/srv/invalid/too-short2 3127s # End of invalid tests 3127s # End of srv tests 3127s # Start of txt tests 3127s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/txt/valid/.dirs/home 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/txt/valid/.dirs/cache 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_E4LT52/gresolver/txt/valid/.dirs/system-config1:/tmp/test_resolver-parsing_E4LT52/gresolver/txt/valid/.dirs/system-config2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/txt/valid/.dirs/config 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_E4LT52/gresolver/txt/valid/.dirs/system-data1:/tmp/test_resolver-parsing_E4LT52/gresolver/txt/valid/.dirs/system-data2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/txt/valid/.dirs/data 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/txt/valid/.dirs/state 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_E4LT52/gresolver/txt/valid/.dirs/runtime 3127s ok 18 /gresolver/txt/valid 3127s # Start of valid tests 3127s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/txt/valid/multiple-strings/.dirs/home 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/txt/valid/multiple-strings/.dirs/cache 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_E4LT52/gresolver/txt/valid/multiple-strings/.dirs/system-config1:/tmp/test_resolver-parsing_E4LT52/gresolver/txt/valid/multiple-strings/.dirs/system-config2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/txt/valid/multiple-strings/.dirs/config 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_E4LT52/gresolver/txt/valid/multiple-strings/.dirs/system-data1:/tmp/test_resolver-parsing_E4LT52/gresolver/txt/valid/multiple-strings/.dirs/system-data2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/txt/valid/multiple-strings/.dirs/data 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/txt/valid/multiple-strings/.dirs/state 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_E4LT52/gresolver/txt/valid/multiple-strings/.dirs/runtime 3127s ok 19 /gresolver/txt/valid/multiple-strings 3127s # End of valid tests 3127s # Start of invalid tests 3127s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/txt/invalid/empty/.dirs/home 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/txt/invalid/empty/.dirs/cache 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_E4LT52/gresolver/txt/invalid/empty/.dirs/system-config1:/tmp/test_resolver-parsing_E4LT52/gresolver/txt/invalid/empty/.dirs/system-config2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/txt/invalid/empty/.dirs/config 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_E4LT52/gresolver/txt/invalid/empty/.dirs/system-data1:/tmp/test_resolver-parsing_E4LT52/gresolver/txt/invalid/empty/.dirs/system-data2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/txt/invalid/empty/.dirs/data 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/txt/invalid/empty/.dirs/state 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_E4LT52/gresolver/txt/invalid/empty/.dirs/runtime 3127s ok 20 /gresolver/txt/invalid/empty 3127s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/txt/invalid/overflow/.dirs/home 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/txt/invalid/overflow/.dirs/cache 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_E4LT52/gresolver/txt/invalid/overflow/.dirs/system-config1:/tmp/test_resolver-parsing_E4LT52/gresolver/txt/invalid/overflow/.dirs/system-config2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/txt/invalid/overflow/.dirs/config 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_E4LT52/gresolver/txt/invalid/overflow/.dirs/system-data1:/tmp/test_resolver-parsing_E4LT52/gresolver/txt/invalid/overflow/.dirs/system-data2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/txt/invalid/overflow/.dirs/data 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_E4LT52/gresolver/txt/invalid/overflow/.dirs/state 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_E4LT52/gresolver/txt/invalid/overflow/.dirs/runtime 3127s ok 21 /gresolver/txt/invalid/overflow 3127s # End of invalid tests 3127s # End of txt tests 3127s # End of gresolver tests 3127s ok - glib/resolver-parsing.test 3127s # Running test: glib/overflow.test 3127s TAP version 14 3127s # random seed: R02S73916f4f42690955a2c30a2b0c82ad8a 3127s 1..6 3127s # Start of glib tests 3127s # Start of checked-math tests 3127s ok 1 /glib/checked-math/guint-add 3127s ok 2 /glib/checked-math/guint-mul 3127s ok 3 /glib/checked-math/guint64-add 3127s ok 4 /glib/checked-math/guint64-mul 3127s ok 5 /glib/checked-math/gsize-add 3127s ok 6 /glib/checked-math/gsize-mul 3127s # End of checked-math tests 3127s # End of glib tests 3127s ok - glib/overflow.test 3127s # Running test: glib/keyfile.test 3127s TAP version 14 3127s # random seed: R02S4c3565f2e661381908ecb53c2b273afb 3127s 1..36 3127s # Start of keyfile tests 3127s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_J7WB62/keyfile/line-ends/.dirs/home 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_J7WB62/keyfile/line-ends/.dirs/cache 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_J7WB62/keyfile/line-ends/.dirs/system-config1:/tmp/test_keyfile_J7WB62/keyfile/line-ends/.dirs/system-config2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_J7WB62/keyfile/line-ends/.dirs/config 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_J7WB62/keyfile/line-ends/.dirs/system-data1:/tmp/test_keyfile_J7WB62/keyfile/line-ends/.dirs/system-data2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_J7WB62/keyfile/line-ends/.dirs/data 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_J7WB62/keyfile/line-ends/.dirs/state 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_J7WB62/keyfile/line-ends/.dirs/runtime 3127s ok 1 /keyfile/line-ends 3127s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_J7WB62/keyfile/whitespace/.dirs/home 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_J7WB62/keyfile/whitespace/.dirs/cache 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_J7WB62/keyfile/whitespace/.dirs/system-config1:/tmp/test_keyfile_J7WB62/keyfile/whitespace/.dirs/system-config2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_J7WB62/keyfile/whitespace/.dirs/config 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_J7WB62/keyfile/whitespace/.dirs/system-data1:/tmp/test_keyfile_J7WB62/keyfile/whitespace/.dirs/system-data2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_J7WB62/keyfile/whitespace/.dirs/data 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_J7WB62/keyfile/whitespace/.dirs/state 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_J7WB62/keyfile/whitespace/.dirs/runtime 3127s ok 2 /keyfile/whitespace 3127s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_J7WB62/keyfile/comments/.dirs/home 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_J7WB62/keyfile/comments/.dirs/cache 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_J7WB62/keyfile/comments/.dirs/system-config1:/tmp/test_keyfile_J7WB62/keyfile/comments/.dirs/system-config2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_J7WB62/keyfile/comments/.dirs/config 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_J7WB62/keyfile/comments/.dirs/system-data1:/tmp/test_keyfile_J7WB62/keyfile/comments/.dirs/system-data2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_J7WB62/keyfile/comments/.dirs/data 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_J7WB62/keyfile/comments/.dirs/state 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_J7WB62/keyfile/comments/.dirs/runtime 3127s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3047 3127s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/104 3127s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3047 3127s ok 3 /keyfile/comments 3127s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_J7WB62/keyfile/listing/.dirs/home 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_J7WB62/keyfile/listing/.dirs/cache 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_J7WB62/keyfile/listing/.dirs/system-config1:/tmp/test_keyfile_J7WB62/keyfile/listing/.dirs/system-config2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_J7WB62/keyfile/listing/.dirs/config 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_J7WB62/keyfile/listing/.dirs/system-data1:/tmp/test_keyfile_J7WB62/keyfile/listing/.dirs/system-data2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_J7WB62/keyfile/listing/.dirs/data 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_J7WB62/keyfile/listing/.dirs/state 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_J7WB62/keyfile/listing/.dirs/runtime 3127s ok 4 /keyfile/listing 3127s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_J7WB62/keyfile/string/.dirs/home 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_J7WB62/keyfile/string/.dirs/cache 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_J7WB62/keyfile/string/.dirs/system-config1:/tmp/test_keyfile_J7WB62/keyfile/string/.dirs/system-config2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_J7WB62/keyfile/string/.dirs/config 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_J7WB62/keyfile/string/.dirs/system-data1:/tmp/test_keyfile_J7WB62/keyfile/string/.dirs/system-data2 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_J7WB62/keyfile/string/.dirs/data 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_J7WB62/keyfile/string/.dirs/state 3127s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_J7WB62/keyfile/string/.dirs/runtime 3127s ok 5 /keyfile/string 3128s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_J7WB62/keyfile/boolean/.dirs/home 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_J7WB62/keyfile/boolean/.dirs/cache 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_J7WB62/keyfile/boolean/.dirs/system-config1:/tmp/test_keyfile_J7WB62/keyfile/boolean/.dirs/system-config2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_J7WB62/keyfile/boolean/.dirs/config 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_J7WB62/keyfile/boolean/.dirs/system-data1:/tmp/test_keyfile_J7WB62/keyfile/boolean/.dirs/system-data2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_J7WB62/keyfile/boolean/.dirs/data 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_J7WB62/keyfile/boolean/.dirs/state 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_J7WB62/keyfile/boolean/.dirs/runtime 3128s ok 6 /keyfile/boolean 3128s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_J7WB62/keyfile/number/.dirs/home 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_J7WB62/keyfile/number/.dirs/cache 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_J7WB62/keyfile/number/.dirs/system-config1:/tmp/test_keyfile_J7WB62/keyfile/number/.dirs/system-config2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_J7WB62/keyfile/number/.dirs/config 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_J7WB62/keyfile/number/.dirs/system-data1:/tmp/test_keyfile_J7WB62/keyfile/number/.dirs/system-data2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_J7WB62/keyfile/number/.dirs/data 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_J7WB62/keyfile/number/.dirs/state 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_J7WB62/keyfile/number/.dirs/runtime 3128s ok 7 /keyfile/number 3128s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_J7WB62/keyfile/locale-string/.dirs/home 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_J7WB62/keyfile/locale-string/.dirs/cache 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_J7WB62/keyfile/locale-string/.dirs/system-config1:/tmp/test_keyfile_J7WB62/keyfile/locale-string/.dirs/system-config2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_J7WB62/keyfile/locale-string/.dirs/config 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_J7WB62/keyfile/locale-string/.dirs/system-data1:/tmp/test_keyfile_J7WB62/keyfile/locale-string/.dirs/system-data2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_J7WB62/keyfile/locale-string/.dirs/data 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_J7WB62/keyfile/locale-string/.dirs/state 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_J7WB62/keyfile/locale-string/.dirs/runtime 3128s ok 8 /keyfile/locale-string 3128s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_J7WB62/keyfile/lists/.dirs/home 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_J7WB62/keyfile/lists/.dirs/cache 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_J7WB62/keyfile/lists/.dirs/system-config1:/tmp/test_keyfile_J7WB62/keyfile/lists/.dirs/system-config2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_J7WB62/keyfile/lists/.dirs/config 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_J7WB62/keyfile/lists/.dirs/system-data1:/tmp/test_keyfile_J7WB62/keyfile/lists/.dirs/system-data2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_J7WB62/keyfile/lists/.dirs/data 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_J7WB62/keyfile/lists/.dirs/state 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_J7WB62/keyfile/lists/.dirs/runtime 3128s ok 9 /keyfile/lists 3128s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_J7WB62/keyfile/lists-set-get/.dirs/home 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_J7WB62/keyfile/lists-set-get/.dirs/cache 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_J7WB62/keyfile/lists-set-get/.dirs/system-config1:/tmp/test_keyfile_J7WB62/keyfile/lists-set-get/.dirs/system-config2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_J7WB62/keyfile/lists-set-get/.dirs/config 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_J7WB62/keyfile/lists-set-get/.dirs/system-data1:/tmp/test_keyfile_J7WB62/keyfile/lists-set-get/.dirs/system-data2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_J7WB62/keyfile/lists-set-get/.dirs/data 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_J7WB62/keyfile/lists-set-get/.dirs/state 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_J7WB62/keyfile/lists-set-get/.dirs/runtime 3128s ok 10 /keyfile/lists-set-get 3128s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_J7WB62/keyfile/group-remove/.dirs/home 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_J7WB62/keyfile/group-remove/.dirs/cache 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_J7WB62/keyfile/group-remove/.dirs/system-config1:/tmp/test_keyfile_J7WB62/keyfile/group-remove/.dirs/system-config2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_J7WB62/keyfile/group-remove/.dirs/config 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_J7WB62/keyfile/group-remove/.dirs/system-data1:/tmp/test_keyfile_J7WB62/keyfile/group-remove/.dirs/system-data2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_J7WB62/keyfile/group-remove/.dirs/data 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_J7WB62/keyfile/group-remove/.dirs/state 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_J7WB62/keyfile/group-remove/.dirs/runtime 3128s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=165887 3128s ok 11 /keyfile/group-remove 3128s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_J7WB62/keyfile/key-remove/.dirs/home 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_J7WB62/keyfile/key-remove/.dirs/cache 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_J7WB62/keyfile/key-remove/.dirs/system-config1:/tmp/test_keyfile_J7WB62/keyfile/key-remove/.dirs/system-config2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_J7WB62/keyfile/key-remove/.dirs/config 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_J7WB62/keyfile/key-remove/.dirs/system-data1:/tmp/test_keyfile_J7WB62/keyfile/key-remove/.dirs/system-data2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_J7WB62/keyfile/key-remove/.dirs/data 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_J7WB62/keyfile/key-remove/.dirs/state 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_J7WB62/keyfile/key-remove/.dirs/runtime 3128s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=165980 3128s ok 12 /keyfile/key-remove 3128s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_J7WB62/keyfile/groups/.dirs/home 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_J7WB62/keyfile/groups/.dirs/cache 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_J7WB62/keyfile/groups/.dirs/system-config1:/tmp/test_keyfile_J7WB62/keyfile/groups/.dirs/system-config2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_J7WB62/keyfile/groups/.dirs/config 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_J7WB62/keyfile/groups/.dirs/system-data1:/tmp/test_keyfile_J7WB62/keyfile/groups/.dirs/system-data2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_J7WB62/keyfile/groups/.dirs/data 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_J7WB62/keyfile/groups/.dirs/state 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_J7WB62/keyfile/groups/.dirs/runtime 3128s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=316309 3128s ok 13 /keyfile/groups 3128s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_J7WB62/keyfile/duplicate-keys/.dirs/home 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_J7WB62/keyfile/duplicate-keys/.dirs/cache 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_J7WB62/keyfile/duplicate-keys/.dirs/system-config1:/tmp/test_keyfile_J7WB62/keyfile/duplicate-keys/.dirs/system-config2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_J7WB62/keyfile/duplicate-keys/.dirs/config 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_J7WB62/keyfile/duplicate-keys/.dirs/system-data1:/tmp/test_keyfile_J7WB62/keyfile/duplicate-keys/.dirs/system-data2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_J7WB62/keyfile/duplicate-keys/.dirs/data 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_J7WB62/keyfile/duplicate-keys/.dirs/state 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_J7WB62/keyfile/duplicate-keys/.dirs/runtime 3128s ok 14 /keyfile/duplicate-keys 3128s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_J7WB62/keyfile/duplicate-groups/.dirs/home 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_J7WB62/keyfile/duplicate-groups/.dirs/cache 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_J7WB62/keyfile/duplicate-groups/.dirs/system-config1:/tmp/test_keyfile_J7WB62/keyfile/duplicate-groups/.dirs/system-config2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_J7WB62/keyfile/duplicate-groups/.dirs/config 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_J7WB62/keyfile/duplicate-groups/.dirs/system-data1:/tmp/test_keyfile_J7WB62/keyfile/duplicate-groups/.dirs/system-data2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_J7WB62/keyfile/duplicate-groups/.dirs/data 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_J7WB62/keyfile/duplicate-groups/.dirs/state 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_J7WB62/keyfile/duplicate-groups/.dirs/runtime 3128s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=157877 3128s ok 15 /keyfile/duplicate-groups 3128s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_J7WB62/keyfile/duplicate-groups2/.dirs/home 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_J7WB62/keyfile/duplicate-groups2/.dirs/cache 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_J7WB62/keyfile/duplicate-groups2/.dirs/system-config1:/tmp/test_keyfile_J7WB62/keyfile/duplicate-groups2/.dirs/system-config2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_J7WB62/keyfile/duplicate-groups2/.dirs/config 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_J7WB62/keyfile/duplicate-groups2/.dirs/system-data1:/tmp/test_keyfile_J7WB62/keyfile/duplicate-groups2/.dirs/system-data2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_J7WB62/keyfile/duplicate-groups2/.dirs/data 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_J7WB62/keyfile/duplicate-groups2/.dirs/state 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_J7WB62/keyfile/duplicate-groups2/.dirs/runtime 3128s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=385910 3128s ok 16 /keyfile/duplicate-groups2 3128s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_J7WB62/keyfile/group-names/.dirs/home 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_J7WB62/keyfile/group-names/.dirs/cache 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_J7WB62/keyfile/group-names/.dirs/system-config1:/tmp/test_keyfile_J7WB62/keyfile/group-names/.dirs/system-config2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_J7WB62/keyfile/group-names/.dirs/config 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_J7WB62/keyfile/group-names/.dirs/system-data1:/tmp/test_keyfile_J7WB62/keyfile/group-names/.dirs/system-data2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_J7WB62/keyfile/group-names/.dirs/data 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_J7WB62/keyfile/group-names/.dirs/state 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_J7WB62/keyfile/group-names/.dirs/runtime 3128s ok 17 /keyfile/group-names 3128s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_J7WB62/keyfile/key-names/.dirs/home 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_J7WB62/keyfile/key-names/.dirs/cache 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_J7WB62/keyfile/key-names/.dirs/system-config1:/tmp/test_keyfile_J7WB62/keyfile/key-names/.dirs/system-config2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_J7WB62/keyfile/key-names/.dirs/config 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_J7WB62/keyfile/key-names/.dirs/system-data1:/tmp/test_keyfile_J7WB62/keyfile/key-names/.dirs/system-data2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_J7WB62/keyfile/key-names/.dirs/data 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_J7WB62/keyfile/key-names/.dirs/state 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_J7WB62/keyfile/key-names/.dirs/runtime 3128s ok 18 /keyfile/key-names 3128s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_J7WB62/keyfile/reload/.dirs/home 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_J7WB62/keyfile/reload/.dirs/cache 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_J7WB62/keyfile/reload/.dirs/system-config1:/tmp/test_keyfile_J7WB62/keyfile/reload/.dirs/system-config2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_J7WB62/keyfile/reload/.dirs/config 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_J7WB62/keyfile/reload/.dirs/system-data1:/tmp/test_keyfile_J7WB62/keyfile/reload/.dirs/system-data2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_J7WB62/keyfile/reload/.dirs/data 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_J7WB62/keyfile/reload/.dirs/state 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_J7WB62/keyfile/reload/.dirs/runtime 3128s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=420686 3128s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2927 3128s ok 19 /keyfile/reload 3128s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_J7WB62/keyfile/int64/.dirs/home 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_J7WB62/keyfile/int64/.dirs/cache 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_J7WB62/keyfile/int64/.dirs/system-config1:/tmp/test_keyfile_J7WB62/keyfile/int64/.dirs/system-config2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_J7WB62/keyfile/int64/.dirs/config 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_J7WB62/keyfile/int64/.dirs/system-data1:/tmp/test_keyfile_J7WB62/keyfile/int64/.dirs/system-data2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_J7WB62/keyfile/int64/.dirs/data 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_J7WB62/keyfile/int64/.dirs/state 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_J7WB62/keyfile/int64/.dirs/runtime 3128s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=614864 3128s ok 20 /keyfile/int64 3128s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_J7WB62/keyfile/load/.dirs/home 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_J7WB62/keyfile/load/.dirs/cache 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_J7WB62/keyfile/load/.dirs/system-config1:/tmp/test_keyfile_J7WB62/keyfile/load/.dirs/system-config2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_J7WB62/keyfile/load/.dirs/config 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_J7WB62/keyfile/load/.dirs/system-data1:/tmp/test_keyfile_J7WB62/keyfile/load/.dirs/system-data2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_J7WB62/keyfile/load/.dirs/data 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_J7WB62/keyfile/load/.dirs/state 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_J7WB62/keyfile/load/.dirs/runtime 3128s ok 21 /keyfile/load 3128s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_J7WB62/keyfile/save/.dirs/home 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_J7WB62/keyfile/save/.dirs/cache 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_J7WB62/keyfile/save/.dirs/system-config1:/tmp/test_keyfile_J7WB62/keyfile/save/.dirs/system-config2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_J7WB62/keyfile/save/.dirs/config 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_J7WB62/keyfile/save/.dirs/system-data1:/tmp/test_keyfile_J7WB62/keyfile/save/.dirs/system-data2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_J7WB62/keyfile/save/.dirs/data 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_J7WB62/keyfile/save/.dirs/state 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_J7WB62/keyfile/save/.dirs/runtime 3128s ok 22 /keyfile/save 3128s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_J7WB62/keyfile/load-fail/.dirs/home 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_J7WB62/keyfile/load-fail/.dirs/cache 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_J7WB62/keyfile/load-fail/.dirs/system-config1:/tmp/test_keyfile_J7WB62/keyfile/load-fail/.dirs/system-config2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_J7WB62/keyfile/load-fail/.dirs/config 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_J7WB62/keyfile/load-fail/.dirs/system-data1:/tmp/test_keyfile_J7WB62/keyfile/load-fail/.dirs/system-data2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_J7WB62/keyfile/load-fail/.dirs/data 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_J7WB62/keyfile/load-fail/.dirs/state 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_J7WB62/keyfile/load-fail/.dirs/runtime 3128s ok 23 /keyfile/load-fail 3128s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_J7WB62/keyfile/non-utf8/.dirs/home 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_J7WB62/keyfile/non-utf8/.dirs/cache 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_J7WB62/keyfile/non-utf8/.dirs/system-config1:/tmp/test_keyfile_J7WB62/keyfile/non-utf8/.dirs/system-config2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_J7WB62/keyfile/non-utf8/.dirs/config 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_J7WB62/keyfile/non-utf8/.dirs/system-data1:/tmp/test_keyfile_J7WB62/keyfile/non-utf8/.dirs/system-data2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_J7WB62/keyfile/non-utf8/.dirs/data 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_J7WB62/keyfile/non-utf8/.dirs/state 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_J7WB62/keyfile/non-utf8/.dirs/runtime 3128s ok 24 /keyfile/non-utf8 3128s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_J7WB62/keyfile/page-boundary/.dirs/home 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_J7WB62/keyfile/page-boundary/.dirs/cache 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_J7WB62/keyfile/page-boundary/.dirs/system-config1:/tmp/test_keyfile_J7WB62/keyfile/page-boundary/.dirs/system-config2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_J7WB62/keyfile/page-boundary/.dirs/config 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_J7WB62/keyfile/page-boundary/.dirs/system-data1:/tmp/test_keyfile_J7WB62/keyfile/page-boundary/.dirs/system-data2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_J7WB62/keyfile/page-boundary/.dirs/data 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_J7WB62/keyfile/page-boundary/.dirs/state 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_J7WB62/keyfile/page-boundary/.dirs/runtime 3128s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=640695 3128s ok 25 /keyfile/page-boundary 3128s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_J7WB62/keyfile/ref/.dirs/home 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_J7WB62/keyfile/ref/.dirs/cache 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_J7WB62/keyfile/ref/.dirs/system-config1:/tmp/test_keyfile_J7WB62/keyfile/ref/.dirs/system-config2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_J7WB62/keyfile/ref/.dirs/config 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_J7WB62/keyfile/ref/.dirs/system-data1:/tmp/test_keyfile_J7WB62/keyfile/ref/.dirs/system-data2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_J7WB62/keyfile/ref/.dirs/data 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_J7WB62/keyfile/ref/.dirs/state 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_J7WB62/keyfile/ref/.dirs/runtime 3128s ok 26 /keyfile/ref 3128s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_J7WB62/keyfile/replace-value/.dirs/home 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_J7WB62/keyfile/replace-value/.dirs/cache 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_J7WB62/keyfile/replace-value/.dirs/system-config1:/tmp/test_keyfile_J7WB62/keyfile/replace-value/.dirs/system-config2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_J7WB62/keyfile/replace-value/.dirs/config 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_J7WB62/keyfile/replace-value/.dirs/system-data1:/tmp/test_keyfile_J7WB62/keyfile/replace-value/.dirs/system-data2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_J7WB62/keyfile/replace-value/.dirs/data 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_J7WB62/keyfile/replace-value/.dirs/state 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_J7WB62/keyfile/replace-value/.dirs/runtime 3128s ok 27 /keyfile/replace-value 3128s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_J7WB62/keyfile/list-separator/.dirs/home 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_J7WB62/keyfile/list-separator/.dirs/cache 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_J7WB62/keyfile/list-separator/.dirs/system-config1:/tmp/test_keyfile_J7WB62/keyfile/list-separator/.dirs/system-config2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_J7WB62/keyfile/list-separator/.dirs/config 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_J7WB62/keyfile/list-separator/.dirs/system-data1:/tmp/test_keyfile_J7WB62/keyfile/list-separator/.dirs/system-data2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_J7WB62/keyfile/list-separator/.dirs/data 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_J7WB62/keyfile/list-separator/.dirs/state 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_J7WB62/keyfile/list-separator/.dirs/runtime 3128s ok 28 /keyfile/list-separator 3128s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_J7WB62/keyfile/empty-string/.dirs/home 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_J7WB62/keyfile/empty-string/.dirs/cache 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_J7WB62/keyfile/empty-string/.dirs/system-config1:/tmp/test_keyfile_J7WB62/keyfile/empty-string/.dirs/system-config2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_J7WB62/keyfile/empty-string/.dirs/config 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_J7WB62/keyfile/empty-string/.dirs/system-data1:/tmp/test_keyfile_J7WB62/keyfile/empty-string/.dirs/system-data2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_J7WB62/keyfile/empty-string/.dirs/data 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_J7WB62/keyfile/empty-string/.dirs/state 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_J7WB62/keyfile/empty-string/.dirs/runtime 3128s ok 29 /keyfile/empty-string 3128s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_J7WB62/keyfile/limbo/.dirs/home 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_J7WB62/keyfile/limbo/.dirs/cache 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_J7WB62/keyfile/limbo/.dirs/system-config1:/tmp/test_keyfile_J7WB62/keyfile/limbo/.dirs/system-config2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_J7WB62/keyfile/limbo/.dirs/config 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_J7WB62/keyfile/limbo/.dirs/system-data1:/tmp/test_keyfile_J7WB62/keyfile/limbo/.dirs/system-data2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_J7WB62/keyfile/limbo/.dirs/data 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_J7WB62/keyfile/limbo/.dirs/state 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_J7WB62/keyfile/limbo/.dirs/runtime 3128s ok 30 /keyfile/limbo 3128s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_J7WB62/keyfile/utf8/.dirs/home 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_J7WB62/keyfile/utf8/.dirs/cache 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_J7WB62/keyfile/utf8/.dirs/system-config1:/tmp/test_keyfile_J7WB62/keyfile/utf8/.dirs/system-config2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_J7WB62/keyfile/utf8/.dirs/config 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_J7WB62/keyfile/utf8/.dirs/system-data1:/tmp/test_keyfile_J7WB62/keyfile/utf8/.dirs/system-data2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_J7WB62/keyfile/utf8/.dirs/data 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_J7WB62/keyfile/utf8/.dirs/state 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_J7WB62/keyfile/utf8/.dirs/runtime 3128s # Testing invalid encoding ?non-UTF-8? 3128s # Testing invalid encoding ?UTF? 3128s # Testing invalid encoding ?UTF-9? 3128s ok 31 /keyfile/utf8 3128s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_J7WB62/keyfile/roundtrip/.dirs/home 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_J7WB62/keyfile/roundtrip/.dirs/cache 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_J7WB62/keyfile/roundtrip/.dirs/system-config1:/tmp/test_keyfile_J7WB62/keyfile/roundtrip/.dirs/system-config2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_J7WB62/keyfile/roundtrip/.dirs/config 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_J7WB62/keyfile/roundtrip/.dirs/system-data1:/tmp/test_keyfile_J7WB62/keyfile/roundtrip/.dirs/system-data2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_J7WB62/keyfile/roundtrip/.dirs/data 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_J7WB62/keyfile/roundtrip/.dirs/state 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_J7WB62/keyfile/roundtrip/.dirs/runtime 3128s ok 32 /keyfile/roundtrip 3128s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_J7WB62/keyfile/bytes/.dirs/home 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_J7WB62/keyfile/bytes/.dirs/cache 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_J7WB62/keyfile/bytes/.dirs/system-config1:/tmp/test_keyfile_J7WB62/keyfile/bytes/.dirs/system-config2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_J7WB62/keyfile/bytes/.dirs/config 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_J7WB62/keyfile/bytes/.dirs/system-data1:/tmp/test_keyfile_J7WB62/keyfile/bytes/.dirs/system-data2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_J7WB62/keyfile/bytes/.dirs/data 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_J7WB62/keyfile/bytes/.dirs/state 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_J7WB62/keyfile/bytes/.dirs/runtime 3128s ok 33 /keyfile/bytes 3128s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_J7WB62/keyfile/get-locale/.dirs/home 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_J7WB62/keyfile/get-locale/.dirs/cache 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_J7WB62/keyfile/get-locale/.dirs/system-config1:/tmp/test_keyfile_J7WB62/keyfile/get-locale/.dirs/system-config2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_J7WB62/keyfile/get-locale/.dirs/config 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_J7WB62/keyfile/get-locale/.dirs/system-data1:/tmp/test_keyfile_J7WB62/keyfile/get-locale/.dirs/system-data2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_J7WB62/keyfile/get-locale/.dirs/data 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_J7WB62/keyfile/get-locale/.dirs/state 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_J7WB62/keyfile/get-locale/.dirs/runtime 3128s ok 34 /keyfile/get-locale 3128s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_J7WB62/keyfile/free-when-not-last-ref/.dirs/home 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_J7WB62/keyfile/free-when-not-last-ref/.dirs/cache 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_J7WB62/keyfile/free-when-not-last-ref/.dirs/system-config1:/tmp/test_keyfile_J7WB62/keyfile/free-when-not-last-ref/.dirs/system-config2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_J7WB62/keyfile/free-when-not-last-ref/.dirs/config 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_J7WB62/keyfile/free-when-not-last-ref/.dirs/system-data1:/tmp/test_keyfile_J7WB62/keyfile/free-when-not-last-ref/.dirs/system-data2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_J7WB62/keyfile/free-when-not-last-ref/.dirs/data 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_J7WB62/keyfile/free-when-not-last-ref/.dirs/state 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_J7WB62/keyfile/free-when-not-last-ref/.dirs/runtime 3128s ok 35 /keyfile/free-when-not-last-ref 3128s # Start of locale-string tests 3128s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_J7WB62/keyfile/locale-string/multiple-loads/.dirs/home 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_J7WB62/keyfile/locale-string/multiple-loads/.dirs/cache 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_J7WB62/keyfile/locale-string/multiple-loads/.dirs/system-config1:/tmp/test_keyfile_J7WB62/keyfile/locale-string/multiple-loads/.dirs/system-config2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_J7WB62/keyfile/locale-string/multiple-loads/.dirs/config 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_J7WB62/keyfile/locale-string/multiple-loads/.dirs/system-data1:/tmp/test_keyfile_J7WB62/keyfile/locale-string/multiple-loads/.dirs/system-data2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_J7WB62/keyfile/locale-string/multiple-loads/.dirs/data 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_J7WB62/keyfile/locale-string/multiple-loads/.dirs/state 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_J7WB62/keyfile/locale-string/multiple-loads/.dirs/runtime 3128s # /keyfile/locale-string/multiple-loads summary: Check that loading with translations multiple times works 3128s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2361 3128s ok 36 /keyfile/locale-string/multiple-loads 3128s # End of locale-string tests 3128s # End of keyfile tests 3128s ok - glib/keyfile.test 3128s # Running test: glib/volumemonitor.test 3128s TAP version 14 3128s # random seed: R02S9fcd13994abadc88e191089de79ba309 3128s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 3128s 1..3 3128s # Start of volumemonitor tests 3128s ok 1 /volumemonitor/connected_drives 3128s ok 2 /volumemonitor/volumes 3128s ok 3 /volumemonitor/mounts 3128s # End of volumemonitor tests 3128s ok - glib/volumemonitor.test 3128s # Running test: glib/permission.test 3128s TAP version 14 3128s # random seed: R02S0afd18531d4d2a87eeabf4553a07f30f 3128s 1..1 3128s # Start of permission tests 3128s ok 1 /permission/simple 3128s # End of permission tests 3128s ok - glib/permission.test 3128s # Running test: glib/gdbus-method-invocation.test 3128s TAP version 14 3128s # random seed: R02Sf760af0fbc670db12e20c862d0afa14b 3128s 1..1 3128s # Start of gdbus tests 3128s # Start of method-invocation tests 3128s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-method-invocation_E3XV52/gdbus/method-invocation/return/.dirs/home 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-method-invocation_E3XV52/gdbus/method-invocation/return/.dirs/cache 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-method-invocation_E3XV52/gdbus/method-invocation/return/.dirs/system-config1:/tmp/test_gdbus-method-invocation_E3XV52/gdbus/method-invocation/return/.dirs/system-config2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-method-invocation_E3XV52/gdbus/method-invocation/return/.dirs/config 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-method-invocation_E3XV52/gdbus/method-invocation/return/.dirs/system-data1:/tmp/test_gdbus-method-invocation_E3XV52/gdbus/method-invocation/return/.dirs/system-data2 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-method-invocation_E3XV52/gdbus/method-invocation/return/.dirs/data 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-method-invocation_E3XV52/gdbus/method-invocation/return/.dirs/state 3128s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-method-invocation_E3XV52/gdbus/method-invocation/return/.dirs/runtime 3128s # /gdbus/method-invocation/return summary: Test calling g_dbus_method_invocation_return_*() in various ways 3128s # Calling org.freedesktop.DBus.Properties.Get 3128s # Calling org.freedesktop.DBus.Properties.Get 3128s # Calling org.freedesktop.DBus.Properties.Get 3128s # Calling org.freedesktop.DBus.Properties.Set 3128s # Calling org.freedesktop.DBus.Properties.GetAll 3128s # Calling org.example.Foo.WrongReturnType 3128s # Calling org.example.Foo.GetFDs 3128s # Calling org.example.Foo.GetFDs 3128s # Calling org.example.Foo.ReturnError 3128s # Calling org.example.Foo.CloseBeforeReturning 3128s ok 1 /gdbus/method-invocation/return 3128s # End of method-invocation tests 3128s # End of gdbus tests 3128s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3128s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3128s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3128s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3128s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3128s ok - glib/gdbus-method-invocation.test 3129s # Running test: glib/proxy-test.test 3129s TAP version 14 3129s # random seed: R02S4f29bfdd3a944d7014c0023e632032a3 3129s 1..11 3129s # Start of proxy tests 3129s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestProxyResolver) for ?gio-proxy-resolver? 3129s ok 1 /proxy/direct_sync 3129s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 3129s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x5556251198b0 and GSocketClientAsyncConnectData 0x555625118de0 3129s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 3129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 3129s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x55562511a1e0 for GSocketClientAsyncConnectData 0x555625118de0 3129s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 3129s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 3129s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 3129s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 3129s ok 2 /proxy/direct_async 3129s # Executing: glib/proxy-test.test 3129s ok 3 /proxy/single_sync 3129s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 3129s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x555625119d50 and GSocketClientAsyncConnectData 0x555625118de0 3129s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 3129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 3129s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x55562511a8b0 for GSocketClientAsyncConnectData 0x555625118de0 3129s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 3129s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 3129s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 3129s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 3129s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 3129s ok 4 /proxy/single_async 3129s ok 5 /proxy/multiple_sync 3129s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 3129s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x555625119fe0 and GSocketClientAsyncConnectData 0x555625119f70 3129s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 3129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 3129s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x55562511bc10 for GSocketClientAsyncConnectData 0x555625119f70 3129s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 3129s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 3129s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 3129s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 3129s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 3129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 3129s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x55562511bbb0 for GSocketClientAsyncConnectData 0x555625119f70 3129s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 3129s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 3129s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 3129s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 3129s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 3129s ok 6 /proxy/multiple_async 3129s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2597 3129s ok 7 /proxy/invalid-uris-sync 3129s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2597 3129s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 3129s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x555625119ba0 and GSocketClientAsyncConnectData 0x55562511bdd0 3129s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 3129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 3129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: Unspecified proxy lookup failure 3129s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unspecified proxy lookup failure 3129s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 3129s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x555625119d50 and GSocketClientAsyncConnectData 0x555625119f70 3129s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 3129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 3129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: Unspecified proxy lookup failure 3129s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unspecified proxy lookup failure 3129s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 3129s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x555625119ba0 and GSocketClientAsyncConnectData 0x55562511bdd0 3129s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 3129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 3129s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x55562511a240 for GSocketClientAsyncConnectData 0x55562511bdd0 3129s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 3129s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 3129s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 3129s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 3129s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 3129s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x555625119d50 and GSocketClientAsyncConnectData 0x55562511bdd0 3129s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 3129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 3129s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x55562511be40 for GSocketClientAsyncConnectData 0x55562511bdd0 3129s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 3129s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 3129s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 3129s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 3129s ok 8 /proxy/invalid-uris-async 3129s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 3129s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x5556251198b0 and GSocketClientAsyncConnectData 0x55562511bdd0 3129s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 3129s # GLib-GIO-DEBUG: IPv6 DNS error: Not found 3129s # GLib-GIO-DEBUG: IPv4 DNS error: Not found 3129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 3129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: Not found 3129s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Not found 3129s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 3129s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x55562511c470 and GSocketClientAsyncConnectData 0x55562511a130 3129s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 3129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 3129s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x55562511bc10 for GSocketClientAsyncConnectData 0x55562511a130 3129s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 3129s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 3129s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 3129s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 3129s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 3129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 3129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: (null) 3129s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unsupported protocol 3129s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 3129s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x555625119ba0 and GSocketClientAsyncConnectData 0x555625119f70 3129s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 3129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 3129s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x55562511be40 for GSocketClientAsyncConnectData 0x555625119f70 3129s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 3129s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 3129s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 3129s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 3129s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 3129s ok 9 /proxy/dns 3129s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 3129s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x5556251198b0 and GSocketClientAsyncConnectData 0x555625119f70 3129s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 3129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 3129s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x55562511b330 for GSocketClientAsyncConnectData 0x555625119f70 3129s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 3129s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 3129s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 3129s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 3129s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 3129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 3129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: (null) 3129s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unsupported protocol 3129s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 3129s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x555625119ba0 and GSocketClientAsyncConnectData 0x555625119e10 3129s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 3129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 3129s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x55562511b330 for GSocketClientAsyncConnectData 0x555625119e10 3129s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 3129s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 3129s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 3129s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 3129s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 3129s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 3129s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x5556251198b0 and GSocketClientAsyncConnectData 0x55562511bdd0 3129s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 3129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 3129s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x55562511bb50 for GSocketClientAsyncConnectData 0x55562511bdd0 3129s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 3129s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 3129s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 3129s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 3129s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 3129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 3129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: (null) 3129s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unsupported protocol 3129s ok 10 /proxy/override 3129s ok 11 /proxy/enumerator-ports 3129s # End of proxy tests 3129s ok - glib/proxy-test.test 3129s # Running test: glib/portal-support-flatpak-network-only.test 3129s TAP version 14 3129s # random seed: R02Sbc5e201e8d6d95dca9117f7e83df6458 3129s 1..1 3129s # Start of portal-support tests 3129s # Start of flatpak tests 3129s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-network-only_83VQ52/portal-support/flatpak/network/.dirs/home 3129s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-network-only_83VQ52/portal-support/flatpak/network/.dirs/cache 3129s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-network-only_83VQ52/portal-support/flatpak/network/.dirs/system-config1:/tmp/test_portal-support-flatpak-network-only_83VQ52/portal-support/flatpak/network/.dirs/system-config2 3129s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-network-only_83VQ52/portal-support/flatpak/network/.dirs/config 3129s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-network-only_83VQ52/portal-support/flatpak/network/.dirs/system-data1:/tmp/test_portal-support-flatpak-network-only_83VQ52/portal-support/flatpak/network/.dirs/system-data2 3129s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-network-only_83VQ52/portal-support/flatpak/network/.dirs/data 3129s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-network-only_83VQ52/portal-support/flatpak/network/.dirs/state 3129s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-network-only_83VQ52/portal-support/flatpak/network/.dirs/runtime 3129s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-network-only_83VQ52/portal-support/flatpak/network/.dirs/runtime/.flatpak-info 3129s ok 1 /portal-support/flatpak/network 3129s # End of flatpak tests 3129s # End of portal-support tests 3129s ok - glib/portal-support-flatpak-network-only.test 3129s # Running test: glib/cond.test 3129s TAP version 14 3129s # random seed: R02S62d6a223de5242c4d7ce60662e98fb24 3129s 1..4 3129s # Start of thread tests 3129s ok 1 /thread/cond1 3129s ok 2 /thread/cond2 3129s # Start of cond tests 3130s ok 3 /thread/cond/wait-until 3130s # slow test /thread/cond/wait-until executed in 1.02 secs 3130s # Start of wait-until tests 3130s # /thread/cond/wait-until/contended-and-interrupted summary: Check proper handling of errno in g_cond_wait_until with a contended mutex 3130s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/957 3131s ok 4 /thread/cond/wait-until/contended-and-interrupted 3131s # slow test /thread/cond/wait-until/contended-and-interrupted executed in 1.10 secs 3131s # End of wait-until tests 3131s # End of cond tests 3131s # End of thread tests 3131s ok - glib/cond.test 3131s # Running test: glib/dynamictests.test 3131s TAP version 14 3131s # random seed: R02S1fe88eef51c79ca851d53bc5fb18179b 3131s 1..2 3131s # Start of GObject tests 3132s ok 1 /GObject/threaded-dynamic-ref-unref-init 3132s ok 2 /GObject/dynamic-interface-properties 3132s ok - glib/dynamictests.test 3132s # End of GObject tests 3132s # Running test: glib/rand.test 3132s TAP version 14 3132s # random seed: R02S923db8dd42f18344bedcea3df8b193a1 3132s 1..2 3132s # Start of rand tests 3132s ok 1 /rand/test-rand 3132s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=502560 3132s ok 2 /rand/double-range 3132s # End of rand tests 3132s ok - glib/rand.test 3132s # Running test: glib/macros-c-89.test 3132s TAP version 14 3132s # random seed: R02S4f3f2c3c5c89de6613eb5c7aa96800b5 3132s 1..4 3132s # Start of C tests 3132s ok 1 /C/standard-89 3132s # End of C tests 3132s # Start of alignof tests 3132s ok 2 /alignof/fallback 3132s # End of alignof tests 3132s # Start of assert tests 3132s ok 3 /assert/static 3132s # End of assert tests 3132s # Start of struct tests 3132s ok 4 /struct/sizeof_member 3132s # End of struct tests 3132s ok - glib/macros-c-89.test 3132s # Running test: glib/gnotification.test 3132s TAP version 14 3132s # random seed: R02Se63f82b9f4f655ac2283ca66ffc3fa67 3132s 1..2 3132s # Start of gnotification tests 3132s ok 1 /gnotification/basic 3132s ok 2 /gnotification/properties 3132s # End of gnotification tests 3132s ok - glib/gnotification.test 3133s # Running test: glib/bookmarkfile.test 3133s TAP version 14 3133s # random seed: R02S951d70a228b01ac01a28db1fce514e60 3133s 1..96 3133s # Start of bookmarks tests 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/load-from-data-dirs/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/load-from-data-dirs/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/load-from-data-dirs/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/load-from-data-dirs/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/load-from-data-dirs/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/load-from-data-dirs/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/load-from-data-dirs/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/load-from-data-dirs/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/load-from-data-dirs/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/load-from-data-dirs/.dirs/runtime 3133s ok 1 /bookmarks/load-from-data-dirs 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/to-file/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/to-file/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/to-file/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/to-file/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/to-file/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/to-file/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/to-file/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/to-file/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/to-file/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/to-file/.dirs/runtime 3133s # Roundtrip from newly created bookmark file /tmp/test_bookmarkfile_DYG552/bookmarkfile-test-943652.xbel 3133s # Roundtrip from a valid bookmark file 3133s ok 2 /bookmarks/to-file 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/move-item/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/move-item/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/move-item/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/move-item/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/move-item/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/move-item/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/move-item/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/move-item/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/move-item/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/move-item/.dirs/runtime 3133s ok 3 /bookmarks/move-item 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/corner-cases/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/corner-cases/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/corner-cases/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/corner-cases/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/corner-cases/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/corner-cases/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/corner-cases/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/corner-cases/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/corner-cases/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/corner-cases/.dirs/runtime 3133s ok 4 /bookmarks/corner-cases 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/misc/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/misc/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/misc/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/misc/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/misc/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/misc/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/misc/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/misc/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/misc/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/misc/.dirs/runtime 3133s ok 5 /bookmarks/misc 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/deprecated/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/deprecated/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/deprecated/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/deprecated/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/deprecated/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/deprecated/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/deprecated/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/deprecated/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/deprecated/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/deprecated/.dirs/runtime 3133s ok 6 /bookmarks/deprecated 3133s # Start of parse tests 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-16.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-16.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-16.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-16.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-16.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-16.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-16.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-16.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-16.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-16.xbel/.dirs/runtime 3133s ok 7 /bookmarks/parse/fail-16.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-38.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-38.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-38.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-38.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-38.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-38.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-38.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-38.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-38.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-38.xbel/.dirs/runtime 3133s ok 8 /bookmarks/parse/fail-38.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-11.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-11.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-11.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-11.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-11.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-11.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-11.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-11.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-11.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-11.xbel/.dirs/runtime 3133s ok 9 /bookmarks/parse/fail-11.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-26.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-26.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-26.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-26.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-26.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-26.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-26.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-26.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-26.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-26.xbel/.dirs/runtime 3133s ok 10 /bookmarks/parse/fail-26.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-22.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-22.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-22.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-22.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-22.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-22.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-22.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-22.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-22.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-22.xbel/.dirs/runtime 3133s ok 11 /bookmarks/parse/fail-22.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-33.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-33.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-33.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-33.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-33.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-33.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-33.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-33.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-33.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-33.xbel/.dirs/runtime 3133s ok 12 /bookmarks/parse/fail-33.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-34.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-34.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-34.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-34.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-34.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-34.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-34.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-34.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-34.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-34.xbel/.dirs/runtime 3133s ok 13 /bookmarks/parse/fail-34.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-15.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-15.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-15.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-15.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-15.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-15.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-15.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-15.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-15.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-15.xbel/.dirs/runtime 3133s ok 14 /bookmarks/parse/fail-15.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-18.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-18.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-18.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-18.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-18.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-18.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-18.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-18.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-18.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-18.xbel/.dirs/runtime 3133s ok 15 /bookmarks/parse/fail-18.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-19.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-19.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-19.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-19.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-19.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-19.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-19.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-19.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-19.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-19.xbel/.dirs/runtime 3133s ok 16 /bookmarks/parse/fail-19.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-08.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-08.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-08.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-08.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-08.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-08.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-08.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-08.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-08.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-08.xbel/.dirs/runtime 3133s ok 17 /bookmarks/parse/fail-08.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-29.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-29.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-29.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-29.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-29.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-29.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-29.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-29.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-29.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-29.xbel/.dirs/runtime 3133s ok 18 /bookmarks/parse/fail-29.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-40.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-40.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-40.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-40.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-40.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-40.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-40.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-40.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-40.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-40.xbel/.dirs/runtime 3133s ok 19 /bookmarks/parse/fail-40.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-24.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-24.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-24.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-24.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-24.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-24.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-24.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-24.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-24.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-24.xbel/.dirs/runtime 3133s ok 20 /bookmarks/parse/fail-24.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-04.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-04.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-04.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-04.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-04.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-04.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-04.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-04.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-04.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-04.xbel/.dirs/runtime 3133s ok 21 /bookmarks/parse/fail-04.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-32.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-32.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-32.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-32.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-32.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-32.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-32.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-32.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-32.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-32.xbel/.dirs/runtime 3133s ok 22 /bookmarks/parse/fail-32.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-02.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-02.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-02.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-02.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-02.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-02.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-02.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-02.xbel/.dirs/runtime 3133s ok 23 /bookmarks/parse/fail-02.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-06.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-06.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-06.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-06.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-06.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-06.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-06.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-06.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-06.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-06.xbel/.dirs/runtime 3133s ok 24 /bookmarks/parse/fail-06.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-13.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-13.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-13.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-13.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-13.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-13.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-13.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-13.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-13.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-13.xbel/.dirs/runtime 3133s ok 25 /bookmarks/parse/fail-13.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-10.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-10.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-10.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-10.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-10.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-10.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-10.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-10.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-10.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-10.xbel/.dirs/runtime 3133s ok 26 /bookmarks/parse/fail-10.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-41.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-41.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-41.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-41.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-41.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-41.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-41.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-41.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-41.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-41.xbel/.dirs/runtime 3133s ok 27 /bookmarks/parse/fail-41.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-05.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-05.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-05.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-05.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-05.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-05.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-05.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-05.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-05.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-05.xbel/.dirs/runtime 3133s ok 28 /bookmarks/parse/fail-05.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-31.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-31.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-31.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-31.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-31.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-31.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-31.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-31.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-31.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-31.xbel/.dirs/runtime 3133s ok 29 /bookmarks/parse/fail-31.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-30.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-30.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-30.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-30.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-30.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-30.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-30.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-30.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-30.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-30.xbel/.dirs/runtime 3133s ok 30 /bookmarks/parse/fail-30.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-14.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-14.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-14.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-14.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-14.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-14.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-14.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-14.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-14.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-14.xbel/.dirs/runtime 3133s ok 31 /bookmarks/parse/fail-14.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/valid-01.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/valid-01.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/valid-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/valid-01.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/valid-01.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/valid-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/valid-01.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/valid-01.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/valid-01.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/valid-01.xbel/.dirs/runtime 3133s ok 32 /bookmarks/parse/valid-01.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-27.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-27.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-27.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-27.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-27.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-27.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-27.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-27.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-27.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-27.xbel/.dirs/runtime 3133s ok 33 /bookmarks/parse/fail-27.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-39.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-39.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-39.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-39.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-39.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-39.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-39.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-39.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-39.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-39.xbel/.dirs/runtime 3133s ok 34 /bookmarks/parse/fail-39.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-12.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-12.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-12.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-12.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-12.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-12.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-12.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-12.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-12.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-12.xbel/.dirs/runtime 3133s ok 35 /bookmarks/parse/fail-12.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-37.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-37.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-37.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-37.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-37.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-37.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-37.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-37.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-37.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-37.xbel/.dirs/runtime 3133s ok 36 /bookmarks/parse/fail-37.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-01.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-01.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-01.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-01.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-01.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-01.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-01.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-01.xbel/.dirs/runtime 3133s ok 37 /bookmarks/parse/fail-01.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-42.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-42.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-42.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-42.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-42.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-42.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-42.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-42.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-42.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-42.xbel/.dirs/runtime 3133s ok 38 /bookmarks/parse/fail-42.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-20.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-20.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-20.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-20.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-20.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-20.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-20.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-20.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-20.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-20.xbel/.dirs/runtime 3133s ok 39 /bookmarks/parse/fail-20.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/valid-02.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/valid-02.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/valid-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/valid-02.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/valid-02.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/valid-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/valid-02.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/valid-02.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/valid-02.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/valid-02.xbel/.dirs/runtime 3133s ok 40 /bookmarks/parse/valid-02.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-35.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-35.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-35.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-35.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-35.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-35.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-35.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-35.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-35.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-35.xbel/.dirs/runtime 3133s ok 41 /bookmarks/parse/fail-35.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-28.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-28.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-28.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-28.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-28.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-28.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-28.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-28.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-28.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-28.xbel/.dirs/runtime 3133s ok 42 /bookmarks/parse/fail-28.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-09.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-09.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-09.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-09.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-09.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-09.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-09.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-09.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-09.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-09.xbel/.dirs/runtime 3133s ok 43 /bookmarks/parse/fail-09.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-03.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-03.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-03.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-03.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-03.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-03.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-03.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-03.xbel/.dirs/runtime 3133s ok 44 /bookmarks/parse/fail-03.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/valid-03.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/valid-03.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/valid-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/valid-03.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/valid-03.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/valid-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/valid-03.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/valid-03.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/valid-03.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/valid-03.xbel/.dirs/runtime 3133s ok 45 /bookmarks/parse/valid-03.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-21.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-21.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-21.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-21.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-21.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-21.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-21.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-21.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-21.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-21.xbel/.dirs/runtime 3133s ok 46 /bookmarks/parse/fail-21.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-17.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-17.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-17.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-17.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-17.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-17.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-17.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-17.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-17.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-17.xbel/.dirs/runtime 3133s ok 47 /bookmarks/parse/fail-17.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-07.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-07.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-07.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-07.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-07.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-07.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-07.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-07.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-07.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-07.xbel/.dirs/runtime 3133s ok 48 /bookmarks/parse/fail-07.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-25.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-25.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-25.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-25.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-25.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-25.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-25.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-25.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-25.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-25.xbel/.dirs/runtime 3133s ok 49 /bookmarks/parse/fail-25.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-36.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-36.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-36.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-36.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-36.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-36.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-36.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-36.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-36.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-36.xbel/.dirs/runtime 3133s ok 50 /bookmarks/parse/fail-36.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-23.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-23.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-23.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-23.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-23.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-23.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-23.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-23.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-23.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/parse/fail-23.xbel/.dirs/runtime 3133s ok 51 /bookmarks/parse/fail-23.xbel 3133s # End of parse tests 3133s # Start of copy tests 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-16.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-16.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-16.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-16.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-16.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-16.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-16.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-16.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-16.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-16.xbel/.dirs/runtime 3133s ok 52 /bookmarks/copy/fail-16.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-38.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-38.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-38.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-38.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-38.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-38.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-38.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-38.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-38.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-38.xbel/.dirs/runtime 3133s ok 53 /bookmarks/copy/fail-38.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-11.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-11.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-11.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-11.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-11.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-11.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-11.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-11.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-11.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-11.xbel/.dirs/runtime 3133s ok 54 /bookmarks/copy/fail-11.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-26.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-26.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-26.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-26.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-26.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-26.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-26.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-26.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-26.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-26.xbel/.dirs/runtime 3133s ok 55 /bookmarks/copy/fail-26.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-22.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-22.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-22.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-22.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-22.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-22.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-22.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-22.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-22.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-22.xbel/.dirs/runtime 3133s ok 56 /bookmarks/copy/fail-22.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-33.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-33.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-33.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-33.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-33.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-33.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-33.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-33.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-33.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-33.xbel/.dirs/runtime 3133s ok 57 /bookmarks/copy/fail-33.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-34.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-34.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-34.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-34.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-34.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-34.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-34.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-34.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-34.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-34.xbel/.dirs/runtime 3133s ok 58 /bookmarks/copy/fail-34.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-15.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-15.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-15.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-15.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-15.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-15.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-15.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-15.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-15.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-15.xbel/.dirs/runtime 3133s ok 59 /bookmarks/copy/fail-15.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-18.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-18.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-18.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-18.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-18.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-18.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-18.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-18.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-18.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-18.xbel/.dirs/runtime 3133s ok 60 /bookmarks/copy/fail-18.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-19.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-19.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-19.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-19.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-19.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-19.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-19.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-19.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-19.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-19.xbel/.dirs/runtime 3133s ok 61 /bookmarks/copy/fail-19.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-08.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-08.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-08.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-08.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-08.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-08.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-08.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-08.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-08.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-08.xbel/.dirs/runtime 3133s ok 62 /bookmarks/copy/fail-08.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-29.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-29.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-29.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-29.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-29.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-29.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-29.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-29.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-29.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-29.xbel/.dirs/runtime 3133s ok 63 /bookmarks/copy/fail-29.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-40.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-40.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-40.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-40.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-40.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-40.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-40.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-40.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-40.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-40.xbel/.dirs/runtime 3133s ok 64 /bookmarks/copy/fail-40.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-24.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-24.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-24.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-24.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-24.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-24.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-24.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-24.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-24.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-24.xbel/.dirs/runtime 3133s ok 65 /bookmarks/copy/fail-24.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-04.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-04.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-04.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-04.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-04.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-04.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-04.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-04.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-04.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-04.xbel/.dirs/runtime 3133s ok 66 /bookmarks/copy/fail-04.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-32.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-32.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-32.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-32.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-32.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-32.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-32.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-32.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-32.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-32.xbel/.dirs/runtime 3133s ok 67 /bookmarks/copy/fail-32.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-02.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-02.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-02.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-02.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-02.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-02.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-02.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-02.xbel/.dirs/runtime 3133s ok 68 /bookmarks/copy/fail-02.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-06.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-06.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-06.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-06.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-06.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-06.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-06.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-06.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-06.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-06.xbel/.dirs/runtime 3133s ok 69 /bookmarks/copy/fail-06.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-13.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-13.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-13.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-13.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-13.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-13.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-13.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-13.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-13.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-13.xbel/.dirs/runtime 3133s ok 70 /bookmarks/copy/fail-13.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-10.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-10.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-10.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-10.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-10.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-10.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-10.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-10.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-10.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-10.xbel/.dirs/runtime 3133s ok 71 /bookmarks/copy/fail-10.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-41.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-41.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-41.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-41.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-41.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-41.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-41.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-41.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-41.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-41.xbel/.dirs/runtime 3133s ok 72 /bookmarks/copy/fail-41.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-05.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-05.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-05.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-05.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-05.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-05.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-05.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-05.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-05.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-05.xbel/.dirs/runtime 3133s ok 73 /bookmarks/copy/fail-05.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-31.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-31.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-31.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-31.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-31.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-31.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-31.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-31.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-31.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-31.xbel/.dirs/runtime 3133s ok 74 /bookmarks/copy/fail-31.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-30.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-30.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-30.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-30.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-30.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-30.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-30.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-30.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-30.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-30.xbel/.dirs/runtime 3133s ok 75 /bookmarks/copy/fail-30.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-14.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-14.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-14.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-14.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-14.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-14.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-14.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-14.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-14.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-14.xbel/.dirs/runtime 3133s ok 76 /bookmarks/copy/fail-14.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/valid-01.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/valid-01.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/valid-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/valid-01.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/valid-01.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/valid-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/valid-01.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/valid-01.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/valid-01.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/valid-01.xbel/.dirs/runtime 3133s ok 77 /bookmarks/copy/valid-01.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-27.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-27.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-27.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-27.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-27.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-27.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-27.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-27.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-27.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-27.xbel/.dirs/runtime 3133s ok 78 /bookmarks/copy/fail-27.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-39.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-39.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-39.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-39.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-39.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-39.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-39.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-39.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-39.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-39.xbel/.dirs/runtime 3133s ok 79 /bookmarks/copy/fail-39.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-12.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-12.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-12.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-12.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-12.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-12.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-12.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-12.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-12.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-12.xbel/.dirs/runtime 3133s ok 80 /bookmarks/copy/fail-12.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-37.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-37.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-37.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-37.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-37.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-37.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-37.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-37.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-37.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-37.xbel/.dirs/runtime 3133s ok 81 /bookmarks/copy/fail-37.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-01.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-01.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-01.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-01.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-01.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-01.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-01.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-01.xbel/.dirs/runtime 3133s ok 82 /bookmarks/copy/fail-01.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-42.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-42.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-42.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-42.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-42.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-42.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-42.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-42.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-42.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-42.xbel/.dirs/runtime 3133s ok 83 /bookmarks/copy/fail-42.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-20.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-20.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-20.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-20.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-20.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-20.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-20.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-20.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-20.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-20.xbel/.dirs/runtime 3133s ok 84 /bookmarks/copy/fail-20.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/valid-02.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/valid-02.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/valid-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/valid-02.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/valid-02.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/valid-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/valid-02.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/valid-02.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/valid-02.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/valid-02.xbel/.dirs/runtime 3133s ok 85 /bookmarks/copy/valid-02.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-35.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-35.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-35.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-35.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-35.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-35.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-35.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-35.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-35.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-35.xbel/.dirs/runtime 3133s ok 86 /bookmarks/copy/fail-35.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-28.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-28.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-28.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-28.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-28.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-28.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-28.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-28.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-28.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-28.xbel/.dirs/runtime 3133s ok 87 /bookmarks/copy/fail-28.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-09.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-09.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-09.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-09.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-09.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-09.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-09.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-09.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-09.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-09.xbel/.dirs/runtime 3133s ok 88 /bookmarks/copy/fail-09.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-03.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-03.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-03.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-03.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-03.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-03.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-03.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-03.xbel/.dirs/runtime 3133s ok 89 /bookmarks/copy/fail-03.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/valid-03.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/valid-03.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/valid-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/valid-03.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/valid-03.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/valid-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/valid-03.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/valid-03.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/valid-03.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/valid-03.xbel/.dirs/runtime 3133s ok 90 /bookmarks/copy/valid-03.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-21.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-21.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-21.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-21.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-21.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-21.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-21.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-21.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-21.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-21.xbel/.dirs/runtime 3133s ok 91 /bookmarks/copy/fail-21.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-17.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-17.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-17.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-17.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-17.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-17.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-17.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-17.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-17.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-17.xbel/.dirs/runtime 3133s ok 92 /bookmarks/copy/fail-17.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-07.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-07.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-07.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-07.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-07.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-07.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-07.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-07.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-07.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-07.xbel/.dirs/runtime 3133s ok 93 /bookmarks/copy/fail-07.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-25.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-25.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-25.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-25.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-25.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-25.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-25.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-25.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-25.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-25.xbel/.dirs/runtime 3133s ok 94 /bookmarks/copy/fail-25.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-36.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-36.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-36.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-36.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-36.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-36.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-36.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-36.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-36.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-36.xbel/.dirs/runtime 3133s ok 95 /bookmarks/copy/fail-36.xbel 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-23.xbel/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-23.xbel/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-23.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-23.xbel/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-23.xbel/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-23.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-23.xbel/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-23.xbel/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-23.xbel/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_DYG552/bookmarks/copy/fail-23.xbel/.dirs/runtime 3133s ok 96 /bookmarks/copy/fail-23.xbel 3133s # End of copy tests 3133s # End of bookmarks tests 3133s ok - glib/bookmarkfile.test 3133s # Running test: glib/gdbus-bz627724.test 3133s TAP version 14 3133s # random seed: R02Sce8351538ee853f9838e7fce1eae2824 3133s 1..1 3133s # Start of gdbus tests 3133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-bz627724_709752/gdbus/bz627724/.dirs/home 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-bz627724_709752/gdbus/bz627724/.dirs/cache 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-bz627724_709752/gdbus/bz627724/.dirs/system-config1:/tmp/test_gdbus-bz627724_709752/gdbus/bz627724/.dirs/system-config2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-bz627724_709752/gdbus/bz627724/.dirs/config 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-bz627724_709752/gdbus/bz627724/.dirs/system-data1:/tmp/test_gdbus-bz627724_709752/gdbus/bz627724/.dirs/system-data2 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-bz627724_709752/gdbus/bz627724/.dirs/data 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-bz627724_709752/gdbus/bz627724/.dirs/state 3133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-bz627724_709752/gdbus/bz627724/.dirs/runtime 3133s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3133s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3133s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3133s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3133s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3133s ok 1 /gdbus/bz627724 3133s # End of gdbus tests 3133s ok - glib/gdbus-bz627724.test 3134s # Running test: glib/task.test 3134s TAP version 14 3134s # random seed: R02Sdea69f9e704028ae7f18d9ee8e90b74f 3134s 1..36 3134s # Start of gtask tests 3134s ok 1 /gtask/basic 3134s ok 2 /gtask/error 3134s ok 3 /gtask/error-literal 3134s ok 4 /gtask/error-literal-from-variable 3134s ok 5 /gtask/return-from-same-iteration 3134s ok 6 /gtask/return-from-toplevel 3134s ok 7 /gtask/return-from-anon-thread 3134s ok 8 /gtask/return-from-wrong-thread 3134s ok 9 /gtask/no-callback 3134s ok 10 /gtask/report-error 3134s ok 11 /gtask/priority 3134s ok 12 /gtask/name 3134s ok 13 /gtask/static-name 3134s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1608 3134s # Executing: glib/task.test 3134s ok 14 /gtask/asynchronous-cancellation 3134s ok 15 /gtask/check-cancellable 3134s ok 16 /gtask/return-if-cancelled 3134s ok 17 /gtask/run-in-thread 3134s ok 18 /gtask/run-in-thread-sync 3134s ok 19 /gtask/run-in-thread-priority 3134s ok 20 /gtask/run-in-thread-nested 3135s ok 21 /gtask/run-in-thread-overflow 3135s # slow test /gtask/run-in-thread-overflow executed in 0.56 secs 3135s ok 22 /gtask/return-on-cancel 3135s # GLib-GIO-DEBUG: GTask 0x555bc1cd6870 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 3135s # GLib-GIO-DEBUG: GTask 0x555bc1c6b630 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 3135s # GLib-GIO-DEBUG: GTask 0x555bc1c6c090 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 3135s ok 23 /gtask/return-on-cancel-sync 3135s # GLib-GIO-DEBUG: GTask 0x555bc1c6bdb0 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 3135s ok 24 /gtask/return-on-cancel-atomic 3135s ok 25 /gtask/return-pointer 3135s ok 26 /gtask/return-value 3135s ok 27 /gtask/return-prefixed-error 3135s ok 28 /gtask/object-keepalive 3135s ok 29 /gtask/legacy-error 3135s ok 30 /gtask/finalize-without-return 3135s # Start of name tests 3135s ok 31 /gtask/name/macro-wrapper 3135s # End of name tests 3135s # Start of return tests 3135s ok 32 /gtask/return/error-first 3135s ok 33 /gtask/return/value-first 3135s # Start of in-idle tests 3135s ok 34 /gtask/return/in-idle/error-first 3135s ok 35 /gtask/return/in-idle/value-first 3135s # End of in-idle tests 3135s # End of return tests 3135s # Start of attach-source tests 3135s # /gtask/attach-source/set-name summary: Test that attaching a source to a task will set the source?s name if unset 3135s ok 36 /gtask/attach-source/set-name 3135s # End of attach-source tests 3135s # End of gtask tests 3135s ok - glib/task.test 3135s # Running test: glib/unix-fd.test 3135s TAP version 14 3135s # random seed: R02S288d262fba07a20b08747a13adfb3b4a 3135s 1..2 3135s # Start of unix-fd tests 3135s ok 1 /unix-fd/fd-list 3135s ok 2 /unix-fd/scm 3135s # End of unix-fd tests 3135s ok - glib/unix-fd.test 3135s # Running test: glib/simple-async-result.test 3135s TAP version 14 3135s # random seed: R02S10e0e1eb6c7f9c57755d7f692a4916f9 3135s 1..2 3135s # Start of gio tests 3135s # Start of simple-async-result tests 3135s ok 1 /gio/simple-async-result/test 3135s # GLib-GIO-DEBUG: GTask 0x5559cef5a070 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 3135s ok 2 /gio/simple-async-result/valid 3135s # End of simple-async-result tests 3135s # End of gio tests 3135s ok - glib/simple-async-result.test 3135s # Running test: glib/socket.test 3136s TAP version 14 3136s # random seed: R02S84cae0939203fc16c182b7d216309c6f 3136s 1..28 3136s # Start of socket tests 3137s ok 1 /socket/ipv4_sync 3137s # slow test /socket/ipv4_sync executed in 1.02 secs 3138s ok 2 /socket/ipv4_async 3138s # slow test /socket/ipv4_async executed in 1.01 secs 3138s ok 3 /socket/ipv6_sync 3138s ok 4 /socket/ipv6_async 3138s ok 5 /socket/ipv6_v4mapped 3139s ok 6 /socket/close_graceful 3139s # slow test /socket/close_graceful executed in 1.01 secs 3139s ok 7 /socket/timed_wait # SKIP Not running timing heavy test 3139s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=741707 3139s ok 8 /socket/fd_reuse 3139s ok 9 /socket/address 3139s ok 10 /socket/unix-from-fd 3139s ok 11 /socket/unix-connection 3139s ok 12 /socket/unix-connection-ancillary-data 3139s ok 13 /socket/source-postmortem 3139s # Executing: glib/socket.test 3139s ok 14 /socket/read_write 3139s ok 15 /socket/read_writev 3139s # /socket/receive_bytes summary: Test basic functionality of g_socket_receive_bytes() 3139s ok 16 /socket/receive_bytes 3139s # /socket/receive_bytes_from summary: Test basic functionality of g_socket_receive_bytes_from() 3139s ok 17 /socket/receive_bytes_from 3139s # Start of ipv4_sync tests 3139s ok 18 /socket/ipv4_sync/datagram 3139s # Start of datagram tests 3140s ok 19 /socket/ipv4_sync/datagram/timeouts 3140s # slow test /socket/ipv4_sync/datagram/timeouts executed in 1.10 secs 3140s # End of datagram tests 3140s # End of ipv4_sync tests 3140s # Start of ipv6_sync tests 3140s ok 20 /socket/ipv6_sync/datagram 3140s # Start of datagram tests 3141s ok 21 /socket/ipv6_sync/datagram/timeouts 3141s # slow test /socket/ipv6_sync/datagram/timeouts executed in 1.10 secs 3141s # End of datagram tests 3141s # End of ipv6_sync tests 3141s # Start of reuse tests 3141s ok 22 /socket/reuse/tcp 3141s ok 23 /socket/reuse/udp 3141s # End of reuse tests 3141s # Start of get_available tests 3141s ok 24 /socket/get_available/datagram 3141s ok 25 /socket/get_available/stream 3141s # End of get_available tests 3141s # Start of credentials tests 3141s # Supported on this OS: GCredentials:linux-ucred:pid=0 3141s ok 26 /socket/credentials/tcp_client 3141s # Supported on this OS: GCredentials:linux-ucred:pid=0 3141s ok 27 /socket/credentials/tcp_server 3141s # Supported on this OS: GCredentials:linux-ucred:pid=4471,uid=1000,gid=1000 3141s ok 28 /socket/credentials/unix_socketpair 3141s # End of credentials tests 3141s # End of socket tests 3141s ok - glib/socket.test 3141s # Running test: glib/gsubprocess.test 3141s TAP version 14 3141s # random seed: R02S13ba861cf4bf15a6981ccb7362fe44a6 3141s 1..84 3141s # Start of gsubprocess tests 3141s ok 1 /gsubprocess/noop 3141s ok 2 /gsubprocess/noop-all-to-null 3141s ok 3 /gsubprocess/noop-no-wait 3141s ok 4 /gsubprocess/noop-stdin-inherit 3141s ok 5 /gsubprocess/search-path 3141s ok 6 /gsubprocess/search-path-from-envp 3144s # Executing: glib/gsubprocess.test 3145s ok 7 /gsubprocess/signal 3145s # slow test /gsubprocess/signal executed in 3.26 secs 3145s ok 8 /gsubprocess/exit1 3145s ok 9 /gsubprocess/echo1 3145s ok 10 /gsubprocess/echo-merged 3145s ok 11 /gsubprocess/cat-utf8 3146s ok 12 /gsubprocess/cat-eof 3146s # slow test /gsubprocess/cat-eof executed in 1.02 secs 3149s # Executing: glib/gsubprocess.test 3149s ok 13 /gsubprocess/multi1 3149s # slow test /gsubprocess/multi1 executed in 3.06 secs 3149s ok 14 /gsubprocess/communicate 3153s ok 15 /gsubprocess/terminate 3153s # slow test /gsubprocess/terminate executed in 3.63 secs 3153s ok 16 /gsubprocess/fail-initialization 3153s ok 17 /gsubprocess/env 3153s ok 18 /gsubprocess/cwd 3153s ok 19 /gsubprocess/launcher-close 3153s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 3153s ok 20 /gsubprocess/stdout-file 3153s ok 21 /gsubprocess/stdout-fd 3153s ok 22 /gsubprocess/child-setup 3153s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3153s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3153s ok 23 /gsubprocess/launcher-environment 3153s # Start of exit1 tests 3153s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=786456 3153s ok 24 /gsubprocess/exit1/cancel 3153s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=786456 3153s ok 25 /gsubprocess/exit1/cancel_in_cb 3153s # End of exit1 tests 3153s # Start of communicate tests 3153s ok 26 /gsubprocess/communicate/cancelled 3153s ok 27 /gsubprocess/communicate/async 3153s ok 28 /gsubprocess/communicate/utf8 3153s # hello world 3153s ok 29 /gsubprocess/communicate/no-pipes 3154s ok 30 /gsubprocess/communicate/separate-stderr 3154s ok 31 /gsubprocess/communicate/stdout-only 3154s # hello world 3154s ok 32 /gsubprocess/communicate/stderr-only 3154s ok 33 /gsubprocess/communicate/stdout-silence 3154s # Executing: glib/gsubprocess.test 3154s ok 34 /gsubprocess/communicate/nothing 3154s # Start of async tests 3154s ok 35 /gsubprocess/communicate/async/cancelled 3154s # hello world 3154s ok 36 /gsubprocess/communicate/async/no-pipes 3154s ok 37 /gsubprocess/communicate/async/separate-stderr 3154s ok 38 /gsubprocess/communicate/async/stdout-only 3154s # hello world 3154s ok 39 /gsubprocess/communicate/async/stderr-only 3154s ok 40 /gsubprocess/communicate/async/stdout-silence 3154s # Start of cancelled tests 3154s ok 41 /gsubprocess/communicate/async/cancelled/no-pipes 3154s ok 42 /gsubprocess/communicate/async/cancelled/separate-stderr 3154s ok 43 /gsubprocess/communicate/async/cancelled/stdout-only 3154s ok 44 /gsubprocess/communicate/async/cancelled/stderr-only 3154s ok 45 /gsubprocess/communicate/async/cancelled/stdout-silence 3154s # End of cancelled tests 3155s # End of async tests 3155s # Start of utf8 tests 3155s ok 46 /gsubprocess/communicate/utf8/cancelled 3155s ok 47 /gsubprocess/communicate/utf8/async 3155s # hello world 3155s ok 48 /gsubprocess/communicate/utf8/no-pipes 3155s ok 49 /gsubprocess/communicate/utf8/separate-stderr 3155s ok 50 /gsubprocess/communicate/utf8/stdout-only 3155s # hello world 3155s ok 51 /gsubprocess/communicate/utf8/stderr-only 3155s ok 52 /gsubprocess/communicate/utf8/stdout-silence 3155s ok 53 /gsubprocess/communicate/utf8/invalid 3155s # Start of async tests 3155s ok 54 /gsubprocess/communicate/utf8/async/cancelled 3155s # hello world 3155s ok 55 /gsubprocess/communicate/utf8/async/no-pipes 3155s ok 56 /gsubprocess/communicate/utf8/async/separate-stderr 3155s ok 57 /gsubprocess/communicate/utf8/async/stdout-only 3155s # hello world 3155s ok 58 /gsubprocess/communicate/utf8/async/stderr-only 3155s ok 59 /gsubprocess/communicate/utf8/async/stdout-silence 3155s ok 60 /gsubprocess/communicate/utf8/async/invalid 3155s # Start of cancelled tests 3155s ok 61 /gsubprocess/communicate/utf8/async/cancelled/no-pipes 3156s ok 62 /gsubprocess/communicate/utf8/async/cancelled/separate-stderr 3156s ok 63 /gsubprocess/communicate/utf8/async/cancelled/stdout-only 3156s ok 64 /gsubprocess/communicate/utf8/async/cancelled/stderr-only 3156s ok 65 /gsubprocess/communicate/utf8/async/cancelled/stdout-silence 3156s # End of cancelled tests 3156s # End of async tests 3156s # Start of cancelled tests 3156s ok 66 /gsubprocess/communicate/utf8/cancelled/no-pipes 3156s ok 67 /gsubprocess/communicate/utf8/cancelled/separate-stderr 3156s ok 68 /gsubprocess/communicate/utf8/cancelled/stdout-only 3156s ok 69 /gsubprocess/communicate/utf8/cancelled/stderr-only 3156s ok 70 /gsubprocess/communicate/utf8/cancelled/stdout-silence 3156s # End of cancelled tests 3156s # End of utf8 tests 3156s # Start of cancelled tests 3156s ok 71 /gsubprocess/communicate/cancelled/no-pipes 3156s ok 72 /gsubprocess/communicate/cancelled/separate-stderr 3156s ok 73 /gsubprocess/communicate/cancelled/stdout-only 3156s ok 74 /gsubprocess/communicate/cancelled/stderr-only 3156s ok 75 /gsubprocess/communicate/cancelled/stdout-silence 3156s # End of cancelled tests 3156s # End of communicate tests 3156s # Start of env tests 3156s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3156s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3156s ok 76 /gsubprocess/env/inherit 3156s # End of env tests 3156s # Start of pass-fd tests 3156s ok 77 /gsubprocess/pass-fd/basic 3156s ok 78 /gsubprocess/pass-fd/empty-child-setup 3156s ok 79 /gsubprocess/pass-fd/inherit-fds 3156s # End of pass-fd tests 3156s # Start of fd-conflation tests 3156s ok 80 /gsubprocess/fd-conflation/basic 3157s ok 81 /gsubprocess/fd-conflation/empty-child-setup 3157s ok 82 /gsubprocess/fd-conflation/inherit-fds 3157s ok 83 /gsubprocess/fd-conflation/child-err-report-fd 3157s # End of fd-conflation tests 3157s # Start of exit-status tests 3157s # /gsubprocess/exit-status/trapped summary: Test that exit status is reported correctly for ptrace()d child processes 3157s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3433 3157s ok 84 /gsubprocess/exit-status/trapped 3157s # End of exit-status tests 3157s # End of gsubprocess tests 3157s ok - glib/gsubprocess.test 3157s # Running test: glib/protocol.test 3157s TAP version 14 3157s # random seed: R02S19a9ffc5503d29beb601590aa0456c28 3157s 1..9 3157s # Start of glib tests 3157s # Start of testing tests 3157s # Start of protocol tests 3157s ok 1 /glib/testing/protocol/debug 3157s ok 2 /glib/testing/protocol/info 3157s ok 3 /glib/testing/protocol/message 3157s ok 4 /glib/testing/protocol/warning 3157s ok 5 /glib/testing/protocol/critical 3157s ok 6 /glib/testing/protocol/error 3157s ok 7 /glib/testing/protocol/gtest-message 3157s ok 8 /glib/testing/protocol/test-message 3157s ok 9 /glib/testing/protocol/test-error 3157s # End of protocol tests 3157s # End of testing tests 3157s # End of glib tests 3157s ok - glib/protocol.test 3157s # Running test: glib/unicode-normalize.test 3157s TAP version 14 3157s # random seed: R02S2fe3abbcf72c39d57ac2c04b475db1fd 3157s 1..3 3157s # Start of unicode tests 3158s # Processing Part0 # Specific cases 3158s # Processing Part1 # Character by character test 3159s # Processing Part2 # Canonical Order Test 3159s # Executing: glib/unicode-normalize.test 3159s # Processing Part3 # PRI #29 Test 3159s # Processing Part4 # Canonical closures (excluding Hangul) 3159s # Processing Part5 # Chained primary composites 3159s ok 1 /unicode/normalize 3159s # slow test /unicode/normalize executed in 1.63 secs 3159s # Invalid UTF-8 vector 0 3159s # Invalid UTF-8 vector 1 3159s # Invalid UTF-8 vector 2 3159s # Invalid UTF-8 vector 3 3159s # Invalid UTF-8 vector 4 3159s # Invalid UTF-8 vector 5 3159s # Invalid UTF-8 vector 6 3159s # Invalid UTF-8 vector 7 3159s # Invalid UTF-8 vector 8 3159s # Invalid UTF-8 vector 9 3159s # Invalid UTF-8 vector 10 3159s # Invalid UTF-8 vector 11 3159s # Invalid UTF-8 vector 12 3159s ok 2 /unicode/normalize-invalid 3159s # Start of normalize tests 3159s ok 3 /unicode/normalize/bad-length 3159s # End of normalize tests 3159s # End of unicode tests 3159s ok - glib/unicode-normalize.test 3159s # Running test: glib/enums.test 3159s TAP version 14 3159s # random seed: R02S5f225c7a4bc614181a1c0cba761a2a7c 3159s 1..4 3159s # Start of enum tests 3159s ok 1 /enum/basic 3159s ok 2 /enum/define-type 3159s # End of enum tests 3159s # Start of flags tests 3159s ok 3 /flags/basic 3159s ok 4 /flags/define-type 3159s # End of flags tests 3159s ok - glib/enums.test 3159s # Running test: glib/closure-refcount.test 3159s TAP version 14 3159s # random seed: R02S002dcdd806957f17de7bb6b7e03a9d2a 3159s 1..1 3159s # Start of closure tests 3159s # Init 0x555a67703d20 3159s # Yielding from main thread 3160s # Yielding from thread2 3160s # Yielding from main thread 3160s # Yielding from main thread 3160s # Yielding from thread1 3160s # Yielding from main thread 3160s # Yielding from thread2 3160s # Yielding from thread1 3160s # Yielding from main thread 3160s # Yielding from main thread 3160s # Yielding from thread2 3160s # Yielding from main thread 3160s # Yielding from thread1 3161s # Yielding from main thread 3161s # Yielding from main thread 3161s # Yielding from thread2 3161s # Yielding from thread1 3161s # Yielding from main thread 3161s # Yielding from main thread 3161s # Yielding from main thread 3161s # Yielding from thread1 3161s # Yielding from thread2 3161s # Yielding from main thread 3161s # Yielding from main thread 3161s # Yielding from thread1 3161s # Yielding from main thread 3162s # Yielding from thread2 3162s # Yielding from main thread 3162s # Yielding from thread1 3162s # Yielding from main thread 3162s # Yielding from main thread 3162s # Yielding from thread1 3162s # Yielding from thread2 3162s # Yielding from main thread 3162s # Yielding from main thread 3162s # Yielding from thread1 3162s # Yielding from main thread 3162s # Yielding from thread2 3162s # Yielding from main thread 3163s # Yielding from main thread 3163s # Yielding from thread2 3163s # Yielding from thread1 3163s # Yielding from main thread 3163s # Yielding from main thread 3163s # Yielding from main thread 3163s # Yielding from thread2 3163s # Yielding from thread1 3163s # Yielding from main thread 3163s # Yielding from main thread 3163s # Yielding from thread1 3163s # Yielding from main thread 3163s # Yielding from thread2 3163s # Yielding from main thread 3163s # Yielding from thread1 3164s # Yielding from main thread 3164s # Yielding from thread1 3164s # Yielding from main thread 3164s # Executing: glib/closure-refcount.test 3164s # Yielding from thread2 3164s # Yielding from main thread 3164s # Yielding from main thread 3164s # Yielding from thread1 3164s # Yielding from main thread 3164s # Yielding from thread2 3164s # Yielding from main thread 3164s # Yielding from thread1 3164s # Yielding from main thread 3165s # Yielding from thread2 3165s # Yielding from main thread 3165s # Yielding from main thread 3165s # Yielding from thread2 3165s # Yielding from thread1 3165s # Yielding from main thread 3165s # Yielding from main thread 3165s # Yielding from main thread 3165s # Yielding from thread2 3165s # Yielding from thread1 3165s # Yielding from main thread 3165s # Yielding from main thread 3165s # Yielding from thread2 3166s # Yielding from main thread 3166s # Yielding from thread1 3166s # Yielding from main thread 3166s # Yielding from thread2 3166s # Yielding from main thread 3166s # Yielding from thread1 3166s # Yielding from main thread 3166s # Yielding from thread2 3166s # Yielding from main thread 3166s # Yielding from main thread 3166s # Yielding from thread1 3166s # Yielding from main thread 3166s # Yielding from main thread 3166s # Yielding from thread2 3167s # Yielding from thread1 3167s # Yielding from main thread 3167s # Yielding from main thread 3167s # Yielding from thread1 3167s # Yielding from main thread 3167s # Yielding from thread2 3167s # Yielding from main thread 3167s # Yielding from thread1 3167s # Yielding from main thread 3167s # Yielding from thread2 3167s # Yielding from main thread 3167s # Yielding from main thread 3167s # Yielding from thread1 3168s # Yielding from main thread 3168s # Yielding from thread2 3168s # Yielding from main thread 3168s # Yielding from thread1 3168s # Yielding from main thread 3168s # Yielding from main thread 3168s # Yielding from thread2 3168s # Yielding from main thread 3168s # Yielding from thread1 3168s # Yielding from main thread 3168s # Yielding from main thread 3168s # Yielding from thread2 3168s # Yielding from thread1 3168s # Yielding from main thread 3169s # Yielding from main thread 3169s # Yielding from main thread 3169s # Yielding from thread1 3169s # Executing: glib/closure-refcount.test 3169s # Yielding from thread2 3169s # Yielding from main thread 3169s # Yielding from main thread 3169s # Yielding from thread1 3169s # Yielding from main thread 3169s # Yielding from thread2 3169s # Yielding from main thread 3169s # Yielding from thread1 3169s # Yielding from main thread 3169s # Yielding from main thread 3170s # Yielding from thread1 3170s # Yielding from thread2 3170s # Yielding from main thread 3170s # Yielding from main thread 3170s # Yielding from thread1 3170s # Yielding from main thread 3170s # Yielding from thread2 3170s # Yielding from main thread 3170s # Yielding from main thread 3170s # Yielding from thread1 3170s # Yielding from main thread 3170s # Yielding from thread2 3170s # Yielding from main thread 3170s # Yielding from thread1 3171s # Yielding from main thread 3171s # Yielding from thread2 3171s # Yielding from main thread 3171s # Yielding from thread1 3171s # Yielding from main thread 3171s # Yielding from main thread 3171s # Yielding from thread1 3171s # Yielding from thread2 3171s # Yielding from main thread 3172s # Yielding from thread1 3172s # Yielding from thread2 3172s # Yielding from main thread 3172s # Yielding from thread1 3172s # Yielding from main thread 3172s # Yielding from thread2 3172s # Yielding from main thread 3172s # Yielding from thread1 3172s # Yielding from main thread 3172s # Yielding from thread2 3172s # Yielding from main thread 3173s # Yielding from main thread 3173s # Yielding from thread1 3173s # Yielding from main thread 3173s # Yielding from thread2 3173s # Yielding from main thread 3173s # Yielding from main thread 3173s # Yielding from thread1 3173s # Yielding from thread2 3173s # Yielding from main thread 3173s # Yielding from main thread 3173s # Yielding from main thread 3173s # Yielding from thread2 3173s # Stopping 3173s # Stopped 3173s ok 1 /closure/refcount 3173s # slow test /closure/refcount executed in 14.09 secs 3173s # End of closure tests 3173s ok - glib/closure-refcount.test 3173s # Running test: glib/objects-refcount1.test 3174s TAP version 14 3174s # random seed: R02S248e9dfab18c126153c2e9ee8a180b80 3174s 1..1 3174s # Start of gobject tests 3174s # Start of refcount tests 3174s # init 0x55626cb04d20 3174s # 3174s # init 0x55626cafd590 3174s # 3174s # Executing: glib/objects-refcount1.test 3179s # dispose 0x55626cb04d20! 3179s # 3179s # dispose 0x55626cafd590! 3179s # 3179s ok 1 /gobject/refcount/object-basics 3179s # slow test /gobject/refcount/object-basics executed in 5.04 secs 3179s # End of refcount tests 3179s # End of gobject tests 3179s ok - glib/objects-refcount1.test 3179s # Running test: glib/unix-streams.test 3179s # Executing: glib/unix-streams.test 3179s TAP version 14 3179s # random seed: R02S67a4d0d3f6a97e366357f65a4c6aac27 3179s 1..9 3179s # Start of unix-streams tests 3179s ok 1 /unix-streams/basic 3179s ok 2 /unix-streams/pipe-io-test 3179s # slow test /unix-streams/pipe-io-test executed in 0.53 secs 3180s ok 3 /unix-streams/nonblocking-io-test 3180s # slow test /unix-streams/nonblocking-io-test executed in 0.51 secs 3180s ok 4 /unix-streams/read_write 3180s ok 5 /unix-streams/read_writev 3180s ok 6 /unix-streams/write-wouldblock 3180s ok 7 /unix-streams/writev-wouldblock 3180s ok 8 /unix-streams/write-async-wouldblock 3180s ok 9 /unix-streams/writev-async-wouldblock 3180s # End of unix-streams tests 3180s ok - glib/unix-streams.test 3180s # Running test: glib/macros.test 3180s TAP version 14 3180s # random seed: R02S02fbcc44d8930f9e38ce460c029bac3b 3180s 1..3 3180s # Start of alignof tests 3180s ok 1 /alignof/fallback 3180s # End of alignof tests 3180s # Start of assert tests 3180s ok 2 /assert/static 3180s # End of assert tests 3180s # Start of struct tests 3180s ok 3 /struct/sizeof_member 3180s # End of struct tests 3180s ok - glib/macros.test 3180s # Running test: glib/utils-c-11.test 3180s TAP version 14 3180s # random seed: R02S64f9f60352dc758dbfb0bb68f5f0b37c 3180s 1..41 3180s # Start of utils tests 3180s ok 1 /utils/language-names 3180s ok 2 /utils/locale-variants 3180s ok 3 /utils/version 3180s ok 4 /utils/appname 3180s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 3180s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 3180s ok 5 /utils/prgname-thread-safety 3180s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 3180s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 3180s ok 6 /utils/tmpdir 3180s ok 7 /utils/basic_bits 3180s ok 8 /utils/bits 3180s ok 9 /utils/swap 3180s ok 10 /utils/find-program 3180s ok 11 /utils/find-program-for-path 3180s ok 12 /utils/debug 3180s ok 13 /utils/codeset 3180s ok 14 /utils/codeset2 3180s ok 15 /utils/console-charset 3180s ok 16 /utils/gettext 3180s ok 17 /utils/username 3180s ok 18 /utils/realname 3180s ok 19 /utils/hostname 3180s ok 20 /utils/xdgdirs 3180s ok 21 /utils/specialdir 3180s # NAME: Ubuntu 3180s ok 22 /utils/os-info 3180s ok 23 /utils/clear-pointer 3180s ok 24 /utils/clear-pointer-cast 3180s ok 25 /utils/take-pointer 3180s ok 26 /utils/clear-source 3180s ok 27 /utils/misc-mem 3180s # /utils/aligned-mem summary: Aligned memory allocator 3180s # Alignment must not be zero 3180s # Alignment must be a power of two 3180s # Alignment must be a multiple of sizeof(void*) 3180s ok 28 /utils/aligned-mem 3180s # /utils/free-sized summary: Check that g_free_sized() works 3180s ok 29 /utils/free-sized 3180s ok 30 /utils/nullify 3181s ok 31 /utils/atexit 3181s ok 32 /utils/check-setuid 3181s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 3181s ok 33 /utils/int-limits 3181s ok 34 /utils/clear-list 3181s ok 35 /utils/clear-slist 3181s ok 36 /utils/steal-handle-id 3181s # Start of specialdir tests 3181s ok 37 /utils/specialdir/desktop 3181s # End of specialdir tests 3181s # Start of clear-pointer tests 3181s ok 38 /utils/clear-pointer/side-effects 3181s # End of clear-pointer tests 3181s # Start of aligned-mem tests 3181s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 3181s ok 39 /utils/aligned-mem/alignment 3181s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 3181s ok 40 /utils/aligned-mem/zeroed 3181s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 3181s ok 41 /utils/aligned-mem/free-sized 3181s # Start of subprocess tests 3181s # End of subprocess tests 3181s # End of aligned-mem tests 3181s # End of utils tests 3181s ok - glib/utils-c-11.test 3181s # Running test: glib/resources.test 3181s TAP version 14 3181s # random seed: R02S7c2cdafce13c0d7d477fab22d268d8fa 3181s 1..19 3181s # Start of resource tests 3181s ok 1 /resource/file 3181s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 3181s ok 2 /resource/file-path 3181s ok 3 /resource/data 3181s ok 4 /resource/data_unaligned 3181s ok 5 /resource/data-corrupt 3181s # /resource/data-corrupt-compression summary: Test error handling for corrupt GResource files (specifically, corrupt zlib compression). 3181s ok 6 /resource/data-corrupt-compression 3181s ok 7 /resource/data-empty 3181s ok 8 /resource/registered 3181s ok 9 /resource/manual 3181s ok 10 /resource/manual2 3181s ok 11 /resource/automatic 3181s ok 12 /resource/module 3181s ok 13 /resource/binary-linked 3181s ok 14 /resource/64k 3181s GLib-GIO-Message: 13:49:05.117: Adding GResources overlay '/auto_loaded/test1.txt=/usr/libexec/installed-tests/glib/test1.overlay' 3181s GLib-GIO-Message: 13:49:05.142: Opened file '/usr/libexec/installed-tests/glib/test1.overlay' as a resource overlay 3181s GLib-GIO-Message: 13:49:05.143: Mapped file '/usr/libexec/installed-tests/glib/test1.overlay' as a resource overlay 3181s ok 15 /resource/overlay 3181s ok 16 /resource/digits 3181s ok 17 /resource/has-children 3181s # Start of uri tests 3181s ok 18 /resource/uri/query-info 3181s ok 19 /resource/uri/file 3181s # End of uri tests 3181s # End of resource tests 3181s ok - glib/resources.test 3181s # Running test: glib/fdo-notification-backend.test 3181s TAP version 14 3181s # random seed: R02S1164bb4c6c5c13dfa533727e1b151ae7 3181s 1..2 3181s # Start of fdo-notification-backend tests 3181s # Test constructing a GFdoNotificationBackend 3181s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3181s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3181s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3181s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3181s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3181s ok 1 /fdo-notification-backend/construction 3181s # Start of dbus tests 3181s # /fdo-notification-backend/dbus/activate-action summary: Test how the backend handles valid and invalid ActionInvoked signals from the daemon 3181s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3181s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3181s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3181s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3181s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3181s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3182s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3182s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3182s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3182s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3182s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3182s ok 2 /fdo-notification-backend/dbus/activate-action 3182s # End of dbus tests 3182s # End of fdo-notification-backend tests 3182s ok - glib/fdo-notification-backend.test 3182s # Running test: glib/gdbus-peer-object-manager.test 3182s TAP version 14 3182s # random seed: R02S1e7a6d6742fc84c222185a08f29155b6 3182s 1..2 3182s # Start of gdbus tests 3182s # Start of peer-object-manager tests 3182s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer-object-manager_4SU452/gdbus/peer-object-manager/normal/.dirs/home 3182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer-object-manager_4SU452/gdbus/peer-object-manager/normal/.dirs/cache 3182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer-object-manager_4SU452/gdbus/peer-object-manager/normal/.dirs/system-config1:/tmp/test_gdbus-peer-object-manager_4SU452/gdbus/peer-object-manager/normal/.dirs/system-config2 3182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer-object-manager_4SU452/gdbus/peer-object-manager/normal/.dirs/config 3182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer-object-manager_4SU452/gdbus/peer-object-manager/normal/.dirs/system-data1:/tmp/test_gdbus-peer-object-manager_4SU452/gdbus/peer-object-manager/normal/.dirs/system-data2 3182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer-object-manager_4SU452/gdbus/peer-object-manager/normal/.dirs/data 3182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer-object-manager_4SU452/gdbus/peer-object-manager/normal/.dirs/state 3182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer-object-manager_4SU452/gdbus/peer-object-manager/normal/.dirs/runtime 3182s ok 1 /gdbus/peer-object-manager/normal 3182s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer-object-manager_4SU452/gdbus/peer-object-manager/root/.dirs/home 3182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer-object-manager_4SU452/gdbus/peer-object-manager/root/.dirs/cache 3182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer-object-manager_4SU452/gdbus/peer-object-manager/root/.dirs/system-config1:/tmp/test_gdbus-peer-object-manager_4SU452/gdbus/peer-object-manager/root/.dirs/system-config2 3182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer-object-manager_4SU452/gdbus/peer-object-manager/root/.dirs/config 3182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer-object-manager_4SU452/gdbus/peer-object-manager/root/.dirs/system-data1:/tmp/test_gdbus-peer-object-manager_4SU452/gdbus/peer-object-manager/root/.dirs/system-data2 3182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer-object-manager_4SU452/gdbus/peer-object-manager/root/.dirs/data 3182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer-object-manager_4SU452/gdbus/peer-object-manager/root/.dirs/state 3182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer-object-manager_4SU452/gdbus/peer-object-manager/root/.dirs/runtime 3182s ok 2 /gdbus/peer-object-manager/root 3182s # End of peer-object-manager tests 3182s # End of gdbus tests 3182s ok - glib/gdbus-peer-object-manager.test 3182s # Running test: glib/uri.test 3182s TAP version 14 3182s # random seed: R02Sc79b2d16c92d77c9a29b26ca146051bc 3182s 1..24 3182s # Start of uri tests 3182s ok 1 /uri/file-to-uri 3182s ok 2 /uri/file-from-uri 3182s ok 3 /uri/file-roundtrip 3182s ok 4 /uri/list 3182s # Test 0: %2Babc %4F 3182s # Test 1: %2Babc %4F 3182s # Test 2: %00abc %4F 3182s # Test 3: /cursors/none.png 3182s # Test 4: /cursors%2fbad-subdir/none.png 3182s # Test 5: %0 3182s # Test 6: %ra 3182s # Test 7: %2r 3182s # Test 8: Timm B?der 3182s # Test 9: (null) 3182s ok 5 /uri/unescape-string 3182s ok 6 /uri/unescape-segment 3182s # Test 0: abcdefgABCDEFG._~ 3182s # Test 1: :+ \\?# 3182s # Test 2: a+b:c 3182s # Test 3: a+b:c\303\234 3182s # Test 4: \374;\322 3182s # Test 5: \303\261\303( 3182s ok 7 /uri/escape-string 3182s ok 8 /uri/escape-bytes 3182s ok 9 /uri/scheme 3182s ok 10 /uri/build 3182s ok 11 /uri/split 3182s ok 12 /uri/is_valid 3182s ok 13 /uri/to-string 3182s ok 14 /uri/join 3182s # /uri/join-split-round-trip summary: Test that joining different URI components survives a round trip 3182s # Combination 0 3182s # Combination 1 3182s # Combination 2 3182s # Combination 3 3182s # Combination 4 3182s # Combination 5 3182s # Combination 6 3182s # Combination 7 3182s # Combination 8 3182s # Combination 9 3182s # Combination 10 3182s # Combination 11 3182s # Combination 12 3182s # Combination 13 3182s # Combination 14 3182s # Combination 15 3182s # Combination 16 3182s # Combination 17 3182s # Combination 18 3182s # Combination 19 3182s # Combination 20 3182s # Combination 21 3182s # Combination 22 3182s # Combination 23 3182s # Combination 24 3182s # Combination 25 3182s # Combination 26 3182s # Combination 27 3182s # Combination 28 3182s # Combination 29 3182s # Combination 30 3182s # Combination 31 3182s # Combination 32 3182s # Combination 33 3182s # Combination 34 3182s # Combination 35 3182s # Combination 36 3182s # Combination 37 3182s # Combination 38 3182s # Combination 39 3182s # Combination 40 3182s # Combination 41 3182s # Combination 42 3182s # Combination 43 3182s # Combination 44 3182s # Combination 45 3182s # Combination 46 3182s # Combination 47 3182s # Combination 48 3182s # Combination 49 3182s # Combination 50 3182s # Combination 51 3182s # Combination 52 3182s # Combination 53 3182s # Combination 54 3182s # Combination 55 3182s # Combination 56 3182s # Combination 57 3182s # Combination 58 3182s # Combination 59 3182s # Combination 60 3182s # Combination 61 3182s # Combination 62 3182s # Combination 63 3182s # Combination 64 3182s # Combination 65 3182s # Combination 66 3182s # Combination 67 3182s # Combination 68 3182s # Combination 69 3182s # Combination 70 3182s # Combination 71 3182s # Combination 72 3182s # Combination 73 3182s # Combination 74 3182s # Combination 75 3182s # Combination 76 3182s # Combination 77 3182s # Combination 78 3182s # Combination 79 3182s # Combination 80 3182s # Combination 81 3182s # Combination 82 3182s # Combination 83 3182s # Combination 84 3182s # Combination 85 3182s # Combination 86 3182s # Combination 87 3182s # Combination 88 3182s # Combination 89 3182s # Combination 90 3182s # Combination 91 3182s # Combination 92 3182s # Combination 93 3182s # Combination 94 3182s # Combination 95 3182s # Combination 96 3182s # Combination 97 3182s # Combination 98 3182s # Combination 99 3182s # Combination 100 3182s # Combination 101 3182s # Combination 102 3182s # Combination 103 3182s # Combination 104 3182s # Combination 105 3182s # Combination 106 3182s # Combination 107 3182s # Combination 108 3182s # Combination 109 3182s # Combination 110 3182s # Combination 111 3182s # Combination 112 3182s # Combination 113 3182s # Combination 114 3182s # Combination 115 3182s # Combination 116 3182s # Combination 117 3182s # Combination 118 3182s # Combination 119 3182s # Combination 120 3182s # Combination 121 3182s # Combination 122 3182s # Combination 123 3182s # Combination 124 3182s # Combination 125 3182s # Combination 126 3182s # Combination 127 3182s # Combination 128 3182s # Combination 129 3182s # Combination 130 3182s # Combination 131 3182s # Combination 132 3182s # Combination 133 3182s # Combination 134 3182s # Combination 135 3182s # Combination 136 3182s # Combination 137 3182s # Combination 138 3182s # Combination 139 3182s # Combination 140 3182s # Combination 141 3182s # Combination 142 3182s # Combination 143 3182s # Combination 144 3182s # Combination 145 3182s # Combination 146 3182s # Combination 147 3182s # Combination 148 3182s # Combination 149 3182s # Combination 150 3182s # Combination 151 3182s # Combination 152 3182s # Combination 153 3182s # Combination 154 3182s # Combination 155 3182s # Combination 156 3182s # Combination 157 3182s # Combination 158 3182s # Combination 159 3182s # Combination 160 3182s # Combination 161 3182s # Combination 162 3182s # Combination 163 3182s # Combination 164 3182s # Combination 165 3182s # Combination 166 3182s # Combination 167 3182s # Combination 168 3182s # Combination 169 3182s # Combination 170 3182s # Combination 171 3182s # Combination 172 3182s # Combination 173 3182s # Combination 174 3182s # Combination 175 3182s # Combination 176 3182s # Combination 177 3182s # Combination 178 3182s # Combination 179 3182s # Combination 180 3182s # Combination 181 3182s # Combination 182 3182s # Combination 183 3182s # Combination 184 3182s # Combination 185 3182s # Combination 186 3182s # Combination 187 3182s # Combination 188 3182s # Combination 189 3182s # Combination 190 3182s # Combination 191 3182s # Combination 192 3182s # Combination 193 3182s # Combination 194 3182s # Combination 195 3182s # Combination 196 3182s # Combination 197 3182s # Combination 198 3182s # Combination 199 3182s # Combination 200 3182s # Combination 201 3182s # Combination 202 3182s # Combination 203 3182s # Combination 204 3182s # Combination 205 3182s # Combination 206 3182s # Combination 207 3182s # Combination 208 3182s # Combination 209 3182s # Combination 210 3182s # Combination 211 3182s # Combination 212 3182s # Combination 213 3182s # Combination 214 3182s # Combination 215 3182s # Combination 216 3182s # Combination 217 3182s # Combination 218 3182s # Combination 219 3182s # Combination 220 3182s # Combination 221 3182s # Combination 222 3182s # Combination 223 3182s # Combination 224 3182s # Combination 225 3182s # Combination 226 3182s # Combination 227 3182s # Combination 228 3182s # Combination 229 3182s # Combination 230 3182s # Combination 231 3182s # Combination 232 3182s # Combination 233 3182s # Combination 234 3182s # Combination 235 3182s # Combination 236 3182s # Combination 237 3182s # Combination 238 3182s # Combination 239 3182s # Combination 240 3182s # Combination 241 3182s # Combination 242 3182s # Combination 243 3182s # Combination 244 3182s # Combination 245 3182s # Combination 246 3182s # Combination 247 3182s # Combination 248 3182s # Combination 249 3182s # Combination 250 3182s # Combination 251 3182s # Combination 252 3182s # Combination 253 3182s # Combination 254 3182s # Combination 255 3182s ok 15 /uri/join-split-round-trip 3182s ok 16 /uri/normalize 3182s # Start of unescape-bytes tests 3182s # Test 0: %00%00 3182s # Test 1: /cursors/none.png 3182s # Test 2: /cursors%2fbad-subdir/none.png 3182s # Test 3: %% 3182s # Test 4: % 3182s ok 17 /uri/unescape-bytes/nul-terminated 3182s # Test 0: %00%00 3182s # Test 1: /cursors/none.png 3182s # Test 2: /cursors%2fbad-subdir/none.png 3182s # Test 3: %% 3182s # Test 4: % 3182s ok 18 /uri/unescape-bytes/length 3182s # End of unescape-bytes tests 3182s # Start of parsing tests 3182s # Test 0: foo: 3182s # Test 1: file:/dev/null 3182s # Test 2: file:///dev/null 3182s # Test 3: ftp://user@host/path 3182s # Test 4: ftp://user@host:9999/path 3182s # Test 5: ftp://user:password@host/path 3182s # Test 6: ftp://user:password@host:9999/path 3182s # Test 7: ftp://user:password@host 3182s # Test 8: http://us%65r@host 3182s # Test 9: http://us%40r@host 3182s # Test 10: http://us%3ar@host 3182s # Test 11: http://us%2fr@host 3182s # Test 12: http://us%3fr@host 3182s # Test 13: http://host?query 3182s # Test 14: http://host/path?query=http%3A%2F%2Fhost%2Fpath%3Fchildparam%3Dchildvalue¶m=value 3182s # 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 3182s # Test 16: http://space/%20 3182s # Test 17: http://delims/%3C%3E%23%25%22 3182s # Test 18: http://unwise-chars/%7B%7D%7C%5C%5E%5B%5D%60 3182s # Test 19: http://[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:80/index.html 3182s # Test 20: http://[1080:0:0:0:8:800:200C:417A]/index.html 3182s # Test 21: http://[3ffe:2a00:100:7031::1] 3182s # Test 22: http://[1080::8:800:200C:417A]/foo 3182s # Test 23: http://[::192.9.5.5]/ipng 3182s # Test 24: http://[::FFFF:129.144.52.38]:80/index.html 3182s # Test 25: http://[2010:836B:4179::836B:4179] 3182s # Test 26: http://host/path with spaces 3182s # Test 27: http://host/path 3182s # Test 28: http://host/path 3182s # Test 29: http://host 3182s # Test 30: http://host:999 3182s # Test 31: http://host/pa 3182s # th 3182s # Test 32: http: 3182s # //host/path 3182s # Test 33: http:// host/path 3182s # Test 34: http://host/path? 3182s # Test 35: http://host/path# 3182s # Test 36: http://host/path% 3182s # Test 37: http://h%ost/path 3182s # Test 38: http://host/path%% 3182s # Test 39: http://host/path%%% 3182s # Test 40: http://host/path%/x/ 3182s # Test 41: http://host/path%0x/ 3182s # Test 42: http://host/path%ax 3182s # Test 43: http://host/p?th/ 3182s # Test 44: HTTP://////////////// 3182s # Test 45: http://@host 3182s # Test 46: http://:@host 3182s # Test 47: scheme://foo%3Abar._webdav._tcp.local 3182s # Test 48: http://example.com/.. 3182s # Test 49: foo0://host/path 3182s # Test 50: f0.o://host/path 3182s # Test 51: http++://host/path 3182s # Test 52: http-ish://host/path 3182s # Test 53: http://[fe80::dead:beef%]/ 3182s # Test 54: http://[fe80::dead:beef%em1]/ 3182s # Test 55: http://[fe80::dead:beef%em1]/ 3182s # Test 56: http://[fe80::dead:beef%25em1]/ 3182s # Test 57: http://[fe80::dead:beef%25em1%20]/ 3182s # Test 58: http://[fe80::dead:beef%25em%31]/ 3182s # Test 59: http://[fe80::dead:beef%10]/ 3182s # Test 60: http://[fe80::dead:beef%10]/ 3182s # Test 61: http://[fe80::dead:beef%25]/ 3182s # Test 62: http://[fe80::dead:beef%25]/ 3182s # Test 63: http://[192.168.0.1%25em1]/ 3182s # Test 64: http://[fe80::dead:beef%2em1]/ 3182s # Test 65: http://[fe80::dead:beef%2em1]/ 3182s # Test 66: http://[fe80::dead:beef%25em1%00]/ 3182s # Test 67: http://[fe80::dead:beef%25em1%00]/ 3182s # Test 68: http://xn--mixed-?p/ 3182s # Test 69: data:./// 3182s # Test 70: data:/.// 3182s ok 19 /uri/parsing/absolute 3182s ok 20 /uri/parsing/relative 3182s # End of parsing tests 3182s # Start of iter-params tests 3182s # URI 0: p1=foo&p2=bar;p3=baz 3182s # URI 1: p1=foo&p2=bar 3182s # URI 2: p1=foo&&P1=bar 3182s # URI 3: %00=foo 3182s # URI 4: p1=%00 3182s # URI 5: p1=foo&p1=bar 3182s # URI 6: p1=foo&P1=bar 3182s # URI 7: =% 3182s # URI 8: = 3182s # URI 9: foo 3182s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 3182s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 3182s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 3182s ok 21 /uri/iter-params/nul-terminated 3182s # URI 0: p1=foo&p2=bar;p3=baz 3182s # URI 1: p1=foo&p2=bar 3182s # URI 2: p1=foo&&P1=bar 3182s # URI 3: %00=foo 3182s # URI 4: p1=%00 3182s # URI 5: p1=foo&p1=bar 3182s # URI 6: p1=foo&P1=bar 3182s # URI 7: =% 3182s # URI 8: = 3182s # URI 9: foo 3182s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 3182s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 3182s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 3182s ok 22 /uri/iter-params/length 3182s # End of iter-params tests 3182s # Start of parse-params tests 3182s # URI 0: p1=foo&p2=bar;p3=baz 3182s # URI 1: p1=foo&p2=bar 3182s # URI 2: p1=foo&&P1=bar 3182s # URI 3: %00=foo 3182s # URI 4: p1=%00 3182s # URI 5: p1=foo&p1=bar 3182s # URI 6: p1=foo&P1=bar 3182s # URI 7: =% 3182s # URI 8: = 3182s # URI 9: foo 3182s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 3182s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 3182s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 3182s ok 23 /uri/parse-params/nul-terminated 3182s # URI 0: p1=foo&p2=bar;p3=baz 3182s # URI 1: p1=foo&p2=bar 3182s # URI 2: p1=foo&&P1=bar 3182s # URI 3: %00=foo 3182s # URI 4: p1=%00 3182s # URI 5: p1=foo&p1=bar 3182s # URI 6: p1=foo&P1=bar 3182s # URI 7: =% 3182s # URI 8: = 3182s # URI 9: foo 3182s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 3182s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 3182s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 3182s ok 24 /uri/parse-params/length 3182s # End of parse-params tests 3182s # End of uri tests 3182s ok - glib/uri.test 3182s # Running test: glib/slice.test 3182s TAP version 14 3182s # random seed: R02S1c3f26320071e58f189afd06995cada0 3182s 1..3 3182s # Start of slice tests 3182s ok 1 /slice/copy 3182s ok 2 /slice/chain 3184s # Executing: glib/slice.test 3185s ok 3 /slice/allocate 3185s # slow test /slice/allocate executed in 2.46 secs 3185s # End of slice tests 3185s ok - glib/slice.test 3185s # Running test: glib/array-test.test 3185s TAP version 14 3185s # random seed: R02S278cd69435532b66d5016e7003a09b43 3185s 1..113 3185s # Start of array tests 3185s ok 1 /array/ref-count 3185s ok 2 /array/steal 3185s ok 3 /array/clear-func 3185s ok 4 /array/binary-search 3185s # /array/copy-sized summary: Test that copying a newly-allocated sized array works. 3185s ok 5 /array/copy-sized 3185s ok 6 /array/overflow-append-vals 3185s ok 7 /array/overflow-set-size 3185s # Start of new tests 3185s ok 8 /array/new/zero-terminated 3185s ok 9 /array/new/take 3185s ok 10 /array/new/take-zero-terminated 3185s # Start of take tests 3185s ok 11 /array/new/take/empty 3185s ok 12 /array/new/take/overflow # SKIP Overflow test requires UINT_WIDTH > SIZE_WIDTH. 3185s # End of take tests 3185s # End of new tests 3185s # Start of set-size tests 3185s ok 13 /array/set-size/non-zero-terminated-no-clear 3185s ok 14 /array/set-size/non-zero-terminated-clear 3185s ok 15 /array/set-size/zero-terminated-no-clear 3185s ok 16 /array/set-size/zero-terminated-clear 3185s # Start of sized tests 3185s ok 17 /array/set-size/sized/non-zero-terminated-no-clear 3185s ok 18 /array/set-size/sized/non-zero-terminated-clear 3185s ok 19 /array/set-size/sized/zero-terminated-no-clear 3185s ok 20 /array/set-size/sized/zero-terminated-clear 3185s # End of sized tests 3185s # End of set-size tests 3185s # Start of append-val tests 3185s ok 21 /array/append-val/non-zero-terminated-no-clear 3185s ok 22 /array/append-val/non-zero-terminated-clear 3185s ok 23 /array/append-val/zero-terminated-no-clear 3185s ok 24 /array/append-val/zero-terminated-clear 3185s # End of append-val tests 3185s # Start of prepend-val tests 3185s ok 25 /array/prepend-val/non-zero-terminated-no-clear 3185s ok 26 /array/prepend-val/non-zero-terminated-clear 3185s ok 27 /array/prepend-val/zero-terminated-no-clear 3185s ok 28 /array/prepend-val/zero-terminated-clear 3185s # End of prepend-val tests 3185s # Start of prepend-vals tests 3185s ok 29 /array/prepend-vals/non-zero-terminated-no-clear 3185s ok 30 /array/prepend-vals/non-zero-terminated-clear 3185s ok 31 /array/prepend-vals/zero-terminated-no-clear 3185s ok 32 /array/prepend-vals/zero-terminated-clear 3185s # End of prepend-vals tests 3185s # Start of insert-vals tests 3185s ok 33 /array/insert-vals/non-zero-terminated-no-clear 3185s ok 34 /array/insert-vals/non-zero-terminated-clear 3185s ok 35 /array/insert-vals/zero-terminated-no-clear 3185s ok 36 /array/insert-vals/zero-terminated-clear 3185s # End of insert-vals tests 3185s # Start of remove-index tests 3185s ok 37 /array/remove-index/non-zero-terminated-no-clear 3185s ok 38 /array/remove-index/non-zero-terminated-clear 3185s ok 39 /array/remove-index/zero-terminated-no-clear 3185s ok 40 /array/remove-index/zero-terminated-clear 3185s # End of remove-index tests 3185s # Start of remove-index-fast tests 3185s ok 41 /array/remove-index-fast/non-zero-terminated-no-clear 3185s ok 42 /array/remove-index-fast/non-zero-terminated-clear 3185s ok 43 /array/remove-index-fast/zero-terminated-no-clear 3185s ok 44 /array/remove-index-fast/zero-terminated-clear 3185s # End of remove-index-fast tests 3185s # Start of remove-range tests 3185s ok 45 /array/remove-range/non-zero-terminated-no-clear 3185s ok 46 /array/remove-range/non-zero-terminated-clear 3185s ok 47 /array/remove-range/zero-terminated-no-clear 3185s ok 48 /array/remove-range/zero-terminated-clear 3185s # End of remove-range tests 3185s # Start of copy tests 3185s ok 49 /array/copy/non-zero-terminated-no-clear 3185s ok 50 /array/copy/non-zero-terminated-clear 3185s ok 51 /array/copy/zero-terminated-no-clear 3185s ok 52 /array/copy/zero-terminated-clear 3185s # End of copy tests 3185s # Start of sort tests 3185s ok 53 /array/sort/non-zero-terminated-no-clear 3185s ok 54 /array/sort/non-zero-terminated-clear 3185s ok 55 /array/sort/zero-terminated-no-clear 3185s ok 56 /array/sort/zero-terminated-clear 3185s # End of sort tests 3185s # Start of sort-with-data tests 3185s ok 57 /array/sort-with-data/non-zero-terminated-no-clear 3185s ok 58 /array/sort-with-data/non-zero-terminated-clear 3185s ok 59 /array/sort-with-data/zero-terminated-no-clear 3185s ok 60 /array/sort-with-data/zero-terminated-clear 3185s # End of sort-with-data tests 3185s # End of array tests 3185s # Start of pointerarray tests 3185s ok 61 /pointerarray/add 3185s ok 62 /pointerarray/insert 3185s ok 63 /pointerarray/new-take 3185s ok 64 /pointerarray/new-take-null-terminated 3185s ok 65 /pointerarray/new-from-array 3185s ok 66 /pointerarray/new-from-null-terminated-array 3185s ok 67 /pointerarray/free-func 3185s ok 68 /pointerarray/array_extend_and_steal 3185s ok 69 /pointerarray/sort 3185s ok 70 /pointerarray/sort-with-data 3185s ok 71 /pointerarray/sort-values 3185s ok 72 /pointerarray/sort-values-with-data 3185s ok 73 /pointerarray/remove-range 3185s ok 74 /pointerarray/steal 3185s # Start of free tests 3185s # /pointerarray/free/null-terminated summary: Check that g_ptr_array_free() on an empty array returns a NULL-terminated empty array 3185s ok 75 /pointerarray/free/null-terminated 3185s # End of free tests 3185s # Start of new-take tests 3185s ok 76 /pointerarray/new-take/empty 3185s ok 77 /pointerarray/new-take/overflow # SKIP Overflow test requires UINT_WIDTH > SIZE_WIDTH. 3185s ok 78 /pointerarray/new-take/with-free-func 3185s # End of new-take tests 3185s # Start of new-take-null-terminated tests 3185s ok 79 /pointerarray/new-take-null-terminated/empty 3185s ok 80 /pointerarray/new-take-null-terminated/with-free-func 3185s ok 81 /pointerarray/new-take-null-terminated/from-gstrv 3185s # End of new-take-null-terminated tests 3185s # Start of new-from-array tests 3185s ok 82 /pointerarray/new-from-array/empty 3185s ok 83 /pointerarray/new-from-array/overflow # SKIP Overflow test requires UINT_WIDTH > SIZE_WIDTH. 3185s ok 84 /pointerarray/new-from-array/with-copy-and-free-func 3185s # End of new-from-array tests 3185s # Start of new-from-null-terminated-array tests 3185s ok 85 /pointerarray/new-from-null-terminated-array/empty 3185s ok 86 /pointerarray/new-from-null-terminated-array/with-copy-and-free-func 3185s ok 87 /pointerarray/new-from-null-terminated-array/from-gstrv 3185s # End of new-from-null-terminated-array tests 3185s # Start of ref-count tests 3185s ok 88 /pointerarray/ref-count/not-null-terminated 3185s ok 89 /pointerarray/ref-count/null-terminated 3185s # End of ref-count tests 3185s # Start of array_copy tests 3185s # /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 3185s ok 90 /pointerarray/array_copy/not-null-terminated 3185s # /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 3185s ok 91 /pointerarray/array_copy/null-terminated 3185s # End of array_copy tests 3185s # Start of array_extend tests 3185s ok 92 /pointerarray/array_extend/not-null-terminated 3185s ok 93 /pointerarray/array_extend/null-terminated 3185s # End of array_extend tests 3185s # Start of sort tests 3185s # /pointerarray/sort/example summary: Check that the doc-comment for g_ptr_array_sort() is correct 3185s ok 94 /pointerarray/sort/example 3185s # End of sort tests 3185s # Start of sort-with-data tests 3185s # /pointerarray/sort-with-data/example summary: Check that the doc-comment for g_ptr_array_sort_with_data() is correct 3185s ok 95 /pointerarray/sort-with-data/example 3185s # End of sort-with-data tests 3185s # Start of sort-values tests 3185s ok 96 /pointerarray/sort-values/example 3185s # End of sort-values tests 3185s # Start of sort-values-with-data tests 3185s ok 97 /pointerarray/sort-values-with-data/example 3185s # End of sort-values-with-data tests 3185s # Start of find tests 3185s ok 98 /pointerarray/find/empty 3185s ok 99 /pointerarray/find/non-empty 3185s # End of find tests 3185s # Start of steal_index tests 3185s ok 100 /pointerarray/steal_index/not-null-terminated 3185s ok 101 /pointerarray/steal_index/null-terminated 3185s # End of steal_index tests 3185s # End of pointerarray tests 3185s # Start of bytearray tests 3185s ok 102 /bytearray/steal 3185s ok 103 /bytearray/append 3185s ok 104 /bytearray/prepend 3185s ok 105 /bytearray/remove 3185s ok 106 /bytearray/remove-fast 3185s ok 107 /bytearray/remove-range 3185s ok 108 /bytearray/ref-count 3185s ok 109 /bytearray/sort 3185s ok 110 /bytearray/sort-with-data 3185s ok 111 /bytearray/new-take 3185s ok 112 /bytearray/new-take-overflow # SKIP Overflow test requires G_MAXSIZE > G_MAXUINT. 3185s ok 113 /bytearray/free-to-bytes 3185s # End of bytearray tests 3185s ok - glib/array-test.test 3185s # Running test: glib/g-file-info-filesystem-readonly.test 3185s TAP version 14 3185s # random seed: R02S1e765d20dcf0200fb7e44052a4d50f90 3185s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=787731 3185s 1..2 3185s # Start of g-file-info-filesystem-readonly tests 3185s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_g-file-info-filesystem-readonly_7FOB62/g-file-info-filesystem-readonly/test-fs-ro/.dirs/home 3185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_g-file-info-filesystem-readonly_7FOB62/g-file-info-filesystem-readonly/test-fs-ro/.dirs/cache 3185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_g-file-info-filesystem-readonly_7FOB62/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-config1:/tmp/test_g-file-info-filesystem-readonly_7FOB62/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-config2 3185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_g-file-info-filesystem-readonly_7FOB62/g-file-info-filesystem-readonly/test-fs-ro/.dirs/config 3185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_g-file-info-filesystem-readonly_7FOB62/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-data1:/tmp/test_g-file-info-filesystem-readonly_7FOB62/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-data2 3185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_g-file-info-filesystem-readonly_7FOB62/g-file-info-filesystem-readonly/test-fs-ro/.dirs/data 3185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_g-file-info-filesystem-readonly_7FOB62/g-file-info-filesystem-readonly/test-fs-ro/.dirs/state 3185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_g-file-info-filesystem-readonly_7FOB62/g-file-info-filesystem-readonly/test-fs-ro/.dirs/runtime 3185s ok 1 /g-file-info-filesystem-readonly/test-fs-ro # SKIP 'bindfs' and 'fusermount' commands are needed to run this test 3185s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_g-file-info-filesystem-readonly_7FOB62/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/home 3185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_g-file-info-filesystem-readonly_7FOB62/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/cache 3185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_g-file-info-filesystem-readonly_7FOB62/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-config1:/tmp/test_g-file-info-filesystem-readonly_7FOB62/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-config2 3185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_g-file-info-filesystem-readonly_7FOB62/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/config 3185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_g-file-info-filesystem-readonly_7FOB62/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-data1:/tmp/test_g-file-info-filesystem-readonly_7FOB62/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-data2 3185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_g-file-info-filesystem-readonly_7FOB62/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/data 3185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_g-file-info-filesystem-readonly_7FOB62/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/state 3185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_g-file-info-filesystem-readonly_7FOB62/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/runtime 3185s ok 2 /g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor # SKIP 'bindfs' and 'fusermount' commands are needed to run this test 3185s # End of g-file-info-filesystem-readonly tests 3185s ok - glib/g-file-info-filesystem-readonly.test 3186s # Running test: glib/cxx-14.test 3186s TAP version 14 3186s # random seed: R02S172e9d10f40867649eaecbf977716e53 3186s 1..2 3186s # Start of gtask tests 3186s # 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. 3186s ok 1 /gtask/name 3186s # Start of name tests 3186s # 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. 3186s ok 2 /gtask/name/macro-wrapper 3186s # End of name tests 3186s # End of gtask tests 3186s ok - glib/cxx-14.test 3186s # Running test: glib/power-profile-monitor.test 3186s TAP version 14 3186s # random seed: R02Sfbf7057f7b639f610c92dec6f4a33681 3186s 1..1 3186s # Start of power-profile-monitor tests 3186s # GLib-GIO-DEBUG: Failed to initialize portal (GPowerProfileMonitorPortal) for gio-power-profile-monitor: Not using portals 3186s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dbus (GPowerProfileMonitorDBus) for ?gio-power-profile-monitor? 3186s ok 1 /power-profile-monitor/default 3186s # End of power-profile-monitor tests 3186s ok - glib/power-profile-monitor.test 3186s # Running test: glib/messages-low-memory.py.test 3187s TAP version 13 3187s ok 1 __main__.TestMessagesLowMemory.test_message_memory_allocation_failure 3187s # messages-low-memory: /usr/libexec/installed-tests/glib/messages-low-memory 3187s # tmpdir: /tmp/tmp5zrurwkf 3187s # Running: ['/usr/libexec/installed-tests/glib/messages-low-memory'] 3187s # Return code: -6 3187s # Output: 3187s # 3187s # Error: 3187s # GLib-Message: 13:49:11.502: Simulates a situation in which we were crashing because of low-memory, leading malloc to fail instead of aborting 3187s # GLib-Message: 13:49:11.512: bug: https://gitlab.gnome.org/GNOME/glib/-/issues/2753 3187s # ../../../glib/gprintf.c:350: failed to allocate memory 3187s 1..1 3187s ok - glib/messages-low-memory.py.test 3187s # Running test: glib/gdbus-proxy-unique-name.test 3187s TAP version 14 3187s # random seed: R02S42b69f09e2b9f584643a370ae1c47074 3187s 1..1 3187s # Start of gdbus tests 3187s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy-unique-name_C6BA62/gdbus/proxy-unique-name/.dirs/home 3187s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy-unique-name_C6BA62/gdbus/proxy-unique-name/.dirs/cache 3187s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy-unique-name_C6BA62/gdbus/proxy-unique-name/.dirs/system-config1:/tmp/test_gdbus-proxy-unique-name_C6BA62/gdbus/proxy-unique-name/.dirs/system-config2 3187s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy-unique-name_C6BA62/gdbus/proxy-unique-name/.dirs/config 3187s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy-unique-name_C6BA62/gdbus/proxy-unique-name/.dirs/system-data1:/tmp/test_gdbus-proxy-unique-name_C6BA62/gdbus/proxy-unique-name/.dirs/system-data2 3187s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy-unique-name_C6BA62/gdbus/proxy-unique-name/.dirs/data 3187s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy-unique-name_C6BA62/gdbus/proxy-unique-name/.dirs/state 3187s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy-unique-name_C6BA62/gdbus/proxy-unique-name/.dirs/runtime 3188s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3188s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3188s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3188s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3188s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3188s ok 1 /gdbus/proxy-unique-name 3188s # slow test /gdbus/proxy-unique-name executed in 0.57 secs 3188s # End of gdbus tests 3188s ok - glib/gdbus-proxy-unique-name.test 3188s # Running test: glib/param.test 3188s TAP version 14 3188s # random seed: R02Scb09cb250cf20ef08704d0f733e0529a 3189s 1..32 3189s # Start of param tests 3189s ok 1 /param/value 3189s ok 2 /param/strings 3189s ok 3 /param/qdata 3189s ok 4 /param/validate 3189s ok 5 /param/convert 3189s ok 6 /param/implement # SKIP Skipping slow /param/implement test 3189s ok 7 /param/default 3189s ok 8 /param/is-valid-name 3189s # Start of invalid-name tests 3189s # /param/invalid-name/colon summary: Test that properties cannot be created with invalid names 3189s # Executing: glib/param.test 3189s ok 9 /param/invalid-name/colon 3189s # slow test /param/invalid-name/colon executed in 0.57 secs 3189s # /param/invalid-name/first-char summary: Test that properties cannot be created with invalid names 3190s ok 10 /param/invalid-name/first-char 3190s # slow test /param/invalid-name/first-char executed in 0.55 secs 3190s # /param/invalid-name/empty summary: Test that properties cannot be created with invalid names 3190s ok 11 /param/invalid-name/empty 3190s # slow test /param/invalid-name/empty executed in 0.55 secs 3190s # End of invalid-name tests 3190s # Start of implement tests 3190s # Start of subprocess tests 3190s # End of subprocess tests 3190s # End of implement tests 3190s # End of param tests 3190s # Start of value tests 3190s ok 12 /value/transform 3190s # End of value tests 3190s # Start of paramspec tests 3190s ok 13 /paramspec/char 3190s ok 14 /paramspec/uchar 3190s ok 15 /paramspec/int 3190s ok 16 /paramspec/uint 3190s ok 17 /paramspec/long 3190s ok 18 /paramspec/ulong 3190s ok 19 /paramspec/int64 3190s ok 20 /paramspec/uint64 3190s ok 21 /paramspec/float 3190s ok 22 /paramspec/double 3190s ok 23 /paramspec/unichar 3190s ok 24 /paramspec/param 3190s ok 25 /paramspec/null-param 3190s ok 26 /paramspec/string 3190s ok 27 /paramspec/override 3190s ok 28 /paramspec/gtype 3190s ok 29 /paramspec/variant 3190s ok 30 /paramspec/custom 3190s ok 31 /paramspec/pool 3190s # Start of variant tests 3190s ok 32 /paramspec/variant/cmp 3190s # End of variant tests 3190s # End of paramspec tests 3190s ok - glib/param.test 3190s # Running test: glib/dump.test 3190s TAP version 14 3190s # random seed: R02Sc15ac8880b3aab3ae62e9d95dc7bc694 3190s 1..4 3190s # Start of dump tests 3190s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_2T5252/dump/empty-file/.dirs/home 3190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_2T5252/dump/empty-file/.dirs/cache 3190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_2T5252/dump/empty-file/.dirs/system-config1:/tmp/test_dump_2T5252/dump/empty-file/.dirs/system-config2 3190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_2T5252/dump/empty-file/.dirs/config 3190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_2T5252/dump/empty-file/.dirs/system-data1:/tmp/test_dump_2T5252/dump/empty-file/.dirs/system-data2 3190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_2T5252/dump/empty-file/.dirs/data 3190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_2T5252/dump/empty-file/.dirs/state 3190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_2T5252/dump/empty-file/.dirs/runtime 3190s ok 1 /dump/empty-file 3190s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_2T5252/dump/missing-get-type/.dirs/home 3190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_2T5252/dump/missing-get-type/.dirs/cache 3190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_2T5252/dump/missing-get-type/.dirs/system-config1:/tmp/test_dump_2T5252/dump/missing-get-type/.dirs/system-config2 3190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_2T5252/dump/missing-get-type/.dirs/config 3190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_2T5252/dump/missing-get-type/.dirs/system-data1:/tmp/test_dump_2T5252/dump/missing-get-type/.dirs/system-data2 3190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_2T5252/dump/missing-get-type/.dirs/data 3190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_2T5252/dump/missing-get-type/.dirs/state 3190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_2T5252/dump/missing-get-type/.dirs/runtime 3191s Invalid GType function: 'does_not_exist_get_type' 3191s ok 2 /dump/missing-get-type 3191s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_2T5252/dump/missing-quark/.dirs/home 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_2T5252/dump/missing-quark/.dirs/cache 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_2T5252/dump/missing-quark/.dirs/system-config1:/tmp/test_dump_2T5252/dump/missing-quark/.dirs/system-config2 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_2T5252/dump/missing-quark/.dirs/config 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_2T5252/dump/missing-quark/.dirs/system-data1:/tmp/test_dump_2T5252/dump/missing-quark/.dirs/system-data2 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_2T5252/dump/missing-quark/.dirs/data 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_2T5252/dump/missing-quark/.dirs/state 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_2T5252/dump/missing-quark/.dirs/runtime 3191s Invalid error quark function: 'does_not_exist_error' 3191s ok 3 /dump/missing-quark 3191s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_2T5252/dump/basic/.dirs/home 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_2T5252/dump/basic/.dirs/cache 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_2T5252/dump/basic/.dirs/system-config1:/tmp/test_dump_2T5252/dump/basic/.dirs/system-config2 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_2T5252/dump/basic/.dirs/config 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_2T5252/dump/basic/.dirs/system-data1:/tmp/test_dump_2T5252/dump/basic/.dirs/system-data2 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_2T5252/dump/basic/.dirs/data 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_2T5252/dump/basic/.dirs/state 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_2T5252/dump/basic/.dirs/runtime 3191s ok 4 /dump/basic 3191s # End of dump tests 3191s ok - glib/dump.test 3191s # Running test: glib/file-thumbnail.test 3191s TAP version 14 3191s # random seed: R02Sb787cbd0b2db1155edd025abfa76d042 3191s 1..7 3191s # Start of file-thumbnail tests 3191s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_0VT452/file-thumbnail/fail/.dirs/home 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_0VT452/file-thumbnail/fail/.dirs/cache 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_0VT452/file-thumbnail/fail/.dirs/system-config1:/tmp/test_file-thumbnail_0VT452/file-thumbnail/fail/.dirs/system-config2 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_0VT452/file-thumbnail/fail/.dirs/config 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_0VT452/file-thumbnail/fail/.dirs/system-data1:/tmp/test_file-thumbnail_0VT452/file-thumbnail/fail/.dirs/system-data2 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_0VT452/file-thumbnail/fail/.dirs/data 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_0VT452/file-thumbnail/fail/.dirs/state 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_0VT452/file-thumbnail/fail/.dirs/runtime 3191s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 3191s # Created test thumbnail at /tmp/test_file-thumbnail_0VT452/file-thumbnail/fail/.dirs/cache/thumbnails/fail/gnome-thumbnail-factory/f098bcae74f8241ee3835bded7284cdd.png 3191s ok 1 /file-thumbnail/fail 3191s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_0VT452/file-thumbnail/size-priority/.dirs/home 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_0VT452/file-thumbnail/size-priority/.dirs/cache 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_0VT452/file-thumbnail/size-priority/.dirs/system-config1:/tmp/test_file-thumbnail_0VT452/file-thumbnail/size-priority/.dirs/system-config2 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_0VT452/file-thumbnail/size-priority/.dirs/config 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_0VT452/file-thumbnail/size-priority/.dirs/system-data1:/tmp/test_file-thumbnail_0VT452/file-thumbnail/size-priority/.dirs/system-data2 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_0VT452/file-thumbnail/size-priority/.dirs/data 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_0VT452/file-thumbnail/size-priority/.dirs/state 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_0VT452/file-thumbnail/size-priority/.dirs/runtime 3191s # Created test thumbnail at /tmp/test_file-thumbnail_0VT452/file-thumbnail/size-priority/.dirs/cache/thumbnails/fail/gnome-thumbnail-factory/f098bcae74f8241ee3835bded7284cdd.png 3191s # Created test thumbnail at /tmp/test_file-thumbnail_0VT452/file-thumbnail/size-priority/.dirs/cache/thumbnails/normal/f098bcae74f8241ee3835bded7284cdd.png 3191s # Created test thumbnail at /tmp/test_file-thumbnail_0VT452/file-thumbnail/size-priority/.dirs/cache/thumbnails/large/f098bcae74f8241ee3835bded7284cdd.png 3191s # Created test thumbnail at /tmp/test_file-thumbnail_0VT452/file-thumbnail/size-priority/.dirs/cache/thumbnails/x-large/f098bcae74f8241ee3835bded7284cdd.png 3191s # Created test thumbnail at /tmp/test_file-thumbnail_0VT452/file-thumbnail/size-priority/.dirs/cache/thumbnails/xx-large/f098bcae74f8241ee3835bded7284cdd.png 3191s ok 2 /file-thumbnail/size-priority 3191s # Start of valid tests 3191s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/normal/.dirs/home 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/normal/.dirs/cache 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/normal/.dirs/system-config1:/tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/normal/.dirs/system-config2 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/normal/.dirs/config 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/normal/.dirs/system-data1:/tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/normal/.dirs/system-data2 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/normal/.dirs/data 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/normal/.dirs/state 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/normal/.dirs/runtime 3191s # Created test thumbnail at /tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/normal/.dirs/cache/thumbnails/normal/f098bcae74f8241ee3835bded7284cdd.png 3191s ok 3 /file-thumbnail/valid/normal 3191s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/large/.dirs/home 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/large/.dirs/cache 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/large/.dirs/system-config1:/tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/large/.dirs/system-config2 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/large/.dirs/config 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/large/.dirs/system-data1:/tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/large/.dirs/system-data2 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/large/.dirs/data 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/large/.dirs/state 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/large/.dirs/runtime 3191s # Created test thumbnail at /tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/large/.dirs/cache/thumbnails/large/f098bcae74f8241ee3835bded7284cdd.png 3191s ok 4 /file-thumbnail/valid/large 3191s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/x-large/.dirs/home 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/x-large/.dirs/cache 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/x-large/.dirs/system-config1:/tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/x-large/.dirs/system-config2 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/x-large/.dirs/config 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/x-large/.dirs/system-data1:/tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/x-large/.dirs/system-data2 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/x-large/.dirs/data 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/x-large/.dirs/state 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/x-large/.dirs/runtime 3191s # Created test thumbnail at /tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/x-large/.dirs/cache/thumbnails/x-large/f098bcae74f8241ee3835bded7284cdd.png 3191s ok 5 /file-thumbnail/valid/x-large 3191s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/xx-large/.dirs/home 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/xx-large/.dirs/cache 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/xx-large/.dirs/system-config1:/tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/xx-large/.dirs/system-config2 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/xx-large/.dirs/config 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/xx-large/.dirs/system-data1:/tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/xx-large/.dirs/system-data2 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/xx-large/.dirs/data 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/xx-large/.dirs/state 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/xx-large/.dirs/runtime 3191s # Created test thumbnail at /tmp/test_file-thumbnail_0VT452/file-thumbnail/valid/xx-large/.dirs/cache/thumbnails/xx-large/f098bcae74f8241ee3835bded7284cdd.png 3191s ok 6 /file-thumbnail/valid/xx-large 3191s # End of valid tests 3191s # Start of unknown tests 3191s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_0VT452/file-thumbnail/unknown/super-large/.dirs/home 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_0VT452/file-thumbnail/unknown/super-large/.dirs/cache 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_0VT452/file-thumbnail/unknown/super-large/.dirs/system-config1:/tmp/test_file-thumbnail_0VT452/file-thumbnail/unknown/super-large/.dirs/system-config2 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_0VT452/file-thumbnail/unknown/super-large/.dirs/config 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_0VT452/file-thumbnail/unknown/super-large/.dirs/system-data1:/tmp/test_file-thumbnail_0VT452/file-thumbnail/unknown/super-large/.dirs/system-data2 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_0VT452/file-thumbnail/unknown/super-large/.dirs/data 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_0VT452/file-thumbnail/unknown/super-large/.dirs/state 3191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_0VT452/file-thumbnail/unknown/super-large/.dirs/runtime 3191s # Created test thumbnail at /tmp/test_file-thumbnail_0VT452/file-thumbnail/unknown/super-large/.dirs/cache/thumbnails/super-large/f098bcae74f8241ee3835bded7284cdd.png 3191s ok 7 /file-thumbnail/unknown/super-large 3191s # End of unknown tests 3191s # End of file-thumbnail tests 3191s ok - glib/file-thumbnail.test 3191s # Running test: glib/refcount-macro.test 3191s TAP version 14 3191s # random seed: R02S2c78aca81361cbc902165a6b240aaf39 3191s 1..4 3191s # Start of refcount tests 3191s ok 1 /refcount/grefcount 3191s ok 2 /refcount/gatomicrefcount 3191s # Start of grefcount tests 3191s ok 3 /refcount/grefcount/saturation 3191s # End of grefcount tests 3191s # Start of gatomicrefcount tests 3191s ok 4 /refcount/gatomicrefcount/saturation 3191s # End of gatomicrefcount tests 3191s # End of refcount tests 3191s ok - glib/refcount-macro.test 3191s # Running test: glib/basic-signals.test 3191s TAP version 14 3191s # random seed: R02S27da5e7b50bb79e3ab8be0c8085631be 3191s 1..1 3191s # Start of gobject tests 3191s ok 1 /gobject/basic-signals 3191s # End of gobject tests 3191s ok - glib/basic-signals.test 3191s # Running test: glib/socket-address.test 3191s TAP version 14 3191s # random seed: R02S384a2da58bba282ff2bc26af261c4e2a 3191s 1..2 3191s # Start of socket tests 3191s # Start of address tests 3191s # Start of unix tests 3191s ok 1 /socket/address/unix/construct 3191s ok 2 /socket/address/unix/to-string 3191s # End of unix tests 3191s # End of address tests 3191s # End of socket tests 3191s ok - glib/socket-address.test 3191s # Running test: glib/singleton.test 3191s TAP version 14 3191s # random seed: R02Sc7ef25727b4b8458945152a0c1895140 3191s 1..2 3191s # Start of gobject tests 3191s # Start of singleton tests 3191s ok 1 /gobject/singleton/construction 3191s # /gobject/singleton/construct-property summary: Test that creating a singleton with a construct-time property works 3191s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2666 3191s ok 2 /gobject/singleton/construct-property 3191s # End of singleton tests 3191s # End of gobject tests 3191s ok - glib/singleton.test 3191s # Running test: glib/signals-refcount4.test 3191s TAP version 14 3191s # random seed: R02S2ba478e9034fd634f7712846963a9944 3192s 1..1 3192s # Start of gobject tests 3192s # Start of refcount tests 3192s # init 0x5556fad58dc0 3192s # 3192s # init 0x5556fad55310 3192s # 3194s # Executing: glib/signals-refcount4.test 3197s # dispose 0x5556fad58dc0! 3197s # 3197s # dispose 0x5556fad55310! 3197s # 3197s ok 1 /gobject/refcount/signals 3197s # slow test /gobject/refcount/signals executed in 5.02 secs 3197s # End of refcount tests 3197s # End of gobject tests 3197s ok - glib/signals-refcount4.test 3197s # Running test: glib/hostutils.test 3197s TAP version 14 3197s # random seed: R02S914e93f7e441b1114fae5783cf3c44ee 3197s 1..3 3197s # Start of hostutils tests 3197s ok 1 /hostutils/to_ascii 3197s ok 2 /hostutils/to_unicode 3197s ok 3 /hostutils/is_ip_addr 3197s # End of hostutils tests 3197s ok - glib/hostutils.test 3197s # Running test: glib/portal-support-none.test 3197s TAP version 14 3197s # random seed: R02S8ead1cb672be88fd03a5b679626b2a4f 3197s 1..1 3197s # Start of portal-support tests 3197s ok 1 /portal-support/none 3197s # End of portal-support tests 3197s ok - glib/portal-support-none.test 3197s # Running test: glib/spawn-singlethread.test 3197s TAP version 14 3197s # random seed: R02Se153ad02247e6b0163aed25132c26437 3197s 1..9 3197s # Start of gthread tests 3197s ok 1 /gthread/spawn-single-sync 3197s # /gthread/spawn-stderr-socket summary: Test calling g_spawn_sync() with its stderr FD set to a socket 3197s ok 2 /gthread/spawn-stderr-socket 3197s ok 3 /gthread/spawn-single-async 3197s # thread 1 3197s # thread 1 3197s ok 4 /gthread/spawn-single-async-with-fds 3197s ok 5 /gthread/spawn-async-with-invalid-fds 3197s ok 6 /gthread/spawn-script 3197s ok 7 /gthread/spawn-posix-spawn 3197s # Start of spawn tests 3197s ok 8 /gthread/spawn/nonexistent 3197s # FD map: 3197s # • 5 → 15 3197s # • 6 → 16 3197s # • 7 → 17 3197s # • 8 → 18 3197s # • 9 → 19 3197s # • 10 → 20 3197s # • 11 → 21 3197s # • 12 → 22 3197s # • 13 → 23 3197s # • 3 → 13 3197s ok 9 /gthread/spawn/fd-assignment-clash 3197s # End of spawn tests 3197s # End of gthread tests 3197s ok - glib/spawn-singlethread.test 3197s # Running test: glib/qdata.test 3197s TAP version 14 3197s # random seed: R02S8177645af6a4ef0fbbeb7f93a2fd8e83 3197s 1..2 3197s # Start of qdata tests 3198s ok 1 /qdata/threaded 3198s # slow test /qdata/threaded executed in 0.52 secs 3198s ok - glib/qdata.test 3198s ok 2 /qdata/dup 3198s # End of qdata tests 3198s # Running test: glib/gdbus-test-codegen-min-required-2-64.test 3198s TAP version 14 3198s # random seed: R02S48225990f7731d9af0607e43b0f6dd08 3198s 1..8 3198s # Start of gdbus tests 3198s # Start of codegen tests 3198s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/annotations/.dirs/home 3198s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/annotations/.dirs/cache 3198s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/annotations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/annotations/.dirs/system-config2 3198s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/annotations/.dirs/config 3198s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/annotations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/annotations/.dirs/system-data2 3198s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/annotations/.dirs/data 3198s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/annotations/.dirs/state 3198s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/annotations/.dirs/runtime 3198s ok 1 /gdbus/codegen/annotations 3198s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/interface_stability/.dirs/home 3198s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/interface_stability/.dirs/cache 3198s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/interface_stability/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/interface_stability/.dirs/system-config2 3198s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/interface_stability/.dirs/config 3198s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/interface_stability/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/interface_stability/.dirs/system-data2 3198s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/interface_stability/.dirs/data 3198s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/interface_stability/.dirs/state 3198s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/interface_stability/.dirs/runtime 3198s ok 2 /gdbus/codegen/interface_stability 3198s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/object-manager/.dirs/home 3198s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/object-manager/.dirs/cache 3198s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/object-manager/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/object-manager/.dirs/system-config2 3198s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/object-manager/.dirs/config 3198s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/object-manager/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/object-manager/.dirs/system-data2 3198s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/object-manager/.dirs/data 3198s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/object-manager/.dirs/state 3198s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/object-manager/.dirs/runtime 3199s # Executing: glib/gdbus-test-codegen-min-required-2-64.test 3199s ok 3 /gdbus/codegen/object-manager 3199s # slow test /gdbus/codegen/object-manager executed in 0.69 secs 3199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/property-naming/.dirs/home 3199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/property-naming/.dirs/cache 3199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/property-naming/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/property-naming/.dirs/system-config2 3199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/property-naming/.dirs/config 3199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/property-naming/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/property-naming/.dirs/system-data2 3199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/property-naming/.dirs/data 3199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/property-naming/.dirs/state 3199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/property-naming/.dirs/runtime 3199s ok 4 /gdbus/codegen/property-naming 3199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/autocleanups/.dirs/home 3199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/autocleanups/.dirs/cache 3199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/autocleanups/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/autocleanups/.dirs/system-config2 3199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/autocleanups/.dirs/config 3199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/autocleanups/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/autocleanups/.dirs/system-data2 3199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/autocleanups/.dirs/data 3199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/autocleanups/.dirs/state 3199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/autocleanups/.dirs/runtime 3199s ok 5 /gdbus/codegen/autocleanups 3199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/deprecations/.dirs/home 3199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/deprecations/.dirs/cache 3199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/deprecations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/deprecations/.dirs/system-config2 3199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/deprecations/.dirs/config 3199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/deprecations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/deprecations/.dirs/system-data2 3199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/deprecations/.dirs/data 3199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/deprecations/.dirs/state 3199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/deprecations/.dirs/runtime 3199s ok 6 /gdbus/codegen/deprecations 3199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/standalone-interface-info/.dirs/home 3199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/standalone-interface-info/.dirs/cache 3199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/standalone-interface-info/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/standalone-interface-info/.dirs/system-config2 3199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/standalone-interface-info/.dirs/config 3199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/standalone-interface-info/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/standalone-interface-info/.dirs/system-data2 3199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/standalone-interface-info/.dirs/data 3199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/standalone-interface-info/.dirs/state 3199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/standalone-interface-info/.dirs/runtime 3199s ok 7 /gdbus/codegen/standalone-interface-info 3199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/unix-fd-list/.dirs/home 3199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/unix-fd-list/.dirs/cache 3199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/unix-fd-list/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/unix-fd-list/.dirs/system-config2 3199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/unix-fd-list/.dirs/config 3199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/unix-fd-list/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/unix-fd-list/.dirs/system-data2 3199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/unix-fd-list/.dirs/data 3199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/unix-fd-list/.dirs/state 3199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_G52T52/gdbus/codegen/unix-fd-list/.dirs/runtime 3199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1726 3199s ok 8 /gdbus/codegen/unix-fd-list 3199s # End of codegen tests 3199s # End of gdbus tests 3199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3199s ok - glib/gdbus-test-codegen-min-required-2-64.test 3199s # Running test: glib/network-monitor.test 3199s TAP version 14 3199s # random seed: R02Sf0a79c16810b8dcdaf9e253a5697abee 3199s 1..4 3199s # Start of network-monitor tests 3199s # GLib-GIO-DEBUG: Failed to initialize portal (GNetworkMonitorPortal) for gio-network-monitor: Not using portals 3199s # GLib-GIO-DEBUG: Failed to initialize networkmanager (GNetworkMonitorNM) for gio-network-monitor: NetworkManager not running 3199s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation netlink (GNetworkMonitorNetlink) for ?gio-network-monitor? 3199s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ?gio-proxy-resolver? 3199s ok 1 /network-monitor/default 3199s ok 2 /network-monitor/remove_default 3199s ok 3 /network-monitor/add_networks 3199s ok 4 /network-monitor/remove_networks 3199s # End of network-monitor tests 3199s ok - glib/network-monitor.test 3199s # Running test: glib/async-splice-output-stream.test 3199s TAP version 14 3199s # random seed: R02S9ff2509ce90c37bc54f4171dfb08fcf4 3199s 1..5 3199s # Start of async-splice tests 3199s ok 1 /async-splice/copy-chunks 3200s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 3200s ok 2 /async-splice/copy-chunks-threaded-input 3200s ok 3 /async-splice/copy-chunks-threaded-output 3200s ok 4 /async-splice/copy-chunks-threaded 3200s ok 5 /async-splice/cancelled 3200s # End of async-splice tests 3200s ok - glib/async-splice-output-stream.test 3200s # Running test: glib/tree.test 3200s TAP version 14 3200s # random seed: R02Seea16aad4e68f97f8bf3c0c9f80ea457 3200s 1..7 3200s # Start of tree tests 3200s ok 1 /tree/search 3200s ok 2 /tree/remove 3200s ok 3 /tree/destroy 3200s ok 4 /tree/traverse 3200s ok 5 /tree/insert 3200s ok 6 /tree/bounds 3200s ok 7 /tree/remove-all 3200s # End of tree tests 3200s ok - glib/tree.test 3200s # Running test: glib/hash.test 3200s TAP version 14 3200s # random seed: R02S3b242c501f49648aeb527a64d3bfe156 3200s 1..34 3200s # Start of hash tests 3200s ok 1 /hash/misc 3200s ok 2 /hash/one 3200s ok 3 /hash/honeyman 3200s ok 4 /hash/direct 3200s ok 5 /hash/direct2 3200s ok 6 /hash/int 3200s ok 7 /hash/int64 3200s ok 8 /hash/double 3200s ok 9 /hash/string 3200s ok 10 /hash/set 3200s ok 11 /hash/set-ref 3200s ok 12 /hash/ref 3200s ok 13 /hash/remove-all 3200s ok - glib/hash.test 3200s ok 14 /hash/recursive-remove-all 3200s ok 15 /hash/find 3200s ok 16 /hash/foreach 3200s ok 17 /hash/foreach-steal 3200s ok 18 /hash/steal-extended 3200s ok 19 /hash/steal-all-keys 3200s ok 20 /hash/steal-all-values 3200s ok 21 /hash/lookup-extended 3200s ok 22 /hash/new-similar 3200s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642944 3200s ok 23 /hash/lookup-null-key 3200s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=650459 3200s ok 24 /hash/destroy-modify 3200s ok 25 /hash/consistency 3200s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=662544 3200s ok 26 /hash/iter-replace 3200s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=692815 3200s ok 27 /hash/set-insert-corruption 3200s ok 28 /hash/set-to-strv 3200s ok 29 /hash/get-keys-as-ptr-array 3200s ok 30 /hash/get-values-as-ptr-array 3200s ok 31 /hash/primes 3200s # Start of int64 tests 3200s # /hash/int64/collisions summary: Check int64 Hash collisions caused by ignoring high word 3200s ok 32 /hash/int64/collisions 3200s # End of int64 tests 3200s # Start of double tests 3200s # /hash/double/collisions summary: Check double Hash collisions caused by int conversion and by numbers larger than 2^64-1 (G_MAXUINT64) 3200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2771 3200s ok 33 /hash/double/collisions 3200s # End of double tests 3200s # Start of recursive-remove-all tests 3200s # End of recursive-remove-all tests 3200s # Start of steal-extended tests 3200s ok 34 /hash/steal-extended/optional 3200s # End of steal-extended tests 3200s # End of hash tests 3200s # Running test: glib/test-printf.test 3200s TAP version 14 3200s # random seed: R02Sd604c08af11f0e6377debb6dc0a9c782 3200s 1..22 3200s # Start of snprintf tests 3200s ok 1 /snprintf/retval-and-trunc 3200s ok 2 /snprintf/%d 3200s ok 3 /snprintf/%d-invalid 3200s ok 4 /snprintf/%o 3200s ok 5 /snprintf/%u 3200s ok 6 /snprintf/%x 3200s ok 7 /snprintf/%X 3200s ok 8 /snprintf/%f 3200s ok 9 /snprintf/%e 3200s ok 10 /snprintf/%c 3200s ok 11 /snprintf/%s 3200s ok 12 /snprintf/%n 3200s ok 13 /snprintf/test-percent 3200s ok 14 /snprintf/test-positional-params 3200s ok 15 /snprintf/test-64bit 3200s # End of snprintf tests 3200s # Start of printf tests 3200s ok 16 /printf/test-percent 3200s ok 17 /printf/test-positional-params 3200s ok 18 /printf/test-64bit 3200s # Start of test-64bit tests 3200s # Start of subprocess tests 3200s # End of subprocess tests 3200s # End of test-64bit tests 3200s # End of printf tests 3200s # Start of sprintf tests 3200s ok 19 /sprintf/test-positional-params 3200s ok 20 /sprintf/upper-bound 3200s # End of sprintf tests 3200s # Start of vasprintf tests 3200s # /vasprintf/invalid-format-placeholder summary: Test error handling for invalid format placeholder in g_vasprintf() 3200s ok 21 /vasprintf/invalid-format-placeholder 3200s # /vasprintf/invalid-wide-string summary: Test error handling for invalid wide strings in g_vasprintf() 3200s ok 22 /vasprintf/invalid-wide-string 3200s # End of vasprintf tests 3200s ok - glib/test-printf.test 3200s # Running test: glib/sandbox.test 3200s TAP version 14 3200s # random seed: R02Sda3c47f257e9e6b4ecce51710391989b 3200s 1..4 3200s # Start of sandbox tests 3200s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_Y9T952/sandbox/none/.dirs/home 3200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_Y9T952/sandbox/none/.dirs/cache 3200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_Y9T952/sandbox/none/.dirs/system-config1:/tmp/test_sandbox_Y9T952/sandbox/none/.dirs/system-config2 3200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_Y9T952/sandbox/none/.dirs/config 3200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_Y9T952/sandbox/none/.dirs/system-data1:/tmp/test_sandbox_Y9T952/sandbox/none/.dirs/system-data2 3200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_Y9T952/sandbox/none/.dirs/data 3200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_Y9T952/sandbox/none/.dirs/state 3200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_Y9T952/sandbox/none/.dirs/runtime 3200s ok 1 /sandbox/none 3200s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_Y9T952/sandbox/snap/.dirs/home 3200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_Y9T952/sandbox/snap/.dirs/cache 3200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_Y9T952/sandbox/snap/.dirs/system-config1:/tmp/test_sandbox_Y9T952/sandbox/snap/.dirs/system-config2 3200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_Y9T952/sandbox/snap/.dirs/config 3200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_Y9T952/sandbox/snap/.dirs/system-data1:/tmp/test_sandbox_Y9T952/sandbox/snap/.dirs/system-data2 3200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_Y9T952/sandbox/snap/.dirs/data 3200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_Y9T952/sandbox/snap/.dirs/state 3200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_Y9T952/sandbox/snap/.dirs/runtime 3200s # Created snap.yaml in /tmp/test_sandbox_Y9T952/snap/current/meta/snap.yaml 3200s ok 2 /sandbox/snap 3200s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_Y9T952/sandbox/classic-snap/.dirs/home 3200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_Y9T952/sandbox/classic-snap/.dirs/cache 3200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_Y9T952/sandbox/classic-snap/.dirs/system-config1:/tmp/test_sandbox_Y9T952/sandbox/classic-snap/.dirs/system-config2 3200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_Y9T952/sandbox/classic-snap/.dirs/config 3200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_Y9T952/sandbox/classic-snap/.dirs/system-data1:/tmp/test_sandbox_Y9T952/sandbox/classic-snap/.dirs/system-data2 3200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_Y9T952/sandbox/classic-snap/.dirs/data 3200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_Y9T952/sandbox/classic-snap/.dirs/state 3200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_Y9T952/sandbox/classic-snap/.dirs/runtime 3200s # Created snap.yaml in /tmp/test_sandbox_Y9T952/snap/current/meta/snap.yaml 3200s ok 3 /sandbox/classic-snap 3200s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_Y9T952/sandbox/flatpak/.dirs/home 3200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_Y9T952/sandbox/flatpak/.dirs/cache 3200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_Y9T952/sandbox/flatpak/.dirs/system-config1:/tmp/test_sandbox_Y9T952/sandbox/flatpak/.dirs/system-config2 3200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_Y9T952/sandbox/flatpak/.dirs/config 3200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_Y9T952/sandbox/flatpak/.dirs/system-data1:/tmp/test_sandbox_Y9T952/sandbox/flatpak/.dirs/system-data2 3200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_Y9T952/sandbox/flatpak/.dirs/data 3200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_Y9T952/sandbox/flatpak/.dirs/state 3200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_Y9T952/sandbox/flatpak/.dirs/runtime 3200s # Creating .flatpak-info in /tmp/test_sandbox_Y9T952/sandbox/flatpak/.dirs/runtime/.flatpak-info 3200s ok 4 /sandbox/flatpak 3200s # End of sandbox tests 3200s ok - glib/sandbox.test 3200s # Running test: glib/gmenumodel.test 3200s TAP version 14 3200s # random seed: R02S711f55daf3a42a9f690552817c161a36 3201s 1..15 3201s # Start of gmenu tests 3204s # Executing: glib/gmenumodel.test 3208s ok 1 /gmenu/equality 3208s # slow test /gmenu/equality executed in 7.41 secs 3209s # Executing: glib/gmenumodel.test 3214s # Executing: glib/gmenumodel.test 3218s ok 2 /gmenu/random 3218s # slow test /gmenu/random executed in 10.02 secs 3218s ok 3 /gmenu/attributes 3218s ok 4 /gmenu/links 3218s ok 5 /gmenu/mutable 3218s ok 6 /gmenu/convenience 3218s ok 7 /gmenu/menuitem 3218s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/861 3218s ok 8 /gmenu/input-validation 3218s # Start of dbus tests 3219s # Executing: glib/gmenumodel.test 3220s ok 9 /gmenu/dbus/roundtrip 3220s # slow test /gmenu/dbus/roundtrip executed in 1.75 secs 3220s ok 10 /gmenu/dbus/subscriptions 3224s # Executing: glib/gmenumodel.test 3228s ok 11 /gmenu/dbus/threaded 3228s # slow test /gmenu/dbus/threaded executed in 7.91 secs 3228s # Start of peer tests 3229s # Executing: glib/gmenumodel.test 3230s ok 12 /gmenu/dbus/peer/roundtrip 3230s # slow test /gmenu/dbus/peer/roundtrip executed in 1.33 secs 3230s ok 13 /gmenu/dbus/peer/subscriptions 3230s # End of peer tests 3230s # Start of export tests 3230s # /gmenu/dbus/export/error-handling summary: Test that error handling of menu model export failure works 3230s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3366 3230s ok 14 /gmenu/dbus/export/error-handling 3230s # End of export tests 3230s # End of dbus tests 3230s # Start of attributes tests 3230s ok 15 /gmenu/attributes/iterate 3230s # End of attributes tests 3230s # End of gmenu tests 3230s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3230s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3230s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3230s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3230s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3230s ok - glib/gmenumodel.test 3230s # Running test: glib/overflow-fallback.test 3230s TAP version 14 3230s # random seed: R02Sc51cd7f7ec031043a659e48650693af3 3230s 1..6 3230s # Start of glib tests 3230s # Start of checked-math tests 3230s ok 1 /glib/checked-math/guint-add 3230s ok 2 /glib/checked-math/guint-mul 3230s ok 3 /glib/checked-math/guint64-add 3230s ok 4 /glib/checked-math/guint64-mul 3230s ok 5 /glib/checked-math/gsize-add 3230s ok 6 /glib/checked-math/gsize-mul 3230s # End of checked-math tests 3230s # End of glib tests 3230s ok - glib/overflow-fallback.test 3230s # Running test: glib/utf8-validate.test 3230s TAP version 14 3230s # random seed: R02S265a8c74223237f601add022c0100b0d 3230s 1..238 3230s # Start of utf8 tests 3230s # Vector 0 3230s # Vector 1 3230s # Vector 2 3230s # Vector 3 3230s # Vector 4 3230s # Vector 5 3230s # Vector 6 3230s # Vector 7 3230s # Vector 8 3230s # Vector 9 3230s # Vector 10 3230s # Vector 11 3230s # Vector 12 3230s # Vector 13 3230s # Vector 14 3230s # Vector 15 3230s # Vector 16 3230s # Vector 17 3230s # Vector 18 3230s # Vector 19 3230s # Vector 20 3230s # Vector 21 3230s # Vector 22 3230s # Vector 23 3230s # Vector 24 3230s # Vector 25 3230s # Vector 26 3230s # Vector 27 3230s ok 1 /utf8/get-char-validated 3230s # Start of validate tests 3230s ok 2 /utf8/validate/0 3230s ok 3 /utf8/validate/1 3230s ok 4 /utf8/validate/2 3230s ok 5 /utf8/validate/3 3230s ok 6 /utf8/validate/4 3230s ok 7 /utf8/validate/5 3230s ok 8 /utf8/validate/6 3230s ok 9 /utf8/validate/7 3230s ok 10 /utf8/validate/8 3230s ok 11 /utf8/validate/9 3230s ok 12 /utf8/validate/10 3230s ok 13 /utf8/validate/11 3230s ok 14 /utf8/validate/12 3230s ok 15 /utf8/validate/13 3230s ok 16 /utf8/validate/14 3230s ok 17 /utf8/validate/15 3230s ok 18 /utf8/validate/16 3230s ok 19 /utf8/validate/17 3230s ok 20 /utf8/validate/18 3230s ok 21 /utf8/validate/19 3230s ok 22 /utf8/validate/20 3230s ok 23 /utf8/validate/21 3230s ok 24 /utf8/validate/22 3230s ok 25 /utf8/validate/23 3230s ok 26 /utf8/validate/24 3230s ok 27 /utf8/validate/25 3230s ok 28 /utf8/validate/26 3230s ok 29 /utf8/validate/27 3230s ok 30 /utf8/validate/28 3230s ok 31 /utf8/validate/29 3230s ok 32 /utf8/validate/30 3230s ok 33 /utf8/validate/31 3230s ok 34 /utf8/validate/32 3230s ok 35 /utf8/validate/33 3230s ok 36 /utf8/validate/34 3230s ok 37 /utf8/validate/35 3230s ok 38 /utf8/validate/36 3230s ok 39 /utf8/validate/37 3230s ok 40 /utf8/validate/38 3230s ok 41 /utf8/validate/39 3230s ok 42 /utf8/validate/40 3230s ok 43 /utf8/validate/41 3230s ok 44 /utf8/validate/42 3230s ok 45 /utf8/validate/43 3230s ok 46 /utf8/validate/44 3230s ok 47 /utf8/validate/45 3230s ok 48 /utf8/validate/46 3230s ok 49 /utf8/validate/47 3230s ok 50 /utf8/validate/48 3230s ok 51 /utf8/validate/49 3230s ok 52 /utf8/validate/50 3230s ok 53 /utf8/validate/51 3230s ok 54 /utf8/validate/52 3230s ok 55 /utf8/validate/53 3230s ok 56 /utf8/validate/54 3230s ok 57 /utf8/validate/55 3230s ok 58 /utf8/validate/56 3230s ok 59 /utf8/validate/57 3230s ok 60 /utf8/validate/58 3230s ok 61 /utf8/validate/59 3230s ok 62 /utf8/validate/60 3230s ok 63 /utf8/validate/61 3230s ok 64 /utf8/validate/62 3230s ok 65 /utf8/validate/63 3230s ok 66 /utf8/validate/64 3230s ok 67 /utf8/validate/65 3230s ok 68 /utf8/validate/66 3230s ok 69 /utf8/validate/67 3230s ok 70 /utf8/validate/68 3230s ok 71 /utf8/validate/69 3230s ok 72 /utf8/validate/70 3230s ok 73 /utf8/validate/71 3230s ok 74 /utf8/validate/72 3230s ok 75 /utf8/validate/73 3230s ok 76 /utf8/validate/74 3230s ok 77 /utf8/validate/75 3230s ok 78 /utf8/validate/76 3230s ok 79 /utf8/validate/77 3230s ok 80 /utf8/validate/78 3230s ok 81 /utf8/validate/79 3230s ok 82 /utf8/validate/80 3230s ok 83 /utf8/validate/81 3230s ok 84 /utf8/validate/82 3230s ok 85 /utf8/validate/83 3230s ok 86 /utf8/validate/84 3230s ok 87 /utf8/validate/85 3230s ok 88 /utf8/validate/86 3230s ok 89 /utf8/validate/87 3230s ok 90 /utf8/validate/88 3230s ok 91 /utf8/validate/89 3230s ok 92 /utf8/validate/90 3230s ok 93 /utf8/validate/91 3230s ok 94 /utf8/validate/92 3230s ok 95 /utf8/validate/93 3230s ok 96 /utf8/validate/94 3230s ok 97 /utf8/validate/95 3230s ok 98 /utf8/validate/96 3230s ok 99 /utf8/validate/97 3230s ok 100 /utf8/validate/98 3230s ok 101 /utf8/validate/99 3230s ok 102 /utf8/validate/100 3230s ok 103 /utf8/validate/101 3230s ok 104 /utf8/validate/102 3230s ok 105 /utf8/validate/103 3230s ok 106 /utf8/validate/104 3230s ok 107 /utf8/validate/105 3230s ok 108 /utf8/validate/106 3230s ok 109 /utf8/validate/107 3230s ok 110 /utf8/validate/108 3230s ok 111 /utf8/validate/109 3230s ok 112 /utf8/validate/110 3230s ok 113 /utf8/validate/111 3230s ok 114 /utf8/validate/112 3230s ok 115 /utf8/validate/113 3230s ok 116 /utf8/validate/114 3230s ok 117 /utf8/validate/115 3230s ok 118 /utf8/validate/116 3230s ok 119 /utf8/validate/117 3230s ok 120 /utf8/validate/118 3230s ok 121 /utf8/validate/119 3230s ok 122 /utf8/validate/120 3230s ok 123 /utf8/validate/121 3230s ok 124 /utf8/validate/122 3230s ok 125 /utf8/validate/123 3230s ok 126 /utf8/validate/124 3230s ok 127 /utf8/validate/125 3230s ok 128 /utf8/validate/126 3230s ok 129 /utf8/validate/127 3230s ok 130 /utf8/validate/128 3230s ok 131 /utf8/validate/129 3230s ok 132 /utf8/validate/130 3230s ok 133 /utf8/validate/131 3230s ok 134 /utf8/validate/132 3230s ok 135 /utf8/validate/133 3230s ok 136 /utf8/validate/134 3230s ok 137 /utf8/validate/135 3230s ok 138 /utf8/validate/136 3230s ok 139 /utf8/validate/137 3230s ok 140 /utf8/validate/138 3230s ok 141 /utf8/validate/139 3230s ok 142 /utf8/validate/140 3230s ok 143 /utf8/validate/141 3230s ok 144 /utf8/validate/142 3230s ok 145 /utf8/validate/143 3230s ok 146 /utf8/validate/144 3230s ok 147 /utf8/validate/145 3230s ok 148 /utf8/validate/146 3230s ok 149 /utf8/validate/147 3230s ok 150 /utf8/validate/148 3230s ok 151 /utf8/validate/149 3230s ok 152 /utf8/validate/150 3230s ok 153 /utf8/validate/151 3230s ok 154 /utf8/validate/152 3230s ok 155 /utf8/validate/153 3230s ok 156 /utf8/validate/154 3230s ok 157 /utf8/validate/155 3230s ok 158 /utf8/validate/156 3230s ok 159 /utf8/validate/157 3230s ok 160 /utf8/validate/158 3230s ok 161 /utf8/validate/159 3230s ok 162 /utf8/validate/160 3230s ok 163 /utf8/validate/161 3230s ok 164 /utf8/validate/162 3230s ok 165 /utf8/validate/163 3230s ok 166 /utf8/validate/164 3230s ok 167 /utf8/validate/165 3230s ok 168 /utf8/validate/166 3230s ok 169 /utf8/validate/167 3230s ok 170 /utf8/validate/168 3230s ok 171 /utf8/validate/169 3230s ok 172 /utf8/validate/170 3230s ok 173 /utf8/validate/171 3230s ok 174 /utf8/validate/172 3230s ok 175 /utf8/validate/173 3230s ok 176 /utf8/validate/174 3230s ok 177 /utf8/validate/175 3230s ok 178 /utf8/validate/176 3230s ok 179 /utf8/validate/177 3230s ok 180 /utf8/validate/178 3230s ok 181 /utf8/validate/179 3230s ok 182 /utf8/validate/180 3230s ok 183 /utf8/validate/181 3230s ok 184 /utf8/validate/182 3230s ok 185 /utf8/validate/183 3230s ok 186 /utf8/validate/184 3230s ok 187 /utf8/validate/185 3230s ok 188 /utf8/validate/186 3230s ok 189 /utf8/validate/187 3230s ok 190 /utf8/validate/188 3230s ok 191 /utf8/validate/189 3230s ok 192 /utf8/validate/190 3230s ok 193 /utf8/validate/191 3230s ok 194 /utf8/validate/192 3230s ok 195 /utf8/validate/193 3230s ok 196 /utf8/validate/194 3230s ok 197 /utf8/validate/195 3230s ok 198 /utf8/validate/196 3230s ok 199 /utf8/validate/197 3230s ok 200 /utf8/validate/198 3230s ok 201 /utf8/validate/199 3230s ok 202 /utf8/validate/200 3230s ok 203 /utf8/validate/201 3230s ok 204 /utf8/validate/202 3230s ok 205 /utf8/validate/203 3230s ok 206 /utf8/validate/204 3230s ok 207 /utf8/validate/205 3230s ok 208 /utf8/validate/206 3230s ok 209 /utf8/validate/207 3230s ok 210 /utf8/validate/208 3230s ok 211 /utf8/validate/209 3230s ok 212 /utf8/validate/210 3230s ok 213 /utf8/validate/211 3230s ok 214 /utf8/validate/212 3230s ok 215 /utf8/validate/213 3230s ok 216 /utf8/validate/214 3230s ok 217 /utf8/validate/215 3230s ok 218 /utf8/validate/216 3230s ok 219 /utf8/validate/217 3230s ok 220 /utf8/validate/218 3230s ok 221 /utf8/validate/219 3230s ok 222 /utf8/validate/220 3230s ok 223 /utf8/validate/221 3230s ok 224 /utf8/validate/222 3230s ok 225 /utf8/validate/223 3230s ok 226 /utf8/validate/224 3230s ok 227 /utf8/validate/225 3230s ok 228 /utf8/validate/226 3230s ok 229 /utf8/validate/227 3230s ok 230 /utf8/validate/228 3230s ok 231 /utf8/validate/229 3230s ok 232 /utf8/validate/230 3230s ok 233 /utf8/validate/231 3230s ok 234 /utf8/validate/232 3230s ok 235 /utf8/validate/233 3230s ok 236 /utf8/validate/234 3230s ok 237 /utf8/validate/235 3230s ok 238 /utf8/validate/236 3230s # End of validate tests 3230s # End of utf8 tests 3230s ok - glib/utf8-validate.test 3230s # Running test: glib/mutex.test 3230s TAP version 14 3230s # random seed: R02Se9d8f36be5f42959d279a35e5ebc1238 3230s 1..17 3230s # Start of thread tests 3230s ok 1 /thread/mutex1 3230s ok 2 /thread/mutex2 3230s ok 3 /thread/mutex3 3230s ok 4 /thread/mutex4 3234s # Executing: glib/mutex.test 3239s # Executing: glib/mutex.test 3244s # Executing: glib/mutex.test 3249s # Executing: glib/mutex.test 3254s # Executing: glib/mutex.test 3259s # Executing: glib/mutex.test 3262s ok 5 /thread/mutex5 3262s # slow test /thread/mutex5 executed in 31.74 secs 3262s # Start of mutex tests 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3262s # /thread/mutex/errno summary: Validates that errno is not touched upon return 3262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 3264s # Executing: glib/mutex.test 3265s ok 6 /thread/mutex/errno 3265s # slow test /thread/mutex/errno executed in 2.38 secs 3265s # Start of perf tests 3265s # max perf: 0.020408 mips 3265s ok 7 /thread/mutex/perf/uncontended 3265s # Start of contended tests 3265s # max perf: 0.666667 mips 3265s ok 8 /thread/mutex/perf/contended/1 3265s # max perf: 0.011494 mips 3265s ok 9 /thread/mutex/perf/contended/2 3265s # max perf: 0.025478 mips 3265s ok 10 /thread/mutex/perf/contended/3 3265s # max perf: 1.666667 mips 3265s ok 11 /thread/mutex/perf/contended/4 3265s # max perf: 2.000000 mips 3265s ok 12 /thread/mutex/perf/contended/5 3265s # max perf: 0.007856 mips 3265s ok 13 /thread/mutex/perf/contended/6 3265s # max perf: 0.012422 mips 3265s ok 14 /thread/mutex/perf/contended/7 3265s # max perf: 0.642857 mips 3265s ok 15 /thread/mutex/perf/contended/8 3265s # max perf: 0.769231 mips 3265s ok 16 /thread/mutex/perf/contended/9 3265s # max perf: 1.571429 mips 3265s ok 17 /thread/mutex/perf/contended/10 3265s # End of contended tests 3265s # End of perf tests 3265s # End of mutex tests 3265s # End of thread tests 3265s ok - glib/mutex.test 3265s # Running test: glib/gdbus-names.test 3265s TAP version 14 3265s # random seed: R02Se3eaf03bfd4bf86975ee799df57ab7fc 3265s 1..10 3265s # Start of gdbus tests 3265s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_2N1X52/gdbus/validate-names/.dirs/home 3265s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_2N1X52/gdbus/validate-names/.dirs/cache 3265s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_2N1X52/gdbus/validate-names/.dirs/system-config1:/tmp/test_gdbus-names_2N1X52/gdbus/validate-names/.dirs/system-config2 3265s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_2N1X52/gdbus/validate-names/.dirs/config 3265s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_2N1X52/gdbus/validate-names/.dirs/system-data1:/tmp/test_gdbus-names_2N1X52/gdbus/validate-names/.dirs/system-data2 3265s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_2N1X52/gdbus/validate-names/.dirs/data 3265s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_2N1X52/gdbus/validate-names/.dirs/state 3265s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_2N1X52/gdbus/validate-names/.dirs/runtime 3265s ok 1 /gdbus/validate-names 3265s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_2N1X52/gdbus/bus-own-name/.dirs/home 3265s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_2N1X52/gdbus/bus-own-name/.dirs/cache 3265s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_2N1X52/gdbus/bus-own-name/.dirs/system-config1:/tmp/test_gdbus-names_2N1X52/gdbus/bus-own-name/.dirs/system-config2 3265s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_2N1X52/gdbus/bus-own-name/.dirs/config 3265s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_2N1X52/gdbus/bus-own-name/.dirs/system-data1:/tmp/test_gdbus-names_2N1X52/gdbus/bus-own-name/.dirs/system-data2 3265s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_2N1X52/gdbus/bus-own-name/.dirs/data 3265s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_2N1X52/gdbus/bus-own-name/.dirs/state 3265s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_2N1X52/gdbus/bus-own-name/.dirs/runtime 3265s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3265s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3265s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3265s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3265s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3265s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3265s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3265s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3265s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3265s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3265s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3265s ok 2 /gdbus/bus-own-name 3265s # slow test /gdbus/bus-own-name executed in 0.64 secs 3265s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name/.dirs/home 3265s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name/.dirs/cache 3265s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name/.dirs/system-config1:/tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name/.dirs/system-config2 3265s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name/.dirs/config 3265s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name/.dirs/system-data1:/tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name/.dirs/system-data2 3265s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name/.dirs/data 3265s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name/.dirs/state 3265s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name/.dirs/runtime 3266s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3266s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3266s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3266s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3266s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3266s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3266s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3266s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3266s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3266s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3266s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3266s ok 3 /gdbus/bus-watch-name 3266s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name-auto-start/.dirs/home 3266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name-auto-start/.dirs/cache 3266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name-auto-start/.dirs/system-config1:/tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name-auto-start/.dirs/system-config2 3266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name-auto-start/.dirs/config 3266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name-auto-start/.dirs/system-data1:/tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name-auto-start/.dirs/system-data2 3266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name-auto-start/.dirs/data 3266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name-auto-start/.dirs/state 3266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name-auto-start/.dirs/runtime 3266s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3266s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3266s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3266s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3266s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3266s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3266s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3266s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3266s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3266s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3266s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3266s ok 4 /gdbus/bus-watch-name-auto-start 3266s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name-auto-start-service-exist/.dirs/home 3266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name-auto-start-service-exist/.dirs/cache 3266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-config1:/tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-config2 3266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name-auto-start-service-exist/.dirs/config 3266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-data1:/tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-data2 3266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name-auto-start-service-exist/.dirs/data 3266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name-auto-start-service-exist/.dirs/state 3266s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name-auto-start-service-exist/.dirs/runtime 3266s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3266s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3266s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3266s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3266s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3266s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3266s dbus-daemon[5124]: [session uid=1000 pid=5124 pidfd=4] Activating service name='org.gtk.GDBus.FakeService' requested by ':1.0' (uid=1000 pid=5115 comm="/usr/libexec/installed-tests/glib/gdbus-names" label="unconfined") 3266s # Acquired a message bus connection 3266s dbus-daemon[5124]: [session uid=1000 pid=5124 pidfd=4] Successfully activated service 'org.gtk.GDBus.FakeService' 3266s # Acquired the name org.gtk.GDBus.FakeService 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s ok 5 /gdbus/bus-watch-name-auto-start-service-exist 3267s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name-closures/.dirs/home 3267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name-closures/.dirs/cache 3267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name-closures/.dirs/system-config1:/tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name-closures/.dirs/system-config2 3267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name-closures/.dirs/config 3267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name-closures/.dirs/system-data1:/tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name-closures/.dirs/system-data2 3267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name-closures/.dirs/data 3267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name-closures/.dirs/state 3267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name-closures/.dirs/runtime 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s ok 6 /gdbus/bus-watch-name-closures 3267s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name-closures-auto-start/.dirs/home 3267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name-closures-auto-start/.dirs/cache 3267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name-closures-auto-start/.dirs/system-config1:/tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name-closures-auto-start/.dirs/system-config2 3267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name-closures-auto-start/.dirs/config 3267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name-closures-auto-start/.dirs/system-data1:/tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name-closures-auto-start/.dirs/system-data2 3267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name-closures-auto-start/.dirs/data 3267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name-closures-auto-start/.dirs/state 3267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-name-closures-auto-start/.dirs/runtime 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s ok 7 /gdbus/bus-watch-name-closures-auto-start 3267s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-different-context/.dirs/home 3267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-different-context/.dirs/cache 3267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-different-context/.dirs/system-config1:/tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-different-context/.dirs/system-config2 3267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-different-context/.dirs/config 3267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-different-context/.dirs/system-data1:/tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-different-context/.dirs/system-data2 3267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-different-context/.dirs/data 3267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-different-context/.dirs/state 3267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_2N1X52/gdbus/bus-watch-different-context/.dirs/runtime 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s ok 8 /gdbus/bus-watch-different-context 3267s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_2N1X52/gdbus/bus-unwatch-early/.dirs/home 3267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_2N1X52/gdbus/bus-unwatch-early/.dirs/cache 3267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_2N1X52/gdbus/bus-unwatch-early/.dirs/system-config1:/tmp/test_gdbus-names_2N1X52/gdbus/bus-unwatch-early/.dirs/system-config2 3267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_2N1X52/gdbus/bus-unwatch-early/.dirs/config 3267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_2N1X52/gdbus/bus-unwatch-early/.dirs/system-data1:/tmp/test_gdbus-names_2N1X52/gdbus/bus-unwatch-early/.dirs/system-data2 3267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_2N1X52/gdbus/bus-unwatch-early/.dirs/data 3267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_2N1X52/gdbus/bus-unwatch-early/.dirs/state 3267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_2N1X52/gdbus/bus-unwatch-early/.dirs/runtime 3267s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/604 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3267s ok 9 /gdbus/bus-unwatch-early 3267s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_2N1X52/gdbus/escape-object-path/.dirs/home 3267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_2N1X52/gdbus/escape-object-path/.dirs/cache 3267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_2N1X52/gdbus/escape-object-path/.dirs/system-config1:/tmp/test_gdbus-names_2N1X52/gdbus/escape-object-path/.dirs/system-config2 3267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_2N1X52/gdbus/escape-object-path/.dirs/config 3267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_2N1X52/gdbus/escape-object-path/.dirs/system-data1:/tmp/test_gdbus-names_2N1X52/gdbus/escape-object-path/.dirs/system-data2 3267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_2N1X52/gdbus/escape-object-path/.dirs/data 3267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_2N1X52/gdbus/escape-object-path/.dirs/state 3267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_2N1X52/gdbus/escape-object-path/.dirs/runtime 3267s ok 10 /gdbus/escape-object-path 3267s # End of gdbus tests 3267s ok - glib/gdbus-names.test 3267s # Running test: glib/properties-refcount3.test 3268s TAP version 14 3268s # random seed: R02S6460a9f68485bd9e8d052ce1387e8f35 3268s 1..1 3268s # Start of gobject tests 3268s # Start of refcount tests 3269s # Executing: glib/properties-refcount3.test 3274s # Executing: glib/properties-refcount3.test 3279s # Executing: glib/properties-refcount3.test 3284s # Executing: glib/properties-refcount3.test 3289s # Executing: glib/properties-refcount3.test 3294s # Executing: glib/properties-refcount3.test 3298s # 3298s # stopping 3298s # 3298s # stopped 3298s # 3298s # 5622375 179630 3298s # 3298s ok 1 /gobject/refcount/properties-3 3298s # slow test /gobject/refcount/properties-3 executed in 30.03 secs 3298s # End of refcount tests 3298s # End of gobject tests 3298s ok - glib/properties-refcount3.test 3298s # Running test: glib/data-input-stream.test 3298s TAP version 14 3298s # random seed: R02S02592c83d08271b14acfdde129bc498c 3298s 1..10 3298s # Start of data-input-stream tests 3298s ok 1 /data-input-stream/basic 3298s ok 2 /data-input-stream/read-lines-LF 3298s ok 3 /data-input-stream/read-lines-LF-valid-utf8 3298s ok 4 /data-input-stream/read-lines-LF-invalid-utf8 3298s ok 5 /data-input-stream/read-lines-CR 3298s ok 6 /data-input-stream/read-lines-CR-LF 3298s ok 7 /data-input-stream/read-lines-any 3298s ok 8 /data-input-stream/read-until 3298s # Test vector 0: part1 # part2 $ part3 ? part4 ? and #$?^ 3298s # Test vector 1: {"key": "value"}? and ? 3298s ok 9 /data-input-stream/read-upto 3299s # Executing: glib/data-input-stream.test 3299s ok 10 /data-input-stream/read-int 3299s # slow test /data-input-stream/read-int executed in 1.36 secs 3299s # End of data-input-stream tests 3299s ok - glib/data-input-stream.test 3299s # Running test: glib/gdbus-sasl.test 3299s TAP version 14 3299s # random seed: R02Se91d8303ed6398d29d8586d31e66780d 3299s 1..1 3299s # Start of gdbus tests 3299s # Start of sasl tests 3299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-sasl_QT1252/gdbus/sasl/server/.dirs/home 3299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-sasl_QT1252/gdbus/sasl/server/.dirs/cache 3299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-sasl_QT1252/gdbus/sasl/server/.dirs/system-config1:/tmp/test_gdbus-sasl_QT1252/gdbus/sasl/server/.dirs/system-config2 3299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-sasl_QT1252/gdbus/sasl/server/.dirs/config 3299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-sasl_QT1252/gdbus/sasl/server/.dirs/system-data1:/tmp/test_gdbus-sasl_QT1252/gdbus/sasl/server/.dirs/system-data2 3299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-sasl_QT1252/gdbus/sasl/server/.dirs/data 3299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-sasl_QT1252/gdbus/sasl/server/.dirs/state 3299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-sasl_QT1252/gdbus/sasl/server/.dirs/runtime 3300s # New handshake: EXTERNAL with incorrect initial response 3300s # C:“AUTH EXTERNAL 30” 3300s # Expect: /^REJECTED.*$/ 3300s # S:“REJECTED EXTERNAL DBUS_COOKIE_SHA1” 3300s # New handshake: EXTERNAL without initial response, failing to authenticate 3300s # C:“AUTH EXTERNAL” 3300s # Expect: /^DATA$/ 3300s # S:“DATA” 3300s # C:“DATA 30” 3300s # Expect: /^REJECTED.*$/ 3300s # S:“REJECTED EXTERNAL DBUS_COOKIE_SHA1” 3300s # New handshake: EXTERNAL with initial response 3300s # C:“AUTH EXTERNAL 31303030” 3300s # Expect: /^OK [0-9a-f]+$/ 3300s # S:“OK aeb3b70ed660d535aaede88f6814cdc7” 3300s # New handshake: EXTERNAL without initial response 3300s # C:“AUTH EXTERNAL” 3300s # Expect: /^DATA$/ 3300s # S:“DATA” 3300s # C:“DATA 31303030” 3300s # Expect: /^OK [0-9a-f]+$/ 3300s # S:“OK aeb3b70ed660d535aaede88f6814cdc7” 3300s # New handshake: EXTERNAL with empty authorization identity 3300s # C:“AUTH EXTERNAL” 3300s # Expect: /^DATA$/ 3300s # S:“DATA” 3300s # C:“DATA” 3300s # Expect: /^OK [0-9a-f]+$/ 3300s # S:“OK aeb3b70ed660d535aaede88f6814cdc7” 3300s # New handshake: EXTERNAL with empty authorization identity and whitespace 3300s # C:“AUTH EXTERNAL” 3300s # Expect: /^DATA$/ 3300s # S:“DATA” 3300s # C:“DATA ” 3300s # Expect: /^OK [0-9a-f]+$/ 3300s # S:“OK aeb3b70ed660d535aaede88f6814cdc7” 3300s ok 1 /gdbus/sasl/server 3300s # End of sasl tests 3300s # End of gdbus tests 3300s ok - glib/gdbus-sasl.test 3300s # Running test: glib/markup-parse.test 3300s TAP version 14 3300s # random seed: R02S90bd524b942ee16961ff36cb674c9002 3300s 1..71 3300s # Start of markup tests 3300s # Start of parse tests 3300s ok 1 /markup/parse/fail-51.gmarkup 3300s ok 2 /markup/parse/fail-6.gmarkup 3300s ok 3 /markup/parse/valid-15.gmarkup 3300s ok 4 /markup/parse/fail-48.gmarkup 3300s ok 5 /markup/parse/valid-2.gmarkup 3300s ok 6 /markup/parse/fail-23.gmarkup 3300s ok 7 /markup/parse/valid-5.gmarkup 3300s ok 8 /markup/parse/fail-14.gmarkup 3300s ok 9 /markup/parse/fail-27.gmarkup 3300s ok 10 /markup/parse/fail-15.gmarkup 3300s ok 11 /markup/parse/valid-8.gmarkup 3300s ok 12 /markup/parse/fail-33.gmarkup 3300s ok 13 /markup/parse/fail-34.gmarkup 3300s ok 14 /markup/parse/fail-17.gmarkup 3300s ok 15 /markup/parse/fail-50.gmarkup 3300s ok 16 /markup/parse/fail-32.gmarkup 3300s ok 17 /markup/parse/fail-46.gmarkup 3300s ok 18 /markup/parse/fail-36.gmarkup 3300s ok 19 /markup/parse/fail-39.gmarkup 3300s ok 20 /markup/parse/valid-4.gmarkup 3300s ok 21 /markup/parse/fail-40.gmarkup 3300s ok 22 /markup/parse/fail-54.gmarkup 3300s ok 23 /markup/parse/fail-9.gmarkup 3300s ok 24 /markup/parse/fail-31.gmarkup 3300s ok 25 /markup/parse/fail-28.gmarkup 3300s ok 26 /markup/parse/valid-6.gmarkup 3300s ok 27 /markup/parse/valid-13.gmarkup 3300s ok 28 /markup/parse/valid-16.gmarkup 3300s ok 29 /markup/parse/fail-5.gmarkup 3300s ok 30 /markup/parse/fail-7.gmarkup 3300s ok 31 /markup/parse/valid-17.gmarkup 3300s ok 32 /markup/parse/fail-26.gmarkup 3300s ok 33 /markup/parse/fail-37.gmarkup 3300s ok 34 /markup/parse/valid-10.gmarkup 3300s ok 35 /markup/parse/fail-2.gmarkup 3300s ok 36 /markup/parse/fail-8.gmarkup 3300s ok 37 /markup/parse/fail-21.gmarkup 3300s ok 38 /markup/parse/fail-30.gmarkup 3300s ok 39 /markup/parse/valid-7.gmarkup 3300s ok 40 /markup/parse/fail-25.gmarkup 3300s ok 41 /markup/parse/fail-16.gmarkup 3300s ok 42 /markup/parse/valid-1.gmarkup 3300s ok 43 /markup/parse/fail-43.gmarkup 3300s ok 44 /markup/parse/fail-20.gmarkup 3300s ok 45 /markup/parse/fail-41.gmarkup 3300s ok 46 /markup/parse/fail-38.gmarkup 3300s ok 47 /markup/parse/fail-10.gmarkup 3300s ok 48 /markup/parse/fail-22.gmarkup 3300s ok 49 /markup/parse/fail-19.gmarkup 3300s ok 50 /markup/parse/fail-35.gmarkup 3300s ok 51 /markup/parse/fail-52.gmarkup 3300s ok 52 /markup/parse/fail-24.gmarkup 3300s ok 53 /markup/parse/fail-45.gmarkup 3300s ok 54 /markup/parse/valid-12.gmarkup 3300s ok 55 /markup/parse/fail-29.gmarkup 3300s ok 56 /markup/parse/fail-49.gmarkup 3300s ok 57 /markup/parse/valid-3.gmarkup 3300s ok 58 /markup/parse/fail-3.gmarkup 3300s ok 59 /markup/parse/fail-11.gmarkup 3300s ok 60 /markup/parse/valid-14.gmarkup 3300s ok 61 /markup/parse/fail-1.gmarkup 3300s ok 62 /markup/parse/fail-53.gmarkup 3300s ok 63 /markup/parse/fail-13.gmarkup 3300s ok 64 /markup/parse/valid-9.gmarkup 3300s ok 65 /markup/parse/fail-4.gmarkup 3300s ok 66 /markup/parse/fail-47.gmarkup 3300s ok 67 /markup/parse/fail-12.gmarkup 3300s ok 68 /markup/parse/fail-18.gmarkup 3300s ok 69 /markup/parse/fail-44.gmarkup 3300s ok 70 /markup/parse/valid-11.gmarkup 3300s ok 71 /markup/parse/fail-42.gmarkup 3300s # End of parse tests 3300s # End of markup tests 3300s ok - glib/markup-parse.test 3300s # Running test: glib/basics-gobject.test 3300s TAP version 14 3300s # random seed: R02S1461e03d077b23682899ae743b536151 3300s 1..1 3300s # Start of gobject tests 3300s # private data during initialization: 54321 == 54321 3300s # MAIN: emit test-signal: 3300s # ::test_signal default_handler called 3300s # ::test_signal default_handler called 3300s # ::test_signal default_handler called 3300s # signal return: "<default_handler><default_handler><default_handler>" 3300s # MAIN: call iface print-string on test and derived object: 3300s # Iface-FOO: "iface-string-from-test-type" from 0x5555d5d27250 3300s # Iface-BAR: "iface-string-from-derived-type" from 0x5555d5d1c820 3300s # chaining: 3300s # Iface-FOO: "iface-string-from-derived-type" from 0x5555d5d1c820 3300s # private data after initialization: 54321 == 54321 3300s ok 1 /gobject/basics 3300s # End of gobject tests 3300s ok - glib/basics-gobject.test 3300s # Running test: glib/credentials.test 3300s TAP version 14 3300s # random seed: R02S681518275689ad91eeee49751be39223 3300s 1..1 3300s # Start of credentials tests 3300s # GCredentials:linux-ucred:pid=5157,uid=1000,gid=1000 3300s # GCredentials:linux-ucred:pid=5157,uid=0,gid=1000 3300s ok 1 /credentials/basic 3300s # End of credentials tests 3300s ok - glib/credentials.test 3300s # Running test: glib/g-file.test 3300s TAP version 14 3300s # random seed: R02S268c8db72974f2df39225f500c6dd35b 3300s 1..8 3300s # Start of g-file tests 3300s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 3300s ok 1 /g-file/test_g_file_new_null 3300s ok 2 /g-file/test_g_file_new_for_path 3300s ok 3 /g-file/test_g_file_new_for_uri 3300s ok 4 /g-file/test_g_file_dup 3300s ok 5 /g-file/test_g_file_get_parse_name_utf8 3300s file:///tmp/test-tmp-glib_g-file.test-GY3V52 3300s file:///tmp 3300s file:///tmp 3300s file:////UTF-8%20p%C5%99%C3%ADli%C5%A1%20%C5%BElu%C5%A5ou%C4%8Dk%C3%BD%20k%C5%AF%C5%88 3300s file:///UTF-8%20p%C5%99%C3%ADli%C5%A1%20%C5%BElu%C5%A5ou%C4%8Dk%C3%BD%20k%C5%AF%C5%88 3300s ok 6 /g-file/test_g_file_new_for_commandline_arg 3300s /dir1 /dir1/dir2/dir3/ 3300s /dir1/ /dir1/dir2/dir3/ 3300s /dir1 /dir1/dir2/dir3 3300s /dir1/ /dir1/dir2/dir3 3300s /tmp/ /something/ 3300s /dir1/dir2 /dir1/ 3300s //dir1/new //dir1/new/dir2/dir3 3300s /dir/UTF-8 p??li? ?lu?ou?k? k?? /dir/UTF-8 p??li? ?lu?ou?k? k??/dir2 3300s file:///dir1 file:///dir1/dir2/dir3/ 3300s file:///dir1/ file:///dir1/dir2/dir3/ 3300s file:///dir1 file:///dir1/dir2/dir3 3300s file:///dir1/ file:///dir1/dir2/dir3 3300s file:///tmp/ file:///something/ 3300s file:///dir1/dir2 file:///dir1/ 3300s file:////dir1/new file:////dir1/new/dir2/dir3 3300s 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 3300s ok 7 /g-file/test_g_file_has_prefix 3300s ok 8 /g-file/test_g_file_get_parent_child 3300s # End of g-file tests 3300s ok - glib/g-file.test 3300s # Running test: glib/type.test 3300s TAP version 14 3300s # random seed: R02S94d6b67302b314fd38ffa9edf269296a 3300s 1..6 3300s # Start of type tests 3300s ok 1 /type/registration-serial 3300s ok 2 /type/interface-prerequisite 3300s ok 3 /type/interface-check 3300s ok 4 /type/next-base 3300s ok 5 /type/is-a 3300s # Invalid types can?t be queried. 3300s # Unclassed types can?t be queried. 3300s ok 6 /type/query 3300s # End of type tests 3300s ok - glib/type.test 3300s # Running test: glib/guuid.test 3300s TAP version 14 3300s # random seed: R02S73c730dfecb748cb3e11c5fc06a08ed2 3300s 1..2 3300s # Start of uuid tests 3300s ok 1 /uuid/string 3300s ok 2 /uuid/random 3300s # End of uuid tests 3300s ok - glib/guuid.test 3301s # Running test: glib/gdatetime.test 3301s TAP version 14 3301s # random seed: R02S0c9e8805b7c3133e4d813eab970234cc 3301s 1..68 3301s # Start of GDateTime tests 3301s # Bug Reference: http://bugzilla.gnome.org/702674 3301s ok 1 /GDateTime/invalid 3301s ok 2 /GDateTime/add_days 3301s ok 3 /GDateTime/add_full 3301s ok 4 /GDateTime/add_hours 3301s ok 5 /GDateTime/add_minutes 3301s ok 6 /GDateTime/add_months 3301s ok 7 /GDateTime/add_seconds 3301s ok 8 /GDateTime/add_weeks 3301s ok 9 /GDateTime/add_years 3301s ok 10 /GDateTime/compare 3301s ok 11 /GDateTime/diff 3301s ok 12 /GDateTime/equal 3301s ok 13 /GDateTime/get_day_of_week 3301s ok 14 /GDateTime/get_day_of_month 3301s ok 15 /GDateTime/get_day_of_year 3301s ok 16 /GDateTime/get_hour 3301s ok 17 /GDateTime/get_microsecond 3301s ok 18 /GDateTime/get_minute 3301s ok 19 /GDateTime/get_month 3301s ok 20 /GDateTime/get_second 3301s ok 21 /GDateTime/get_utc_offset 3301s ok 22 /GDateTime/get_year 3301s ok 23 /GDateTime/hash 3301s ok 24 /GDateTime/new_from_unix 3301s ok 25 /GDateTime/new_from_unix_utc 3301s ok 26 /GDateTime/new_from_timeval 3301s ok 27 /GDateTime/new_from_timeval_utc 3301s ok 28 /GDateTime/new_from_iso8601 3301s ok 29 /GDateTime/new_full 3301s ok 30 /GDateTime/now 3301s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2215 3301s ok 31 /GDateTime/test-6-days-until-end-of-the-month 3301s # %a -> expected: Sat 3301s # %a -> actual: Sat 3301s # %A -> expected: Saturday 3301s # %A -> actual: Saturday 3301s # %b -> expected: Oct 3301s # %b -> actual: Oct 3301s # %B -> expected: October 3301s # %B -> actual: October 3301s # %d -> expected: 24 3301s # %d -> actual: 24 3301s # %d -> expected: 01 3301s # %d -> actual: 01 3301s # %e -> expected: 24 3301s # %e -> actual: 24 3301s # %e -> expected: 1 3301s # %e -> actual: 1 3301s # %f -> expected: 001000 3301s # %f -> actual: 001000 3301s # %h -> expected: Oct 3301s # %h -> actual: Oct 3301s # %H -> expected: 00 3301s # %H -> actual: 00 3301s # %H -> expected: 15 3301s # %H -> actual: 15 3301s # %I -> expected: 12 3301s # %I -> actual: 12 3301s # %I -> expected: 12 3301s # %I -> actual: 12 3301s # %I -> expected: 03 3301s # %I -> actual: 03 3301s # %j -> expected: 297 3301s # %j -> actual: 297 3301s # %k -> expected: 0 3301s # %k -> actual: 0 3301s # %k -> expected: 13 3301s # %k -> actual: 13 3301s # %l -> expected: 12 3301s # %l -> actual: 12 3301s # %I -> expected: 12 3301s # %I -> actual: 12 3301s # %l -> expected: 1 3301s # %l -> actual: 1 3301s # %l -> expected: 10 3301s # %l -> actual: 10 3301s # %m -> expected: 10 3301s # %m -> actual: 10 3301s # %M -> expected: 00 3301s # %M -> actual: 00 3301s # %p -> expected: AM 3301s # %p -> actual: AM 3301s # %p -> expected: PM 3301s # %p -> actual: PM 3301s # %P -> expected: am 3301s # %P -> actual: am 3301s # %P -> expected: pm 3301s # %P -> actual: pm 3301s # %r -> expected: 12:00:00 AM 3301s # %r -> actual: 12:00:00 AM 3301s # %r -> expected: 01:13:13 PM 3301s # %r -> actual: 01:13:13 PM 3301s # %R -> expected: 00:00 3301s # %R -> actual: 00:00 3301s # %R -> expected: 13:13 3301s # %R -> actual: 13:13 3301s # %S -> expected: 00 3301s # %S -> actual: 00 3301s # %t -> expected: 3301s # %t -> actual: 3301s # %u -> expected: 6 3301s # %u -> actual: 6 3301s # %x -> expected: 10/24/09 3301s # %x -> actual: 10/24/09 3301s # %X -> expected: 00:00:00 3301s # %X -> actual: 00:00:00 3301s # %X -> expected: 13:14:15 3301s # %X -> actual: 13:14:15 3301s # %y -> expected: 09 3301s # %y -> actual: 09 3301s # %Y -> expected: 2009 3301s # %Y -> actual: 2009 3301s # %% -> expected: % 3301s # %% -> actual: % 3301s # % -> expected: 3301s # % -> actual: 3301s # %9 -> expected: (null) 3301s # %9 -> actual: (null) 3301s # %Z -> expected: UTC 3301s # %Z -> actual: UTC 3301s # %#Z %Z -> expected: utc UTC 3301s # %#Z %Z -> actual: utc UTC 3301s ok 32 /GDateTime/printf 3301s # %a -> expected: �� 3301s # %a -> actual: �� 3301s # %A -> expected: ������ 3301s # %A -> actual: ������ 3301s # %b -> expected: 10�� 3301s # %b -> actual: 10�� 3301s # %B -> expected: 10�� 3301s # %B -> actual: 10�� 3301s # %c -> expected: 2009ǯ10��24�� 00��00ʬ00�� 3301s # %c -> actual: 2009ǯ10��24�� 00��00ʬ00�� 3301s # %C -> expected: 20 3301s # %C -> actual: 20 3301s # %d -> expected: 24 3301s # %d -> actual: 24 3301s # %d -> expected: 01 3301s # %d -> actual: 01 3301s # %e -> expected: 24 3301s # %e -> actual: 24 3301s # %h -> expected: 10�� 3301s # %h -> actual: 10�� 3301s # %H -> expected: 00 3301s # %H -> actual: 00 3301s # %H -> expected: 15 3301s # %H -> actual: 15 3301s # %I -> expected: 12 3301s # %I -> actual: 12 3301s # %I -> expected: 12 3301s # %I -> actual: 12 3301s # %I -> expected: 03 3301s # %I -> actual: 03 3301s # %j -> expected: 297 3301s # %j -> actual: 297 3301s # %k -> expected: ?0 3301s # %k -> actual: ?0 3301s # %k -> expected: 13 3301s # %k -> actual: 13 3301s # %l -> expected: 12 3301s # %l -> actual: 12 3301s # %I -> expected: 12 3301s # %I -> actual: 12 3301s # %l -> expected: ?1 3301s # %l -> actual: ?1 3301s # %l -> expected: 10 3301s # %l -> actual: 10 3301s # %m -> expected: 10 3301s # %m -> actual: 10 3301s # %M -> expected: 00 3301s # %M -> actual: 00 3301s # %p -> expected: ���� 3301s # %p -> actual: ���� 3301s # %p -> expected: ��� 3301s # %p -> actual: ��� 3301s # %P -> expected: ���� 3301s # %P -> actual: ���� 3301s # %P -> expected: ��� 3301s # %P -> actual: ��� 3301s # %r -> expected: ����12��00ʬ00�� 3301s # %r -> actual: ����12��00ʬ00�� 3301s # %r -> expected: ���01��13ʬ13�� 3301s # %r -> actual: ���01��13ʬ13�� 3301s # %R -> expected: 00:00 3301s # %R -> actual: 00:00 3301s # %R -> expected: 13:13 3301s # %R -> actual: 13:13 3301s # %S -> expected: 00 3301s # %S -> actual: 00 3301s # %t -> expected: 3301s # %t -> actual: 3301s # %u -> expected: 6 3301s # %u -> actual: 6 3301s # %x -> expected: 2009ǯ10��24�� 3301s # %x -> actual: 2009ǯ10��24�� 3301s # %X -> expected: 00��00ʬ00�� 3301s # %X -> actual: 00��00ʬ00�� 3301s # %X -> expected: 13��14ʬ15�� 3301s # %X -> actual: 13��14ʬ15�� 3301s # %y -> expected: 09 3301s # %y -> actual: 09 3301s # %Y -> expected: 2009 3301s # %Y -> actual: 2009 3301s # %% -> expected: % 3301s # %% -> actual: % 3301s # % -> expected: 3301s # % -> actual: 3301s # %9 -> expected: (null) 3301s # %9 -> actual: (null) 3301s # %Ec -> expected: ʿ��21ǯ10��24�� 00��00ʬ00�� 3301s # %Ec -> actual: ʿ��21ǯ10��24�� 00��00ʬ00�� 3301s # %EC -> expected: ʿ�� 3301s # %EC -> actual: ʿ�� 3301s # %Ex -> expected: ʿ��21ǯ10��24�� 3301s # %Ex -> actual: ʿ��21ǯ10��24�� 3301s # %EX -> expected: 00��00ʬ00�� 3301s # %EX -> actual: 00��00ʬ00�� 3301s # %Ey -> expected: 21 3301s # %Ey -> actual: 21 3301s # %EY -> expected: ʿ��21ǯ 3301s # %EY -> actual: ʿ��21ǯ 3301s ok 33 /GDateTime/non_utf8_printf 3301s # ???? -> expected: ???? 3301s # ???? -> actual: ???? 3301s # %H?%M -> expected: 23?15 3301s # %H?%M -> actual: 23?15 3301s # %H?%M -> expected: 23?15 3301s # %H?%M -> actual: 23?15 3301s ok 34 /GDateTime/format_unrepresentable 3301s ok 35 /GDateTime/format_iso8601 3302s ok 36 /GDateTime/strftime 3302s # slow test /GDateTime/strftime executed in 1.78 secs 3302s # %d -> expected: 01 3302s # %d -> actual: 01 3302s # %_d -> expected: 1 3302s # %_d -> actual: 1 3302s # %-d -> expected: 1 3302s # %-d -> actual: 1 3302s # %0d -> expected: 01 3302s # %0d -> actual: 01 3302s # %d -> expected: 21 3302s # %d -> actual: 21 3302s # %_d -> expected: 21 3302s # %_d -> actual: 21 3302s # %-d -> expected: 21 3302s # %-d -> actual: 21 3302s # %0d -> expected: 21 3302s # %0d -> actual: 21 3302s # %e -> expected: 1 3302s # %e -> actual: 1 3302s # %_e -> expected: 1 3302s # %_e -> actual: 1 3302s # %-e -> expected: 1 3302s # %-e -> actual: 1 3302s # %0e -> expected: 01 3302s # %0e -> actual: 01 3302s # %e -> expected: 21 3302s # %e -> actual: 21 3302s # %_e -> expected: 21 3302s # %_e -> actual: 21 3302s # %-e -> expected: 21 3302s # %-e -> actual: 21 3302s # %0e -> expected: 21 3302s # %0e -> actual: 21 3302s # %a -> expected: Thu 3302s # %a -> actual: Thu 3302s # %^a -> expected: THU 3302s # %^a -> actual: THU 3302s # %#a -> expected: THU 3302s # %#a -> actual: THU 3302s # %A -> expected: Thursday 3302s # %A -> actual: Thursday 3302s # %^A -> expected: THURSDAY 3302s # %^A -> actual: THURSDAY 3302s # %#A -> expected: THURSDAY 3302s # %#A -> actual: THURSDAY 3302s # %b -> expected: Jan 3302s # %b -> actual: Jan 3302s # %^b -> expected: JAN 3302s # %^b -> actual: JAN 3302s # %#b -> expected: JAN 3302s # %#b -> actual: JAN 3302s # %B -> expected: January 3302s # %B -> actual: January 3302s # %^B -> expected: JANUARY 3302s # %^B -> actual: JANUARY 3302s # %#B -> expected: JANUARY 3302s # %#B -> actual: JANUARY 3302s # %h -> expected: Jan 3302s # %h -> actual: Jan 3302s # %^h -> expected: JAN 3302s # %^h -> actual: JAN 3302s # %#h -> expected: JAN 3302s # %#h -> actual: JAN 3302s # %Z -> expected: UTC 3302s # %Z -> actual: UTC 3302s # %^Z -> expected: UTC 3302s # %^Z -> actual: UTC 3302s # %#Z -> expected: utc 3302s # %#Z -> actual: utc 3302s # %H -> expected: 01 3302s # %H -> actual: 01 3302s # %_H -> expected: 1 3302s # %_H -> actual: 1 3302s # %-H -> expected: 1 3302s # %-H -> actual: 1 3302s # %0H -> expected: 01 3302s # %0H -> actual: 01 3302s # %H -> expected: 21 3302s # %H -> actual: 21 3302s # %_H -> expected: 21 3302s # %_H -> actual: 21 3302s # %-H -> expected: 21 3302s # %-H -> actual: 21 3302s # %0H -> expected: 21 3302s # %0H -> actual: 21 3302s # %I -> expected: 01 3302s # %I -> actual: 01 3302s # %_I -> expected: 1 3302s # %_I -> actual: 1 3302s # %-I -> expected: 1 3302s # %-I -> actual: 1 3302s # %0I -> expected: 01 3302s # %0I -> actual: 01 3302s # %I -> expected: 11 3302s # %I -> actual: 11 3302s # %_I -> expected: 11 3302s # %_I -> actual: 11 3302s # %-I -> expected: 11 3302s # %-I -> actual: 11 3302s # %0I -> expected: 11 3302s # %0I -> actual: 11 3302s # %k -> expected: 1 3302s # %k -> actual: 1 3302s # %_k -> expected: 1 3302s # %_k -> actual: 1 3302s # %-k -> expected: 1 3302s # %-k -> actual: 1 3302s # %0k -> expected: 01 3302s # %0k -> actual: 01 3302s # %l -> expected: 1 3302s # %l -> actual: 1 3302s # %_l -> expected: 1 3302s # %_l -> actual: 1 3302s # %-l -> expected: 1 3302s # %-l -> actual: 1 3302s # %0l -> expected: 01 3302s # %0l -> actual: 01 3302s # %l -> expected: 11 3302s # %l -> actual: 11 3302s # %_l -> expected: 11 3302s # %_l -> actual: 11 3302s # %-l -> expected: 11 3302s # %-l -> actual: 11 3302s # %0l -> expected: 11 3302s # %0l -> actual: 11 3302s # %p -> expected: AM 3302s # %p -> actual: AM 3302s # %^p -> expected: AM 3302s # %^p -> actual: AM 3302s # %#p -> expected: am 3302s # %#p -> actual: am 3302s # %P -> expected: am 3302s # %P -> actual: am 3302s # %^P -> expected: AM 3302s # %^P -> actual: AM 3302s # %#P -> expected: am 3302s # %#P -> actual: am 3302s # %OH -> expected: ۲۳ 3302s # %OH -> actual: ۲۳ 3302s # %OI -> expected: ۱۱ 3302s # %OI -> actual: ۱۱ 3302s # %OM -> expected: ۰۰ 3302s # %OM -> actual: ۰۰ 3302s # %Om -> expected: ۰۷ 3302s # %Om -> actual: ۰۷ 3302s # %0Om -> expected: ۰۷ 3302s # %0Om -> actual: ۰۷ 3302s # %-Om -> expected: ۷ 3302s # %-Om -> actual: ۷ 3302s # %_Om -> expected: ۷ 3302s # %_Om -> actual: ۷ 3302s # %c -> expected: thu 01 jan 2009 00:00:00 utc 3302s # %c -> actual: Thu 01 Jan 2009 00:00:00 UTC 3302s # %Ec -> expected: thu 01 jan 2009 00:00:00 utc 3302s # %Ec -> actual: Thu 01 Jan 2009 00:00:00 UTC 3302s # %C -> expected: 20 3302s # %C -> actual: 20 3302s # %EC -> expected: 20 3302s # %EC -> actual: 20 3302s # %x -> expected: 02/01/09 3302s # %x -> actual: 02/01/09 3302s # %Ex -> expected: 02/01/09 3302s # %Ex -> actual: 02/01/09 3302s # %X -> expected: 01:02:03 3302s # %X -> actual: 01:02:03 3302s # %EX -> expected: 01:02:03 3302s # %EX -> actual: 01:02:03 3302s # %y -> expected: 09 3302s # %y -> actual: 09 3302s # %Ey -> expected: 09 3302s # %Ey -> actual: 09 3302s # %Y -> expected: 2009 3302s # %Y -> actual: 2009 3302s # %EY -> expected: 2009 3302s # %EY -> actual: 2009 3302s ok 37 /GDateTime/modifiers # SKIP locale gu_IN not available, skipping O modifier tests 3302s # Bug Reference: http://bugzilla.gnome.org/749206 3302s # %B -> expected: January 3302s # %B -> actual: January 3302s # %OB -> expected: February 3302s # %OB -> actual: February 3302s # %b -> expected: Mar 3302s # %b -> actual: Mar 3302s # %Ob -> expected: Apr 3302s # %Ob -> actual: Apr 3302s # %h -> expected: May 3302s # %h -> actual: May 3302s # %Oh -> expected: Jun 3302s # %Oh -> actual: Jun 3302s # %B -> expected: Juli 3302s # %B -> actual: Juli 3302s # %OB -> expected: August 3302s # %OB -> actual: August 3302s # %b -> expected: Sep 3302s # %b -> actual: Sep 3302s # %Ob -> expected: Okt 3302s # %Ob -> actual: Okt 3302s # %h -> expected: Nov 3302s # %h -> actual: Nov 3302s # %Oh -> expected: Dez 3302s # %Oh -> actual: Dez 3302s # %B -> expected: enero 3302s # %B -> actual: enero 3302s # %OB -> expected: febrero 3302s # %OB -> actual: febrero 3302s # %b -> expected: mar 3302s # %b -> actual: mar 3302s # %Ob -> expected: abr 3302s # %Ob -> actual: abr 3302s # %h -> expected: may 3302s # %h -> actual: may 3302s # %Oh -> expected: jun 3302s # %Oh -> actual: jun 3302s # %B -> expected: juillet 3302s # %B -> actual: juillet 3302s # %OB -> expected: août 3302s # %OB -> actual: août 3302s # %b -> expected: sept. 3302s # %b -> actual: sept. 3302s # %Ob -> expected: oct. 3302s # %Ob -> actual: oct. 3302s # %h -> expected: nov. 3302s # %h -> actual: nov. 3302s # %Oh -> expected: déc. 3302s # %Oh -> actual: déc. 3303s # %B -> expected: Ιανουαρίου 3303s # %B -> actual: Ιανουαρίου 3303s # %B -> expected: Φεβρουαρίου 3303s # %B -> actual: Φεβρουαρίου 3303s # %B -> expected: Μαρτίου 3303s # %B -> actual: Μαρτίου 3303s # %OB -> expected: Απρίλιος 3303s # %OB -> actual: Απρίλιος 3303s # %OB -> expected: Μάιος 3303s # %OB -> actual: Μάιος 3303s # %OB -> expected: Ιούνιος 3303s # %OB -> actual: Ιούνιος 3303s # %b -> expected: Ιουλ 3303s # %b -> actual: Ιουλ 3303s # %Ob -> expected: Αύγ 3303s # %Ob -> actual: Αύγ 3303s # %B -> expected: svibnja 3303s # %B -> actual: svibnja 3303s # %B -> expected: lipnja 3303s # %B -> actual: lipnja 3303s # %B -> expected: srpnja 3303s # %B -> actual: srpnja 3303s # %OB -> expected: Kolovoz 3303s # %OB -> actual: kolovoz 3303s # %OB -> expected: Rujan 3303s # %OB -> actual: rujan 3303s # %OB -> expected: Listopad 3303s # %OB -> actual: listopad 3303s # %b -> expected: Stu 3303s # %b -> actual: stu 3303s # %Ob -> expected: Pro 3303s # %Ob -> actual: pro 3303s # %B -> expected: sausio 3303s # %B -> actual: sausio 3303s # %B -> expected: vasario 3303s # %B -> actual: vasario 3303s # %B -> expected: kovo 3303s # %B -> actual: kovo 3303s # %OB -> expected: balandis 3303s # %OB -> actual: balandis 3303s # %OB -> expected: gegužė 3303s # %OB -> actual: gegužė 3303s # %OB -> expected: birželis 3303s # %OB -> actual: birželis 3303s # %b -> expected: liep. 3303s # %b -> actual: liep. 3303s # %Ob -> expected: rugp. 3303s # %Ob -> actual: rugp. 3303s # %B -> expected: maja 3303s # %B -> actual: maja 3303s # %B -> expected: czerwca 3303s # %B -> actual: czerwca 3303s # %B -> expected: lipca 3303s # %B -> actual: lipca 3303s # %OB -> expected: sierpień 3303s # %OB -> actual: sierpień 3303s # %OB -> expected: wrzesień 3303s # %OB -> actual: wrzesień 3303s # %OB -> expected: październik 3303s # %OB -> actual: październik 3303s # %b -> expected: lis 3303s # %b -> actual: lis 3303s # %Ob -> expected: gru 3303s # %Ob -> actual: gru 3303s # %B -> expected: января 3303s # %B -> actual: января 3303s # %B -> expected: февраля 3303s # %B -> actual: февраля 3303s # %B -> expected: марта 3303s # %B -> actual: марта 3303s # %OB -> expected: Апрель 3303s # %OB -> actual: Апрель 3303s # %OB -> expected: Май 3303s # %OB -> actual: Май 3303s # %OB -> expected: Июнь 3303s # %OB -> actual: Июнь 3303s # %b -> expected: июл 3303s # %b -> actual: июл 3303s # %Ob -> expected: авг 3303s # %Ob -> actual: авг 3303s # %b -> expected: мая 3303s # %b -> actual: мая 3303s # %Ob -> expected: май 3303s # %Ob -> actual: май 3303s ok 38 /GDateTime/month_names 3303s ok 39 /GDateTime/to_local 3303s ok 40 /GDateTime/to_unix 3303s ok 41 /GDateTime/to_timeval 3303s ok 42 /GDateTime/to_utc 3303s ok 43 /GDateTime/now_utc 3303s ok 44 /GDateTime/dst 3303s # Bug Reference: http://bugzilla.gnome.org/642935 3303s ok 45 /GDateTime/test_z 3304s # Executing: glib/gdatetime.test 3309s # Executing: glib/gdatetime.test 3312s ok 46 /GDateTime/test-all-dates 3312s # slow test /GDateTime/test-all-dates executed in 9.35 secs 3312s ok 47 /GDateTime/unix_usec 3312s # Start of new_from_unix tests 3312s # Bug Reference: http://bugzilla.gnome.org/782089 3312s ok 48 /GDateTime/new_from_unix/overflow 3312s # End of new_from_unix tests 3312s # Start of new_from_timeval tests 3312s # Bug Reference: http://bugzilla.gnome.org/782089 3312s # Maximum supported GTimeVal.tv_sec = 253402300799 3312s ok 49 /GDateTime/new_from_timeval/overflow 3312s # End of new_from_timeval tests 3312s # Start of new_from_iso8601 tests 3312s # /GDateTime/new_from_iso8601/2 summary: Further parser tests for g_date_time_new_from_iso8601(), checking success and failure using test vectors. 3312s # Vector 0: 1990-11-01T10:21:17Z 3312s # Vector 1: 19901101T102117Z 3312s # Vector 2: 1970-01-01T00:00:17.12Z 3312s # Vector 3: 1970-01-01T00:00:17.1234Z 3312s # Vector 4: 1970-01-01T00:00:17.123456Z 3312s # Vector 5: 1980-02-22T12:36:00+02:00 3312s # Vector 6: 1990-12-31T15:59:60-08:00 3312s # Vector 7: 3312s # Vector 8: x 3312s # Vector 9: 123x 3312s # Vector 10: 2001-10+x 3312s # Vector 11: 1980-02-22T 3312s # Vector 12: 2001-10-08Tx 3312s # Vector 13: 2001-10-08T10:11x 3312s # Vector 14: Wed Dec 19 17:20:20 GMT 2007 3312s # Vector 15: 1980-02-22T10:36:00Zulu 3312s # Vector 16: 2T0+819855292164632335 3312s # Vector 17: 2018-08-03T14:08:05.446178377+01:00 3312s # Vector 18: 2147483648-08-03T14:08:05.446178377+01:00 3312s # Vector 19: 2018-13-03T14:08:05.446178377+01:00 3312s # Vector 20: 2018-00-03T14:08:05.446178377+01:00 3312s # Vector 21: 2018-08-00T14:08:05.446178377+01:00 3312s # Vector 22: 2018-08-32T14:08:05.446178377+01:00 3312s # Vector 23: 2018-08-03T24:08:05.446178377+01:00 3312s # Vector 24: 2018-08-03T14:60:05.446178377+01:00 3312s # Vector 25: 2018-08-03T14:08:63.446178377+01:00 3312s # Vector 26: 2018-08-03T14:08:05.446178377+100:00 3312s # Vector 27: 20180803T140805.446178377+0100 3312s # Vector 28: 21474836480803T140805.446178377+0100 3312s # Vector 29: 20181303T140805.446178377+0100 3312s # Vector 30: 20180003T140805.446178377+0100 3312s # Vector 31: 20180800T140805.446178377+0100 3312s # Vector 32: 20180832T140805.446178377+0100 3312s # Vector 33: 20180803T240805.446178377+0100 3312s # Vector 34: 20180803T146005.446178377+0100 3312s # Vector 35: 20180803T140863.446178377+0100 3312s # Vector 36: 20180803T140805.446178377+10000 3312s # Vector 37: -0005-01-01T00:00:00Z 3312s # Vector 38: 2018-08-06 3312s # Vector 39: 20180803T140805,446178377+0100 3312s # Vector 40: 2018-08-03T14:08:05.446178377-01:00 3312s # Vector 41: 2018-08-03T14:08:05.446178377 01:00 3312s # Vector 42: 1990-11-01T10:21:17 3312s # Vector 43: 1719W462 407777-07 3312s # Vector 44: 4011090 260528Z 3312s # Vector 45: 0000W011 228214-22 3312s ok 50 /GDateTime/new_from_iso8601/2 3312s # End of new_from_iso8601 tests 3312s # Start of format_mixed tests 3312s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 3312s # %b -> expected: mar 3312s # %b -> actual: Mar 3312s # %B -> expected: march 3312s # %B -> actual: March 3312s ok 51 /GDateTime/format_mixed/utf8_time_non_utf8_messages 3312s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 3312s # %b -> expected: mar 3312s # %b -> actual: Mar 3312s # %B -> expected: march 3312s # %B -> actual: March 3312s ok 52 /GDateTime/format_mixed/utf8_time_utf8_messages 3312s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 3312s # %b -> expected: Mär 3312s # %b -> actual: Mär 3312s # %B -> expected: März 3312s # %B -> actual: März 3312s ok 53 /GDateTime/format_mixed/non_utf8_time_non_utf8_messages 3312s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 3312s # %b -> expected: Mär 3312s # %b -> actual: Mär 3312s # %B -> expected: März 3312s # %B -> actual: März 3312s ok 54 /GDateTime/format_mixed/non_utf8_time_utf8_messages 3312s # End of format_mixed tests 3312s # Start of strftime tests 3312s # %r -> expected: (null) 3312s # %r -> actual: (null) 3312s ok 55 /GDateTime/strftime/error_handling 3312s # End of strftime tests 3312s # Start of eras tests 3312s # %Ec -> expected: 令和05年06月01日 00時00分00秒 3312s # %Ec -> actual: 令和05年06月01日 00時00分00秒 3312s # %EC -> expected: 令和 3312s # %EC -> actual: 令和 3312s # %Ex -> expected: 令和05年06月01日 3312s # %Ex -> actual: 令和05年06月01日 3312s # %EX -> expected: 00時00分00秒 3312s # %EX -> actual: 00時00分00秒 3312s # %Ey -> expected: 05 3312s # %Ey -> actual: 05 3312s # %EY -> expected: 令和05年 3312s # %EY -> actual: 令和05年 3312s # %Ec -> expected: 平成31年04月30日 00時00分00秒 3312s # %Ec -> actual: 平成31年04月30日 00時00分00秒 3312s # %EC -> expected: 平成 3312s # %EC -> actual: 平成 3312s # %Ex -> expected: 平成31年04月30日 3312s # %Ex -> actual: 平成31年04月30日 3312s # %EX -> expected: 00時00分00秒 3312s # %EX -> actual: 00時00分00秒 3312s # %Ey -> expected: 31 3312s # %Ey -> actual: 31 3312s # %EY -> expected: 平成31年 3312s # %EY -> actual: 平成31年 3312s # %Ec -> expected: 昭和元年12月25日 00時00分00秒 3312s # %Ec -> actual: 昭和元年12月25日 00時00分00秒 3312s # %EC -> expected: 昭和 3312s # %EC -> actual: 昭和 3312s # %Ex -> expected: 昭和元年12月25日 3312s # %Ex -> actual: 昭和元年12月25日 3312s # %EX -> expected: 00時00分00秒 3312s # %EX -> actual: 00時00分00秒 3312s # %Ey -> expected: 01 3312s # %Ey -> actual: 01 3312s # %EY -> expected: 昭和元年 3312s # %EY -> actual: 昭和元年 3312s ok 56 /GDateTime/eras/japan 3312s ok 57 /GDateTime/eras/thailand # SKIP locale th_TH.utf-8 not available, skipping Thai era tests 3312s # Vector 0: 3312s # Vector 1: +:1:-543/01/01:+*:พ.ศ.:%EC %Ey 3312s # 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年 3312s # Vector 3: -:2:2020/01/01:-*:令和:%EC%Ey年 3312s # Vector 4: +:2:2020/01/01:2020/01/01:令和:%EC%Ey年 3312s # Vector 5: +:2:+2020/01/01:+*:令和:%EC%Ey年 3312s # Vector 6: .:2:2020/01/01:+*:令和:%EC%Ey年 3312s # Vector 7: +.2:2020/01/01:+*:令和:%EC%Ey年 3312s # Vector 8: + 3312s # Vector 9: +: 3312s # Vector 10: +:: 3312s # Vector 11: +:200 3312s # Vector 12: +:2nonsense 3312s # Vector 13: +:2nonsense: 3312s # Vector 14: +:2: 3312s # Vector 15: +:2:: 3312s # Vector 16: +:2:2020-01/01:+*:令和:%EC%Ey年 3312s # Vector 17: +:2:2020nonsense/01/01:+*:令和:%EC%Ey年 3312s # Vector 18: +:2:2020:+*:令和:%EC%Ey年 3312s # Vector 19: +:2:18446744073709551615/01/01:+*:令和:%EC%Ey年 3312s # Vector 20: +:2:2020/01-01:+*:令和:%EC%Ey年 3312s # Vector 21: +:2:2020/01nonsense/01:+*:令和:%EC%Ey年 3312s # Vector 22: +:2:2020/01:+*:令和:%EC%Ey年 3312s # Vector 23: +:2:2020/00/01:+*:令和:%EC%Ey年 3312s # Vector 24: +:2:2020/13/01:+*:令和:%EC%Ey年 3312s # Vector 25: +:2:2020/01/00:+*:令和:%EC%Ey年 3312s # Vector 26: +:2:2020/01/32:+*:令和:%EC%Ey年 3312s # Vector 27: +:2:2020/01/01nonsense:+*:令和:%EC%Ey年 3312s # Vector 28: +:2:2020/01/01 3312s # Vector 29: +:2:2020/01/01: 3312s # Vector 30: +:2:2020/01/01:: 3312s # Vector 31: +:2:2020/01/01:2021-01-01:令和:%EC%Ey年 3312s # Vector 32: +:2:2020/01/01:+* 3312s # Vector 33: +:2:2020/01/01:+*: 3312s # Vector 34: +:2:2020/01/01:+*:: 3312s # Vector 35: +:2:2020/01/01:+*:令和 3312s # Vector 36: +:2:2020/01/01:+*:令和: 3312s # Vector 37: +:2:2020/01/01:+*:令和:; 3312s ok 58 /GDateTime/eras/parsing 3312s # End of eras tests 3312s # End of GDateTime tests 3312s # Start of GTimeZone tests 3312s ok 59 /GTimeZone/find-interval 3312s ok 60 /GTimeZone/adjust-time 3312s ok 61 /GTimeZone/no-header 3312s ok 62 /GTimeZone/no-header-identifier 3312s ok 63 /GTimeZone/posix-parse 3312s # Bug Reference: http://bugzilla.gnome.org/697715 3312s ok 64 /GTimeZone/floating-point 3312s # System time zone identifier: Etc/UTC 3312s ok 65 /GTimeZone/identifier 3312s # Vector 0: -158400 3312s # Vector 1: -10000 3312s # Vector 2: -3600 3312s # Vector 3: -61 3312s # Vector 4: -60 3312s # Vector 5: -59 3312s # Vector 6: 0 3312s # Vector 7: 59 3312s # Vector 8: 60 3312s # Vector 9: 61 3312s # Vector 10: 3600 3312s # Vector 11: 10000 3312s # Vector 12: 158400 3312s ok 66 /GTimeZone/new-offset 3312s # /GTimeZone/parse-rfc8536 summary: Test parsing time zone files in RFC 8536 version 3 format 3312s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2129 3312s ok 67 /GTimeZone/parse-rfc8536 3312s # /GTimeZone/caching summary: GTimeZone instances are cached 3312s ok 68 /GTimeZone/caching 3312s # End of GTimeZone tests 3312s ok - glib/gdatetime.test 3312s # Running test: glib/environment.test 3312s TAP version 14 3312s # random seed: R02Sdbfbe340725db21af733c476ab8b10ac 3312s 1..6 3312s # Start of environ tests 3312s # /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. 3312s ok 1 /environ/listenv 3312s # /environ/getenv summary: Test setting an environment variable using g_setenv(), and that the updated value is queryable using g_getenv(). 3312s ok 2 /environ/getenv 3312s ok 3 /environ/setenv 3312s # /environ/array summary: Test getting and setting variables on a local envp array (rather than the global envp). 3312s ok 4 /environ/array 3312s # /environ/null summary: Test getting and setting variables on a NULL envp array. 3312s ok 5 /environ/null 3312s # /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. 3312s ok 6 /environ/case 3312s # End of environ tests 3312s ok - glib/environment.test 3312s # Running test: glib/accumulator.test 3312s TAP version 14 3312s # random seed: R02Se313060ed26a188a3a2ddaf5c5fb747c 3312s 1..1 3312s # Start of gobject tests 3312s ok 1 /gobject/accumulator 3312s # End of gobject tests 3312s ok - glib/accumulator.test 3312s # Running test: glib/portal-support-env-var.test 3312s TAP version 14 3312s # random seed: R02Sa35010ae737acdc691ab913c678c2327 3312s 1..1 3312s # Start of portal-support tests 3312s ok 1 /portal-support/env-var 3312s # End of portal-support tests 3312s ok - glib/portal-support-env-var.test 3312s # Running test: glib/testfilemonitor.test 3312s TAP version 14 3312s # random seed: R02Sa8f16a81bfb9e3786e06584a7764d859 3312s 1..8 3312s # Start of monitor tests 3312s ok 1 /monitor/atomic-replace # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 3312s ok 2 /monitor/file-changes # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 3312s ok 3 /monitor/dir-monitor # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 3312s ok 4 /monitor/dir-not-existent # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 3312s ok 5 /monitor/cross-dir-moves # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 3312s ok 6 /monitor/finalize-in-callback # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 3312s # /monitor/root summary: Test that GFileMonitor can monitor the root directory. 3312s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3241 3313s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 3313s ok 7 /monitor/root # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 3313s # Start of file tests 3313s ok 8 /monitor/file/hard-links # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 3313s # End of file tests 3313s # End of monitor tests 3313s ok - glib/testfilemonitor.test 3313s # Running test: glib/macros-c-11.test 3313s TAP version 14 3313s # random seed: R02S6cf91772c7871e63eeadd6be4a1ca60b 3313s 1..4 3313s # Start of C tests 3313s ok 1 /C/standard-11 3313s # End of C tests 3313s # Start of alignof tests 3313s ok 2 /alignof/fallback 3313s # End of alignof tests 3313s # Start of assert tests 3313s ok 3 /assert/static 3313s # End of assert tests 3313s # Start of struct tests 3313s ok 4 /struct/sizeof_member 3313s # End of struct tests 3313s ok - glib/macros-c-11.test 3313s # Running test: glib/gio-tool.py.test 3314s # Executing: glib/gio-tool.py.test 3314s TAP version 13 3314s ok 1 __main__.TestGioTool.test_help 3314s # gio: /usr/bin/gio 3314s # tmpdir: /tmp/tmp0fk42ezc 3314s # Running: ['/usr/bin/gio', '--help'] 3314s # Return code: 0 3314s # Output: 3314s # Usage: 3314s # gio COMMAND [ARGS…] 3314s # 3314s # Commands: 3314s # help Print help 3314s # version Print version 3314s # cat Concatenate files to standard output 3314s # copy Copy one or more files 3314s # info Show information about locations 3314s # launch Launch an application from a desktop file 3314s # list List the contents of locations 3314s # mime Get or set the handler for a mimetype 3314s # mkdir Create directories 3314s # monitor Monitor files and directories for changes 3314s # mount Mount or unmount the locations 3314s # move Move one or more files 3314s # open Open files with the default application 3314s # rename Rename a file 3314s # remove Delete one or more files 3314s # save Read from standard input and save 3314s # set Set a file attribute 3314s # trash Move files or directories to the trash 3314s # tree Lists the contents of locations in a tree 3314s # 3314s # Use “gio help COMMAND” to get detailed help. 3314s # Error: 3314s # 3314s # Running: ['/usr/bin/gio', 'help'] 3314s # Return code: 0 3314s # Output: 3314s # Usage: 3314s # gio COMMAND [ARGS…] 3314s # 3314s # Commands: 3314s # help Print help 3314s # version Print version 3314s # cat Concatenate files to standard output 3314s # copy Copy one or more files 3314s # info Show information about locations 3314s # launch Launch an application from a desktop file 3314s # list List the contents of locations 3314s # mime Get or set the handler for a mimetype 3314s # mkdir Create directories 3314s # monitor Monitor files and directories for changes 3314s # mount Mount or unmount the locations 3314s # move Move one or more files 3314s # open Open files with the default application 3314s # rename Rename a file 3314s # remove Delete one or more files 3314s # save Read from standard input and save 3314s # set Set a file attribute 3314s # trash Move files or directories to the trash 3314s # tree Lists the contents of locations in a tree 3314s # 3314s # Use “gio help COMMAND” to get detailed help. 3314s # Error: 3314s ok 2 __main__.TestGioTool.test_info_non_default_attributes 3314s # gio: /usr/bin/gio 3314s # tmpdir: /tmp/tmpnboyd911 3314s # Running: ['/usr/bin/gio', 'info', '--attributes=standard::content-type', '/tmp/tmpnboyd911/tmp2y3p7nzr'] 3314s # Return code: 0 3314s # Output: 3314s # uri: file:///tmp/tmpnboyd911/tmp2y3p7nzr 3314s # local path: /tmp/tmpnboyd911/tmp2y3p7nzr 3314s # unix mount: /dev/vda1 / ext4 rw,relatime,discard,errors=remount-ro,commit=30 3314s # attributes: 3314s # standard::content-type: application/x-zerosize 3314s # Error: 3314s ok 3 __main__.TestGioTool.test_no_args 3314s # gio: /usr/bin/gio 3314s # tmpdir: /tmp/tmp8qn4r9kz 3314s # Running: ['/usr/bin/gio'] 3314s # Return code: 1 3314s # Output: 3314s # 3314s # Error: 3314s # Usage: 3314s # gio COMMAND [ARGS…] 3314s # 3314s # Commands: 3314s # help Print help 3314s # version Print version 3314s # cat Concatenate files to standard output 3314s # copy Copy one or more files 3314s # info Show information about locations 3314s # launch Launch an application from a desktop file 3314s # list List the contents of locations 3314s # mime Get or set the handler for a mimetype 3314s # mkdir Create directories 3314s # monitor Monitor files and directories for changes 3314s # mount Mount or unmount the locations 3314s # move Move one or more files 3314s # open Open files with the default application 3314s # rename Rename a file 3314s # remove Delete one or more files 3314s # save Read from standard input and save 3314s # set Set a file attribute 3314s # trash Move files or directories to the trash 3314s # tree Lists the contents of locations in a tree 3314s # 3314s # Use “gio help COMMAND” to get detailed help. 3314s 1..3 3314s ok - glib/gio-tool.py.test 3314s # Running test: glib/gdbus-peer.test 3315s TAP version 14 3315s # random seed: R02S30afc78dec5b385674c05e5af8aed3b7 3315s 1..12 3315s # Start of gdbus tests 3315s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/.dirs/home 3315s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/.dirs/cache 3315s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/.dirs/system-config1:/tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/.dirs/system-config2 3315s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/.dirs/config 3315s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/.dirs/system-data1:/tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/.dirs/system-data2 3315s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/.dirs/data 3315s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/.dirs/state 3315s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/.dirs/runtime 3315s # Testing with unix:dir address 3315s # Testing with unix:tmpdir address 3315s # Testing with unix:path address 3315s ok 1 /gdbus/peer-to-peer 3315s # slow test /gdbus/peer-to-peer executed in 0.70 secs 3315s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_IXE252/gdbus/delayed-message-processing/.dirs/home 3315s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/delayed-message-processing/.dirs/cache 3315s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_IXE252/gdbus/delayed-message-processing/.dirs/system-config1:/tmp/test_gdbus-peer_IXE252/gdbus/delayed-message-processing/.dirs/system-config2 3315s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/delayed-message-processing/.dirs/config 3315s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_IXE252/gdbus/delayed-message-processing/.dirs/system-data1:/tmp/test_gdbus-peer_IXE252/gdbus/delayed-message-processing/.dirs/system-data2 3315s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/delayed-message-processing/.dirs/data 3315s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/delayed-message-processing/.dirs/state 3315s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_IXE252/gdbus/delayed-message-processing/.dirs/runtime 3315s # Testing with unix:dir address 3316s ok 2 /gdbus/delayed-message-processing 3316s # slow test /gdbus/delayed-message-processing executed in 0.54 secs 3316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_IXE252/gdbus/nonce-tcp/.dirs/home 3316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/nonce-tcp/.dirs/cache 3316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_IXE252/gdbus/nonce-tcp/.dirs/system-config1:/tmp/test_gdbus-peer_IXE252/gdbus/nonce-tcp/.dirs/system-config2 3316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/nonce-tcp/.dirs/config 3316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_IXE252/gdbus/nonce-tcp/.dirs/system-data1:/tmp/test_gdbus-peer_IXE252/gdbus/nonce-tcp/.dirs/system-data2 3316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/nonce-tcp/.dirs/data 3316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/nonce-tcp/.dirs/state 3316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_IXE252/gdbus/nonce-tcp/.dirs/runtime 3316s ok 3 /gdbus/nonce-tcp 3316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_IXE252/gdbus/tcp-anonymous/.dirs/home 3316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/tcp-anonymous/.dirs/cache 3316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_IXE252/gdbus/tcp-anonymous/.dirs/system-config1:/tmp/test_gdbus-peer_IXE252/gdbus/tcp-anonymous/.dirs/system-config2 3316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/tcp-anonymous/.dirs/config 3316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_IXE252/gdbus/tcp-anonymous/.dirs/system-data1:/tmp/test_gdbus-peer_IXE252/gdbus/tcp-anonymous/.dirs/system-data2 3316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/tcp-anonymous/.dirs/data 3316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/tcp-anonymous/.dirs/state 3316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_IXE252/gdbus/tcp-anonymous/.dirs/runtime 3316s ok 4 /gdbus/tcp-anonymous 3316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_IXE252/gdbus/credentials/.dirs/home 3316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/credentials/.dirs/cache 3316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_IXE252/gdbus/credentials/.dirs/system-config1:/tmp/test_gdbus-peer_IXE252/gdbus/credentials/.dirs/system-config2 3316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/credentials/.dirs/config 3316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_IXE252/gdbus/credentials/.dirs/system-data1:/tmp/test_gdbus-peer_IXE252/gdbus/credentials/.dirs/system-data2 3316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/credentials/.dirs/data 3316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/credentials/.dirs/state 3316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_IXE252/gdbus/credentials/.dirs/runtime 3316s ok 5 /gdbus/credentials 3316s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_IXE252/gdbus/codegen-peer-to-peer/.dirs/home 3316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/codegen-peer-to-peer/.dirs/cache 3316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_IXE252/gdbus/codegen-peer-to-peer/.dirs/system-config1:/tmp/test_gdbus-peer_IXE252/gdbus/codegen-peer-to-peer/.dirs/system-config2 3316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/codegen-peer-to-peer/.dirs/config 3316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_IXE252/gdbus/codegen-peer-to-peer/.dirs/system-data1:/tmp/test_gdbus-peer_IXE252/gdbus/codegen-peer-to-peer/.dirs/system-data2 3316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/codegen-peer-to-peer/.dirs/data 3316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/codegen-peer-to-peer/.dirs/state 3316s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_IXE252/gdbus/codegen-peer-to-peer/.dirs/runtime 3316s # Testing with unix:dir address 3316s # Machine ID: 63869c38debf4c7cbddb3425fc96f808 3317s ok 6 /gdbus/codegen-peer-to-peer 3317s # slow test /gdbus/codegen-peer-to-peer executed in 1.15 secs 3317s # Start of peer-to-peer tests 3317s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/signals/.dirs/home 3317s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/signals/.dirs/cache 3317s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/signals/.dirs/system-config1:/tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/signals/.dirs/system-config2 3317s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/signals/.dirs/config 3317s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/signals/.dirs/system-data1:/tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/signals/.dirs/system-data2 3317s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/signals/.dirs/data 3317s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/signals/.dirs/state 3317s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/signals/.dirs/runtime 3317s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1620 3317s # Testing with unix:dir address 3317s ok 7 /gdbus/peer-to-peer/signals 3317s # Start of invalid tests 3317s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/server/.dirs/home 3317s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/server/.dirs/cache 3317s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/server/.dirs/system-config1:/tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/server/.dirs/system-config2 3317s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/server/.dirs/config 3317s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/server/.dirs/system-data1:/tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/server/.dirs/system-data2 3317s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/server/.dirs/data 3317s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/server/.dirs/state 3317s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/server/.dirs/runtime 3317s ok 8 /gdbus/peer-to-peer/invalid/server 3317s # Start of conn tests 3317s # Start of stream tests 3317s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/home 3317s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/cache 3317s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-config1:/tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-config2 3317s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/config 3317s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-data1:/tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-data2 3317s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/data 3317s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/state 3317s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/runtime 3317s ok 9 /gdbus/peer-to-peer/invalid/conn/stream/async 3317s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/home 3317s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/cache 3317s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-config1:/tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-config2 3317s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/config 3317s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-data1:/tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-data2 3317s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/data 3317s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/state 3317s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/runtime 3317s ok 10 /gdbus/peer-to-peer/invalid/conn/stream/sync 3317s # End of stream tests 3317s # Start of addr tests 3317s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/home 3317s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/cache 3317s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-config1:/tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-config2 3317s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/config 3317s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-data1:/tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-data2 3317s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/data 3317s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/state 3317s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/runtime 3318s ok 11 /gdbus/peer-to-peer/invalid/conn/addr/async 3318s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/home 3318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/cache 3318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-config1:/tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-config2 3318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/config 3318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-data1:/tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-data2 3318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/data 3318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/state 3318s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_IXE252/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/runtime 3318s ok 12 /gdbus/peer-to-peer/invalid/conn/addr/sync 3318s # End of addr tests 3318s # End of conn tests 3318s # End of invalid tests 3318s # End of peer-to-peer tests 3318s # End of gdbus tests 3318s ok - glib/gdbus-peer.test 3318s # Running test: glib/types.test 3318s TAP version 14 3318s # random seed: R02S5ec12b2b03851de620c170bd61eaa4b2 3318s 1..1 3318s # Start of types tests 3318s ok 1 /types/basic_types 3318s # End of types tests 3318s ok - glib/types.test 3318s # Running test: glib/base64.test 3318s TAP version 14 3318s # random seed: R02S0e63c12170fc36234cac4ba7c45735eb 3318s 1..28 3318s # Start of base64 tests 3318s ok 1 /base64/encode 3318s ok 2 /base64/decode 3318s ok 3 /base64/decode-inplace 3318s ok 4 /base64/encode-decode 3318s # Start of full tests 3318s ok 5 /base64/full/1 3318s ok 6 /base64/full/2 3318s ok 7 /base64/full/3 3318s ok 8 /base64/full/4 3318s # End of full tests 3318s # Start of encode tests 3318s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1698 3318s ok 9 /base64/encode/empty 3318s # Start of incremental tests 3318s # Start of small-block tests 3318s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 3318s ok 10 /base64/encode/incremental/small-block/1 3318s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 3318s ok 11 /base64/encode/incremental/small-block/2 3318s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 3318s ok 12 /base64/encode/incremental/small-block/3 3318s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 3318s ok 13 /base64/encode/incremental/small-block/4 3318s # End of small-block tests 3318s # End of incremental tests 3318s # End of encode tests 3318s # Start of incremental tests 3318s # Start of nobreak tests 3318s ok 14 /base64/incremental/nobreak/1 3318s ok 15 /base64/incremental/nobreak/2 3318s ok 16 /base64/incremental/nobreak/3 3318s ok 17 /base64/incremental/nobreak/4-a 3318s ok 18 /base64/incremental/nobreak/4-b 3318s ok 19 /base64/incremental/nobreak/4-c 3318s # End of nobreak tests 3318s # Start of break tests 3318s ok 20 /base64/incremental/break/1 3318s ok 21 /base64/incremental/break/2 3318s ok 22 /base64/incremental/break/3 3318s # End of break tests 3318s # Start of smallblock tests 3318s ok 23 /base64/incremental/smallblock/1 3318s ok 24 /base64/incremental/smallblock/2 3318s ok 25 /base64/incremental/smallblock/3 3318s ok 26 /base64/incremental/smallblock/4 3318s # End of smallblock tests 3318s # End of incremental tests 3318s # Start of decode tests 3318s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1698 3318s ok 27 /base64/decode/empty 3318s # End of decode tests 3318s # Start of encode-decode tests 3318s # Vector 0: 3318s # Vector 1: f 3318s # Vector 2: fo 3318s # Vector 3: foo 3318s # Vector 4: foob 3318s # Vector 5: fooba 3318s # Vector 6: foobar 3318s ok 28 /base64/encode-decode/rfc4648 3318s # End of encode-decode tests 3318s # End of base64 tests 3318s ok - glib/base64.test 3318s # Running test: glib/network-monitor-race.test 3318s TAP version 14 3318s # random seed: R02Sc3e304ea56c697bb299acaaa90cfa26a 3318s 1..1 3318s # Start of network-monitor tests 3318s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=793727 3319s # Executing: glib/network-monitor-race.test 3324s ok 1 /network-monitor/create-in-thread 3324s # slow test /network-monitor/create-in-thread executed in 5.72 secs 3324s # End of network-monitor tests 3324s ok - glib/network-monitor-race.test 3324s # Running test: glib/refstring.test 3324s # Executing: glib/refstring.test 3324s TAP version 14 3324s # random seed: R02Sd6d4ca23a201346e34a6ccb0f2d1af06 3324s 1..8 3324s # Start of refstring tests 3324s # s = 'hello, world' (0x555b88cb53c0) 3324s ok 1 /refstring/base 3324s ok 2 /refstring/length 3324s ok 3 /refstring/length-auto 3324s ok 4 /refstring/length-nuls 3324s # s = 'hello, world' (0x555b88cb5260) 3324s # p = s = 'hello, world' (0x555b88cb5260) 3324s # releasing p[0x555b88cb5260] ('hello, world') 3324s # p = 'goodbye, world' (0x555b88cb53c0) 3324s # releasing p[0x555b88cb53c0] ('goodbye, world') 3324s # releasing s[0x555b88cb5260] ('hello, world') 3324s ok 5 /refstring/intern 3324s # /refstring/hash_equal summary: Test g_ref_string_equal() in GHashTable 3324s ok 6 /refstring/hash_equal 3324s # /refstring/equal summary: Test g_ref_string_equal() standalone 3324s ok 7 /refstring/equal 3329s # Executing: glib/refstring.test 3332s ok 8 /refstring/intern-thread-safety 3332s # slow test /refstring/intern-thread-safety executed in 8.60 secs 3332s # End of refstring tests 3332s ok - glib/refstring.test 3332s # Running test: glib/memory-settings-backend.test 3333s TAP version 14 3333s # random seed: R02Sd752f3ade78e1a4dedee51909593e110 3333s 1..1 3333s # Start of memory-settings-backend tests 3333s ok 1 /memory-settings-backend/extension-point-registered 3333s # End of memory-settings-backend tests 3333s ok - glib/memory-settings-backend.test 3333s # Running test: glib/macros-c-17.test 3333s TAP version 14 3333s # random seed: R02S316b9404db509b2e223f6d9356a0c9d5 3333s 1..4 3333s # Start of C tests 3333s ok 1 /C/standard-17 3333s # End of C tests 3333s # Start of alignof tests 3333s ok 2 /alignof/fallback 3333s # End of alignof tests 3333s # Start of assert tests 3333s ok 3 /assert/static 3333s # End of assert tests 3333s # Start of struct tests 3333s ok 4 /struct/sizeof_member 3333s # End of struct tests 3333s ok - glib/macros-c-17.test 3333s # Running test: glib/utf8-misc.test 3333s TAP version 14 3333s # random seed: R02Sc57c523bc71c99cca03099579c9df3e6 3333s 1..7 3333s # Start of utf8 tests 3333s ok 1 /utf8/strlen 3333s ok - glib/utf8-misc.test 3333s ok 2 /utf8/strncpy 3333s ok 3 /utf8/strrchr 3333s ok 4 /utf8/reverse 3333s ok 5 /utf8/substring 3333s ok 6 /utf8/make-valid 3333s ok 7 /utf8/truncate-middle 3333s # End of utf8 tests 3333s # Running test: glib/contexts.test 3333s TAP version 14 3333s # random seed: R02S7266cfe6fc358fa222493cc549a076c5 3333s 1..5 3333s # Start of gio tests 3333s # Start of contexts tests 3333s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 3333s ok 1 /gio/contexts/thread-independence 3333s ok 2 /gio/contexts/context-independence 3333s # Start of context-specific tests 3333s ok 3 /gio/contexts/context-specific/identity 3334s ok 4 /gio/contexts/context-specific/emit 3334s # slow test /gio/contexts/context-specific/emit executed in 0.61 secs 3334s ok 5 /gio/contexts/context-specific/emit-and-unref 3334s # End of context-specific tests 3334s # End of contexts tests 3334s # End of gio tests 3334s ok - glib/contexts.test 3334s # Running test: glib/thread.test 3334s TAP version 14 3334s # random seed: R02S185a096023aac79a2d6967cd9e5721ec 3334s 1..7 3334s # Start of thread tests 3334s ok 1 /thread/thread1 3334s ok 2 /thread/thread2 3334s ok 3 /thread/thread3 3334s # Executing: glib/thread.test 3334s ok 4 /thread/thread4 3334s ok 5 /thread/thread5 3334s ok 6 /thread/thread6 3334s ok 7 /thread/thread7 3334s # End of thread tests 3334s ok - glib/thread.test 3334s # Running test: glib/properties-refcount2.test 3334s TAP version 14 3334s # random seed: R02Se17c7e2e0b3a1ddd1303dc503532fcbe 3334s 1..1 3334s # Start of gobject tests 3334s # Start of refcount tests 3334s # init 0x5559b8b9be20 3334s # 3334s # . 3334s # . 3334s # . 3334s # . 3334s # . 3335s # . 3335s # . 3335s # . 3335s # . 3335s # . 3335s # . 3335s # . 3336s # . 3336s # . 3336s # . 3336s # . 3336s # . 3336s # . 3336s # . 3336s # . 3337s # . 3337s # . 3337s # . 3337s # . 3337s # . 3337s # . 3337s # . 3337s # . 3338s # . 3338s # . 3338s # . 3338s # . 3338s # . 3338s # . 3338s # . 3338s # . 3339s # . 3339s # . 3339s # Executing: glib/properties-refcount2.test 3339s # . 3339s # . 3339s # . 3339s # . 3339s # . 3339s # . 3340s # . 3340s # . 3340s # . 3340s # . 3340s # . 3340s # . 3340s # . 3340s # . 3341s # . 3341s # . 3341s # . 3341s # . 3341s # . 3341s # . 3341s # . 3341s # . 3342s # . 3342s # . 3342s # . 3342s # . 3342s # . 3342s # . 3342s # . 3342s # . 3343s # . 3343s # . 3343s # . 3343s # . 3343s # . 3343s # . 3343s # . 3343s # . 3344s # . 3344s # . 3344s # Executing: glib/properties-refcount2.test 3344s # . 3344s # . 3344s # . 3344s # . 3344s # . 3344s # . 3345s # . 3345s # . 3345s # . 3345s # . 3345s # . 3345s # . 3345s # . 3345s # . 3346s # . 3346s # . 3346s # . 3346s # . 3346s # . 3346s # . 3346s # . 3346s # . 3346s # dispose 0x5559b8b9be20! 3346s # 3346s ok 1 /gobject/refcount/properties-2 3346s # slow test /gobject/refcount/properties-2 executed in 12.67 secs 3346s # End of refcount tests 3346s # End of gobject tests 3346s ok - glib/properties-refcount2.test 3347s # Running test: glib/assert-msg-test.py.test 3347s TAP version 13 3347s ok 1 __main__.TestAssertMessage.test_gassert 3347s # assert-msg-test: /usr/libexec/installed-tests/glib/assert-msg-test 3347s # tmpdir: /tmp/tmp01j5s23s 3347s # Running: ['/usr/libexec/installed-tests/glib/assert-msg-test'] 3347s # Return code: -6 3347s # Output: 3347s # Bail out! GLib:ERROR:../../../glib/tests/assert-msg-test.c:31:main: assertion failed: (42 < 0) 3347s # Error: 3347s # ** 3347s # GLib:ERROR:../../../glib/tests/assert-msg-test.c:31:main: assertion failed: (42 < 0) 3347s ok 2 __main__.TestAssertMessage.test_gdb_gassert # SKIP GDB is not installed, skipping this test! 3347s # assert-msg-test: /usr/libexec/installed-tests/glib/assert-msg-test 3347s # tmpdir: /tmp/tmpvgdypu7o 3347s 1..2 3348s ok - glib/assert-msg-test.py.test 3348s # Running test: glib/debugcontroller.test 3348s TAP version 14 3348s # random seed: R02S1879ac3a91a2f648011aa8a4bd4a56ef 3348s 1..3 3348s # Start of debug-controller tests 3348s # Start of dbus tests 3348s # /debug-controller/dbus/basic summary: Smoketest for construction and setting of a #GDebugControllerDBus. 3348s # GLib-GIO-DEBUG: Debug output enabled 3348s # GLib-GIO-DEBUG: Debug output disabled 3348s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3348s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3348s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3348s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3348s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3348s ok 1 /debug-controller/dbus/basic 3348s # /debug-controller/dbus/duplicate summary: Test that creating a second #GDebugControllerDBus on the same D-Bus connection fails. 3348s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3348s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3348s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3348s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3348s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3348s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3348s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3348s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3348s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3348s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3348s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3348s ok 2 /debug-controller/dbus/duplicate 3348s # /debug-controller/dbus/properties summary: Test getting and setting properties on a #GDebugControllerDBus. 3348s ok 3 /debug-controller/dbus/properties # SKIP https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2486#note_1384102 3348s # End of dbus tests 3348s # End of debug-controller tests 3348s ok - glib/debugcontroller.test 3348s # Running test: glib/performance.test 3349s # Executing: glib/performance.test 3354s # Executing: glib/performance.test 3359s # Executing: glib/performance.test 3364s # Executing: glib/performance.test 3364s simple-construction: Millions of constructed objects per second: 1.590 3369s # Executing: glib/performance.test 3371s simple-construction1: Millions of constructed objects per second: 4.772 3374s # Executing: glib/performance.test 3378s complex-construction: Millions of constructed objects per second: 0.394 3379s # Executing: glib/performance.test 3384s # Executing: glib/performance.test 3388s complex-construction1: Millions of constructed objects per second: 0.819 3389s # Executing: glib/performance.test 3394s # Executing: glib/performance.test 3399s # Executing: glib/performance.test 3400s complex-construction2: Millions of constructed objects per second: 0.991 3402s finalization: Millions of finalized objects per second: 0.289 3404s # Executing: glib/performance.test 3405s type-check: Million type checks per second: 8.93 3407s emit-unhandled: Emissions per second: 355327 3409s # Executing: glib/performance.test 3409s emit-unhandled-empty: Emissions per second: 2508983 3411s emit-unhandled-generic: Emissions per second: 539836 3413s emit-unhandled-generic-empty: Emissions per second: 2499542 3414s # Executing: glib/performance.test 3415s emit-unhandled-args: Emissions per second: 285516 3417s emit-handled: Emissions per second: 251717 3419s # Executing: glib/performance.test 3419s emit-handled-empty: Emissions per second: 264024 3421s emit-handled-generic: Emissions per second: 258537 3423s emit-handled-generic-empty: Emissions per second: 475973 3424s # Executing: glib/performance.test 3425s emit-handled-args: Emissions per second: 218196 3428s notify-unhandled: Notify (unhandled) per second: 2162916 3429s # Executing: glib/performance.test 3430s notify-by-pspec-unhandled: Notify (unhandled) per second: 5046581 3433s notify-handled: Notify per second: 138378 3434s # Executing: glib/performance.test 3435s notify-by-pspec-handled: Notify per second: 146880 3437s property-set: Property set per second: 1252437 3439s # Executing: glib/performance.test 3440s property-set-signaled: Property set per second: 209996 3443s property-get: Property get per second: 984856 3444s # Executing: glib/performance.test 3445s refcount: Million refs+unref per second: 2.62 3447s refcount-1: Million refs+unref per second: 6.98 3449s # Executing: glib/performance.test 3449s ok - glib/performance.test 3449s refcount-toggle: Million refs+unref per second: 3.92 3449s # Running test: glib/utils-c-99.test 3449s TAP version 14 3449s # random seed: R02S4cc120e91125814b55235b6dea0ccf38 3449s 1..41 3449s # Start of utils tests 3449s ok 1 /utils/language-names 3449s ok 2 /utils/locale-variants 3449s ok 3 /utils/version 3449s ok 4 /utils/appname 3449s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 3449s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 3449s ok 5 /utils/prgname-thread-safety 3449s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 3449s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 3449s ok 6 /utils/tmpdir 3450s ok 7 /utils/basic_bits 3450s ok 8 /utils/bits 3450s ok 9 /utils/swap 3450s ok 10 /utils/find-program 3450s ok 11 /utils/find-program-for-path 3450s ok 12 /utils/debug 3450s ok 13 /utils/codeset 3450s ok 14 /utils/codeset2 3450s ok 15 /utils/console-charset 3450s ok 16 /utils/gettext 3450s ok 17 /utils/username 3450s ok 18 /utils/realname 3450s ok 19 /utils/hostname 3450s ok 20 /utils/xdgdirs 3450s ok 21 /utils/specialdir 3450s # NAME: Ubuntu 3450s ok 22 /utils/os-info 3450s ok 23 /utils/clear-pointer 3450s ok 24 /utils/clear-pointer-cast 3450s ok 25 /utils/take-pointer 3450s ok 26 /utils/clear-source 3450s ok 27 /utils/misc-mem 3450s # /utils/aligned-mem summary: Aligned memory allocator 3450s # Alignment must not be zero 3450s # Alignment must be a power of two 3450s # Alignment must be a multiple of sizeof(void*) 3450s ok 28 /utils/aligned-mem 3450s # /utils/free-sized summary: Check that g_free_sized() works 3450s ok 29 /utils/free-sized 3450s ok 30 /utils/nullify 3450s ok 31 /utils/atexit 3450s ok 32 /utils/check-setuid 3450s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 3450s ok 33 /utils/int-limits 3450s ok 34 /utils/clear-list 3450s ok 35 /utils/clear-slist 3450s ok 36 /utils/steal-handle-id 3450s # Start of specialdir tests 3450s ok 37 /utils/specialdir/desktop 3450s # End of specialdir tests 3450s # Start of clear-pointer tests 3450s ok 38 /utils/clear-pointer/side-effects 3450s # End of clear-pointer tests 3450s # Start of aligned-mem tests 3450s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 3450s ok 39 /utils/aligned-mem/alignment 3450s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 3450s ok 40 /utils/aligned-mem/zeroed 3450s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 3450s ok 41 /utils/aligned-mem/free-sized 3450s # Start of subprocess tests 3450s # End of subprocess tests 3450s # End of aligned-mem tests 3450s # End of utils tests 3450s ok - glib/utils-c-99.test 3450s # Running test: glib/properties.test 3450s TAP version 14 3450s # random seed: R02Secb831e32c5bf2876d54eb2d89918530 3450s 1..14 3450s # Start of properties tests 3450s ok 1 /properties/install 3450s ok 2 /properties/install-many 3450s ok 3 /properties/notify 3450s ok 4 /properties/notify-queue 3450s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=630357 3450s ok 5 /properties/construct 3450s # /properties/get-property summary: g_object_get_property() accepts uninitialized, initialized, and transformable values 3450s # Test g_object_get_property with an initialized value 3450s # Test g_object_get_property with an uninitialized value 3450s # Test g_object_get_property with a transformable value 3450s ok 6 /properties/get-property 3450s ok 7 /properties/testv_with_no_properties 3450s ok 8 /properties/testv_with_valid_properties 3450s ok 9 /properties/testv_with_invalid_property_type 3450s ok 10 /properties/testv_with_invalid_property_names 3450s ok 11 /properties/testv_getv 3450s ok 12 /properties/testv_notify_queue 3450s # Start of notify tests 3450s ok 13 /properties/notify/too-many-freezes 3450s # End of notify tests 3450s # Start of set-property tests 3450s # Start of variant tests 3450s # /properties/set-property/variant/floating summary: Test that setting a property to a floating variant consumes the reference 3450s ok 14 /properties/set-property/variant/floating 3450s # End of variant tests 3450s # End of set-property tests 3450s # End of properties tests 3450s ok - glib/properties.test 3450s # Running test: glib/tls-interaction.test 3450s TAP version 14 3450s # random seed: R02Se3f8eeac483be01c443afdafb5686632 3450s 1..42 3450s # Start of tls-interaction tests 3450s # Start of ask-password tests 3450s # Start of invoke-with-loop tests 3450s ok 1 /tls-interaction/ask-password/invoke-with-loop/unhandled-implementation 3450s ok 2 /tls-interaction/ask-password/invoke-with-loop/async-implementation-success 3450s ok 3 /tls-interaction/ask-password/invoke-with-loop/async-implementation-failure 3450s ok 4 /tls-interaction/ask-password/invoke-with-loop/sync-implementation-success 3450s ok 5 /tls-interaction/ask-password/invoke-with-loop/sync-implementation-failure 3450s # End of invoke-with-loop tests 3450s # Start of invoke-without-loop tests 3450s ok 6 /tls-interaction/ask-password/invoke-without-loop/unhandled-implementation 3450s ok 7 /tls-interaction/ask-password/invoke-without-loop/async-implementation-success 3450s ok 8 /tls-interaction/ask-password/invoke-without-loop/async-implementation-failure 3450s ok 9 /tls-interaction/ask-password/invoke-without-loop/sync-implementation-success 3450s ok 10 /tls-interaction/ask-password/invoke-without-loop/sync-implementation-failure 3450s # End of invoke-without-loop tests 3450s # Start of invoke-in-loop tests 3450s ok 11 /tls-interaction/ask-password/invoke-in-loop/unhandled-implementation 3450s ok 12 /tls-interaction/ask-password/invoke-in-loop/async-implementation-success 3450s ok 13 /tls-interaction/ask-password/invoke-in-loop/async-implementation-failure 3450s ok 14 /tls-interaction/ask-password/invoke-in-loop/sync-implementation-success 3450s ok 15 /tls-interaction/ask-password/invoke-in-loop/sync-implementation-failure 3450s # End of invoke-in-loop tests 3450s # Start of sync tests 3450s ok 16 /tls-interaction/ask-password/sync/unhandled-implementation 3450s ok 17 /tls-interaction/ask-password/sync/sync-implementation-success 3450s ok 18 /tls-interaction/ask-password/sync/sync-implementation-failure 3450s # End of sync tests 3450s # Start of async tests 3451s ok 19 /tls-interaction/ask-password/async/unhandled-implementation 3451s ok 20 /tls-interaction/ask-password/async/async-implementation-success 3451s ok 21 /tls-interaction/ask-password/async/async-implementation-failure 3451s # End of async tests 3451s # End of ask-password tests 3451s # Start of request-certificate tests 3451s # Start of invoke-with-loop tests 3451s ok 22 /tls-interaction/request-certificate/invoke-with-loop/unhandled-implementation 3451s ok 23 /tls-interaction/request-certificate/invoke-with-loop/async-implementation-success 3451s ok 24 /tls-interaction/request-certificate/invoke-with-loop/async-implementation-failure 3451s ok 25 /tls-interaction/request-certificate/invoke-with-loop/sync-implementation-success 3451s ok 26 /tls-interaction/request-certificate/invoke-with-loop/sync-implementation-failure 3451s # End of invoke-with-loop tests 3451s # Start of invoke-without-loop tests 3451s ok 27 /tls-interaction/request-certificate/invoke-without-loop/unhandled-implementation 3451s ok 28 /tls-interaction/request-certificate/invoke-without-loop/async-implementation-success 3451s ok 29 /tls-interaction/request-certificate/invoke-without-loop/async-implementation-failure 3451s ok 30 /tls-interaction/request-certificate/invoke-without-loop/sync-implementation-success 3451s ok 31 /tls-interaction/request-certificate/invoke-without-loop/sync-implementation-failure 3451s # End of invoke-without-loop tests 3451s # Start of invoke-in-loop tests 3451s ok 32 /tls-interaction/request-certificate/invoke-in-loop/unhandled-implementation 3451s ok 33 /tls-interaction/request-certificate/invoke-in-loop/async-implementation-success 3451s ok 34 /tls-interaction/request-certificate/invoke-in-loop/async-implementation-failure 3451s ok 35 /tls-interaction/request-certificate/invoke-in-loop/sync-implementation-success 3451s ok 36 /tls-interaction/request-certificate/invoke-in-loop/sync-implementation-failure 3451s ok - glib/tls-interaction.test 3451s # End of invoke-in-loop tests 3451s # Start of sync tests 3451s ok 37 /tls-interaction/request-certificate/sync/unhandled-implementation 3451s ok 38 /tls-interaction/request-certificate/sync/sync-implementation-success 3451s ok 39 /tls-interaction/request-certificate/sync/sync-implementation-failure 3451s # End of sync tests 3451s # Start of async tests 3451s ok 40 /tls-interaction/request-certificate/async/unhandled-implementation 3451s ok 41 /tls-interaction/request-certificate/async/async-implementation-success 3451s ok 42 /tls-interaction/request-certificate/async/async-implementation-failure 3451s # End of async tests 3451s # End of request-certificate tests 3451s # End of tls-interaction tests 3451s # Running test: glib/markup-escape.test 3451s TAP version 14 3451s # random seed: R02Sd24ac88116bb930ccbf31f9755fbe55b 3451s 1..41 3451s # Start of markup tests 3451s ok 1 /markup/format 3451s # Start of escape-text tests 3451s ok 2 /markup/escape-text/0 3451s ok 3 /markup/escape-text/1 3451s ok 4 /markup/escape-text/2 3451s ok 5 /markup/escape-text/3 3451s ok 6 /markup/escape-text/4 3451s ok 7 /markup/escape-text/5 3451s ok 8 /markup/escape-text/6 3451s ok 9 /markup/escape-text/7 3451s ok 10 /markup/escape-text/8 3451s ok 11 /markup/escape-text/9 3451s ok 12 /markup/escape-text/10 3451s ok 13 /markup/escape-text/11 3451s ok 14 /markup/escape-text/12 3451s ok 15 /markup/escape-text/13 3451s ok 16 /markup/escape-text/14 3451s ok 17 /markup/escape-text/15 3451s ok 18 /markup/escape-text/16 3451s ok 19 /markup/escape-text/17 3451s ok 20 /markup/escape-text/18 3451s ok 21 /markup/escape-text/19 3451s ok 22 /markup/escape-text/20 3451s ok 23 /markup/escape-text/21 3451s ok 24 /markup/escape-text/22 3451s ok - glib/markup-escape.test 3451s # End of escape-text tests 3451s # Start of escape-unichar tests 3451s ok 25 /markup/escape-unichar/0 3451s ok 26 /markup/escape-unichar/1 3451s ok 27 /markup/escape-unichar/2 3451s ok 28 /markup/escape-unichar/3 3451s ok 29 /markup/escape-unichar/4 3451s ok 30 /markup/escape-unichar/5 3451s ok 31 /markup/escape-unichar/6 3451s ok 32 /markup/escape-unichar/7 3451s ok 33 /markup/escape-unichar/8 3451s ok 34 /markup/escape-unichar/9 3451s ok 35 /markup/escape-unichar/10 3451s ok 36 /markup/escape-unichar/11 3451s ok 37 /markup/escape-unichar/12 3451s ok 38 /markup/escape-unichar/13 3451s ok 39 /markup/escape-unichar/14 3451s ok 40 /markup/escape-unichar/15 3451s ok 41 /markup/escape-unichar/16 3451s # End of escape-unichar tests 3451s # End of markup tests 3451s # Running test: glib/sleepy-stream.test 3451s TAP version 14 3451s # random seed: R02S4f0c4b85aeb8a1f0351da8d578f5af88 3451s 1..2 3451s # Start of filter-stream tests 3451s ok 1 /filter-stream/input 3451s ok - glib/sleepy-stream.test 3451s ok 2 /filter-stream/async 3451s # End of filter-stream tests 3451s # Running test: glib/gdbus-export.test 3451s TAP version 14 3451s # random seed: R02S22f7c107143902f51705ee53b4243c70 3451s 1..7 3451s # Start of gdbus tests 3451s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_IHNR52/gdbus/object-registration/.dirs/home 3451s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_IHNR52/gdbus/object-registration/.dirs/cache 3451s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_IHNR52/gdbus/object-registration/.dirs/system-config1:/tmp/test_gdbus-export_IHNR52/gdbus/object-registration/.dirs/system-config2 3451s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_IHNR52/gdbus/object-registration/.dirs/config 3451s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_IHNR52/gdbus/object-registration/.dirs/system-data1:/tmp/test_gdbus-export_IHNR52/gdbus/object-registration/.dirs/system-data2 3451s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_IHNR52/gdbus/object-registration/.dirs/data 3451s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_IHNR52/gdbus/object-registration/.dirs/state 3451s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_IHNR52/gdbus/object-registration/.dirs/runtime 3452s ok 1 /gdbus/object-registration 3452s # slow test /gdbus/object-registration executed in 0.52 secs 3452s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_IHNR52/gdbus/object-registration-with-closures/.dirs/home 3452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_IHNR52/gdbus/object-registration-with-closures/.dirs/cache 3452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_IHNR52/gdbus/object-registration-with-closures/.dirs/system-config1:/tmp/test_gdbus-export_IHNR52/gdbus/object-registration-with-closures/.dirs/system-config2 3452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_IHNR52/gdbus/object-registration-with-closures/.dirs/config 3452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_IHNR52/gdbus/object-registration-with-closures/.dirs/system-data1:/tmp/test_gdbus-export_IHNR52/gdbus/object-registration-with-closures/.dirs/system-data2 3452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_IHNR52/gdbus/object-registration-with-closures/.dirs/data 3452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_IHNR52/gdbus/object-registration-with-closures/.dirs/state 3452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_IHNR52/gdbus/object-registration-with-closures/.dirs/runtime 3452s ok 2 /gdbus/object-registration-with-closures 3452s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_IHNR52/gdbus/object-registration-with-closures2/.dirs/home 3452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_IHNR52/gdbus/object-registration-with-closures2/.dirs/cache 3452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_IHNR52/gdbus/object-registration-with-closures2/.dirs/system-config1:/tmp/test_gdbus-export_IHNR52/gdbus/object-registration-with-closures2/.dirs/system-config2 3452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_IHNR52/gdbus/object-registration-with-closures2/.dirs/config 3452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_IHNR52/gdbus/object-registration-with-closures2/.dirs/system-data1:/tmp/test_gdbus-export_IHNR52/gdbus/object-registration-with-closures2/.dirs/system-data2 3452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_IHNR52/gdbus/object-registration-with-closures2/.dirs/data 3452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_IHNR52/gdbus/object-registration-with-closures2/.dirs/state 3452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_IHNR52/gdbus/object-registration-with-closures2/.dirs/runtime 3452s ok 3 /gdbus/object-registration-with-closures2 3452s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_IHNR52/gdbus/registered-interfaces/.dirs/home 3452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_IHNR52/gdbus/registered-interfaces/.dirs/cache 3452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_IHNR52/gdbus/registered-interfaces/.dirs/system-config1:/tmp/test_gdbus-export_IHNR52/gdbus/registered-interfaces/.dirs/system-config2 3452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_IHNR52/gdbus/registered-interfaces/.dirs/config 3452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_IHNR52/gdbus/registered-interfaces/.dirs/system-data1:/tmp/test_gdbus-export_IHNR52/gdbus/registered-interfaces/.dirs/system-data2 3452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_IHNR52/gdbus/registered-interfaces/.dirs/data 3452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_IHNR52/gdbus/registered-interfaces/.dirs/state 3452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_IHNR52/gdbus/registered-interfaces/.dirs/runtime 3452s ok 4 /gdbus/registered-interfaces 3452s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_IHNR52/gdbus/async-properties/.dirs/home 3452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_IHNR52/gdbus/async-properties/.dirs/cache 3452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_IHNR52/gdbus/async-properties/.dirs/system-config1:/tmp/test_gdbus-export_IHNR52/gdbus/async-properties/.dirs/system-config2 3452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_IHNR52/gdbus/async-properties/.dirs/config 3452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_IHNR52/gdbus/async-properties/.dirs/system-data1:/tmp/test_gdbus-export_IHNR52/gdbus/async-properties/.dirs/system-data2 3452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_IHNR52/gdbus/async-properties/.dirs/data 3452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_IHNR52/gdbus/async-properties/.dirs/state 3452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_IHNR52/gdbus/async-properties/.dirs/runtime 3452s ok 5 /gdbus/async-properties 3452s # Start of threaded-unregistration tests 3452s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_IHNR52/gdbus/threaded-unregistration/object/.dirs/home 3452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_IHNR52/gdbus/threaded-unregistration/object/.dirs/cache 3452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_IHNR52/gdbus/threaded-unregistration/object/.dirs/system-config1:/tmp/test_gdbus-export_IHNR52/gdbus/threaded-unregistration/object/.dirs/system-config2 3452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_IHNR52/gdbus/threaded-unregistration/object/.dirs/config 3452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_IHNR52/gdbus/threaded-unregistration/object/.dirs/system-data1:/tmp/test_gdbus-export_IHNR52/gdbus/threaded-unregistration/object/.dirs/system-data2 3452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_IHNR52/gdbus/threaded-unregistration/object/.dirs/data 3452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_IHNR52/gdbus/threaded-unregistration/object/.dirs/state 3452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_IHNR52/gdbus/threaded-unregistration/object/.dirs/runtime 3452s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2400 3452s # /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 3454s # Executing: glib/gdbus-export.test 3459s # Executing: glib/gdbus-export.test 3463s ok 6 /gdbus/threaded-unregistration/object # SKIP Failed to reproduce race (998 iterations with unregistration first, 2 with call first); skipping test 3463s # slow test /gdbus/threaded-unregistration/object executed in 11.34 secs 3463s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_IHNR52/gdbus/threaded-unregistration/subtree/.dirs/home 3463s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_IHNR52/gdbus/threaded-unregistration/subtree/.dirs/cache 3463s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_IHNR52/gdbus/threaded-unregistration/subtree/.dirs/system-config1:/tmp/test_gdbus-export_IHNR52/gdbus/threaded-unregistration/subtree/.dirs/system-config2 3463s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_IHNR52/gdbus/threaded-unregistration/subtree/.dirs/config 3463s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_IHNR52/gdbus/threaded-unregistration/subtree/.dirs/system-data1:/tmp/test_gdbus-export_IHNR52/gdbus/threaded-unregistration/subtree/.dirs/system-data2 3463s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_IHNR52/gdbus/threaded-unregistration/subtree/.dirs/data 3463s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_IHNR52/gdbus/threaded-unregistration/subtree/.dirs/state 3463s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_IHNR52/gdbus/threaded-unregistration/subtree/.dirs/runtime 3463s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2400 3463s # /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 3464s # Executing: glib/gdbus-export.test 3469s # Executing: glib/gdbus-export.test 3474s # Executing: glib/gdbus-export.test 3475s ok 7 /gdbus/threaded-unregistration/subtree # SKIP Failed to reproduce race (999 iterations with unregistration first, 1 with call first); skipping test 3475s # slow test /gdbus/threaded-unregistration/subtree executed in 11.38 secs 3475s # End of threaded-unregistration tests 3475s # End of gdbus tests 3475s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3475s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3475s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3475s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3475s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3475s ok - glib/gdbus-export.test 3475s # Running test: glib/mainloop.test 3475s TAP version 14 3475s # random seed: R02S312429872624d35cb59bf5de3bfceea8 3475s 1..45 3475s # Start of maincontext tests 3475s ok 1 /maincontext/basic 3475s # Add same-priority sources: 336 3475s # Find each source: 29 3476s # Remove in random order: 204 3476s ok 2 /maincontext/nsources_same_priority 3476s # slow test /maincontext/nsources_same_priority executed in 0.80 secs 3476s # Add different-priority sources: 191 3476s # Find each source: 22 3476s # Remove in random order: 127 3476s ok 3 /maincontext/nsources_different_priority 3476s # slow test /maincontext/nsources_different_priority executed in 0.57 secs 3478s # Add sources from threads: 1772 3479s # Executing: glib/mainloop.test 3480s # Remove sources from threads: 1545 3480s ok 4 /maincontext/nsources_threadpool 3480s # slow test /maincontext/nsources_threadpool executed in 3.37 secs 3480s ok 5 /maincontext/source_finalization 3480s # /maincontext/idle-once summary: Test g_idle_add_once() works 3480s ok 6 /maincontext/idle-once 3480s # /maincontext/timeout-once summary: Test g_timeout_add_once() works 3480s ok 7 /maincontext/timeout-once 3480s # Start of source_finalization_from_source tests 3480s # /maincontext/source_finalization_from_source/0 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 3480s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 3480s ok 8 /maincontext/source_finalization_from_source/0 3480s # /maincontext/source_finalization_from_source/1 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 3480s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 3480s ok 9 /maincontext/source_finalization_from_source/1 3480s # /maincontext/source_finalization_from_source/2 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 3480s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 3480s ok 10 /maincontext/source_finalization_from_source/2 3480s # /maincontext/source_finalization_from_source/3 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 3480s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 3480s ok 11 /maincontext/source_finalization_from_source/3 3480s # /maincontext/source_finalization_from_source/4 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 3480s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 3480s ok 12 /maincontext/source_finalization_from_source/4 3480s # /maincontext/source_finalization_from_source/5 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 3480s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 3480s ok 13 /maincontext/source_finalization_from_source/5 3480s # /maincontext/source_finalization_from_source/6 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 3480s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 3480s ok 14 /maincontext/source_finalization_from_source/6 3480s # /maincontext/source_finalization_from_source/7 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 3480s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 3480s ok 15 /maincontext/source_finalization_from_source/7 3480s # /maincontext/source_finalization_from_source/8 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 3480s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 3480s ok 16 /maincontext/source_finalization_from_source/8 3480s # /maincontext/source_finalization_from_source/9 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 3480s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 3480s ok 17 /maincontext/source_finalization_from_source/9 3480s # End of source_finalization_from_source tests 3480s # Start of source_finalization_from_dispatch tests 3480s # /maincontext/source_finalization_from_dispatch/0 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 3480s ok 18 /maincontext/source_finalization_from_dispatch/0 3480s # /maincontext/source_finalization_from_dispatch/1 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 3480s ok 19 /maincontext/source_finalization_from_dispatch/1 3480s # /maincontext/source_finalization_from_dispatch/2 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 3480s ok 20 /maincontext/source_finalization_from_dispatch/2 3480s # End of source_finalization_from_dispatch tests 3480s # End of maincontext tests 3480s # Start of mainloop tests 3480s ok 21 /mainloop/basic 3480s ok 22 /mainloop/timeouts # SKIP Not running timing heavy test 3480s ok 23 /mainloop/priorities 3480s ok 24 /mainloop/invoke 3480s # slow test /mainloop/invoke executed in 0.51 secs 3482s ok 25 /mainloop/child_sources 3482s # slow test /mainloop/child_sources executed in 1.26 secs 3484s # Executing: glib/mainloop.test 3484s ok 26 /mainloop/recursive_child_sources 3484s # slow test /mainloop/recursive_child_sources executed in 2.28 secs 3484s ok 27 /mainloop/recursive_loop_child_sources 3484s ok 28 /mainloop/swapping_child_sources 3484s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=701283 3484s ok 29 /mainloop/blocked_child_sources 3485s ok 30 /mainloop/source_time 3485s # slow test /mainloop/source_time executed in 1.00 secs 3485s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=687098 3485s ok 31 /mainloop/overflow 3485s ok 32 /mainloop/ready-time 3485s # slow test /mainloop/ready-time executed in 0.50 secs 3485s ok 33 /mainloop/wakeup 3485s ok 34 /mainloop/remove-invalid 3485s ok 35 /mainloop/unref-while-pending 3489s # Executing: glib/mainloop.test 3494s # Executing: glib/mainloop.test 3499s # Executing: glib/mainloop.test 3499s ok 36 /mainloop/unix-fd 3499s # slow test /mainloop/unix-fd executed in 13.69 secs 3499s ok 37 /mainloop/unix-fd-source 3499s ok 38 /mainloop/source-unix-fd-api 3499s ok 39 /mainloop/wait 3499s ok 40 /mainloop/unix-file-poll 3499s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1592 3499s ok 41 /mainloop/unix-fd-priority 3499s ok 42 /mainloop/nfds 3499s ok 43 /mainloop/steal-fd 3499s # Start of ownerless-polling tests 3499s ok 44 /mainloop/ownerless-polling/attach-first 3499s ok 45 /mainloop/ownerless-polling/pop-first 3499s # End of ownerless-polling tests 3499s # End of mainloop tests 3499s ok - glib/mainloop.test 3499s # Running test: glib/gdbus-proxy-threads.test 3500s TAP version 14 3500s # random seed: R02S699a15f08dcbc08d722b4ab2d6756961 3500s 1..1 3500s # Start of gdbus tests 3500s # Start of proxy tests 3500s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy-threads_ZLJ452/gdbus/proxy/vs-threads/.dirs/home 3500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy-threads_ZLJ452/gdbus/proxy/vs-threads/.dirs/cache 3500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy-threads_ZLJ452/gdbus/proxy/vs-threads/.dirs/system-config1:/tmp/test_gdbus-proxy-threads_ZLJ452/gdbus/proxy/vs-threads/.dirs/system-config2 3500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy-threads_ZLJ452/gdbus/proxy/vs-threads/.dirs/config 3500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy-threads_ZLJ452/gdbus/proxy/vs-threads/.dirs/system-data1:/tmp/test_gdbus-proxy-threads_ZLJ452/gdbus/proxy/vs-threads/.dirs/system-data2 3500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy-threads_ZLJ452/gdbus/proxy/vs-threads/.dirs/data 3500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy-threads_ZLJ452/gdbus/proxy/vs-threads/.dirs/state 3500s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy-threads_ZLJ452/gdbus/proxy/vs-threads/.dirs/runtime 3504s # Executing: glib/gdbus-proxy-threads.test 3509s # Executing: glib/gdbus-proxy-threads.test 3513s ok 1 /gdbus/proxy/vs-threads 3513s # slow test /gdbus/proxy/vs-threads executed in 13.01 secs 3513s # End of proxy tests 3513s # End of gdbus tests 3513s ok - glib/gdbus-proxy-threads.test 3513s cleaning up pid 7465 3513s # Running test: glib/bytes.test 3513s TAP version 14 3513s # random seed: R02S2fe2a801bc65aadf885cf9729c2f9686 3513s 1..21 3513s # Start of bytes tests 3513s ok 1 /bytes/new 3513s ok 2 /bytes/new-take 3513s ok 3 /bytes/new-static 3513s ok 4 /bytes/new-with-free-func 3513s ok 5 /bytes/new-from-bytes 3513s ok 6 /bytes/new-from-bytes-slice 3513s ok 7 /bytes/new-from-bytes-shared-ref 3513s ok 8 /bytes/hash 3513s ok 9 /bytes/equal 3513s ok 10 /bytes/compare 3513s ok 11 /bytes/null 3513s ok 12 /bytes/get-region 3513s # /bytes/unref-null summary: Test that calling g_bytes_unref() on NULL is a no-op 3513s ok - glib/bytes.test 3513s ok 13 /bytes/unref-null 3513s # Start of to-data tests 3513s ok 14 /bytes/to-data/transferred 3513s ok 15 /bytes/to-data/two-refs 3513s ok 16 /bytes/to-data/non-malloc 3513s ok 17 /bytes/to-data/different-free-func 3513s # End of to-data tests 3513s # Start of to-array tests 3513s ok 18 /bytes/to-array/transferred 3513s ok 19 /bytes/to-array/two-refs 3513s ok 20 /bytes/to-array/non-malloc 3513s # Start of transferred tests 3513s # g_bytes_unref_to_array() can only take GBytes up to G_MAXUINT in length; test that longer ones are rejected 3513s ok 21 /bytes/to-array/transferred/oversize 3513s # End of transferred tests 3513s # End of to-array tests 3513s # End of bytes tests 3513s # Running test: glib/cache.test 3513s TAP version 14 3513s # random seed: R02S7459d2ce69a27e4ec31a191b0190c5fc 3513s 1..1 3513s # Start of cache tests 3513s ok 1 /cache/basic 3513s # End of cache tests 3513s ok - glib/cache.test 3513s # Running test: glib/utils-c-89.test 3513s TAP version 14 3513s # random seed: R02S8e7c1c3f592a6c6ed90b2957eaf505e6 3513s 1..41 3513s # Start of utils tests 3513s ok 1 /utils/language-names 3513s ok 2 /utils/locale-variants 3513s ok 3 /utils/version 3513s ok 4 /utils/appname 3513s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 3513s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 3513s ok 5 /utils/prgname-thread-safety 3513s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 3513s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 3513s ok 6 /utils/tmpdir 3513s ok 7 /utils/basic_bits 3513s ok 8 /utils/bits 3513s ok 9 /utils/swap 3513s ok 10 /utils/find-program 3513s ok 11 /utils/find-program-for-path 3513s ok 12 /utils/debug 3513s ok 13 /utils/codeset 3513s ok 14 /utils/codeset2 3513s ok 15 /utils/console-charset 3513s ok 16 /utils/gettext 3513s ok 17 /utils/username 3513s ok 18 /utils/realname 3513s ok 19 /utils/hostname 3513s ok 20 /utils/xdgdirs 3513s ok 21 /utils/specialdir 3513s # NAME: Ubuntu 3513s ok 22 /utils/os-info 3513s ok 23 /utils/clear-pointer 3513s ok 24 /utils/clear-pointer-cast 3513s ok 25 /utils/take-pointer 3513s ok 26 /utils/clear-source 3513s ok 27 /utils/misc-mem 3513s # /utils/aligned-mem summary: Aligned memory allocator 3513s # Alignment must not be zero 3513s # Alignment must be a power of two 3513s # Alignment must be a multiple of sizeof(void*) 3513s ok 28 /utils/aligned-mem 3513s # /utils/free-sized summary: Check that g_free_sized() works 3513s ok 29 /utils/free-sized 3513s ok 30 /utils/nullify 3513s ok 31 /utils/atexit 3513s ok 32 /utils/check-setuid 3513s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 3513s ok 33 /utils/int-limits 3513s ok 34 /utils/clear-list 3513s ok 35 /utils/clear-slist 3513s ok 36 /utils/steal-handle-id 3513s # Start of specialdir tests 3513s ok 37 /utils/specialdir/desktop 3513s # End of specialdir tests 3513s # Start of clear-pointer tests 3513s ok 38 /utils/clear-pointer/side-effects 3513s # End of clear-pointer tests 3513s # Start of aligned-mem tests 3513s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 3513s ok 39 /utils/aligned-mem/alignment 3513s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 3513s ok 40 /utils/aligned-mem/zeroed 3513s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 3513s ok 41 /utils/aligned-mem/free-sized 3513s # Start of subprocess tests 3513s # End of subprocess tests 3513s # End of aligned-mem tests 3513s # End of utils tests 3513s ok - glib/utils-c-89.test 3513s # Running test: glib/notify-init.test 3513s TAP version 14 3513s # random seed: R02S6258c7e1315fad286063a7ff13bdebf8 3513s 1..1 3513s # Start of properties tests 3513s # /properties/notify-in-init summary: Test that emitting notify with a handler already connected in test_object_init() works 3513s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2665 3513s ok 1 /properties/notify-in-init 3513s # End of properties tests 3513s ok - glib/notify-init.test 3514s # Running test: glib/module-test-plugin.test 3514s TAP version 14 3514s # random seed: R02S2d4ce371c5264977083d410f41e0f4c5 3514s 1..3 3514s # Start of module tests 3514s ok 1 /module/basics 3514s # /module/invalid-libtool-archive summary: Test that opening an invalid .la file fails 3514s ok 2 /module/invalid-libtool-archive 3514s # /module/local-binding summary: Test that binding a library's symbols locally does not add them globally 3514s ok 3 /module/local-binding 3514s # End of module tests 3514s ok - glib/module-test-plugin.test 3514s # Running test: glib/readwrite.test 3514s # Executing: glib/readwrite.test 3514s TAP version 14 3514s # random seed: R02S6e28490e58d671b997f0e59be6bfc158 3514s 1..3 3514s # Start of readwrite tests 3514s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 3514s ok 1 /readwrite/test_g_file_open_readwrite 3514s ok 2 /readwrite/test_g_file_create_readwrite 3514s ok 3 /readwrite/test_g_file_replace_readwrite 3514s # End of readwrite tests 3514s ok - glib/readwrite.test 3514s # Running test: glib/642026-ec.test 3514s TAP version 14 3514s # random seed: R02S8a94aa0f57f8d212d829726c36f490cd 3514s 1..1 3514s # Start of glib tests 3514s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642026 3514s ok 1 /glib/642026 3514s # End of glib tests 3514s ok - glib/642026-ec.test 3514s # Running test: glib/gdbus-proxy.test 3514s TAP version 14 3514s # random seed: R02S6c2394fb4c18f74f72e9176dc77284e3 3515s 1..5 3515s # Start of gdbus tests 3515s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_15DC62/gdbus/proxy/.dirs/home 3515s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_15DC62/gdbus/proxy/.dirs/cache 3515s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_15DC62/gdbus/proxy/.dirs/system-config1:/tmp/test_gdbus-proxy_15DC62/gdbus/proxy/.dirs/system-config2 3515s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_15DC62/gdbus/proxy/.dirs/config 3515s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_15DC62/gdbus/proxy/.dirs/system-data1:/tmp/test_gdbus-proxy_15DC62/gdbus/proxy/.dirs/system-data2 3515s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_15DC62/gdbus/proxy/.dirs/data 3515s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_15DC62/gdbus/proxy/.dirs/state 3515s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_15DC62/gdbus/proxy/.dirs/runtime 3517s ok 1 /gdbus/proxy 3517s # slow test /gdbus/proxy executed in 2.29 secs 3517s # Start of proxy tests 3517s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_15DC62/gdbus/proxy/no-properties/.dirs/home 3517s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_15DC62/gdbus/proxy/no-properties/.dirs/cache 3517s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_15DC62/gdbus/proxy/no-properties/.dirs/system-config1:/tmp/test_gdbus-proxy_15DC62/gdbus/proxy/no-properties/.dirs/system-config2 3517s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_15DC62/gdbus/proxy/no-properties/.dirs/config 3517s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_15DC62/gdbus/proxy/no-properties/.dirs/system-data1:/tmp/test_gdbus-proxy_15DC62/gdbus/proxy/no-properties/.dirs/system-data2 3517s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_15DC62/gdbus/proxy/no-properties/.dirs/data 3517s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_15DC62/gdbus/proxy/no-properties/.dirs/state 3517s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_15DC62/gdbus/proxy/no-properties/.dirs/runtime 3517s ok 2 /gdbus/proxy/no-properties 3517s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_15DC62/gdbus/proxy/wellknown-noauto/.dirs/home 3517s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_15DC62/gdbus/proxy/wellknown-noauto/.dirs/cache 3517s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_15DC62/gdbus/proxy/wellknown-noauto/.dirs/system-config1:/tmp/test_gdbus-proxy_15DC62/gdbus/proxy/wellknown-noauto/.dirs/system-config2 3517s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_15DC62/gdbus/proxy/wellknown-noauto/.dirs/config 3517s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_15DC62/gdbus/proxy/wellknown-noauto/.dirs/system-data1:/tmp/test_gdbus-proxy_15DC62/gdbus/proxy/wellknown-noauto/.dirs/system-data2 3517s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_15DC62/gdbus/proxy/wellknown-noauto/.dirs/data 3517s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_15DC62/gdbus/proxy/wellknown-noauto/.dirs/state 3517s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_15DC62/gdbus/proxy/wellknown-noauto/.dirs/runtime 3517s ok 3 /gdbus/proxy/wellknown-noauto 3517s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_15DC62/gdbus/proxy/async/.dirs/home 3517s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_15DC62/gdbus/proxy/async/.dirs/cache 3517s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_15DC62/gdbus/proxy/async/.dirs/system-config1:/tmp/test_gdbus-proxy_15DC62/gdbus/proxy/async/.dirs/system-config2 3517s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_15DC62/gdbus/proxy/async/.dirs/config 3517s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_15DC62/gdbus/proxy/async/.dirs/system-data1:/tmp/test_gdbus-proxy_15DC62/gdbus/proxy/async/.dirs/system-data2 3517s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_15DC62/gdbus/proxy/async/.dirs/data 3517s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_15DC62/gdbus/proxy/async/.dirs/state 3517s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_15DC62/gdbus/proxy/async/.dirs/runtime 3519s # Executing: glib/gdbus-proxy.test 3519s ok 4 /gdbus/proxy/async 3519s # slow test /gdbus/proxy/async executed in 2.07 secs 3519s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_15DC62/gdbus/proxy/no-match-rule/.dirs/home 3519s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_15DC62/gdbus/proxy/no-match-rule/.dirs/cache 3519s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_15DC62/gdbus/proxy/no-match-rule/.dirs/system-config1:/tmp/test_gdbus-proxy_15DC62/gdbus/proxy/no-match-rule/.dirs/system-config2 3519s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_15DC62/gdbus/proxy/no-match-rule/.dirs/config 3519s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_15DC62/gdbus/proxy/no-match-rule/.dirs/system-data1:/tmp/test_gdbus-proxy_15DC62/gdbus/proxy/no-match-rule/.dirs/system-data2 3519s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_15DC62/gdbus/proxy/no-match-rule/.dirs/data 3519s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_15DC62/gdbus/proxy/no-match-rule/.dirs/state 3519s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_15DC62/gdbus/proxy/no-match-rule/.dirs/runtime 3519s # /gdbus/proxy/no-match-rule summary: Test that G_DBUS_PROXY_FLAGS_NO_MATCH_RULE works 3519s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1109 3521s ok 5 /gdbus/proxy/no-match-rule 3521s # slow test /gdbus/proxy/no-match-rule executed in 2.05 secs 3521s # End of proxy tests 3521s # End of gdbus tests 3521s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3521s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3521s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3521s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3521s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3521s ok - glib/gdbus-proxy.test 3521s # Running test: glib/thread-pool.test 3521s TAP version 14 3521s # random seed: R02S4e632edbd4ea63fcd5f077206eaff91b 3521s 1..5 3521s # Start of thread_pool tests 3521s # /thread_pool/shared summary: Tests that a shared, non-exclusive thread pool generally works. 3521s ok 1 /thread_pool/shared 3521s # /thread_pool/exclusive summary: Tests that an exclusive thread pool generally works. 3521s ok 2 /thread_pool/exclusive 3521s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2012 3521s # /thread_pool/create_shared_after_exclusive summary: Tests that creating a shared pool after an exclusive one works. 3521s ok 3 /thread_pool/create_shared_after_exclusive 3521s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/121 3521s ok 4 /thread_pool/create_full 3521s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2012 3521s # /thread_pool/create_exclusive_after_shared summary: Tests that creating an exclusive pool after a shared one works. 3521s ok 5 /thread_pool/create_exclusive_after_shared 3521s # End of thread_pool tests 3521s ok - glib/thread-pool.test 3521s # Running test: glib/gapplication.test 3521s TAP version 14 3521s # random seed: R02S5ccdc21981b2536f5d0152484f75d9a3 3521s 1..24 3521s # Start of gapplication tests 3521s ok 1 /gapplication/no-dbus 3521s ok 2 /gapplication/no-appid 3522s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3522s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3522s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3522s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3522s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3522s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3522s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3522s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3522s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3522s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3522s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3522s ok 3 /gapplication/properties 3522s ok 4 /gapplication/app-id 3522s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3522s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3522s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3522s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3522s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3522s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3522s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3522s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3522s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3522s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3522s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3522s ok 5 /gapplication/quit 3522s ok 6 /gapplication/registered 3522s ok 7 /gapplication/local-actions 3522s ok 8 /gapplication/local-command-line 3522s ok 9 /gapplication/resource-path 3522s ok 10 /gapplication/test-help 3522s ok 11 /gapplication/command-line-done 3522s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3522s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3522s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3522s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3522s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3522s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3522s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3522s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3522s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3522s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3522s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3522s ok 12 /gapplication/test-busy 3522s ok 13 /gapplication/test-handle-local-options1 3522s ok 14 /gapplication/test-handle-local-options2 3522s ok 15 /gapplication/test-handle-local-options3 3522s ok 16 /gapplication/api 3522s ok 17 /gapplication/version 3523s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3523s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3523s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3523s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3523s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3523s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3523s # launching subprocess 3523s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3523s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3523s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3523s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3523s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3523s ok 18 /gapplication/replace 3523s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3523s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3523s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3523s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3523s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3523s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3523s # launching subprocess 3523s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3523s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3523s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3523s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3523s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3523s ok 19 /gapplication/no-replace 3523s # slow test /gapplication/no-replace executed in 0.68 secs 3523s # Start of dbus tests 3523s # /gapplication/dbus/activate summary: Test that calling the Activate D-Bus method works 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3524s # Message 0 3524s # Message 1 3524s # Message 2 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s ok 20 /gapplication/dbus/activate 3524s # /gapplication/dbus/open summary: Test that calling the Open D-Bus method works 3524s # Executing: glib/gapplication.test 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3524s # Message 0 3524s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 3524s # Message 1 3524s # Message 2 3524s # Message 3 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s ok 21 /gapplication/dbus/open 3524s # /gapplication/dbus/command-line summary: Test that calling the CommandLine D-Bus method works 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3524s # Message 0 3524s # Message 1 3524s # Message 2 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s ok 22 /gapplication/dbus/command-line 3524s # /gapplication/dbus/command-line-done summary: Test that GDBusCommandLine.done() works 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s ok 23 /gapplication/dbus/command-line-done 3524s # /gapplication/dbus/activate-action summary: Test that calling the ActivateAction D-Bus method works 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3524s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3524s # Message 0 3525s # Message 1 3525s # Message 2 3525s # Message 3 3525s # Message 4 3525s # Message 5 3525s # Message 6 3525s # Message 7 3525s # Message 8 3525s # Message 9 3525s # Message 10 3525s # Message 11 3525s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3525s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3525s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3525s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3525s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3525s ok 24 /gapplication/dbus/activate-action 3525s # End of dbus tests 3525s # End of gapplication tests 3525s ok - glib/gapplication.test 3525s # Running test: glib/pathbuf.test 3525s TAP version 14 3525s # random seed: R02Sccbd1471adebcd7c5d0551e0e70183b4 3525s 1..3 3525s # Start of pathbuf tests 3525s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_pathbuf_GB0052/pathbuf/init/.dirs/home 3525s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_pathbuf_GB0052/pathbuf/init/.dirs/cache 3525s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_pathbuf_GB0052/pathbuf/init/.dirs/system-config1:/tmp/test_pathbuf_GB0052/pathbuf/init/.dirs/system-config2 3525s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_pathbuf_GB0052/pathbuf/init/.dirs/config 3525s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_pathbuf_GB0052/pathbuf/init/.dirs/system-data1:/tmp/test_pathbuf_GB0052/pathbuf/init/.dirs/system-data2 3525s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_pathbuf_GB0052/pathbuf/init/.dirs/data 3525s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_pathbuf_GB0052/pathbuf/init/.dirs/state 3525s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_pathbuf_GB0052/pathbuf/init/.dirs/runtime 3525s # Initializing empty path buf 3525s # Initializing with empty path 3525s # Initializing with full path 3525s # Initializing with no path 3525s # Allocating GPathBuf on the heap 3525s ok 1 /pathbuf/init 3525s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_pathbuf_GB0052/pathbuf/push-pop/.dirs/home 3525s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_pathbuf_GB0052/pathbuf/push-pop/.dirs/cache 3525s ok - glib/pathbuf.test 3525s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_pathbuf_GB0052/pathbuf/push-pop/.dirs/system-config1:/tmp/test_pathbuf_GB0052/pathbuf/push-pop/.dirs/system-config2 3525s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_pathbuf_GB0052/pathbuf/push-pop/.dirs/config 3525s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_pathbuf_GB0052/pathbuf/push-pop/.dirs/system-data1:/tmp/test_pathbuf_GB0052/pathbuf/push-pop/.dirs/system-data2 3525s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_pathbuf_GB0052/pathbuf/push-pop/.dirs/data 3525s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_pathbuf_GB0052/pathbuf/push-pop/.dirs/state 3525s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_pathbuf_GB0052/pathbuf/push-pop/.dirs/runtime 3525s # Pushing relative path component 3525s # Pushing absolute path component 3525s # Popping a path component 3525s # Can't pop the last element of a path buffer 3525s ok 2 /pathbuf/push-pop 3525s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_pathbuf_GB0052/pathbuf/filename-extension/.dirs/home 3525s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_pathbuf_GB0052/pathbuf/filename-extension/.dirs/cache 3525s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_pathbuf_GB0052/pathbuf/filename-extension/.dirs/system-config1:/tmp/test_pathbuf_GB0052/pathbuf/filename-extension/.dirs/system-config2 3525s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_pathbuf_GB0052/pathbuf/filename-extension/.dirs/config 3525s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_pathbuf_GB0052/pathbuf/filename-extension/.dirs/system-data1:/tmp/test_pathbuf_GB0052/pathbuf/filename-extension/.dirs/system-data2 3525s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_pathbuf_GB0052/pathbuf/filename-extension/.dirs/data 3525s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_pathbuf_GB0052/pathbuf/filename-extension/.dirs/state 3525s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_pathbuf_GB0052/pathbuf/filename-extension/.dirs/runtime 3525s ok 3 /pathbuf/filename-extension 3525s # End of pathbuf tests 3525s # Running test: glib/portal-support-flatpak-none.test 3525s TAP version 14 3525s # random seed: R02S8d9e1254d12b16ac54680338b37c1b46 3525s 1..1 3525s # Start of portal-support tests 3525s # Start of flatpak tests 3525s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-none_LE7R52/portal-support/flatpak/none/.dirs/home 3525s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-none_LE7R52/portal-support/flatpak/none/.dirs/cache 3525s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-none_LE7R52/portal-support/flatpak/none/.dirs/system-config1:/tmp/test_portal-support-flatpak-none_LE7R52/portal-support/flatpak/none/.dirs/system-config2 3525s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-none_LE7R52/portal-support/flatpak/none/.dirs/config 3525s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-none_LE7R52/portal-support/flatpak/none/.dirs/system-data1:/tmp/test_portal-support-flatpak-none_LE7R52/portal-support/flatpak/none/.dirs/system-data2 3525s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-none_LE7R52/portal-support/flatpak/none/.dirs/data 3525s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-none_LE7R52/portal-support/flatpak/none/.dirs/state 3525s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-none_LE7R52/portal-support/flatpak/none/.dirs/runtime 3525s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-none_LE7R52/portal-support/flatpak/none/.dirs/runtime/.flatpak-info 3525s ok 1 /portal-support/flatpak/none 3525s # End of flatpak tests 3525s # End of portal-support tests 3525s ok - glib/portal-support-flatpak-none.test 3525s # Running test: glib/refcount.test 3525s TAP version 14 3525s # random seed: R02S1c7caf213e26381f0a06cdefaf6ed9d4 3525s 1..4 3525s # Start of refcount tests 3525s ok 1 /refcount/grefcount 3525s ok 2 /refcount/gatomicrefcount 3525s # Start of grefcount tests 3525s ok 3 /refcount/grefcount/saturation 3525s # End of grefcount tests 3525s # Start of gatomicrefcount tests 3525s ok 4 /refcount/gatomicrefcount/saturation 3525s # End of gatomicrefcount tests 3525s # End of refcount tests 3525s ok - glib/refcount.test 3525s # Running test: glib/deprecated-properties.test 3525s TAP version 14 3525s # random seed: R02Saa570242928c390c386e1205b9a7bced 3525s 1..3 3525s # Start of deprecated-properties tests 3525s ok 1 /deprecated-properties/construct 3525s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2748 3526s ok 2 /deprecated-properties/default-construct 3526s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2748 3526s ok 3 /deprecated-properties/set 3526s # End of deprecated-properties tests 3526s ok - glib/deprecated-properties.test 3526s # Running test: glib/tls-bindings.test 3526s TAP version 14 3526s # random seed: R02Saa2e2cd71f46f4fdbd994acf345d508e 3526s 1..2 3526s # Start of tls-connection tests 3526s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ?gio-tls-backend? 3526s ok 1 /tls-connection/get-tls-channel-binding 3526s ok 2 /tls-connection/get-dtls-channel-binding 3526s # End of tls-connection tests 3526s ok - glib/tls-bindings.test 3526s # Running test: glib/gdbus-proxy-well-known-name.test 3526s TAP version 14 3526s # random seed: R02S41f35d7a960d705202e35c0a4d80b51e 3526s 1..1 3526s # Start of gdbus tests 3526s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy-well-known-name_YQGU52/gdbus/proxy-well-known-name/.dirs/home 3526s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy-well-known-name_YQGU52/gdbus/proxy-well-known-name/.dirs/cache 3526s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy-well-known-name_YQGU52/gdbus/proxy-well-known-name/.dirs/system-config1:/tmp/test_gdbus-proxy-well-known-name_YQGU52/gdbus/proxy-well-known-name/.dirs/system-config2 3526s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy-well-known-name_YQGU52/gdbus/proxy-well-known-name/.dirs/config 3526s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy-well-known-name_YQGU52/gdbus/proxy-well-known-name/.dirs/system-data1:/tmp/test_gdbus-proxy-well-known-name_YQGU52/gdbus/proxy-well-known-name/.dirs/system-data2 3526s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy-well-known-name_YQGU52/gdbus/proxy-well-known-name/.dirs/data 3526s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy-well-known-name_YQGU52/gdbus/proxy-well-known-name/.dirs/state 3526s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy-well-known-name_YQGU52/gdbus/proxy-well-known-name/.dirs/runtime 3527s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3527s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3527s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3527s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3527s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3527s ok 1 /gdbus/proxy-well-known-name 3527s # slow test /gdbus/proxy-well-known-name executed in 0.71 secs 3527s # End of gdbus tests 3527s ok - glib/gdbus-proxy-well-known-name.test 3527s # Running test: glib/static-link.test 3528s Test disabled because GLIB_TEST_COMPILATION is not set in the env. 3528s If you wish to run this test, set GLIB_TEST_COMPILATION=1 in the env, 3528s and make sure you have glib build dependencies installed, including 3528s meson. 3528s ok # SKIP - glib/static-link.test 3528s # Running test: glib/converter.test 3528s TAP version 14 3528s # random seed: R02Saa985253d67bcc65f0aa3af9f149923f 3528s 1..2 3528s # Start of converter tests 3528s ok - glib/converter.test 3528s ok 1 /converter/bytes 3528s ok 2 /converter/extra-bytes-at-end 3528s # End of converter tests 3528s # Running test: glib/override.test 3528s TAP version 14 3528s # random seed: R02S115bef3fec6fcffc3e8065a5c03af88a 3528s 1..1 3528s # Start of gobject tests 3528s # *** emitting foo on a TestA instance 3528s # Expecting: TestA::foo,TestI::foo 3528s # Got: TestA::foo,TestI::foo 3528s # *** emitting bar on a TestA instance 3528s # Expecting: TestA::bar 3528s # Got: TestA::bar 3528s # *** emitting baz on a TestA instance 3528s # Expecting: TestA::baz 3528s # Got: TestA::baz 3528s # *** emitting foo on a TestB instance 3528s # Expecting: TestB::foo,TestA::foo,TestI::foo 3528s # Got: TestB::foo,TestA::foo,TestI::foo 3528s # *** emitting bar on a TestB instance 3528s # Expecting: TestB::bar,TestA::bar 3528s # Got: TestB::bar,TestA::bar 3528s # *** emitting baz on a TestB instance 3528s # Expecting: TestB::baz,TestA::baz 3528s # Got: TestB::baz,TestA::baz 3528s # *** emitting foo on a TestC instance 3528s # Expecting: TestC::foo,TestB::foo,TestA::foo,TestI::foo 3528s # Got: TestC::foo,TestB::foo,TestA::foo,TestI::foo 3528s # *** emitting bar on a TestC instance 3528s # Expecting: TestC::bar,TestB::bar,TestA::bar 3528s # Got: TestC::bar,TestB::bar,TestA::bar 3528s # *** emitting baz on a TestC instance 3528s # Expecting: TestC::baz,TestB::baz,TestA::baz 3528s # Got: TestC::baz,TestB::baz,TestA::baz 3528s ok 1 /gobject/override 3528s # End of gobject tests 3528s ok - glib/override.test 3528s # Running test: glib/checksum.test 3528s TAP version 14 3528s # random seed: R02Sd5cabe4a9cdba2f978d8593fe265a80c 3528s 1..1851 3528s # Start of checksum tests 3528s ok 1 /checksum/unsupported 3528s # Start of MD5 tests 3528s ok 2 /checksum/MD5/0 3528s ok 3 /checksum/MD5/1 3528s ok 4 /checksum/MD5/2 3528s ok 5 /checksum/MD5/3 3528s ok 6 /checksum/MD5/4 3528s ok 7 /checksum/MD5/5 3528s ok 8 /checksum/MD5/6 3528s ok 9 /checksum/MD5/7 3528s ok 10 /checksum/MD5/8 3528s ok 11 /checksum/MD5/9 3528s ok 12 /checksum/MD5/10 3528s ok 13 /checksum/MD5/11 3528s ok 14 /checksum/MD5/12 3528s ok 15 /checksum/MD5/13 3528s ok 16 /checksum/MD5/14 3528s ok 17 /checksum/MD5/15 3528s ok 18 /checksum/MD5/16 3528s ok 19 /checksum/MD5/17 3528s ok 20 /checksum/MD5/18 3528s ok 21 /checksum/MD5/19 3528s ok 22 /checksum/MD5/20 3528s ok 23 /checksum/MD5/21 3528s ok 24 /checksum/MD5/22 3528s ok 25 /checksum/MD5/23 3528s ok 26 /checksum/MD5/24 3528s ok 27 /checksum/MD5/25 3528s ok 28 /checksum/MD5/26 3528s ok 29 /checksum/MD5/27 3528s ok 30 /checksum/MD5/28 3528s ok 31 /checksum/MD5/29 3528s ok 32 /checksum/MD5/30 3528s ok 33 /checksum/MD5/31 3528s ok 34 /checksum/MD5/32 3528s ok 35 /checksum/MD5/33 3528s ok 36 /checksum/MD5/34 3528s ok 37 /checksum/MD5/35 3528s ok 38 /checksum/MD5/36 3528s ok 39 /checksum/MD5/37 3528s ok 40 /checksum/MD5/38 3528s ok 41 /checksum/MD5/39 3528s ok 42 /checksum/MD5/40 3528s ok 43 /checksum/MD5/41 3528s ok 44 /checksum/MD5/42 3528s ok 45 /checksum/MD5/43 3528s ok 46 /checksum/MD5/44 3528s ok 47 /checksum/MD5/45 3528s ok 48 /checksum/MD5/46 3528s ok 49 /checksum/MD5/47 3528s ok 50 /checksum/MD5/48 3528s ok 51 /checksum/MD5/49 3528s ok 52 /checksum/MD5/50 3528s ok 53 /checksum/MD5/51 3528s ok 54 /checksum/MD5/52 3528s ok 55 /checksum/MD5/53 3528s ok 56 /checksum/MD5/54 3528s ok 57 /checksum/MD5/55 3528s ok 58 /checksum/MD5/56 3528s ok 59 /checksum/MD5/57 3528s ok 60 /checksum/MD5/58 3528s ok 61 /checksum/MD5/59 3528s ok 62 /checksum/MD5/60 3528s ok 63 /checksum/MD5/61 3528s ok 64 /checksum/MD5/62 3528s ok 65 /checksum/MD5/63 3528s ok 66 /checksum/MD5/64 3528s ok 67 /checksum/MD5/65 3528s ok 68 /checksum/MD5/66 3528s ok 69 /checksum/MD5/67 3528s ok 70 /checksum/MD5/68 3528s ok 71 /checksum/MD5/69 3528s ok 72 /checksum/MD5/70 3528s ok 73 /checksum/MD5/71 3528s ok 74 /checksum/MD5/72 3528s ok 75 /checksum/MD5/73 3528s ok 76 /checksum/MD5/74 3528s ok 77 /checksum/MD5/75 3528s ok 78 /checksum/MD5/76 3528s ok 79 /checksum/MD5/77 3528s ok 80 /checksum/MD5/78 3528s ok 81 /checksum/MD5/79 3528s ok 82 /checksum/MD5/80 3528s ok 83 /checksum/MD5/81 3528s ok 84 /checksum/MD5/82 3528s ok 85 /checksum/MD5/83 3528s ok 86 /checksum/MD5/84 3528s ok 87 /checksum/MD5/85 3528s ok 88 /checksum/MD5/86 3528s ok 89 /checksum/MD5/87 3528s ok 90 /checksum/MD5/88 3528s ok 91 /checksum/MD5/89 3528s ok 92 /checksum/MD5/90 3528s ok 93 /checksum/MD5/91 3528s ok 94 /checksum/MD5/92 3528s ok 95 /checksum/MD5/93 3528s ok 96 /checksum/MD5/94 3528s ok 97 /checksum/MD5/95 3528s ok 98 /checksum/MD5/96 3528s ok 99 /checksum/MD5/97 3528s ok 100 /checksum/MD5/98 3528s ok 101 /checksum/MD5/99 3528s ok 102 /checksum/MD5/100 3528s ok 103 /checksum/MD5/101 3528s ok 104 /checksum/MD5/102 3528s ok 105 /checksum/MD5/103 3528s ok 106 /checksum/MD5/104 3528s ok 107 /checksum/MD5/105 3528s ok 108 /checksum/MD5/106 3528s ok 109 /checksum/MD5/107 3528s ok 110 /checksum/MD5/108 3528s ok 111 /checksum/MD5/109 3528s ok 112 /checksum/MD5/110 3528s ok 113 /checksum/MD5/111 3528s ok 114 /checksum/MD5/112 3528s ok 115 /checksum/MD5/113 3528s ok 116 /checksum/MD5/114 3528s ok 117 /checksum/MD5/115 3528s ok 118 /checksum/MD5/116 3528s ok 119 /checksum/MD5/117 3528s ok 120 /checksum/MD5/118 3528s ok 121 /checksum/MD5/119 3528s ok 122 /checksum/MD5/120 3528s ok 123 /checksum/MD5/121 3528s ok 124 /checksum/MD5/122 3528s ok 125 /checksum/MD5/123 3528s ok 126 /checksum/MD5/124 3528s ok 127 /checksum/MD5/125 3528s ok 128 /checksum/MD5/126 3528s ok 129 /checksum/MD5/127 3528s ok 130 /checksum/MD5/128 3528s ok 131 /checksum/MD5/129 3528s ok 132 /checksum/MD5/130 3528s ok 133 /checksum/MD5/131 3528s ok 134 /checksum/MD5/132 3528s ok 135 /checksum/MD5/133 3528s ok 136 /checksum/MD5/134 3528s ok 137 /checksum/MD5/135 3528s ok 138 /checksum/MD5/136 3528s ok 139 /checksum/MD5/137 3528s ok 140 /checksum/MD5/138 3528s ok 141 /checksum/MD5/139 3528s ok 142 /checksum/MD5/140 3528s ok 143 /checksum/MD5/141 3528s ok 144 /checksum/MD5/142 3528s ok 145 /checksum/MD5/143 3528s ok 146 /checksum/MD5/144 3528s ok 147 /checksum/MD5/145 3528s ok 148 /checksum/MD5/146 3528s ok 149 /checksum/MD5/147 3528s ok 150 /checksum/MD5/148 3528s ok 151 /checksum/MD5/149 3528s ok 152 /checksum/MD5/150 3528s ok 153 /checksum/MD5/151 3528s ok 154 /checksum/MD5/152 3528s ok 155 /checksum/MD5/153 3528s ok 156 /checksum/MD5/154 3528s ok 157 /checksum/MD5/155 3528s ok 158 /checksum/MD5/156 3528s ok 159 /checksum/MD5/157 3528s ok 160 /checksum/MD5/158 3528s ok 161 /checksum/MD5/159 3528s ok 162 /checksum/MD5/160 3528s ok 163 /checksum/MD5/161 3528s ok 164 /checksum/MD5/162 3528s ok 165 /checksum/MD5/163 3528s ok 166 /checksum/MD5/164 3528s ok 167 /checksum/MD5/165 3528s ok 168 /checksum/MD5/166 3528s ok 169 /checksum/MD5/167 3528s ok 170 /checksum/MD5/168 3528s ok 171 /checksum/MD5/169 3528s ok 172 /checksum/MD5/170 3528s ok 173 /checksum/MD5/171 3528s ok 174 /checksum/MD5/172 3528s ok 175 /checksum/MD5/173 3528s ok 176 /checksum/MD5/174 3528s ok 177 /checksum/MD5/175 3528s ok 178 /checksum/MD5/176 3528s ok 179 /checksum/MD5/177 3528s ok 180 /checksum/MD5/178 3528s ok 181 /checksum/MD5/179 3528s ok 182 /checksum/MD5/180 3528s ok 183 /checksum/MD5/181 3528s ok 184 /checksum/MD5/182 3528s ok 185 /checksum/MD5/183 3528s ok 186 /checksum/MD5/string 3528s ok 187 /checksum/MD5/bytes 3528s # Start of reset tests 3528s ok 188 /checksum/MD5/reset/0 3528s ok 189 /checksum/MD5/reset/1 3528s ok 190 /checksum/MD5/reset/2 3528s ok 191 /checksum/MD5/reset/3 3528s ok 192 /checksum/MD5/reset/4 3528s ok 193 /checksum/MD5/reset/5 3528s ok 194 /checksum/MD5/reset/6 3528s ok 195 /checksum/MD5/reset/7 3528s ok 196 /checksum/MD5/reset/8 3528s ok 197 /checksum/MD5/reset/9 3528s ok 198 /checksum/MD5/reset/10 3528s ok 199 /checksum/MD5/reset/11 3528s ok 200 /checksum/MD5/reset/12 3528s ok 201 /checksum/MD5/reset/13 3528s ok 202 /checksum/MD5/reset/14 3528s ok 203 /checksum/MD5/reset/15 3528s ok 204 /checksum/MD5/reset/16 3528s ok 205 /checksum/MD5/reset/17 3528s ok 206 /checksum/MD5/reset/18 3528s ok 207 /checksum/MD5/reset/19 3528s ok 208 /checksum/MD5/reset/20 3528s ok 209 /checksum/MD5/reset/21 3528s ok 210 /checksum/MD5/reset/22 3528s ok 211 /checksum/MD5/reset/23 3528s ok 212 /checksum/MD5/reset/24 3528s ok 213 /checksum/MD5/reset/25 3528s ok 214 /checksum/MD5/reset/26 3528s ok 215 /checksum/MD5/reset/27 3528s ok 216 /checksum/MD5/reset/28 3528s ok 217 /checksum/MD5/reset/29 3528s ok 218 /checksum/MD5/reset/30 3528s ok 219 /checksum/MD5/reset/31 3528s ok 220 /checksum/MD5/reset/32 3528s ok 221 /checksum/MD5/reset/33 3528s ok 222 /checksum/MD5/reset/34 3528s ok 223 /checksum/MD5/reset/35 3528s ok 224 /checksum/MD5/reset/36 3528s ok 225 /checksum/MD5/reset/37 3528s ok 226 /checksum/MD5/reset/38 3528s ok 227 /checksum/MD5/reset/39 3528s ok 228 /checksum/MD5/reset/40 3528s ok 229 /checksum/MD5/reset/41 3528s ok 230 /checksum/MD5/reset/42 3528s ok 231 /checksum/MD5/reset/43 3528s ok 232 /checksum/MD5/reset/44 3528s ok 233 /checksum/MD5/reset/45 3528s ok 234 /checksum/MD5/reset/46 3528s ok 235 /checksum/MD5/reset/47 3528s ok 236 /checksum/MD5/reset/48 3528s ok 237 /checksum/MD5/reset/49 3528s ok 238 /checksum/MD5/reset/50 3528s ok 239 /checksum/MD5/reset/51 3528s ok 240 /checksum/MD5/reset/52 3528s ok 241 /checksum/MD5/reset/53 3528s ok 242 /checksum/MD5/reset/54 3528s ok 243 /checksum/MD5/reset/55 3528s ok 244 /checksum/MD5/reset/56 3528s ok 245 /checksum/MD5/reset/57 3528s ok 246 /checksum/MD5/reset/58 3528s ok 247 /checksum/MD5/reset/59 3528s ok 248 /checksum/MD5/reset/60 3528s ok 249 /checksum/MD5/reset/61 3528s ok 250 /checksum/MD5/reset/62 3528s ok 251 /checksum/MD5/reset/63 3528s ok 252 /checksum/MD5/reset/64 3528s ok 253 /checksum/MD5/reset/65 3528s ok 254 /checksum/MD5/reset/66 3528s ok 255 /checksum/MD5/reset/67 3528s ok 256 /checksum/MD5/reset/68 3528s ok 257 /checksum/MD5/reset/69 3528s ok 258 /checksum/MD5/reset/70 3528s ok 259 /checksum/MD5/reset/71 3528s ok 260 /checksum/MD5/reset/72 3528s ok 261 /checksum/MD5/reset/73 3528s ok 262 /checksum/MD5/reset/74 3528s ok 263 /checksum/MD5/reset/75 3528s ok 264 /checksum/MD5/reset/76 3528s ok 265 /checksum/MD5/reset/77 3528s ok 266 /checksum/MD5/reset/78 3528s ok 267 /checksum/MD5/reset/79 3528s ok 268 /checksum/MD5/reset/80 3528s ok 269 /checksum/MD5/reset/81 3528s ok 270 /checksum/MD5/reset/82 3528s ok 271 /checksum/MD5/reset/83 3528s ok 272 /checksum/MD5/reset/84 3528s ok 273 /checksum/MD5/reset/85 3528s ok 274 /checksum/MD5/reset/86 3528s ok 275 /checksum/MD5/reset/87 3528s ok 276 /checksum/MD5/reset/88 3528s ok 277 /checksum/MD5/reset/89 3528s ok 278 /checksum/MD5/reset/90 3528s ok 279 /checksum/MD5/reset/91 3528s ok 280 /checksum/MD5/reset/92 3528s ok 281 /checksum/MD5/reset/93 3528s ok 282 /checksum/MD5/reset/94 3528s ok 283 /checksum/MD5/reset/95 3528s ok 284 /checksum/MD5/reset/96 3528s ok 285 /checksum/MD5/reset/97 3528s ok 286 /checksum/MD5/reset/98 3528s ok 287 /checksum/MD5/reset/99 3528s ok 288 /checksum/MD5/reset/100 3528s ok 289 /checksum/MD5/reset/101 3528s ok 290 /checksum/MD5/reset/102 3528s ok 291 /checksum/MD5/reset/103 3528s ok 292 /checksum/MD5/reset/104 3528s ok 293 /checksum/MD5/reset/105 3528s ok 294 /checksum/MD5/reset/106 3528s ok 295 /checksum/MD5/reset/107 3528s ok 296 /checksum/MD5/reset/108 3528s ok 297 /checksum/MD5/reset/109 3528s ok 298 /checksum/MD5/reset/110 3528s ok 299 /checksum/MD5/reset/111 3528s ok 300 /checksum/MD5/reset/112 3528s ok 301 /checksum/MD5/reset/113 3528s ok 302 /checksum/MD5/reset/114 3528s ok 303 /checksum/MD5/reset/115 3528s ok 304 /checksum/MD5/reset/116 3528s ok 305 /checksum/MD5/reset/117 3528s ok 306 /checksum/MD5/reset/118 3528s ok 307 /checksum/MD5/reset/119 3528s ok 308 /checksum/MD5/reset/120 3528s ok 309 /checksum/MD5/reset/121 3528s ok 310 /checksum/MD5/reset/122 3528s ok 311 /checksum/MD5/reset/123 3528s ok 312 /checksum/MD5/reset/124 3528s ok 313 /checksum/MD5/reset/125 3528s ok 314 /checksum/MD5/reset/126 3528s ok 315 /checksum/MD5/reset/127 3528s ok 316 /checksum/MD5/reset/128 3528s ok 317 /checksum/MD5/reset/129 3528s ok 318 /checksum/MD5/reset/130 3528s ok 319 /checksum/MD5/reset/131 3528s ok 320 /checksum/MD5/reset/132 3528s ok 321 /checksum/MD5/reset/133 3528s ok 322 /checksum/MD5/reset/134 3528s ok 323 /checksum/MD5/reset/135 3528s ok 324 /checksum/MD5/reset/136 3528s ok 325 /checksum/MD5/reset/137 3528s ok 326 /checksum/MD5/reset/138 3528s ok 327 /checksum/MD5/reset/139 3529s ok 328 /checksum/MD5/reset/140 3529s ok 329 /checksum/MD5/reset/141 3529s ok 330 /checksum/MD5/reset/142 3529s ok 331 /checksum/MD5/reset/143 3529s ok 332 /checksum/MD5/reset/144 3529s ok 333 /checksum/MD5/reset/145 3529s ok 334 /checksum/MD5/reset/146 3529s ok 335 /checksum/MD5/reset/147 3529s ok 336 /checksum/MD5/reset/148 3529s ok 337 /checksum/MD5/reset/149 3529s ok 338 /checksum/MD5/reset/150 3529s ok 339 /checksum/MD5/reset/151 3529s ok 340 /checksum/MD5/reset/152 3529s ok 341 /checksum/MD5/reset/153 3529s ok 342 /checksum/MD5/reset/154 3529s ok 343 /checksum/MD5/reset/155 3529s ok 344 /checksum/MD5/reset/156 3529s ok 345 /checksum/MD5/reset/157 3529s ok 346 /checksum/MD5/reset/158 3529s ok 347 /checksum/MD5/reset/159 3529s ok 348 /checksum/MD5/reset/160 3529s ok 349 /checksum/MD5/reset/161 3529s ok 350 /checksum/MD5/reset/162 3529s ok 351 /checksum/MD5/reset/163 3529s ok 352 /checksum/MD5/reset/164 3529s ok 353 /checksum/MD5/reset/165 3529s ok 354 /checksum/MD5/reset/166 3529s ok 355 /checksum/MD5/reset/167 3529s ok 356 /checksum/MD5/reset/168 3529s ok 357 /checksum/MD5/reset/169 3529s ok 358 /checksum/MD5/reset/170 3529s ok 359 /checksum/MD5/reset/171 3529s ok 360 /checksum/MD5/reset/172 3529s ok 361 /checksum/MD5/reset/173 3529s ok 362 /checksum/MD5/reset/174 3529s ok 363 /checksum/MD5/reset/175 3529s ok 364 /checksum/MD5/reset/176 3529s ok 365 /checksum/MD5/reset/177 3529s ok 366 /checksum/MD5/reset/178 3529s ok 367 /checksum/MD5/reset/179 3529s ok 368 /checksum/MD5/reset/180 3529s ok 369 /checksum/MD5/reset/181 3529s ok 370 /checksum/MD5/reset/182 3529s ok 371 /checksum/MD5/reset/183 3529s # End of reset tests 3529s # End of MD5 tests 3529s # Start of SHA1 tests 3529s ok 372 /checksum/SHA1/0 3529s ok 373 /checksum/SHA1/1 3529s ok 374 /checksum/SHA1/2 3529s ok 375 /checksum/SHA1/3 3529s ok 376 /checksum/SHA1/4 3529s ok 377 /checksum/SHA1/5 3529s ok 378 /checksum/SHA1/6 3529s ok 379 /checksum/SHA1/7 3529s ok 380 /checksum/SHA1/8 3529s ok 381 /checksum/SHA1/9 3529s ok 382 /checksum/SHA1/10 3529s ok 383 /checksum/SHA1/11 3529s ok 384 /checksum/SHA1/12 3529s ok 385 /checksum/SHA1/13 3529s ok 386 /checksum/SHA1/14 3529s ok 387 /checksum/SHA1/15 3529s ok 388 /checksum/SHA1/16 3529s ok 389 /checksum/SHA1/17 3529s ok 390 /checksum/SHA1/18 3529s ok 391 /checksum/SHA1/19 3529s ok 392 /checksum/SHA1/20 3529s ok 393 /checksum/SHA1/21 3529s ok 394 /checksum/SHA1/22 3529s ok 395 /checksum/SHA1/23 3529s ok 396 /checksum/SHA1/24 3529s ok 397 /checksum/SHA1/25 3529s ok 398 /checksum/SHA1/26 3529s ok 399 /checksum/SHA1/27 3529s ok 400 /checksum/SHA1/28 3529s ok 401 /checksum/SHA1/29 3529s ok 402 /checksum/SHA1/30 3529s ok 403 /checksum/SHA1/31 3529s ok 404 /checksum/SHA1/32 3529s ok 405 /checksum/SHA1/33 3529s ok 406 /checksum/SHA1/34 3529s ok 407 /checksum/SHA1/35 3529s ok 408 /checksum/SHA1/36 3529s ok 409 /checksum/SHA1/37 3529s ok 410 /checksum/SHA1/38 3529s ok 411 /checksum/SHA1/39 3529s ok 412 /checksum/SHA1/40 3529s ok 413 /checksum/SHA1/41 3529s ok 414 /checksum/SHA1/42 3529s ok 415 /checksum/SHA1/43 3529s ok 416 /checksum/SHA1/44 3529s ok 417 /checksum/SHA1/45 3529s ok 418 /checksum/SHA1/46 3529s ok 419 /checksum/SHA1/47 3529s ok 420 /checksum/SHA1/48 3529s ok 421 /checksum/SHA1/49 3529s ok 422 /checksum/SHA1/50 3529s ok 423 /checksum/SHA1/51 3529s ok 424 /checksum/SHA1/52 3529s ok 425 /checksum/SHA1/53 3529s ok 426 /checksum/SHA1/54 3529s ok 427 /checksum/SHA1/55 3529s ok 428 /checksum/SHA1/56 3529s ok 429 /checksum/SHA1/57 3529s ok 430 /checksum/SHA1/58 3529s ok 431 /checksum/SHA1/59 3529s ok 432 /checksum/SHA1/60 3529s ok 433 /checksum/SHA1/61 3529s ok 434 /checksum/SHA1/62 3529s ok 435 /checksum/SHA1/63 3529s ok 436 /checksum/SHA1/64 3529s ok 437 /checksum/SHA1/65 3529s ok 438 /checksum/SHA1/66 3529s ok 439 /checksum/SHA1/67 3529s ok 440 /checksum/SHA1/68 3529s ok 441 /checksum/SHA1/69 3529s ok 442 /checksum/SHA1/70 3529s ok 443 /checksum/SHA1/71 3529s ok 444 /checksum/SHA1/72 3529s ok 445 /checksum/SHA1/73 3529s ok 446 /checksum/SHA1/74 3529s ok 447 /checksum/SHA1/75 3529s ok 448 /checksum/SHA1/76 3529s ok 449 /checksum/SHA1/77 3529s ok 450 /checksum/SHA1/78 3529s ok 451 /checksum/SHA1/79 3529s ok 452 /checksum/SHA1/80 3529s ok 453 /checksum/SHA1/81 3529s ok 454 /checksum/SHA1/82 3529s ok 455 /checksum/SHA1/83 3529s ok 456 /checksum/SHA1/84 3529s ok 457 /checksum/SHA1/85 3529s ok 458 /checksum/SHA1/86 3529s ok 459 /checksum/SHA1/87 3529s ok 460 /checksum/SHA1/88 3529s ok 461 /checksum/SHA1/89 3529s ok 462 /checksum/SHA1/90 3529s ok 463 /checksum/SHA1/91 3529s ok 464 /checksum/SHA1/92 3529s ok 465 /checksum/SHA1/93 3529s ok 466 /checksum/SHA1/94 3529s ok 467 /checksum/SHA1/95 3529s ok 468 /checksum/SHA1/96 3529s ok 469 /checksum/SHA1/97 3529s ok 470 /checksum/SHA1/98 3529s ok 471 /checksum/SHA1/99 3529s ok 472 /checksum/SHA1/100 3529s ok 473 /checksum/SHA1/101 3529s ok 474 /checksum/SHA1/102 3529s ok 475 /checksum/SHA1/103 3529s ok 476 /checksum/SHA1/104 3529s ok 477 /checksum/SHA1/105 3529s ok 478 /checksum/SHA1/106 3529s ok 479 /checksum/SHA1/107 3529s ok 480 /checksum/SHA1/108 3529s ok 481 /checksum/SHA1/109 3529s ok 482 /checksum/SHA1/110 3529s ok 483 /checksum/SHA1/111 3529s ok 484 /checksum/SHA1/112 3529s ok 485 /checksum/SHA1/113 3529s ok 486 /checksum/SHA1/114 3529s ok 487 /checksum/SHA1/115 3529s ok 488 /checksum/SHA1/116 3529s ok 489 /checksum/SHA1/117 3529s ok 490 /checksum/SHA1/118 3529s ok 491 /checksum/SHA1/119 3529s ok 492 /checksum/SHA1/120 3529s ok 493 /checksum/SHA1/121 3529s ok 494 /checksum/SHA1/122 3529s ok 495 /checksum/SHA1/123 3529s ok 496 /checksum/SHA1/124 3529s ok 497 /checksum/SHA1/125 3529s ok 498 /checksum/SHA1/126 3529s ok 499 /checksum/SHA1/127 3529s ok 500 /checksum/SHA1/128 3529s ok 501 /checksum/SHA1/129 3529s ok 502 /checksum/SHA1/130 3529s ok 503 /checksum/SHA1/131 3529s ok 504 /checksum/SHA1/132 3529s ok 505 /checksum/SHA1/133 3529s ok 506 /checksum/SHA1/134 3529s ok 507 /checksum/SHA1/135 3529s ok 508 /checksum/SHA1/136 3529s ok 509 /checksum/SHA1/137 3529s ok 510 /checksum/SHA1/138 3529s ok 511 /checksum/SHA1/139 3529s ok 512 /checksum/SHA1/140 3529s ok 513 /checksum/SHA1/141 3529s ok 514 /checksum/SHA1/142 3529s ok 515 /checksum/SHA1/143 3529s ok 516 /checksum/SHA1/144 3529s ok 517 /checksum/SHA1/145 3529s ok 518 /checksum/SHA1/146 3529s ok 519 /checksum/SHA1/147 3529s ok 520 /checksum/SHA1/148 3529s ok 521 /checksum/SHA1/149 3529s ok 522 /checksum/SHA1/150 3529s ok 523 /checksum/SHA1/151 3529s ok 524 /checksum/SHA1/152 3529s ok 525 /checksum/SHA1/153 3529s ok 526 /checksum/SHA1/154 3529s ok 527 /checksum/SHA1/155 3529s ok 528 /checksum/SHA1/156 3529s ok 529 /checksum/SHA1/157 3529s ok 530 /checksum/SHA1/158 3529s ok 531 /checksum/SHA1/159 3529s ok 532 /checksum/SHA1/160 3529s ok 533 /checksum/SHA1/161 3529s ok 534 /checksum/SHA1/162 3529s ok 535 /checksum/SHA1/163 3529s ok 536 /checksum/SHA1/164 3529s ok 537 /checksum/SHA1/165 3529s ok 538 /checksum/SHA1/166 3529s ok 539 /checksum/SHA1/167 3529s ok 540 /checksum/SHA1/168 3529s ok 541 /checksum/SHA1/169 3529s ok 542 /checksum/SHA1/170 3529s ok 543 /checksum/SHA1/171 3529s ok 544 /checksum/SHA1/172 3529s ok 545 /checksum/SHA1/173 3529s ok 546 /checksum/SHA1/174 3529s ok 547 /checksum/SHA1/175 3529s ok 548 /checksum/SHA1/176 3529s ok 549 /checksum/SHA1/177 3529s ok 550 /checksum/SHA1/178 3529s ok 551 /checksum/SHA1/179 3529s ok 552 /checksum/SHA1/180 3529s ok 553 /checksum/SHA1/181 3529s ok 554 /checksum/SHA1/182 3529s ok 555 /checksum/SHA1/183 3529s ok 556 /checksum/SHA1/string 3529s ok 557 /checksum/SHA1/bytes 3529s # Start of reset tests 3529s ok 558 /checksum/SHA1/reset/0 3529s ok 559 /checksum/SHA1/reset/1 3529s ok 560 /checksum/SHA1/reset/2 3529s ok 561 /checksum/SHA1/reset/3 3529s ok 562 /checksum/SHA1/reset/4 3529s ok 563 /checksum/SHA1/reset/5 3529s ok 564 /checksum/SHA1/reset/6 3529s ok 565 /checksum/SHA1/reset/7 3529s ok 566 /checksum/SHA1/reset/8 3529s ok 567 /checksum/SHA1/reset/9 3529s ok 568 /checksum/SHA1/reset/10 3529s ok 569 /checksum/SHA1/reset/11 3529s ok 570 /checksum/SHA1/reset/12 3529s ok 571 /checksum/SHA1/reset/13 3529s ok 572 /checksum/SHA1/reset/14 3529s ok 573 /checksum/SHA1/reset/15 3529s ok 574 /checksum/SHA1/reset/16 3529s ok 575 /checksum/SHA1/reset/17 3529s ok 576 /checksum/SHA1/reset/18 3529s ok 577 /checksum/SHA1/reset/19 3529s ok 578 /checksum/SHA1/reset/20 3529s ok 579 /checksum/SHA1/reset/21 3529s ok 580 /checksum/SHA1/reset/22 3529s ok 581 /checksum/SHA1/reset/23 3529s ok 582 /checksum/SHA1/reset/24 3529s ok 583 /checksum/SHA1/reset/25 3529s ok 584 /checksum/SHA1/reset/26 3529s ok 585 /checksum/SHA1/reset/27 3529s ok 586 /checksum/SHA1/reset/28 3529s ok 587 /checksum/SHA1/reset/29 3529s ok 588 /checksum/SHA1/reset/30 3529s ok 589 /checksum/SHA1/reset/31 3529s ok 590 /checksum/SHA1/reset/32 3529s ok 591 /checksum/SHA1/reset/33 3529s ok 592 /checksum/SHA1/reset/34 3529s ok 593 /checksum/SHA1/reset/35 3529s ok 594 /checksum/SHA1/reset/36 3529s ok 595 /checksum/SHA1/reset/37 3529s ok 596 /checksum/SHA1/reset/38 3529s ok 597 /checksum/SHA1/reset/39 3529s ok 598 /checksum/SHA1/reset/40 3529s ok 599 /checksum/SHA1/reset/41 3529s ok 600 /checksum/SHA1/reset/42 3529s ok 601 /checksum/SHA1/reset/43 3529s ok 602 /checksum/SHA1/reset/44 3529s ok 603 /checksum/SHA1/reset/45 3529s ok 604 /checksum/SHA1/reset/46 3529s ok 605 /checksum/SHA1/reset/47 3529s ok 606 /checksum/SHA1/reset/48 3529s ok 607 /checksum/SHA1/reset/49 3529s ok 608 /checksum/SHA1/reset/50 3529s ok 609 /checksum/SHA1/reset/51 3529s ok 610 /checksum/SHA1/reset/52 3529s ok 611 /checksum/SHA1/reset/53 3529s ok 612 /checksum/SHA1/reset/54 3529s ok 613 /checksum/SHA1/reset/55 3529s ok 614 /checksum/SHA1/reset/56 3529s ok 615 /checksum/SHA1/reset/57 3529s ok 616 /checksum/SHA1/reset/58 3529s ok 617 /checksum/SHA1/reset/59 3529s ok 618 /checksum/SHA1/reset/60 3529s ok 619 /checksum/SHA1/reset/61 3529s ok 620 /checksum/SHA1/reset/62 3529s ok 621 /checksum/SHA1/reset/63 3529s ok 622 /checksum/SHA1/reset/64 3529s ok 623 /checksum/SHA1/reset/65 3529s ok 624 /checksum/SHA1/reset/66 3529s ok 625 /checksum/SHA1/reset/67 3529s ok 626 /checksum/SHA1/reset/68 3529s ok 627 /checksum/SHA1/reset/69 3529s ok 628 /checksum/SHA1/reset/70 3529s ok 629 /checksum/SHA1/reset/71 3529s ok 630 /checksum/SHA1/reset/72 3529s ok 631 /checksum/SHA1/reset/73 3529s ok 632 /checksum/SHA1/reset/74 3529s ok 633 /checksum/SHA1/reset/75 3529s ok 634 /checksum/SHA1/reset/76 3529s ok 635 /checksum/SHA1/reset/77 3529s ok 636 /checksum/SHA1/reset/78 3529s ok 637 /checksum/SHA1/reset/79 3529s ok 638 /checksum/SHA1/reset/80 3529s ok 639 /checksum/SHA1/reset/81 3529s ok 640 /checksum/SHA1/reset/82 3529s ok 641 /checksum/SHA1/reset/83 3529s ok 642 /checksum/SHA1/reset/84 3529s ok 643 /checksum/SHA1/reset/85 3529s ok 644 /checksum/SHA1/reset/86 3529s ok 645 /checksum/SHA1/reset/87 3529s ok 646 /checksum/SHA1/reset/88 3529s ok 647 /checksum/SHA1/reset/89 3529s ok 648 /checksum/SHA1/reset/90 3529s ok 649 /checksum/SHA1/reset/91 3529s ok 650 /checksum/SHA1/reset/92 3529s ok 651 /checksum/SHA1/reset/93 3529s ok 652 /checksum/SHA1/reset/94 3529s ok 653 /checksum/SHA1/reset/95 3529s ok 654 /checksum/SHA1/reset/96 3529s ok 655 /checksum/SHA1/reset/97 3529s ok 656 /checksum/SHA1/reset/98 3529s ok 657 /checksum/SHA1/reset/99 3529s ok 658 /checksum/SHA1/reset/100 3529s ok 659 /checksum/SHA1/reset/101 3529s ok 660 /checksum/SHA1/reset/102 3529s ok 661 /checksum/SHA1/reset/103 3529s ok 662 /checksum/SHA1/reset/104 3529s ok 663 /checksum/SHA1/reset/105 3529s ok 664 /checksum/SHA1/reset/106 3529s ok 665 /checksum/SHA1/reset/107 3529s ok 666 /checksum/SHA1/reset/108 3529s ok 667 /checksum/SHA1/reset/109 3529s ok 668 /checksum/SHA1/reset/110 3529s ok 669 /checksum/SHA1/reset/111 3529s ok 670 /checksum/SHA1/reset/112 3529s ok 671 /checksum/SHA1/reset/113 3529s ok 672 /checksum/SHA1/reset/114 3529s ok 673 /checksum/SHA1/reset/115 3529s ok 674 /checksum/SHA1/reset/116 3529s ok 675 /checksum/SHA1/reset/117 3529s ok 676 /checksum/SHA1/reset/118 3529s ok 677 /checksum/SHA1/reset/119 3529s ok 678 /checksum/SHA1/reset/120 3529s ok 679 /checksum/SHA1/reset/121 3529s ok 680 /checksum/SHA1/reset/122 3529s ok 681 /checksum/SHA1/reset/123 3529s ok 682 /checksum/SHA1/reset/124 3529s ok 683 /checksum/SHA1/reset/125 3529s ok 684 /checksum/SHA1/reset/126 3529s ok 685 /checksum/SHA1/reset/127 3529s ok 686 /checksum/SHA1/reset/128 3529s ok 687 /checksum/SHA1/reset/129 3529s ok 688 /checksum/SHA1/reset/130 3529s ok 689 /checksum/SHA1/reset/131 3529s ok 690 /checksum/SHA1/reset/132 3529s ok 691 /checksum/SHA1/reset/133 3529s ok 692 /checksum/SHA1/reset/134 3529s ok 693 /checksum/SHA1/reset/135 3529s ok 694 /checksum/SHA1/reset/136 3529s ok 695 /checksum/SHA1/reset/137 3529s ok 696 /checksum/SHA1/reset/138 3529s ok 697 /checksum/SHA1/reset/139 3529s ok 698 /checksum/SHA1/reset/140 3529s ok 699 /checksum/SHA1/reset/141 3529s ok 700 /checksum/SHA1/reset/142 3529s ok 701 /checksum/SHA1/reset/143 3529s ok 702 /checksum/SHA1/reset/144 3529s ok 703 /checksum/SHA1/reset/145 3529s ok 704 /checksum/SHA1/reset/146 3529s ok 705 /checksum/SHA1/reset/147 3529s ok 706 /checksum/SHA1/reset/148 3529s ok 707 /checksum/SHA1/reset/149 3529s ok 708 /checksum/SHA1/reset/150 3529s ok 709 /checksum/SHA1/reset/151 3529s ok 710 /checksum/SHA1/reset/152 3529s ok 711 /checksum/SHA1/reset/153 3529s ok 712 /checksum/SHA1/reset/154 3529s ok 713 /checksum/SHA1/reset/155 3529s ok 714 /checksum/SHA1/reset/156 3529s ok 715 /checksum/SHA1/reset/157 3529s ok 716 /checksum/SHA1/reset/158 3529s ok 717 /checksum/SHA1/reset/159 3529s ok 718 /checksum/SHA1/reset/160 3529s ok 719 /checksum/SHA1/reset/161 3529s ok 720 /checksum/SHA1/reset/162 3529s ok 721 /checksum/SHA1/reset/163 3529s ok 722 /checksum/SHA1/reset/164 3529s ok 723 /checksum/SHA1/reset/165 3529s ok 724 /checksum/SHA1/reset/166 3529s ok 725 /checksum/SHA1/reset/167 3529s ok 726 /checksum/SHA1/reset/168 3529s ok 727 /checksum/SHA1/reset/169 3529s ok 728 /checksum/SHA1/reset/170 3529s ok 729 /checksum/SHA1/reset/171 3529s ok 730 /checksum/SHA1/reset/172 3529s ok 731 /checksum/SHA1/reset/173 3529s ok 732 /checksum/SHA1/reset/174 3529s # Executing: glib/checksum.test 3529s ok 733 /checksum/SHA1/reset/175 3529s ok 734 /checksum/SHA1/reset/176 3529s ok 735 /checksum/SHA1/reset/177 3529s ok 736 /checksum/SHA1/reset/178 3529s ok 737 /checksum/SHA1/reset/179 3529s ok 738 /checksum/SHA1/reset/180 3529s ok 739 /checksum/SHA1/reset/181 3529s ok 740 /checksum/SHA1/reset/182 3529s ok 741 /checksum/SHA1/reset/183 3529s # End of reset tests 3529s # End of SHA1 tests 3529s # Start of SHA256 tests 3529s ok 742 /checksum/SHA256/0 3529s ok 743 /checksum/SHA256/1 3529s ok 744 /checksum/SHA256/2 3529s ok 745 /checksum/SHA256/3 3529s ok 746 /checksum/SHA256/4 3529s ok 747 /checksum/SHA256/5 3529s ok 748 /checksum/SHA256/6 3529s ok 749 /checksum/SHA256/7 3529s ok 750 /checksum/SHA256/8 3529s ok 751 /checksum/SHA256/9 3529s ok 752 /checksum/SHA256/10 3529s ok 753 /checksum/SHA256/11 3529s ok 754 /checksum/SHA256/12 3529s ok 755 /checksum/SHA256/13 3529s ok 756 /checksum/SHA256/14 3529s ok 757 /checksum/SHA256/15 3529s ok 758 /checksum/SHA256/16 3529s ok 759 /checksum/SHA256/17 3529s ok 760 /checksum/SHA256/18 3529s ok 761 /checksum/SHA256/19 3529s ok 762 /checksum/SHA256/20 3529s ok 763 /checksum/SHA256/21 3529s ok 764 /checksum/SHA256/22 3529s ok 765 /checksum/SHA256/23 3529s ok 766 /checksum/SHA256/24 3529s ok 767 /checksum/SHA256/25 3529s ok 768 /checksum/SHA256/26 3529s ok 769 /checksum/SHA256/27 3529s ok 770 /checksum/SHA256/28 3529s ok 771 /checksum/SHA256/29 3529s ok 772 /checksum/SHA256/30 3529s ok 773 /checksum/SHA256/31 3529s ok 774 /checksum/SHA256/32 3529s ok 775 /checksum/SHA256/33 3529s ok 776 /checksum/SHA256/34 3529s ok 777 /checksum/SHA256/35 3529s ok 778 /checksum/SHA256/36 3529s ok 779 /checksum/SHA256/37 3529s ok 780 /checksum/SHA256/38 3529s ok 781 /checksum/SHA256/39 3529s ok 782 /checksum/SHA256/40 3529s ok 783 /checksum/SHA256/41 3529s ok 784 /checksum/SHA256/42 3529s ok 785 /checksum/SHA256/43 3529s ok 786 /checksum/SHA256/44 3529s ok 787 /checksum/SHA256/45 3529s ok 788 /checksum/SHA256/46 3529s ok 789 /checksum/SHA256/47 3529s ok 790 /checksum/SHA256/48 3529s ok 791 /checksum/SHA256/49 3529s ok 792 /checksum/SHA256/50 3529s ok 793 /checksum/SHA256/51 3529s ok 794 /checksum/SHA256/52 3529s ok 795 /checksum/SHA256/53 3529s ok 796 /checksum/SHA256/54 3529s ok 797 /checksum/SHA256/55 3529s ok 798 /checksum/SHA256/56 3529s ok 799 /checksum/SHA256/57 3529s ok 800 /checksum/SHA256/58 3529s ok 801 /checksum/SHA256/59 3529s ok 802 /checksum/SHA256/60 3529s ok 803 /checksum/SHA256/61 3529s ok 804 /checksum/SHA256/62 3529s ok 805 /checksum/SHA256/63 3529s ok 806 /checksum/SHA256/64 3529s ok 807 /checksum/SHA256/65 3529s ok 808 /checksum/SHA256/66 3529s ok 809 /checksum/SHA256/67 3529s ok 810 /checksum/SHA256/68 3529s ok 811 /checksum/SHA256/69 3529s ok 812 /checksum/SHA256/70 3529s ok 813 /checksum/SHA256/71 3529s ok 814 /checksum/SHA256/72 3529s ok 815 /checksum/SHA256/73 3529s ok 816 /checksum/SHA256/74 3529s ok 817 /checksum/SHA256/75 3529s ok 818 /checksum/SHA256/76 3529s ok 819 /checksum/SHA256/77 3529s ok 820 /checksum/SHA256/78 3529s ok 821 /checksum/SHA256/79 3529s ok 822 /checksum/SHA256/80 3529s ok 823 /checksum/SHA256/81 3529s ok 824 /checksum/SHA256/82 3529s ok 825 /checksum/SHA256/83 3529s ok 826 /checksum/SHA256/84 3529s ok 827 /checksum/SHA256/85 3529s ok 828 /checksum/SHA256/86 3529s ok 829 /checksum/SHA256/87 3529s ok 830 /checksum/SHA256/88 3529s ok 831 /checksum/SHA256/89 3529s ok 832 /checksum/SHA256/90 3529s ok 833 /checksum/SHA256/91 3529s ok 834 /checksum/SHA256/92 3529s ok 835 /checksum/SHA256/93 3529s ok 836 /checksum/SHA256/94 3529s ok 837 /checksum/SHA256/95 3529s ok 838 /checksum/SHA256/96 3529s ok 839 /checksum/SHA256/97 3529s ok 840 /checksum/SHA256/98 3529s ok 841 /checksum/SHA256/99 3529s ok 842 /checksum/SHA256/100 3529s ok 843 /checksum/SHA256/101 3529s ok 844 /checksum/SHA256/102 3529s ok 845 /checksum/SHA256/103 3529s ok 846 /checksum/SHA256/104 3529s ok 847 /checksum/SHA256/105 3529s ok 848 /checksum/SHA256/106 3529s ok 849 /checksum/SHA256/107 3529s ok 850 /checksum/SHA256/108 3529s ok 851 /checksum/SHA256/109 3529s ok 852 /checksum/SHA256/110 3529s ok 853 /checksum/SHA256/111 3529s ok 854 /checksum/SHA256/112 3529s ok 855 /checksum/SHA256/113 3529s ok 856 /checksum/SHA256/114 3529s ok 857 /checksum/SHA256/115 3529s ok 858 /checksum/SHA256/116 3529s ok 859 /checksum/SHA256/117 3529s ok 860 /checksum/SHA256/118 3529s ok 861 /checksum/SHA256/119 3529s ok 862 /checksum/SHA256/120 3529s ok 863 /checksum/SHA256/121 3529s ok 864 /checksum/SHA256/122 3529s ok 865 /checksum/SHA256/123 3529s ok 866 /checksum/SHA256/124 3529s ok 867 /checksum/SHA256/125 3529s ok 868 /checksum/SHA256/126 3529s ok 869 /checksum/SHA256/127 3529s ok 870 /checksum/SHA256/128 3529s ok 871 /checksum/SHA256/129 3529s ok 872 /checksum/SHA256/130 3529s ok 873 /checksum/SHA256/131 3529s ok 874 /checksum/SHA256/132 3529s ok 875 /checksum/SHA256/133 3529s ok 876 /checksum/SHA256/134 3529s ok 877 /checksum/SHA256/135 3529s ok 878 /checksum/SHA256/136 3529s ok 879 /checksum/SHA256/137 3529s ok 880 /checksum/SHA256/138 3529s ok 881 /checksum/SHA256/139 3529s ok 882 /checksum/SHA256/140 3529s ok 883 /checksum/SHA256/141 3529s ok 884 /checksum/SHA256/142 3529s ok 885 /checksum/SHA256/143 3529s ok 886 /checksum/SHA256/144 3529s ok 887 /checksum/SHA256/145 3529s ok 888 /checksum/SHA256/146 3529s ok 889 /checksum/SHA256/147 3529s ok 890 /checksum/SHA256/148 3529s ok 891 /checksum/SHA256/149 3529s ok 892 /checksum/SHA256/150 3529s ok 893 /checksum/SHA256/151 3529s ok 894 /checksum/SHA256/152 3529s ok 895 /checksum/SHA256/153 3529s ok 896 /checksum/SHA256/154 3529s ok 897 /checksum/SHA256/155 3529s ok 898 /checksum/SHA256/156 3529s ok 899 /checksum/SHA256/157 3529s ok 900 /checksum/SHA256/158 3529s ok 901 /checksum/SHA256/159 3529s ok 902 /checksum/SHA256/160 3529s ok 903 /checksum/SHA256/161 3529s ok 904 /checksum/SHA256/162 3529s ok 905 /checksum/SHA256/163 3529s ok 906 /checksum/SHA256/164 3529s ok 907 /checksum/SHA256/165 3529s ok 908 /checksum/SHA256/166 3529s ok 909 /checksum/SHA256/167 3529s ok 910 /checksum/SHA256/168 3529s ok 911 /checksum/SHA256/169 3529s ok 912 /checksum/SHA256/170 3529s ok 913 /checksum/SHA256/171 3529s ok 914 /checksum/SHA256/172 3529s ok 915 /checksum/SHA256/173 3529s ok 916 /checksum/SHA256/174 3529s ok 917 /checksum/SHA256/175 3529s ok 918 /checksum/SHA256/176 3529s ok 919 /checksum/SHA256/177 3529s ok 920 /checksum/SHA256/178 3529s ok 921 /checksum/SHA256/179 3529s ok 922 /checksum/SHA256/180 3529s ok 923 /checksum/SHA256/181 3529s ok 924 /checksum/SHA256/182 3529s ok 925 /checksum/SHA256/183 3529s ok 926 /checksum/SHA256/string 3529s ok 927 /checksum/SHA256/bytes 3529s # Start of reset tests 3529s ok 928 /checksum/SHA256/reset/0 3529s ok 929 /checksum/SHA256/reset/1 3529s ok 930 /checksum/SHA256/reset/2 3529s ok 931 /checksum/SHA256/reset/3 3529s ok 932 /checksum/SHA256/reset/4 3529s ok 933 /checksum/SHA256/reset/5 3529s ok 934 /checksum/SHA256/reset/6 3529s ok 935 /checksum/SHA256/reset/7 3529s ok 936 /checksum/SHA256/reset/8 3529s ok 937 /checksum/SHA256/reset/9 3529s ok 938 /checksum/SHA256/reset/10 3529s ok 939 /checksum/SHA256/reset/11 3529s ok 940 /checksum/SHA256/reset/12 3529s ok 941 /checksum/SHA256/reset/13 3529s ok 942 /checksum/SHA256/reset/14 3529s ok 943 /checksum/SHA256/reset/15 3529s ok 944 /checksum/SHA256/reset/16 3529s ok 945 /checksum/SHA256/reset/17 3529s ok 946 /checksum/SHA256/reset/18 3529s ok 947 /checksum/SHA256/reset/19 3529s ok 948 /checksum/SHA256/reset/20 3529s ok 949 /checksum/SHA256/reset/21 3529s ok 950 /checksum/SHA256/reset/22 3529s ok 951 /checksum/SHA256/reset/23 3529s ok 952 /checksum/SHA256/reset/24 3529s ok 953 /checksum/SHA256/reset/25 3529s ok 954 /checksum/SHA256/reset/26 3529s ok 955 /checksum/SHA256/reset/27 3529s ok 956 /checksum/SHA256/reset/28 3529s ok 957 /checksum/SHA256/reset/29 3529s ok 958 /checksum/SHA256/reset/30 3529s ok 959 /checksum/SHA256/reset/31 3529s ok 960 /checksum/SHA256/reset/32 3529s ok 961 /checksum/SHA256/reset/33 3529s ok 962 /checksum/SHA256/reset/34 3529s ok 963 /checksum/SHA256/reset/35 3529s ok 964 /checksum/SHA256/reset/36 3529s ok 965 /checksum/SHA256/reset/37 3529s ok 966 /checksum/SHA256/reset/38 3529s ok 967 /checksum/SHA256/reset/39 3529s ok 968 /checksum/SHA256/reset/40 3529s ok 969 /checksum/SHA256/reset/41 3529s ok 970 /checksum/SHA256/reset/42 3529s ok 971 /checksum/SHA256/reset/43 3529s ok 972 /checksum/SHA256/reset/44 3529s ok 973 /checksum/SHA256/reset/45 3529s ok 974 /checksum/SHA256/reset/46 3529s ok 975 /checksum/SHA256/reset/47 3529s ok 976 /checksum/SHA256/reset/48 3529s ok 977 /checksum/SHA256/reset/49 3529s ok 978 /checksum/SHA256/reset/50 3529s ok 979 /checksum/SHA256/reset/51 3529s ok 980 /checksum/SHA256/reset/52 3529s ok 981 /checksum/SHA256/reset/53 3529s ok 982 /checksum/SHA256/reset/54 3529s ok 983 /checksum/SHA256/reset/55 3529s ok 984 /checksum/SHA256/reset/56 3529s ok 985 /checksum/SHA256/reset/57 3529s ok 986 /checksum/SHA256/reset/58 3529s ok 987 /checksum/SHA256/reset/59 3529s ok 988 /checksum/SHA256/reset/60 3529s ok 989 /checksum/SHA256/reset/61 3529s ok 990 /checksum/SHA256/reset/62 3529s ok 991 /checksum/SHA256/reset/63 3529s ok 992 /checksum/SHA256/reset/64 3529s ok 993 /checksum/SHA256/reset/65 3529s ok 994 /checksum/SHA256/reset/66 3529s ok 995 /checksum/SHA256/reset/67 3529s ok 996 /checksum/SHA256/reset/68 3529s ok 997 /checksum/SHA256/reset/69 3529s ok 998 /checksum/SHA256/reset/70 3529s ok 999 /checksum/SHA256/reset/71 3529s ok 1000 /checksum/SHA256/reset/72 3529s ok 1001 /checksum/SHA256/reset/73 3529s ok 1002 /checksum/SHA256/reset/74 3529s ok 1003 /checksum/SHA256/reset/75 3529s ok 1004 /checksum/SHA256/reset/76 3529s ok 1005 /checksum/SHA256/reset/77 3529s ok 1006 /checksum/SHA256/reset/78 3529s ok 1007 /checksum/SHA256/reset/79 3529s ok 1008 /checksum/SHA256/reset/80 3529s ok 1009 /checksum/SHA256/reset/81 3529s ok 1010 /checksum/SHA256/reset/82 3529s ok 1011 /checksum/SHA256/reset/83 3529s ok 1012 /checksum/SHA256/reset/84 3529s ok 1013 /checksum/SHA256/reset/85 3529s ok 1014 /checksum/SHA256/reset/86 3529s ok 1015 /checksum/SHA256/reset/87 3529s ok 1016 /checksum/SHA256/reset/88 3529s ok 1017 /checksum/SHA256/reset/89 3529s ok 1018 /checksum/SHA256/reset/90 3529s ok 1019 /checksum/SHA256/reset/91 3529s ok 1020 /checksum/SHA256/reset/92 3529s ok 1021 /checksum/SHA256/reset/93 3529s ok 1022 /checksum/SHA256/reset/94 3529s ok 1023 /checksum/SHA256/reset/95 3529s ok 1024 /checksum/SHA256/reset/96 3529s ok 1025 /checksum/SHA256/reset/97 3529s ok 1026 /checksum/SHA256/reset/98 3529s ok 1027 /checksum/SHA256/reset/99 3529s ok 1028 /checksum/SHA256/reset/100 3529s ok 1029 /checksum/SHA256/reset/101 3529s ok 1030 /checksum/SHA256/reset/102 3529s ok 1031 /checksum/SHA256/reset/103 3529s ok 1032 /checksum/SHA256/reset/104 3529s ok 1033 /checksum/SHA256/reset/105 3529s ok 1034 /checksum/SHA256/reset/106 3529s ok 1035 /checksum/SHA256/reset/107 3529s ok 1036 /checksum/SHA256/reset/108 3529s ok 1037 /checksum/SHA256/reset/109 3529s ok 1038 /checksum/SHA256/reset/110 3529s ok 1039 /checksum/SHA256/reset/111 3529s ok 1040 /checksum/SHA256/reset/112 3529s ok 1041 /checksum/SHA256/reset/113 3529s ok 1042 /checksum/SHA256/reset/114 3529s ok 1043 /checksum/SHA256/reset/115 3529s ok 1044 /checksum/SHA256/reset/116 3529s ok 1045 /checksum/SHA256/reset/117 3529s ok 1046 /checksum/SHA256/reset/118 3529s ok 1047 /checksum/SHA256/reset/119 3529s ok 1048 /checksum/SHA256/reset/120 3529s ok 1049 /checksum/SHA256/reset/121 3529s ok 1050 /checksum/SHA256/reset/122 3529s ok 1051 /checksum/SHA256/reset/123 3529s ok 1052 /checksum/SHA256/reset/124 3529s ok 1053 /checksum/SHA256/reset/125 3529s ok 1054 /checksum/SHA256/reset/126 3529s ok 1055 /checksum/SHA256/reset/127 3529s ok 1056 /checksum/SHA256/reset/128 3529s ok 1057 /checksum/SHA256/reset/129 3529s ok 1058 /checksum/SHA256/reset/130 3529s ok 1059 /checksum/SHA256/reset/131 3529s ok 1060 /checksum/SHA256/reset/132 3529s ok 1061 /checksum/SHA256/reset/133 3529s ok 1062 /checksum/SHA256/reset/134 3529s ok 1063 /checksum/SHA256/reset/135 3529s ok 1064 /checksum/SHA256/reset/136 3529s ok 1065 /checksum/SHA256/reset/137 3529s ok 1066 /checksum/SHA256/reset/138 3529s ok 1067 /checksum/SHA256/reset/139 3529s ok 1068 /checksum/SHA256/reset/140 3529s ok 1069 /checksum/SHA256/reset/141 3529s ok 1070 /checksum/SHA256/reset/142 3529s ok 1071 /checksum/SHA256/reset/143 3529s ok 1072 /checksum/SHA256/reset/144 3529s ok 1073 /checksum/SHA256/reset/145 3529s ok 1074 /checksum/SHA256/reset/146 3529s ok 1075 /checksum/SHA256/reset/147 3529s ok 1076 /checksum/SHA256/reset/148 3529s ok 1077 /checksum/SHA256/reset/149 3529s ok 1078 /checksum/SHA256/reset/150 3529s ok 1079 /checksum/SHA256/reset/151 3529s ok 1080 /checksum/SHA256/reset/152 3529s ok 1081 /checksum/SHA256/reset/153 3529s ok 1082 /checksum/SHA256/reset/154 3529s ok 1083 /checksum/SHA256/reset/155 3529s ok 1084 /checksum/SHA256/reset/156 3529s ok 1085 /checksum/SHA256/reset/157 3529s ok 1086 /checksum/SHA256/reset/158 3529s ok 1087 /checksum/SHA256/reset/159 3529s ok 1088 /checksum/SHA256/reset/160 3529s ok 1089 /checksum/SHA256/reset/161 3529s ok 1090 /checksum/SHA256/reset/162 3529s ok 1091 /checksum/SHA256/reset/163 3529s ok 1092 /checksum/SHA256/reset/164 3529s ok 1093 /checksum/SHA256/reset/165 3529s ok 1094 /checksum/SHA256/reset/166 3529s ok 1095 /checksum/SHA256/reset/167 3529s ok 1096 /checksum/SHA256/reset/168 3529s ok 1097 /checksum/SHA256/reset/169 3529s ok 1098 /checksum/SHA256/reset/170 3529s ok 1099 /checksum/SHA256/reset/171 3529s ok 1100 /checksum/SHA256/reset/172 3529s ok 1101 /checksum/SHA256/reset/173 3529s ok 1102 /checksum/SHA256/reset/174 3529s ok 1103 /checksum/SHA256/reset/175 3529s ok 1104 /checksum/SHA256/reset/176 3529s ok 1105 /checksum/SHA256/reset/177 3529s ok 1106 /checksum/SHA256/reset/178 3529s ok 1107 /checksum/SHA256/reset/179 3529s ok 1108 /checksum/SHA256/reset/180 3529s ok 1109 /checksum/SHA256/reset/181 3529s ok 1110 /checksum/SHA256/reset/182 3529s ok 1111 /checksum/SHA256/reset/183 3529s # End of reset tests 3529s # End of SHA256 tests 3529s # Start of SHA384 tests 3529s ok 1112 /checksum/SHA384/0 3529s ok 1113 /checksum/SHA384/1 3529s ok 1114 /checksum/SHA384/2 3529s ok 1115 /checksum/SHA384/3 3529s ok 1116 /checksum/SHA384/4 3529s ok 1117 /checksum/SHA384/5 3529s ok 1118 /checksum/SHA384/6 3529s ok 1119 /checksum/SHA384/7 3529s ok 1120 /checksum/SHA384/8 3529s ok 1121 /checksum/SHA384/9 3529s ok 1122 /checksum/SHA384/10 3529s ok 1123 /checksum/SHA384/11 3529s ok 1124 /checksum/SHA384/12 3529s ok 1125 /checksum/SHA384/13 3529s ok 1126 /checksum/SHA384/14 3529s ok 1127 /checksum/SHA384/15 3529s ok 1128 /checksum/SHA384/16 3529s ok 1129 /checksum/SHA384/17 3529s ok 1130 /checksum/SHA384/18 3529s ok 1131 /checksum/SHA384/19 3529s ok 1132 /checksum/SHA384/20 3529s ok 1133 /checksum/SHA384/21 3529s ok 1134 /checksum/SHA384/22 3529s ok 1135 /checksum/SHA384/23 3529s ok 1136 /checksum/SHA384/24 3529s ok 1137 /checksum/SHA384/25 3529s ok 1138 /checksum/SHA384/26 3529s ok 1139 /checksum/SHA384/27 3529s ok 1140 /checksum/SHA384/28 3529s ok 1141 /checksum/SHA384/29 3529s ok 1142 /checksum/SHA384/30 3529s ok 1143 /checksum/SHA384/31 3529s ok 1144 /checksum/SHA384/32 3529s ok 1145 /checksum/SHA384/33 3529s ok 1146 /checksum/SHA384/34 3529s ok 1147 /checksum/SHA384/35 3529s ok 1148 /checksum/SHA384/36 3529s ok 1149 /checksum/SHA384/37 3529s ok 1150 /checksum/SHA384/38 3529s ok 1151 /checksum/SHA384/39 3529s ok 1152 /checksum/SHA384/40 3529s ok 1153 /checksum/SHA384/41 3529s ok 1154 /checksum/SHA384/42 3529s ok 1155 /checksum/SHA384/43 3529s ok 1156 /checksum/SHA384/44 3529s ok 1157 /checksum/SHA384/45 3529s ok 1158 /checksum/SHA384/46 3529s ok 1159 /checksum/SHA384/47 3529s ok 1160 /checksum/SHA384/48 3529s ok 1161 /checksum/SHA384/49 3529s ok 1162 /checksum/SHA384/50 3529s ok 1163 /checksum/SHA384/51 3529s ok 1164 /checksum/SHA384/52 3529s ok 1165 /checksum/SHA384/53 3529s ok 1166 /checksum/SHA384/54 3529s ok 1167 /checksum/SHA384/55 3529s ok 1168 /checksum/SHA384/56 3529s ok 1169 /checksum/SHA384/57 3529s ok 1170 /checksum/SHA384/58 3529s ok 1171 /checksum/SHA384/59 3529s ok 1172 /checksum/SHA384/60 3529s ok 1173 /checksum/SHA384/61 3529s ok 1174 /checksum/SHA384/62 3529s ok 1175 /checksum/SHA384/63 3529s ok 1176 /checksum/SHA384/64 3529s ok 1177 /checksum/SHA384/65 3529s ok 1178 /checksum/SHA384/66 3529s ok 1179 /checksum/SHA384/67 3529s ok 1180 /checksum/SHA384/68 3529s ok 1181 /checksum/SHA384/69 3529s ok 1182 /checksum/SHA384/70 3529s ok 1183 /checksum/SHA384/71 3529s ok 1184 /checksum/SHA384/72 3529s ok 1185 /checksum/SHA384/73 3529s ok 1186 /checksum/SHA384/74 3529s ok 1187 /checksum/SHA384/75 3529s ok 1188 /checksum/SHA384/76 3529s ok 1189 /checksum/SHA384/77 3529s ok 1190 /checksum/SHA384/78 3529s ok 1191 /checksum/SHA384/79 3529s ok 1192 /checksum/SHA384/80 3529s ok 1193 /checksum/SHA384/81 3529s ok 1194 /checksum/SHA384/82 3529s ok 1195 /checksum/SHA384/83 3529s ok 1196 /checksum/SHA384/84 3529s ok 1197 /checksum/SHA384/85 3529s ok 1198 /checksum/SHA384/86 3529s ok 1199 /checksum/SHA384/87 3529s ok 1200 /checksum/SHA384/88 3529s ok 1201 /checksum/SHA384/89 3529s ok 1202 /checksum/SHA384/90 3529s ok 1203 /checksum/SHA384/91 3529s ok 1204 /checksum/SHA384/92 3529s ok 1205 /checksum/SHA384/93 3529s ok 1206 /checksum/SHA384/94 3529s ok 1207 /checksum/SHA384/95 3529s ok 1208 /checksum/SHA384/96 3529s ok 1209 /checksum/SHA384/97 3529s ok 1210 /checksum/SHA384/98 3529s ok 1211 /checksum/SHA384/99 3529s ok 1212 /checksum/SHA384/100 3529s ok 1213 /checksum/SHA384/101 3529s ok 1214 /checksum/SHA384/102 3529s ok 1215 /checksum/SHA384/103 3529s ok 1216 /checksum/SHA384/104 3529s ok 1217 /checksum/SHA384/105 3529s ok 1218 /checksum/SHA384/106 3529s ok 1219 /checksum/SHA384/107 3529s ok 1220 /checksum/SHA384/108 3529s ok 1221 /checksum/SHA384/109 3529s ok 1222 /checksum/SHA384/110 3529s ok 1223 /checksum/SHA384/111 3529s ok 1224 /checksum/SHA384/112 3529s ok 1225 /checksum/SHA384/113 3529s ok 1226 /checksum/SHA384/114 3529s ok 1227 /checksum/SHA384/115 3529s ok 1228 /checksum/SHA384/116 3529s ok 1229 /checksum/SHA384/117 3529s ok 1230 /checksum/SHA384/118 3529s ok 1231 /checksum/SHA384/119 3529s ok 1232 /checksum/SHA384/120 3529s ok 1233 /checksum/SHA384/121 3529s ok 1234 /checksum/SHA384/122 3529s ok 1235 /checksum/SHA384/123 3529s ok 1236 /checksum/SHA384/124 3529s ok 1237 /checksum/SHA384/125 3529s ok 1238 /checksum/SHA384/126 3529s ok 1239 /checksum/SHA384/127 3529s ok 1240 /checksum/SHA384/128 3529s ok 1241 /checksum/SHA384/129 3529s ok 1242 /checksum/SHA384/130 3529s ok 1243 /checksum/SHA384/131 3529s ok 1244 /checksum/SHA384/132 3529s ok 1245 /checksum/SHA384/133 3529s ok 1246 /checksum/SHA384/134 3529s ok 1247 /checksum/SHA384/135 3529s ok 1248 /checksum/SHA384/136 3529s ok 1249 /checksum/SHA384/137 3529s ok 1250 /checksum/SHA384/138 3529s ok 1251 /checksum/SHA384/139 3529s ok 1252 /checksum/SHA384/140 3529s ok 1253 /checksum/SHA384/141 3529s ok 1254 /checksum/SHA384/142 3529s ok 1255 /checksum/SHA384/143 3529s ok 1256 /checksum/SHA384/144 3529s ok 1257 /checksum/SHA384/145 3529s ok 1258 /checksum/SHA384/146 3529s ok 1259 /checksum/SHA384/147 3529s ok 1260 /checksum/SHA384/148 3529s ok 1261 /checksum/SHA384/149 3529s ok 1262 /checksum/SHA384/150 3529s ok 1263 /checksum/SHA384/151 3529s ok 1264 /checksum/SHA384/152 3529s ok 1265 /checksum/SHA384/153 3529s ok 1266 /checksum/SHA384/154 3529s ok 1267 /checksum/SHA384/155 3529s ok 1268 /checksum/SHA384/156 3529s ok 1269 /checksum/SHA384/157 3529s ok 1270 /checksum/SHA384/158 3529s ok 1271 /checksum/SHA384/159 3529s ok 1272 /checksum/SHA384/160 3529s ok 1273 /checksum/SHA384/161 3529s ok 1274 /checksum/SHA384/162 3529s ok 1275 /checksum/SHA384/163 3529s ok 1276 /checksum/SHA384/164 3529s ok 1277 /checksum/SHA384/165 3529s ok 1278 /checksum/SHA384/166 3529s ok 1279 /checksum/SHA384/167 3529s ok 1280 /checksum/SHA384/168 3529s ok 1281 /checksum/SHA384/169 3529s ok 1282 /checksum/SHA384/170 3529s ok 1283 /checksum/SHA384/171 3529s ok 1284 /checksum/SHA384/172 3529s ok 1285 /checksum/SHA384/173 3529s ok 1286 /checksum/SHA384/174 3529s ok 1287 /checksum/SHA384/175 3529s ok 1288 /checksum/SHA384/176 3529s ok 1289 /checksum/SHA384/177 3529s ok 1290 /checksum/SHA384/178 3529s ok 1291 /checksum/SHA384/179 3529s ok 1292 /checksum/SHA384/180 3529s ok 1293 /checksum/SHA384/181 3529s ok 1294 /checksum/SHA384/182 3529s ok 1295 /checksum/SHA384/183 3529s ok 1296 /checksum/SHA384/string 3529s ok 1297 /checksum/SHA384/bytes 3529s # Start of reset tests 3529s ok 1298 /checksum/SHA384/reset/0 3529s ok 1299 /checksum/SHA384/reset/1 3529s ok 1300 /checksum/SHA384/reset/2 3529s ok 1301 /checksum/SHA384/reset/3 3529s ok 1302 /checksum/SHA384/reset/4 3529s ok 1303 /checksum/SHA384/reset/5 3529s ok 1304 /checksum/SHA384/reset/6 3529s ok 1305 /checksum/SHA384/reset/7 3529s ok 1306 /checksum/SHA384/reset/8 3529s ok 1307 /checksum/SHA384/reset/9 3529s ok 1308 /checksum/SHA384/reset/10 3529s ok 1309 /checksum/SHA384/reset/11 3529s ok 1310 /checksum/SHA384/reset/12 3529s ok 1311 /checksum/SHA384/reset/13 3529s ok 1312 /checksum/SHA384/reset/14 3529s ok 1313 /checksum/SHA384/reset/15 3529s ok 1314 /checksum/SHA384/reset/16 3529s ok 1315 /checksum/SHA384/reset/17 3529s ok 1316 /checksum/SHA384/reset/18 3529s ok 1317 /checksum/SHA384/reset/19 3529s ok 1318 /checksum/SHA384/reset/20 3529s ok 1319 /checksum/SHA384/reset/21 3529s ok 1320 /checksum/SHA384/reset/22 3529s ok 1321 /checksum/SHA384/reset/23 3529s ok 1322 /checksum/SHA384/reset/24 3529s ok 1323 /checksum/SHA384/reset/25 3529s ok 1324 /checksum/SHA384/reset/26 3529s ok 1325 /checksum/SHA384/reset/27 3529s ok 1326 /checksum/SHA384/reset/28 3529s ok 1327 /checksum/SHA384/reset/29 3529s ok 1328 /checksum/SHA384/reset/30 3529s ok 1329 /checksum/SHA384/reset/31 3529s ok 1330 /checksum/SHA384/reset/32 3529s ok 1331 /checksum/SHA384/reset/33 3529s ok 1332 /checksum/SHA384/reset/34 3529s ok 1333 /checksum/SHA384/reset/35 3529s ok 1334 /checksum/SHA384/reset/36 3529s ok 1335 /checksum/SHA384/reset/37 3529s ok 1336 /checksum/SHA384/reset/38 3529s ok 1337 /checksum/SHA384/reset/39 3529s ok 1338 /checksum/SHA384/reset/40 3529s ok 1339 /checksum/SHA384/reset/41 3529s ok 1340 /checksum/SHA384/reset/42 3529s ok 1341 /checksum/SHA384/reset/43 3529s ok 1342 /checksum/SHA384/reset/44 3529s ok 1343 /checksum/SHA384/reset/45 3529s ok 1344 /checksum/SHA384/reset/46 3529s ok 1345 /checksum/SHA384/reset/47 3529s ok 1346 /checksum/SHA384/reset/48 3529s ok 1347 /checksum/SHA384/reset/49 3529s ok 1348 /checksum/SHA384/reset/50 3529s ok 1349 /checksum/SHA384/reset/51 3529s ok 1350 /checksum/SHA384/reset/52 3529s ok 1351 /checksum/SHA384/reset/53 3529s ok 1352 /checksum/SHA384/reset/54 3529s ok 1353 /checksum/SHA384/reset/55 3529s ok 1354 /checksum/SHA384/reset/56 3529s ok 1355 /checksum/SHA384/reset/57 3529s ok 1356 /checksum/SHA384/reset/58 3529s ok 1357 /checksum/SHA384/reset/59 3529s ok 1358 /checksum/SHA384/reset/60 3529s ok 1359 /checksum/SHA384/reset/61 3529s ok 1360 /checksum/SHA384/reset/62 3529s ok 1361 /checksum/SHA384/reset/63 3529s ok 1362 /checksum/SHA384/reset/64 3529s ok 1363 /checksum/SHA384/reset/65 3529s ok 1364 /checksum/SHA384/reset/66 3529s ok 1365 /checksum/SHA384/reset/67 3529s ok 1366 /checksum/SHA384/reset/68 3529s ok 1367 /checksum/SHA384/reset/69 3529s ok 1368 /checksum/SHA384/reset/70 3529s ok 1369 /checksum/SHA384/reset/71 3529s ok 1370 /checksum/SHA384/reset/72 3529s ok 1371 /checksum/SHA384/reset/73 3529s ok 1372 /checksum/SHA384/reset/74 3529s ok 1373 /checksum/SHA384/reset/75 3529s ok 1374 /checksum/SHA384/reset/76 3529s ok 1375 /checksum/SHA384/reset/77 3529s ok 1376 /checksum/SHA384/reset/78 3529s ok 1377 /checksum/SHA384/reset/79 3529s ok 1378 /checksum/SHA384/reset/80 3529s ok 1379 /checksum/SHA384/reset/81 3529s ok 1380 /checksum/SHA384/reset/82 3529s ok 1381 /checksum/SHA384/reset/83 3529s ok 1382 /checksum/SHA384/reset/84 3529s ok 1383 /checksum/SHA384/reset/85 3529s ok 1384 /checksum/SHA384/reset/86 3529s ok 1385 /checksum/SHA384/reset/87 3529s ok 1386 /checksum/SHA384/reset/88 3529s ok 1387 /checksum/SHA384/reset/89 3529s ok 1388 /checksum/SHA384/reset/90 3529s ok 1389 /checksum/SHA384/reset/91 3529s ok 1390 /checksum/SHA384/reset/92 3529s ok 1391 /checksum/SHA384/reset/93 3529s ok 1392 /checksum/SHA384/reset/94 3529s ok 1393 /checksum/SHA384/reset/95 3529s ok 1394 /checksum/SHA384/reset/96 3529s ok 1395 /checksum/SHA384/reset/97 3529s ok 1396 /checksum/SHA384/reset/98 3529s ok 1397 /checksum/SHA384/reset/99 3529s ok 1398 /checksum/SHA384/reset/100 3529s ok 1399 /checksum/SHA384/reset/101 3529s ok 1400 /checksum/SHA384/reset/102 3529s ok 1401 /checksum/SHA384/reset/103 3529s ok 1402 /checksum/SHA384/reset/104 3529s ok 1403 /checksum/SHA384/reset/105 3529s ok 1404 /checksum/SHA384/reset/106 3529s ok 1405 /checksum/SHA384/reset/107 3529s ok 1406 /checksum/SHA384/reset/108 3529s ok 1407 /checksum/SHA384/reset/109 3529s ok 1408 /checksum/SHA384/reset/110 3529s ok 1409 /checksum/SHA384/reset/111 3529s ok 1410 /checksum/SHA384/reset/112 3529s ok 1411 /checksum/SHA384/reset/113 3529s ok 1412 /checksum/SHA384/reset/114 3529s ok 1413 /checksum/SHA384/reset/115 3529s ok 1414 /checksum/SHA384/reset/116 3529s ok 1415 /checksum/SHA384/reset/117 3529s ok 1416 /checksum/SHA384/reset/118 3529s ok 1417 /checksum/SHA384/reset/119 3529s ok 1418 /checksum/SHA384/reset/120 3529s ok 1419 /checksum/SHA384/reset/121 3529s ok 1420 /checksum/SHA384/reset/122 3529s ok 1421 /checksum/SHA384/reset/123 3529s ok 1422 /checksum/SHA384/reset/124 3529s ok 1423 /checksum/SHA384/reset/125 3529s ok 1424 /checksum/SHA384/reset/126 3529s ok 1425 /checksum/SHA384/reset/127 3529s ok 1426 /checksum/SHA384/reset/128 3529s ok 1427 /checksum/SHA384/reset/129 3529s ok 1428 /checksum/SHA384/reset/130 3529s ok 1429 /checksum/SHA384/reset/131 3529s ok 1430 /checksum/SHA384/reset/132 3529s ok 1431 /checksum/SHA384/reset/133 3529s ok 1432 /checksum/SHA384/reset/134 3529s ok 1433 /checksum/SHA384/reset/135 3529s ok 1434 /checksum/SHA384/reset/136 3529s ok 1435 /checksum/SHA384/reset/137 3529s ok 1436 /checksum/SHA384/reset/138 3529s ok 1437 /checksum/SHA384/reset/139 3529s ok 1438 /checksum/SHA384/reset/140 3529s ok 1439 /checksum/SHA384/reset/141 3529s ok 1440 /checksum/SHA384/reset/142 3529s ok 1441 /checksum/SHA384/reset/143 3529s ok 1442 /checksum/SHA384/reset/144 3529s ok 1443 /checksum/SHA384/reset/145 3529s ok 1444 /checksum/SHA384/reset/146 3529s ok 1445 /checksum/SHA384/reset/147 3529s ok 1446 /checksum/SHA384/reset/148 3529s ok 1447 /checksum/SHA384/reset/149 3529s ok 1448 /checksum/SHA384/reset/150 3529s ok 1449 /checksum/SHA384/reset/151 3529s ok 1450 /checksum/SHA384/reset/152 3529s ok 1451 /checksum/SHA384/reset/153 3529s ok 1452 /checksum/SHA384/reset/154 3529s ok 1453 /checksum/SHA384/reset/155 3529s ok 1454 /checksum/SHA384/reset/156 3529s ok 1455 /checksum/SHA384/reset/157 3529s ok 1456 /checksum/SHA384/reset/158 3529s ok 1457 /checksum/SHA384/reset/159 3529s ok 1458 /checksum/SHA384/reset/160 3529s ok 1459 /checksum/SHA384/reset/161 3529s ok 1460 /checksum/SHA384/reset/162 3529s ok 1461 /checksum/SHA384/reset/163 3529s ok 1462 /checksum/SHA384/reset/164 3529s ok 1463 /checksum/SHA384/reset/165 3529s ok 1464 /checksum/SHA384/reset/166 3529s ok 1465 /checksum/SHA384/reset/167 3529s ok 1466 /checksum/SHA384/reset/168 3529s ok 1467 /checksum/SHA384/reset/169 3529s ok 1468 /checksum/SHA384/reset/170 3529s ok 1469 /checksum/SHA384/reset/171 3529s ok 1470 /checksum/SHA384/reset/172 3529s ok 1471 /checksum/SHA384/reset/173 3529s ok 1472 /checksum/SHA384/reset/174 3529s ok 1473 /checksum/SHA384/reset/175 3529s ok 1474 /checksum/SHA384/reset/176 3529s ok 1475 /checksum/SHA384/reset/177 3529s ok 1476 /checksum/SHA384/reset/178 3529s ok 1477 /checksum/SHA384/reset/179 3529s ok 1478 /checksum/SHA384/reset/180 3529s ok 1479 /checksum/SHA384/reset/181 3529s ok 1480 /checksum/SHA384/reset/182 3529s ok 1481 /checksum/SHA384/reset/183 3529s # End of reset tests 3529s # End of SHA384 tests 3529s # Start of SHA512 tests 3529s ok 1482 /checksum/SHA512/0 3529s ok 1483 /checksum/SHA512/1 3529s ok 1484 /checksum/SHA512/2 3529s ok 1485 /checksum/SHA512/3 3529s ok 1486 /checksum/SHA512/4 3529s ok 1487 /checksum/SHA512/5 3529s ok 1488 /checksum/SHA512/6 3529s ok 1489 /checksum/SHA512/7 3529s ok 1490 /checksum/SHA512/8 3529s ok 1491 /checksum/SHA512/9 3529s ok 1492 /checksum/SHA512/10 3529s ok 1493 /checksum/SHA512/11 3529s ok 1494 /checksum/SHA512/12 3529s ok 1495 /checksum/SHA512/13 3529s ok 1496 /checksum/SHA512/14 3529s ok 1497 /checksum/SHA512/15 3529s ok 1498 /checksum/SHA512/16 3529s ok 1499 /checksum/SHA512/17 3529s ok 1500 /checksum/SHA512/18 3529s ok 1501 /checksum/SHA512/19 3529s ok 1502 /checksum/SHA512/20 3529s ok 1503 /checksum/SHA512/21 3529s ok 1504 /checksum/SHA512/22 3529s ok 1505 /checksum/SHA512/23 3529s ok 1506 /checksum/SHA512/24 3529s ok 1507 /checksum/SHA512/25 3529s ok 1508 /checksum/SHA512/26 3529s ok 1509 /checksum/SHA512/27 3529s ok 1510 /checksum/SHA512/28 3529s ok 1511 /checksum/SHA512/29 3529s ok 1512 /checksum/SHA512/30 3529s ok 1513 /checksum/SHA512/31 3529s ok 1514 /checksum/SHA512/32 3529s ok 1515 /checksum/SHA512/33 3529s ok 1516 /checksum/SHA512/34 3529s ok 1517 /checksum/SHA512/35 3529s ok 1518 /checksum/SHA512/36 3529s ok 1519 /checksum/SHA512/37 3529s ok 1520 /checksum/SHA512/38 3529s ok 1521 /checksum/SHA512/39 3529s ok 1522 /checksum/SHA512/40 3529s ok 1523 /checksum/SHA512/41 3529s ok 1524 /checksum/SHA512/42 3529s ok 1525 /checksum/SHA512/43 3529s ok 1526 /checksum/SHA512/44 3529s ok 1527 /checksum/SHA512/45 3529s ok 1528 /checksum/SHA512/46 3529s ok 1529 /checksum/SHA512/47 3529s ok 1530 /checksum/SHA512/48 3529s ok 1531 /checksum/SHA512/49 3529s ok 1532 /checksum/SHA512/50 3529s ok 1533 /checksum/SHA512/51 3529s ok 1534 /checksum/SHA512/52 3529s ok 1535 /checksum/SHA512/53 3529s ok 1536 /checksum/SHA512/54 3529s ok 1537 /checksum/SHA512/55 3529s ok 1538 /checksum/SHA512/56 3529s ok 1539 /checksum/SHA512/57 3529s ok 1540 /checksum/SHA512/58 3529s ok 1541 /checksum/SHA512/59 3529s ok 1542 /checksum/SHA512/60 3529s ok 1543 /checksum/SHA512/61 3529s ok 1544 /checksum/SHA512/62 3529s ok 1545 /checksum/SHA512/63 3529s ok 1546 /checksum/SHA512/64 3529s ok 1547 /checksum/SHA512/65 3529s ok 1548 /checksum/SHA512/66 3529s ok 1549 /checksum/SHA512/67 3529s ok 1550 /checksum/SHA512/68 3529s ok 1551 /checksum/SHA512/69 3529s ok 1552 /checksum/SHA512/70 3529s ok 1553 /checksum/SHA512/71 3529s ok 1554 /checksum/SHA512/72 3529s ok 1555 /checksum/SHA512/73 3529s ok 1556 /checksum/SHA512/74 3529s ok 1557 /checksum/SHA512/75 3529s ok 1558 /checksum/SHA512/76 3529s ok 1559 /checksum/SHA512/77 3529s ok 1560 /checksum/SHA512/78 3529s ok 1561 /checksum/SHA512/79 3529s ok 1562 /checksum/SHA512/80 3529s ok 1563 /checksum/SHA512/81 3529s ok 1564 /checksum/SHA512/82 3529s ok 1565 /checksum/SHA512/83 3529s ok 1566 /checksum/SHA512/84 3529s ok 1567 /checksum/SHA512/85 3529s ok 1568 /checksum/SHA512/86 3529s ok 1569 /checksum/SHA512/87 3529s ok 1570 /checksum/SHA512/88 3529s ok 1571 /checksum/SHA512/89 3529s ok 1572 /checksum/SHA512/90 3529s ok 1573 /checksum/SHA512/91 3529s ok 1574 /checksum/SHA512/92 3529s ok 1575 /checksum/SHA512/93 3529s ok 1576 /checksum/SHA512/94 3529s ok 1577 /checksum/SHA512/95 3529s ok 1578 /checksum/SHA512/96 3529s ok 1579 /checksum/SHA512/97 3529s ok 1580 /checksum/SHA512/98 3529s ok 1581 /checksum/SHA512/99 3529s ok 1582 /checksum/SHA512/100 3529s ok 1583 /checksum/SHA512/101 3529s ok 1584 /checksum/SHA512/102 3529s ok 1585 /checksum/SHA512/103 3529s ok 1586 /checksum/SHA512/104 3529s ok 1587 /checksum/SHA512/105 3529s ok 1588 /checksum/SHA512/106 3529s ok 1589 /checksum/SHA512/107 3529s ok 1590 /checksum/SHA512/108 3529s ok 1591 /checksum/SHA512/109 3529s ok 1592 /checksum/SHA512/110 3529s ok 1593 /checksum/SHA512/111 3529s ok 1594 /checksum/SHA512/112 3529s ok 1595 /checksum/SHA512/113 3529s ok 1596 /checksum/SHA512/114 3529s ok 1597 /checksum/SHA512/115 3529s ok 1598 /checksum/SHA512/116 3529s ok 1599 /checksum/SHA512/117 3529s ok 1600 /checksum/SHA512/118 3529s ok 1601 /checksum/SHA512/119 3529s ok 1602 /checksum/SHA512/120 3529s ok 1603 /checksum/SHA512/121 3529s ok 1604 /checksum/SHA512/122 3529s ok 1605 /checksum/SHA512/123 3529s ok 1606 /checksum/SHA512/124 3529s ok 1607 /checksum/SHA512/125 3529s ok 1608 /checksum/SHA512/126 3529s ok 1609 /checksum/SHA512/127 3529s ok 1610 /checksum/SHA512/128 3529s ok 1611 /checksum/SHA512/129 3529s ok 1612 /checksum/SHA512/130 3529s ok 1613 /checksum/SHA512/131 3529s ok 1614 /checksum/SHA512/132 3529s ok 1615 /checksum/SHA512/133 3529s ok 1616 /checksum/SHA512/134 3529s ok 1617 /checksum/SHA512/135 3529s ok 1618 /checksum/SHA512/136 3529s ok 1619 /checksum/SHA512/137 3529s ok 1620 /checksum/SHA512/138 3529s ok 1621 /checksum/SHA512/139 3529s ok 1622 /checksum/SHA512/140 3529s ok 1623 /checksum/SHA512/141 3529s ok 1624 /checksum/SHA512/142 3529s ok 1625 /checksum/SHA512/143 3529s ok 1626 /checksum/SHA512/144 3529s ok 1627 /checksum/SHA512/145 3529s ok 1628 /checksum/SHA512/146 3529s ok 1629 /checksum/SHA512/147 3529s ok 1630 /checksum/SHA512/148 3529s ok 1631 /checksum/SHA512/149 3529s ok 1632 /checksum/SHA512/150 3529s ok 1633 /checksum/SHA512/151 3529s ok 1634 /checksum/SHA512/152 3529s ok 1635 /checksum/SHA512/153 3529s ok 1636 /checksum/SHA512/154 3529s ok 1637 /checksum/SHA512/155 3529s ok 1638 /checksum/SHA512/156 3529s ok 1639 /checksum/SHA512/157 3529s ok 1640 /checksum/SHA512/158 3529s ok 1641 /checksum/SHA512/159 3530s ok 1642 /checksum/SHA512/160 3530s ok 1643 /checksum/SHA512/161 3530s ok 1644 /checksum/SHA512/162 3530s ok 1645 /checksum/SHA512/163 3530s ok 1646 /checksum/SHA512/164 3530s ok 1647 /checksum/SHA512/165 3530s ok 1648 /checksum/SHA512/166 3530s ok 1649 /checksum/SHA512/167 3530s ok 1650 /checksum/SHA512/168 3530s ok 1651 /checksum/SHA512/169 3530s ok 1652 /checksum/SHA512/170 3530s ok 1653 /checksum/SHA512/171 3530s ok 1654 /checksum/SHA512/172 3530s ok 1655 /checksum/SHA512/173 3530s ok 1656 /checksum/SHA512/174 3530s ok 1657 /checksum/SHA512/175 3530s ok 1658 /checksum/SHA512/176 3530s ok 1659 /checksum/SHA512/177 3530s ok 1660 /checksum/SHA512/178 3530s ok 1661 /checksum/SHA512/179 3530s ok 1662 /checksum/SHA512/180 3530s ok 1663 /checksum/SHA512/181 3530s ok 1664 /checksum/SHA512/182 3530s ok 1665 /checksum/SHA512/183 3530s ok 1666 /checksum/SHA512/string 3530s ok 1667 /checksum/SHA512/bytes 3530s # Start of reset tests 3530s ok 1668 /checksum/SHA512/reset/0 3530s ok 1669 /checksum/SHA512/reset/1 3530s ok 1670 /checksum/SHA512/reset/2 3530s ok 1671 /checksum/SHA512/reset/3 3530s ok 1672 /checksum/SHA512/reset/4 3530s ok 1673 /checksum/SHA512/reset/5 3530s ok 1674 /checksum/SHA512/reset/6 3530s ok 1675 /checksum/SHA512/reset/7 3530s ok 1676 /checksum/SHA512/reset/8 3530s ok 1677 /checksum/SHA512/reset/9 3530s ok 1678 /checksum/SHA512/reset/10 3530s ok 1679 /checksum/SHA512/reset/11 3530s ok 1680 /checksum/SHA512/reset/12 3530s ok 1681 /checksum/SHA512/reset/13 3530s ok 1682 /checksum/SHA512/reset/14 3530s ok 1683 /checksum/SHA512/reset/15 3530s ok 1684 /checksum/SHA512/reset/16 3530s ok 1685 /checksum/SHA512/reset/17 3530s ok 1686 /checksum/SHA512/reset/18 3530s ok 1687 /checksum/SHA512/reset/19 3530s ok 1688 /checksum/SHA512/reset/20 3530s ok 1689 /checksum/SHA512/reset/21 3530s ok 1690 /checksum/SHA512/reset/22 3530s ok 1691 /checksum/SHA512/reset/23 3530s ok 1692 /checksum/SHA512/reset/24 3530s ok 1693 /checksum/SHA512/reset/25 3530s ok 1694 /checksum/SHA512/reset/26 3530s ok 1695 /checksum/SHA512/reset/27 3530s ok 1696 /checksum/SHA512/reset/28 3530s ok 1697 /checksum/SHA512/reset/29 3530s ok 1698 /checksum/SHA512/reset/30 3530s ok 1699 /checksum/SHA512/reset/31 3530s ok 1700 /checksum/SHA512/reset/32 3530s ok 1701 /checksum/SHA512/reset/33 3530s ok 1702 /checksum/SHA512/reset/34 3530s ok 1703 /checksum/SHA512/reset/35 3530s ok 1704 /checksum/SHA512/reset/36 3530s ok 1705 /checksum/SHA512/reset/37 3530s ok 1706 /checksum/SHA512/reset/38 3530s ok 1707 /checksum/SHA512/reset/39 3530s ok 1708 /checksum/SHA512/reset/40 3530s ok 1709 /checksum/SHA512/reset/41 3530s ok 1710 /checksum/SHA512/reset/42 3530s ok 1711 /checksum/SHA512/reset/43 3530s ok 1712 /checksum/SHA512/reset/44 3530s ok 1713 /checksum/SHA512/reset/45 3530s ok 1714 /checksum/SHA512/reset/46 3530s ok 1715 /checksum/SHA512/reset/47 3530s ok 1716 /checksum/SHA512/reset/48 3530s ok 1717 /checksum/SHA512/reset/49 3530s ok 1718 /checksum/SHA512/reset/50 3530s ok 1719 /checksum/SHA512/reset/51 3530s ok 1720 /checksum/SHA512/reset/52 3530s ok 1721 /checksum/SHA512/reset/53 3530s ok 1722 /checksum/SHA512/reset/54 3530s ok 1723 /checksum/SHA512/reset/55 3530s ok 1724 /checksum/SHA512/reset/56 3530s ok 1725 /checksum/SHA512/reset/57 3530s ok 1726 /checksum/SHA512/reset/58 3530s ok 1727 /checksum/SHA512/reset/59 3530s ok 1728 /checksum/SHA512/reset/60 3530s ok 1729 /checksum/SHA512/reset/61 3530s ok 1730 /checksum/SHA512/reset/62 3530s ok 1731 /checksum/SHA512/reset/63 3530s ok 1732 /checksum/SHA512/reset/64 3530s ok 1733 /checksum/SHA512/reset/65 3530s ok 1734 /checksum/SHA512/reset/66 3530s ok 1735 /checksum/SHA512/reset/67 3530s ok 1736 /checksum/SHA512/reset/68 3530s ok 1737 /checksum/SHA512/reset/69 3530s ok 1738 /checksum/SHA512/reset/70 3530s ok 1739 /checksum/SHA512/reset/71 3530s ok 1740 /checksum/SHA512/reset/72 3530s ok 1741 /checksum/SHA512/reset/73 3530s ok 1742 /checksum/SHA512/reset/74 3530s ok 1743 /checksum/SHA512/reset/75 3530s ok 1744 /checksum/SHA512/reset/76 3530s ok 1745 /checksum/SHA512/reset/77 3530s ok 1746 /checksum/SHA512/reset/78 3530s ok 1747 /checksum/SHA512/reset/79 3530s ok 1748 /checksum/SHA512/reset/80 3530s ok 1749 /checksum/SHA512/reset/81 3530s ok 1750 /checksum/SHA512/reset/82 3530s ok 1751 /checksum/SHA512/reset/83 3530s ok 1752 /checksum/SHA512/reset/84 3530s ok 1753 /checksum/SHA512/reset/85 3530s ok 1754 /checksum/SHA512/reset/86 3530s ok 1755 /checksum/SHA512/reset/87 3530s ok 1756 /checksum/SHA512/reset/88 3530s ok 1757 /checksum/SHA512/reset/89 3530s ok 1758 /checksum/SHA512/reset/90 3530s ok 1759 /checksum/SHA512/reset/91 3530s ok 1760 /checksum/SHA512/reset/92 3530s ok 1761 /checksum/SHA512/reset/93 3530s ok 1762 /checksum/SHA512/reset/94 3530s ok 1763 /checksum/SHA512/reset/95 3530s ok 1764 /checksum/SHA512/reset/96 3530s ok 1765 /checksum/SHA512/reset/97 3530s ok 1766 /checksum/SHA512/reset/98 3530s ok 1767 /checksum/SHA512/reset/99 3530s ok 1768 /checksum/SHA512/reset/100 3530s ok 1769 /checksum/SHA512/reset/101 3530s ok 1770 /checksum/SHA512/reset/102 3530s ok 1771 /checksum/SHA512/reset/103 3530s ok 1772 /checksum/SHA512/reset/104 3530s ok 1773 /checksum/SHA512/reset/105 3530s ok 1774 /checksum/SHA512/reset/106 3530s ok 1775 /checksum/SHA512/reset/107 3530s ok 1776 /checksum/SHA512/reset/108 3530s ok 1777 /checksum/SHA512/reset/109 3530s ok 1778 /checksum/SHA512/reset/110 3530s ok 1779 /checksum/SHA512/reset/111 3530s ok 1780 /checksum/SHA512/reset/112 3530s ok 1781 /checksum/SHA512/reset/113 3530s ok 1782 /checksum/SHA512/reset/114 3530s ok 1783 /checksum/SHA512/reset/115 3530s ok 1784 /checksum/SHA512/reset/116 3530s ok 1785 /checksum/SHA512/reset/117 3530s ok 1786 /checksum/SHA512/reset/118 3530s ok 1787 /checksum/SHA512/reset/119 3530s ok 1788 /checksum/SHA512/reset/120 3530s ok 1789 /checksum/SHA512/reset/121 3530s ok 1790 /checksum/SHA512/reset/122 3530s ok 1791 /checksum/SHA512/reset/123 3530s ok 1792 /checksum/SHA512/reset/124 3530s ok 1793 /checksum/SHA512/reset/125 3530s ok 1794 /checksum/SHA512/reset/126 3530s ok 1795 /checksum/SHA512/reset/127 3530s ok 1796 /checksum/SHA512/reset/128 3530s ok 1797 /checksum/SHA512/reset/129 3530s ok 1798 /checksum/SHA512/reset/130 3530s ok 1799 /checksum/SHA512/reset/131 3530s ok 1800 /checksum/SHA512/reset/132 3530s ok 1801 /checksum/SHA512/reset/133 3530s ok 1802 /checksum/SHA512/reset/134 3530s ok 1803 /checksum/SHA512/reset/135 3530s ok 1804 /checksum/SHA512/reset/136 3530s ok 1805 /checksum/SHA512/reset/137 3530s ok 1806 /checksum/SHA512/reset/138 3530s ok 1807 /checksum/SHA512/reset/139 3530s ok 1808 /checksum/SHA512/reset/140 3530s ok 1809 /checksum/SHA512/reset/141 3530s ok 1810 /checksum/SHA512/reset/142 3530s ok 1811 /checksum/SHA512/reset/143 3530s ok 1812 /checksum/SHA512/reset/144 3530s ok 1813 /checksum/SHA512/reset/145 3530s ok 1814 /checksum/SHA512/reset/146 3530s ok 1815 /checksum/SHA512/reset/147 3530s ok 1816 /checksum/SHA512/reset/148 3530s ok 1817 /checksum/SHA512/reset/149 3530s ok 1818 /checksum/SHA512/reset/150 3530s ok 1819 /checksum/SHA512/reset/151 3530s ok 1820 /checksum/SHA512/reset/152 3530s ok 1821 /checksum/SHA512/reset/153 3530s ok - glib/checksum.test 3530s ok 1822 /checksum/SHA512/reset/154 3530s ok 1823 /checksum/SHA512/reset/155 3530s ok 1824 /checksum/SHA512/reset/156 3530s ok 1825 /checksum/SHA512/reset/157 3530s ok 1826 /checksum/SHA512/reset/158 3530s ok 1827 /checksum/SHA512/reset/159 3530s ok 1828 /checksum/SHA512/reset/160 3530s ok 1829 /checksum/SHA512/reset/161 3530s ok 1830 /checksum/SHA512/reset/162 3530s ok 1831 /checksum/SHA512/reset/163 3530s ok 1832 /checksum/SHA512/reset/164 3530s ok 1833 /checksum/SHA512/reset/165 3530s ok 1834 /checksum/SHA512/reset/166 3530s ok 1835 /checksum/SHA512/reset/167 3530s ok 1836 /checksum/SHA512/reset/168 3530s ok 1837 /checksum/SHA512/reset/169 3530s ok 1838 /checksum/SHA512/reset/170 3530s ok 1839 /checksum/SHA512/reset/171 3530s ok 1840 /checksum/SHA512/reset/172 3530s ok 1841 /checksum/SHA512/reset/173 3530s ok 1842 /checksum/SHA512/reset/174 3530s ok 1843 /checksum/SHA512/reset/175 3530s ok 1844 /checksum/SHA512/reset/176 3530s ok 1845 /checksum/SHA512/reset/177 3530s ok 1846 /checksum/SHA512/reset/178 3530s ok 1847 /checksum/SHA512/reset/179 3530s ok 1848 /checksum/SHA512/reset/180 3530s ok 1849 /checksum/SHA512/reset/181 3530s ok 1850 /checksum/SHA512/reset/182 3530s ok 1851 /checksum/SHA512/reset/183 3530s # End of reset tests 3530s # End of SHA512 tests 3530s # End of checksum tests 3530s # Running test: glib/cxx-11.test 3530s TAP version 14 3530s # random seed: R02Scd17698b4ff70d9d5bd8c90550fd10d6 3530s 1..2 3530s # Start of gtask tests 3530s ok - glib/cxx-11.test 3530s # Running test: glib/utils.test 3530s # 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. 3530s ok 1 /gtask/name 3530s # Start of name tests 3530s # 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. 3530s ok 2 /gtask/name/macro-wrapper 3530s # End of name tests 3530s # End of gtask tests 3530s TAP version 14 3530s # random seed: R02Se3c0ffcf1ddd1fd646f6cde0e7baed0a 3530s 1..41 3530s # Start of utils tests 3530s ok 1 /utils/language-names 3530s ok 2 /utils/locale-variants 3530s ok 3 /utils/version 3530s ok 4 /utils/appname 3530s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 3530s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 3530s ok 5 /utils/prgname-thread-safety 3530s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 3530s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 3530s ok 6 /utils/tmpdir 3530s ok 7 /utils/basic_bits 3530s ok 8 /utils/bits 3530s ok 9 /utils/swap 3530s ok 10 /utils/find-program 3530s ok 11 /utils/find-program-for-path 3530s ok 12 /utils/debug 3530s ok 13 /utils/codeset 3530s ok 14 /utils/codeset2 3530s ok 15 /utils/console-charset 3530s ok 16 /utils/gettext 3530s ok 17 /utils/username 3530s ok 18 /utils/realname 3530s ok 19 /utils/hostname 3530s ok 20 /utils/xdgdirs 3530s ok 21 /utils/specialdir 3531s # NAME: Ubuntu 3531s ok 22 /utils/os-info 3531s ok 23 /utils/clear-pointer 3531s ok 24 /utils/clear-pointer-cast 3531s ok 25 /utils/take-pointer 3531s ok 26 /utils/clear-source 3531s ok 27 /utils/misc-mem 3531s # /utils/aligned-mem summary: Aligned memory allocator 3531s # Alignment must not be zero 3531s # Alignment must be a power of two 3531s # Alignment must be a multiple of sizeof(void*) 3531s ok 28 /utils/aligned-mem 3531s # /utils/free-sized summary: Check that g_free_sized() works 3531s ok 29 /utils/free-sized 3531s ok 30 /utils/nullify 3531s ok 31 /utils/atexit 3531s ok 32 /utils/check-setuid 3531s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 3531s ok 33 /utils/int-limits 3531s ok 34 /utils/clear-list 3531s ok 35 /utils/clear-slist 3531s ok 36 /utils/steal-handle-id 3531s # Start of specialdir tests 3531s ok 37 /utils/specialdir/desktop 3531s # End of specialdir tests 3531s # Start of clear-pointer tests 3531s ok 38 /utils/clear-pointer/side-effects 3531s # End of clear-pointer tests 3531s # Start of aligned-mem tests 3531s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 3531s ok 39 /utils/aligned-mem/alignment 3531s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 3531s ok 40 /utils/aligned-mem/zeroed 3531s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 3531s ok 41 /utils/aligned-mem/free-sized 3531s # Start of subprocess tests 3531s # End of subprocess tests 3531s # End of aligned-mem tests 3531s # End of utils tests 3531s ok - glib/utils.test 3531s # Running test: glib/memory-monitor-portal.test 3534s # Executing: glib/memory-monitor-portal.test 3534s TAP version 13 3534s ok 1 __main__.TestLowMemoryMonitorPortal.test_low_memory_warning_portal_signal # SKIP xdg-desktop-portal not available 3534s 1..1 3535s ok - glib/memory-monitor-portal.test 3535s # Running test: glib/application-command-line.test 3535s TAP version 14 3535s # random seed: R02S9e0b9af316b6b58e474e7a08965f0893 3535s 1..1 3535s # Start of application-command-line tests 3535s ok 1 /application-command-line/basic-properties 3535s # End of application-command-line tests 3535s ok - glib/application-command-line.test 3535s # Running test: glib/power-profile-monitor-dbus.test 3538s TAP version 13 3538s ok 1 __main__.TestPowerProfileMonitor.test_power_profile_power_saver_enabled 3538s 1..1 3539s ok - glib/power-profile-monitor-dbus.test 3539s # Running test: glib/spawn-test.test 3539s TAP version 14 3539s # random seed: R02Sae0d35f0f8d0f864342373c6e1639bc5 3539s 1..2 3539s # Start of spawn tests 3539s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_spawn-test_1HEX52/spawn/basics/.dirs/home 3539s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_spawn-test_1HEX52/spawn/basics/.dirs/cache 3539s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_spawn-test_1HEX52/spawn/basics/.dirs/system-config1:/tmp/test_spawn-test_1HEX52/spawn/basics/.dirs/system-config2 3539s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_spawn-test_1HEX52/spawn/basics/.dirs/config 3539s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_spawn-test_1HEX52/spawn/basics/.dirs/system-data1:/tmp/test_spawn-test_1HEX52/spawn/basics/.dirs/system-data2 3539s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_spawn-test_1HEX52/spawn/basics/.dirs/data 3539s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_spawn-test_1HEX52/spawn/basics/.dirs/state 3539s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_spawn-test_1HEX52/spawn/basics/.dirs/runtime 3539s # Executing: glib/spawn-test.test 3539s ok 1 /spawn/basics 3539s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_spawn-test_1HEX52/spawn/stdio-overwrite/.dirs/home 3539s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_spawn-test_1HEX52/spawn/stdio-overwrite/.dirs/cache 3539s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_spawn-test_1HEX52/spawn/stdio-overwrite/.dirs/system-config1:/tmp/test_spawn-test_1HEX52/spawn/stdio-overwrite/.dirs/system-config2 3539s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_spawn-test_1HEX52/spawn/stdio-overwrite/.dirs/config 3539s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_spawn-test_1HEX52/spawn/stdio-overwrite/.dirs/system-data1:/tmp/test_spawn-test_1HEX52/spawn/stdio-overwrite/.dirs/system-data2 3539s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_spawn-test_1HEX52/spawn/stdio-overwrite/.dirs/data 3539s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_spawn-test_1HEX52/spawn/stdio-overwrite/.dirs/state 3539s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_spawn-test_1HEX52/spawn/stdio-overwrite/.dirs/runtime 3539s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/16 3539s # Fetching GSpawn result output and error output with stdin open, stdout open, stderr open 3539s # Fetching GSpawn result output and error output with stdin open, stdout open, stderr already closed 3539s # Fetching GSpawn result output and error output with stdin open, stdout already closed, stderr open 3539s # Fetching GSpawn result output and error output with stdin open, stdout already closed, stderr already closed 3539s # Fetching GSpawn result output and error output with stdin already closed, stdout open, stderr open 3539s # Fetching GSpawn result output and error output with stdin already closed, stdout open, stderr already closed 3539s # Fetching GSpawn result output and error output with stdin already closed, stdout already closed, stderr open 3539s # Fetching GSpawn result output and error output with stdin already closed, stdout already closed, stderr already closed 3539s # Fetching GSpawn result output with stdin open, stdout open, stderr open 3539s # Fetching GSpawn result output with stdin open, stdout open, stderr already closed 3539s # Fetching GSpawn result output with stdin open, stdout already closed, stderr open 3539s # Fetching GSpawn result output with stdin open, stdout already closed, stderr already closed 3539s # Fetching GSpawn result output with stdin already closed, stdout open, stderr open 3539s # Fetching GSpawn result output with stdin already closed, stdout open, stderr already closed 3539s # Fetching GSpawn result output with stdin already closed, stdout already closed, stderr open 3539s # Fetching GSpawn result output with stdin already closed, stdout already closed, stderr already closed 3539s # Fetching GSpawn result error output with stdin open, stdout open, stderr open 3540s # Fetching GSpawn result error output with stdin open, stdout open, stderr already closed 3540s # Fetching GSpawn result error output with stdin open, stdout already closed, stderr open 3540s # Fetching GSpawn result error output with stdin open, stdout already closed, stderr already closed 3540s # Fetching GSpawn result error output with stdin already closed, stdout open, stderr open 3540s # Fetching GSpawn result error output with stdin already closed, stdout open, stderr already closed 3540s # Fetching GSpawn result error output with stdin already closed, stdout already closed, stderr open 3540s # Fetching GSpawn result error output with stdin already closed, stdout already closed, stderr already closed 3540s # Fetching GSpawn result with stdin open, stdout open, stderr open 3540s # Fetching GSpawn result with stdin open, stdout open, stderr already closed 3540s # Fetching GSpawn result with stdin open, stdout already closed, stderr open 3540s # Fetching GSpawn result with stdin open, stdout already closed, stderr already closed 3540s # Fetching GSpawn result with stdin already closed, stdout open, stderr open 3540s # Fetching GSpawn result with stdin already closed, stdout open, stderr already closed 3540s # Fetching GSpawn result with stdin already closed, stdout already closed, stderr open 3540s # Fetching GSpawn result with stdin already closed, stdout already closed, stderr already closed 3540s ok 2 /spawn/stdio-overwrite 3540s # slow test /spawn/stdio-overwrite executed in 1.28 secs 3540s # End of spawn tests 3540s ok - glib/spawn-test.test 3540s # Running test: glib/unix.test 3540s TAP version 14 3540s # random seed: R02Sa70d45255d7b26c5f38c97929f044003 3540s 1..20 3540s # Start of glib-unix tests 3540s # /glib-unix/closefrom summary: Test g_closefrom(), g_fdwalk_set_cloexec() 3540s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3247 3540s ok 1 /glib-unix/closefrom 3540s ok 2 /glib-unix/pipe 3540s # /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 3540s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2795 3540s ok 3 /glib-unix/pipe-stdio-overwrite 3540s # /glib-unix/pipe-struct summary: Test GUnixPipe structure 3540s ok 4 /glib-unix/pipe-struct 3540s # /glib-unix/pipe-struct-auto summary: Test g_auto(GUnixPipe) 3540s ok 5 /glib-unix/pipe-struct-auto 3540s ok 6 /glib-unix/error 3540s ok 7 /glib-unix/nonblocking 3541s ok 8 /glib-unix/sighup 3541s # slow test /glib-unix/sighup executed in 0.51 secs 3541s ok 9 /glib-unix/sigterm 3541s # slow test /glib-unix/sigterm executed in 0.50 secs 3542s ok 10 /glib-unix/sighup_again 3542s # slow test /glib-unix/sighup_again executed in 0.50 secs 3542s ok 11 /glib-unix/sighup_add_remove 3542s ok 12 /glib-unix/sighup_nested 3544s # Executing: glib/unix.test 3544s ok 13 /glib-unix/callback_after_signal 3544s # slow test /glib-unix/callback_after_signal executed in 2.00 secs 3544s ok 14 /glib-unix/child-wait 3544s # Start of closefrom tests 3544s # Start of subprocess tests 3544s # End of subprocess tests 3544s # End of closefrom tests 3544s # Start of pipe tests 3544s # /glib-unix/pipe/fd-cloexec summary: Test that FD_CLOEXEC is still accepted as an argument to g_unix_open_pipe() 3544s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3459 3544s # GLib-DEBUG: g_unix_open_pipe() called with FD_CLOEXEC; please migrate to using O_CLOEXEC instead 3544s ok 15 /glib-unix/pipe/fd-cloexec 3544s # End of pipe tests 3544s # Start of sighup tests 3545s ok 16 /glib-unix/sighup/alternate-stack 3545s # slow test /glib-unix/sighup/alternate-stack executed in 1.01 secs 3545s # End of sighup tests 3545s # Start of sigterm tests 3546s ok 17 /glib-unix/sigterm/alternate-stack 3546s # slow test /glib-unix/sigterm/alternate-stack executed in 1.00 secs 3546s # End of sigterm tests 3546s # Start of sighup_again tests 3547s ok 18 /glib-unix/sighup_again/alternate-stack 3547s # slow test /glib-unix/sighup_again/alternate-stack executed in 1.01 secs 3547s # End of sighup_again tests 3547s # Start of get-passwd-entry tests 3547s # /glib-unix/get-passwd-entry/root summary: Tests that g_unix_get_passwd_entry() works for a known-existing username. 3547s ok 19 /glib-unix/get-passwd-entry/root 3547s # /glib-unix/get-passwd-entry/nonexistent summary: Tests that g_unix_get_passwd_entry() returns an error for a nonexistent username. 3547s ok 20 /glib-unix/get-passwd-entry/nonexistent 3547s # End of get-passwd-entry tests 3547s # End of glib-unix tests 3547s ok - glib/unix.test 3547s # Running test: glib/memory-input-stream.test 3547s TAP version 14 3547s # random seed: R02Sc2cdd447b590f0824909ecdc475f8485 3547s 1..6 3547s # Start of memory-input-stream tests 3547s ok 1 /memory-input-stream/read-chunks 3547s ok 2 /memory-input-stream/async 3547s ok 3 /memory-input-stream/seek 3547s ok 4 /memory-input-stream/truncate 3547s ok 5 /memory-input-stream/read-bytes 3547s ok 6 /memory-input-stream/from-bytes 3547s # End of memory-input-stream tests 3547s ok - glib/memory-input-stream.test 3547s # Running test: glib/init.test 3547s TAP version 14 3547s # random seed: R02Sad28c3c86a7d5c51ed8db07fd42b39e0 3547s 1..2 3547s # Start of thread tests 3547s # Start of deprecated tests 3547s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_init_KS9952/thread/deprecated/init/.dirs/home 3547s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_init_KS9952/thread/deprecated/init/.dirs/cache 3547s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_init_KS9952/thread/deprecated/init/.dirs/system-config1:/tmp/test_init_KS9952/thread/deprecated/init/.dirs/system-config2 3547s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_init_KS9952/thread/deprecated/init/.dirs/config 3547s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_init_KS9952/thread/deprecated/init/.dirs/system-data1:/tmp/test_init_KS9952/thread/deprecated/init/.dirs/system-data2 3547s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_init_KS9952/thread/deprecated/init/.dirs/data 3547s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_init_KS9952/thread/deprecated/init/.dirs/state 3547s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_init_KS9952/thread/deprecated/init/.dirs/runtime 3547s ok 1 /thread/deprecated/init 3547s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_init_KS9952/thread/deprecated/init-with-errorcheck-mutexes/.dirs/home 3547s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_init_KS9952/thread/deprecated/init-with-errorcheck-mutexes/.dirs/cache 3547s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_init_KS9952/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-config1:/tmp/test_init_KS9952/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-config2 3547s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_init_KS9952/thread/deprecated/init-with-errorcheck-mutexes/.dirs/config 3547s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_init_KS9952/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-data1:/tmp/test_init_KS9952/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-data2 3547s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_init_KS9952/thread/deprecated/init-with-errorcheck-mutexes/.dirs/data 3547s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_init_KS9952/thread/deprecated/init-with-errorcheck-mutexes/.dirs/state 3547s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_init_KS9952/thread/deprecated/init-with-errorcheck-mutexes/.dirs/runtime 3547s ok 2 /thread/deprecated/init-with-errorcheck-mutexes 3547s # End of deprecated tests 3547s # End of thread tests 3547s ok - glib/init.test 3547s # Running test: glib/testing-nonfatal.test 3548s TAP version 14 3548s # random seed: R02S0aa829bb918a29057f4ffa362277f419 3548s ** 3548s 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?") 3548s # 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?") 3548s ok - glib/testing-nonfatal.test 3548s # Running test: glib/autoptr.test 3548s TAP version 14 3548s # random seed: R02S80a2dd96dd4aa7e188f80b3fa057efc3 3548s 1..6 3548s # Start of autoptr tests 3548s ok 1 /autoptr/autoptr 3548s ok 2 /autoptr/autoptr_steal 3548s ok 3 /autoptr/autolist 3548s ok 4 /autoptr/autoslist 3548s ok 5 /autoptr/autoqueue 3548s ok 6 /autoptr/autoclass 3548s # End of autoptr tests 3548s ok - glib/autoptr.test 3548s # Running test: glib/queue.test 3548s TAP version 14 3548s # random seed: R02S4cba67e83053fd3463f6d583a3f9379c 3548s 1..12 3548s # Start of queue tests 3548s ok 1 /queue/basic 3548s ok 2 /queue/copy 3548s ok 3 /queue/off-by-one 3548s ok 4 /queue/find-custom 3548s ok 5 /queue/static 3548s ok 6 /queue/clear 3548s ok 7 /queue/free-full 3548s ok 8 /queue/clear-full 3548s ok 9 /queue/insert-sibling-link 3548s ok 10 /queue/push-nth-link 3548s # Start of clear-full tests 3548s ok 11 /queue/clear-full/noop 3548s # End of clear-full tests 3548s # Start of random tests 3549s # Executing: glib/queue.test 3549s ok 12 /queue/random/seed:862091264 3549s # slow test /queue/random/seed:862091264 executed in 1.67 secs 3549s # End of random tests 3549s # End of queue tests 3549s ok - glib/queue.test 3550s # Running test: glib/spawn-multithreaded.test 3550s TAP version 14 3550s # random seed: R02Sbdcea1fdb9e0ee188f435188812b2c49 3550s 1..4 3550s # Start of gthread tests 3551s # Child 8717 (ttl 1) exited, status 0 3552s # Child 8718 (ttl 2) exited, status 0 3552s ok 1 /gthread/spawn-childs 3552s # slow test /gthread/spawn-childs executed in 2.04 secs 3552s # Created pid: 8723 (ttl 2) 3552s # Created pid: 8722 (ttl 1) 3553s # Child 8722 (ttl 1) exited, status 0 3554s # Child 8723 (ttl 2) exited, status 0 3554s ok 2 /gthread/spawn-childs-threads 3554s # slow test /gthread/spawn-childs-threads executed in 2.04 secs 3554s # Executing: glib/spawn-multithreaded.test 3554s ok 3 /gthread/spawn-sync 3554s ok 4 /gthread/spawn-async 3554s # End of gthread tests 3554s ok - glib/spawn-multithreaded.test 3554s # Running test: glib/file.test 3554s TAP version 14 3554s # random seed: R02S24b84e3824fba41e1cf1a0026364e30a 3554s 1..55 3554s # Start of file tests 3554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/basic/.dirs/home 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/basic/.dirs/cache 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/basic/.dirs/system-config1:/tmp/test_file_OOCR52/file/basic/.dirs/system-config2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/basic/.dirs/config 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/basic/.dirs/system-data1:/tmp/test_file_OOCR52/file/basic/.dirs/system-data2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/basic/.dirs/data 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/basic/.dirs/state 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/basic/.dirs/runtime 3554s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 3554s ok 1 /file/basic 3554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/build-filename/.dirs/home 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/build-filename/.dirs/cache 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/build-filename/.dirs/system-config1:/tmp/test_file_OOCR52/file/build-filename/.dirs/system-config2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/build-filename/.dirs/config 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/build-filename/.dirs/system-data1:/tmp/test_file_OOCR52/file/build-filename/.dirs/system-data2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/build-filename/.dirs/data 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/build-filename/.dirs/state 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/build-filename/.dirs/runtime 3554s ok 2 /file/build-filename 3554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/build-filenamev/.dirs/home 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/build-filenamev/.dirs/cache 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/build-filenamev/.dirs/system-config1:/tmp/test_file_OOCR52/file/build-filenamev/.dirs/system-config2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/build-filenamev/.dirs/config 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/build-filenamev/.dirs/system-data1:/tmp/test_file_OOCR52/file/build-filenamev/.dirs/system-data2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/build-filenamev/.dirs/data 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/build-filenamev/.dirs/state 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/build-filenamev/.dirs/runtime 3554s ok 3 /file/build-filenamev 3554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/parent/.dirs/home 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/parent/.dirs/cache 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/parent/.dirs/system-config1:/tmp/test_file_OOCR52/file/parent/.dirs/system-config2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/parent/.dirs/config 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/parent/.dirs/system-data1:/tmp/test_file_OOCR52/file/parent/.dirs/system-data2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/parent/.dirs/data 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/parent/.dirs/state 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/parent/.dirs/runtime 3554s ok 4 /file/parent 3554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/child/.dirs/home 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/child/.dirs/cache 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/child/.dirs/system-config1:/tmp/test_file_OOCR52/file/child/.dirs/system-config2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/child/.dirs/config 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/child/.dirs/system-data1:/tmp/test_file_OOCR52/file/child/.dirs/system-data2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/child/.dirs/data 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/child/.dirs/state 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/child/.dirs/runtime 3554s ok 5 /file/child 3554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/empty-path/.dirs/home 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/empty-path/.dirs/cache 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/empty-path/.dirs/system-config1:/tmp/test_file_OOCR52/file/empty-path/.dirs/system-config2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/empty-path/.dirs/config 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/empty-path/.dirs/system-data1:/tmp/test_file_OOCR52/file/empty-path/.dirs/system-data2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/empty-path/.dirs/data 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/empty-path/.dirs/state 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/empty-path/.dirs/runtime 3554s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2328 3554s # /file/empty-path summary: Check that creating a file with an empty path results in errors 3554s ok 6 /file/empty-path 3554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/type/.dirs/home 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/type/.dirs/cache 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/type/.dirs/system-config1:/tmp/test_file_OOCR52/file/type/.dirs/system-config2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/type/.dirs/config 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/type/.dirs/system-data1:/tmp/test_file_OOCR52/file/type/.dirs/system-data2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/type/.dirs/data 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/type/.dirs/state 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/type/.dirs/runtime 3554s ok 7 /file/type 3554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/parse-name/.dirs/home 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/parse-name/.dirs/cache 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/parse-name/.dirs/system-config1:/tmp/test_file_OOCR52/file/parse-name/.dirs/system-config2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/parse-name/.dirs/config 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/parse-name/.dirs/system-data1:/tmp/test_file_OOCR52/file/parse-name/.dirs/system-data2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/parse-name/.dirs/data 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/parse-name/.dirs/state 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/parse-name/.dirs/runtime 3554s ok 8 /file/parse-name 3554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/replace-load/.dirs/home 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/replace-load/.dirs/cache 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/replace-load/.dirs/system-config1:/tmp/test_file_OOCR52/file/replace-load/.dirs/system-config2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/replace-load/.dirs/config 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/replace-load/.dirs/system-data1:/tmp/test_file_OOCR52/file/replace-load/.dirs/system-data2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/replace-load/.dirs/data 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/replace-load/.dirs/state 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/replace-load/.dirs/runtime 3554s ok 9 /file/replace-load 3554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/replace-cancel/.dirs/home 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/replace-cancel/.dirs/cache 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/replace-cancel/.dirs/system-config1:/tmp/test_file_OOCR52/file/replace-cancel/.dirs/system-config2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/replace-cancel/.dirs/config 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/replace-cancel/.dirs/system-data1:/tmp/test_file_OOCR52/file/replace-cancel/.dirs/system-data2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/replace-cancel/.dirs/data 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/replace-cancel/.dirs/state 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/replace-cancel/.dirs/runtime 3554s # Bug Reference: https://bugzilla.gnome.org/629301 3554s ok 10 /file/replace-cancel 3554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/replace-symlink/.dirs/home 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/replace-symlink/.dirs/cache 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/replace-symlink/.dirs/system-config1:/tmp/test_file_OOCR52/file/replace-symlink/.dirs/system-config2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/replace-symlink/.dirs/config 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/replace-symlink/.dirs/system-data1:/tmp/test_file_OOCR52/file/replace-symlink/.dirs/system-data2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/replace-symlink/.dirs/data 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/replace-symlink/.dirs/state 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/replace-symlink/.dirs/runtime 3554s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2325 3554s # /file/replace-symlink summary: Test that G_FILE_CREATE_REPLACE_DESTINATION doesn’t follow symlinks 3554s # Using temporary directory /tmp/test_file_OOCR52/g_file_replace_symlink_TK0U52 3554s ok 11 /file/replace-symlink 3554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/async-new-tmp/.dirs/home 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/async-new-tmp/.dirs/cache 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/async-new-tmp/.dirs/system-config1:/tmp/test_file_OOCR52/file/async-new-tmp/.dirs/system-config2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/async-new-tmp/.dirs/config 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/async-new-tmp/.dirs/system-data1:/tmp/test_file_OOCR52/file/async-new-tmp/.dirs/system-data2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/async-new-tmp/.dirs/data 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/async-new-tmp/.dirs/state 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/async-new-tmp/.dirs/runtime 3554s ok 12 /file/async-new-tmp 3554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/async-new-tmp-dir/.dirs/home 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/async-new-tmp-dir/.dirs/cache 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/async-new-tmp-dir/.dirs/system-config1:/tmp/test_file_OOCR52/file/async-new-tmp-dir/.dirs/system-config2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/async-new-tmp-dir/.dirs/config 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/async-new-tmp-dir/.dirs/system-data1:/tmp/test_file_OOCR52/file/async-new-tmp-dir/.dirs/system-data2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/async-new-tmp-dir/.dirs/data 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/async-new-tmp-dir/.dirs/state 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/async-new-tmp-dir/.dirs/runtime 3554s ok 13 /file/async-new-tmp-dir 3554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/async-delete/.dirs/home 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/async-delete/.dirs/cache 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/async-delete/.dirs/system-config1:/tmp/test_file_OOCR52/file/async-delete/.dirs/system-config2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/async-delete/.dirs/config 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/async-delete/.dirs/system-data1:/tmp/test_file_OOCR52/file/async-delete/.dirs/system-data2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/async-delete/.dirs/data 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/async-delete/.dirs/state 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/async-delete/.dirs/runtime 3554s ok 14 /file/async-delete 3554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/async-make-symlink/.dirs/home 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/async-make-symlink/.dirs/cache 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/async-make-symlink/.dirs/system-config1:/tmp/test_file_OOCR52/file/async-make-symlink/.dirs/system-config2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/async-make-symlink/.dirs/config 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/async-make-symlink/.dirs/system-data1:/tmp/test_file_OOCR52/file/async-make-symlink/.dirs/system-data2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/async-make-symlink/.dirs/data 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/async-make-symlink/.dirs/state 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/async-make-symlink/.dirs/runtime 3554s ok 15 /file/async-make-symlink 3554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/copy-preserve-mode/.dirs/home 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/copy-preserve-mode/.dirs/cache 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/copy-preserve-mode/.dirs/system-config1:/tmp/test_file_OOCR52/file/copy-preserve-mode/.dirs/system-config2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/copy-preserve-mode/.dirs/config 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/copy-preserve-mode/.dirs/system-data1:/tmp/test_file_OOCR52/file/copy-preserve-mode/.dirs/system-data2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/copy-preserve-mode/.dirs/data 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/copy-preserve-mode/.dirs/state 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/copy-preserve-mode/.dirs/runtime 3554s # Current umask: 2 3554s # Vector 0 3554s # Vector 1 3554s # Vector 2 3554s # Vector 3 3554s # Vector 4 3554s # Vector 5 3554s # Vector 6 3554s # Vector 7 3554s # Vector 8 3554s # Vector 9 3554s # Vector 10 3554s ok 16 /file/copy-preserve-mode 3554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/copy-async-with-closures/.dirs/home 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/copy-async-with-closures/.dirs/cache 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/copy-async-with-closures/.dirs/system-config1:/tmp/test_file_OOCR52/file/copy-async-with-closures/.dirs/system-config2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/copy-async-with-closures/.dirs/config 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/copy-async-with-closures/.dirs/system-data1:/tmp/test_file_OOCR52/file/copy-async-with-closures/.dirs/system-data2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/copy-async-with-closures/.dirs/data 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/copy-async-with-closures/.dirs/state 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/copy-async-with-closures/.dirs/runtime 3554s ok 17 /file/copy-async-with-closures 3554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/measure/.dirs/home 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/measure/.dirs/cache 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/measure/.dirs/system-config1:/tmp/test_file_OOCR52/file/measure/.dirs/system-config2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/measure/.dirs/config 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/measure/.dirs/system-data1:/tmp/test_file_OOCR52/file/measure/.dirs/system-data2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/measure/.dirs/data 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/measure/.dirs/state 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/measure/.dirs/runtime 3554s ok 18 /file/measure 3554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/measure-async/.dirs/home 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/measure-async/.dirs/cache 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/measure-async/.dirs/system-config1:/tmp/test_file_OOCR52/file/measure-async/.dirs/system-config2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/measure-async/.dirs/config 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/measure-async/.dirs/system-data1:/tmp/test_file_OOCR52/file/measure-async/.dirs/system-data2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/measure-async/.dirs/data 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/measure-async/.dirs/state 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/measure-async/.dirs/runtime 3554s ok 19 /file/measure-async 3554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/load-bytes/.dirs/home 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/load-bytes/.dirs/cache 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/load-bytes/.dirs/system-config1:/tmp/test_file_OOCR52/file/load-bytes/.dirs/system-config2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/load-bytes/.dirs/config 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/load-bytes/.dirs/system-data1:/tmp/test_file_OOCR52/file/load-bytes/.dirs/system-data2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/load-bytes/.dirs/data 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/load-bytes/.dirs/state 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/load-bytes/.dirs/runtime 3554s ok 20 /file/load-bytes 3554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/load-bytes-async/.dirs/home 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/load-bytes-async/.dirs/cache 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/load-bytes-async/.dirs/system-config1:/tmp/test_file_OOCR52/file/load-bytes-async/.dirs/system-config2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/load-bytes-async/.dirs/config 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/load-bytes-async/.dirs/system-data1:/tmp/test_file_OOCR52/file/load-bytes-async/.dirs/system-data2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/load-bytes-async/.dirs/data 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/load-bytes-async/.dirs/state 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/load-bytes-async/.dirs/runtime 3554s ok 21 /file/load-bytes-async 3554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/load-bytes-4gb/.dirs/home 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/load-bytes-4gb/.dirs/cache 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/load-bytes-4gb/.dirs/system-config1:/tmp/test_file_OOCR52/file/load-bytes-4gb/.dirs/system-config2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/load-bytes-4gb/.dirs/config 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/load-bytes-4gb/.dirs/system-data1:/tmp/test_file_OOCR52/file/load-bytes-4gb/.dirs/system-data2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/load-bytes-4gb/.dirs/data 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/load-bytes-4gb/.dirs/state 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/load-bytes-4gb/.dirs/runtime 3554s ok 22 /file/load-bytes-4gb # SKIP Skipping slow >4GB file test 3554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/load-contents-4gb/.dirs/home 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/load-contents-4gb/.dirs/cache 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/load-contents-4gb/.dirs/system-config1:/tmp/test_file_OOCR52/file/load-contents-4gb/.dirs/system-config2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/load-contents-4gb/.dirs/config 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/load-contents-4gb/.dirs/system-data1:/tmp/test_file_OOCR52/file/load-contents-4gb/.dirs/system-data2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/load-contents-4gb/.dirs/data 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/load-contents-4gb/.dirs/state 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/load-contents-4gb/.dirs/runtime 3554s ok 23 /file/load-contents-4gb # SKIP Skipping slow >4GB file test 3554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/load-contents-4gb-async/.dirs/home 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/load-contents-4gb-async/.dirs/cache 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/load-contents-4gb-async/.dirs/system-config1:/tmp/test_file_OOCR52/file/load-contents-4gb-async/.dirs/system-config2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/load-contents-4gb-async/.dirs/config 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/load-contents-4gb-async/.dirs/system-data1:/tmp/test_file_OOCR52/file/load-contents-4gb-async/.dirs/system-data2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/load-contents-4gb-async/.dirs/data 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/load-contents-4gb-async/.dirs/state 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/load-contents-4gb-async/.dirs/runtime 3554s ok 24 /file/load-contents-4gb-async # SKIP Skipping slow >4GB file test 3554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/writev/.dirs/home 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/writev/.dirs/cache 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/writev/.dirs/system-config1:/tmp/test_file_OOCR52/file/writev/.dirs/system-config2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/writev/.dirs/config 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/writev/.dirs/system-data1:/tmp/test_file_OOCR52/file/writev/.dirs/system-data2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/writev/.dirs/data 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/writev/.dirs/state 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/writev/.dirs/runtime 3554s ok 25 /file/writev 3554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/build-attribute-list-for-copy/.dirs/home 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/build-attribute-list-for-copy/.dirs/cache 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/build-attribute-list-for-copy/.dirs/system-config1:/tmp/test_file_OOCR52/file/build-attribute-list-for-copy/.dirs/system-config2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/build-attribute-list-for-copy/.dirs/config 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/build-attribute-list-for-copy/.dirs/system-data1:/tmp/test_file_OOCR52/file/build-attribute-list-for-copy/.dirs/system-data2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/build-attribute-list-for-copy/.dirs/data 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/build-attribute-list-for-copy/.dirs/state 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/build-attribute-list-for-copy/.dirs/runtime 3554s # Attributes for copy: standard::size,time::modified,time::modified-nsec,time::modified-usec,unix::mode,xattr::* 3554s # Attributes for copy: standard::size,time::modified,time::modified-nsec,time::modified-usec,xattr::* 3554s # 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::* 3554s # 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::* 3554s # Attributes for copy: standard::size,time::access,time::access-nsec,time::access-usec,unix::gid,unix::mode,unix::uid,xattr::*,xattr-sys::* 3554s # Attributes for copy: standard::size,xattr::* 3554s # Attributes for copy: standard::size,unix::mode,xattr::* 3554s ok 26 /file/build-attribute-list-for-copy 3554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/move_async/.dirs/home 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/move_async/.dirs/cache 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/move_async/.dirs/system-config1:/tmp/test_file_OOCR52/file/move_async/.dirs/system-config2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/move_async/.dirs/config 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/move_async/.dirs/system-data1:/tmp/test_file_OOCR52/file/move_async/.dirs/system-data2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/move_async/.dirs/data 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/move_async/.dirs/state 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/move_async/.dirs/runtime 3554s ok 27 /file/move_async 3554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/move-async-with-closures/.dirs/home 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/move-async-with-closures/.dirs/cache 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/move-async-with-closures/.dirs/system-config1:/tmp/test_file_OOCR52/file/move-async-with-closures/.dirs/system-config2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/move-async-with-closures/.dirs/config 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/move-async-with-closures/.dirs/system-data1:/tmp/test_file_OOCR52/file/move-async-with-closures/.dirs/system-data2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/move-async-with-closures/.dirs/data 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/move-async-with-closures/.dirs/state 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/move-async-with-closures/.dirs/runtime 3554s ok 28 /file/move-async-with-closures 3554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/query-zero-length-content-type/.dirs/home 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/query-zero-length-content-type/.dirs/cache 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/query-zero-length-content-type/.dirs/system-config1:/tmp/test_file_OOCR52/file/query-zero-length-content-type/.dirs/system-config2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/query-zero-length-content-type/.dirs/config 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/query-zero-length-content-type/.dirs/system-data1:/tmp/test_file_OOCR52/file/query-zero-length-content-type/.dirs/system-data2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/query-zero-length-content-type/.dirs/data 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/query-zero-length-content-type/.dirs/state 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/query-zero-length-content-type/.dirs/runtime 3554s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=755795 3554s # /file/query-zero-length-content-type summary: empty files should always be considered application/x-zerosize 3554s ok 29 /file/query-zero-length-content-type 3554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/query-default-handler-file/.dirs/home 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/query-default-handler-file/.dirs/cache 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/query-default-handler-file/.dirs/system-config1:/tmp/test_file_OOCR52/file/query-default-handler-file/.dirs/system-config2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/query-default-handler-file/.dirs/config 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/query-default-handler-file/.dirs/system-data1:/tmp/test_file_OOCR52/file/query-default-handler-file/.dirs/system-data2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/query-default-handler-file/.dirs/data 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/query-default-handler-file/.dirs/state 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/query-default-handler-file/.dirs/runtime 3554s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_OOCR52/file/query-default-handler-file/.dirs/data/applications 3554s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_OOCR52/file/query-default-handler-file/.dirs/config 3554s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_OOCR52/file/query-default-handler-file/.dirs/config 3554s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_OOCR52/file/query-default-handler-file/.dirs/config 3554s ok 30 /file/query-default-handler-file 3554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/query-default-handler-file-async/.dirs/home 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/query-default-handler-file-async/.dirs/cache 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/query-default-handler-file-async/.dirs/system-config1:/tmp/test_file_OOCR52/file/query-default-handler-file-async/.dirs/system-config2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/query-default-handler-file-async/.dirs/config 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/query-default-handler-file-async/.dirs/system-data1:/tmp/test_file_OOCR52/file/query-default-handler-file-async/.dirs/system-data2 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/query-default-handler-file-async/.dirs/data 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/query-default-handler-file-async/.dirs/state 3554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/query-default-handler-file-async/.dirs/runtime 3554s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_OOCR52/file/query-default-handler-file-async/.dirs/data/applications 3554s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_OOCR52/file/query-default-handler-file-async/.dirs/config 3554s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_OOCR52/file/query-default-handler-file/.dirs/config to /tmp/test_file_OOCR52/file/query-default-handler-file-async/.dirs/config 3555s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_OOCR52/file/query-default-handler-file-async/.dirs/config 3555s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_OOCR52/file/query-default-handler-file-async/.dirs/config 3555s ok 31 /file/query-default-handler-file-async 3555s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/query-default-handler-uri/.dirs/home 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/query-default-handler-uri/.dirs/cache 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/query-default-handler-uri/.dirs/system-config1:/tmp/test_file_OOCR52/file/query-default-handler-uri/.dirs/system-config2 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/query-default-handler-uri/.dirs/config 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/query-default-handler-uri/.dirs/system-data1:/tmp/test_file_OOCR52/file/query-default-handler-uri/.dirs/system-data2 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/query-default-handler-uri/.dirs/data 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/query-default-handler-uri/.dirs/state 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/query-default-handler-uri/.dirs/runtime 3555s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_OOCR52/file/query-default-handler-uri/.dirs/data/applications 3555s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_OOCR52/file/query-default-handler-uri/.dirs/config 3555s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_OOCR52/file/query-default-handler-file-async/.dirs/config to /tmp/test_file_OOCR52/file/query-default-handler-uri/.dirs/config 3555s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_OOCR52/file/query-default-handler-uri/.dirs/config 3555s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_OOCR52/file/query-default-handler-uri/.dirs/config 3555s ok 32 /file/query-default-handler-uri 3555s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/query-default-handler-uri-async/.dirs/home 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/query-default-handler-uri-async/.dirs/cache 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/query-default-handler-uri-async/.dirs/system-config1:/tmp/test_file_OOCR52/file/query-default-handler-uri-async/.dirs/system-config2 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/query-default-handler-uri-async/.dirs/config 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/query-default-handler-uri-async/.dirs/system-data1:/tmp/test_file_OOCR52/file/query-default-handler-uri-async/.dirs/system-data2 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/query-default-handler-uri-async/.dirs/data 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/query-default-handler-uri-async/.dirs/state 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/query-default-handler-uri-async/.dirs/runtime 3555s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_OOCR52/file/query-default-handler-uri-async/.dirs/data/applications 3555s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_OOCR52/file/query-default-handler-uri-async/.dirs/config 3555s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_OOCR52/file/query-default-handler-uri/.dirs/config to /tmp/test_file_OOCR52/file/query-default-handler-uri-async/.dirs/config 3555s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_OOCR52/file/query-default-handler-uri-async/.dirs/config 3555s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_OOCR52/file/query-default-handler-uri-async/.dirs/config 3555s ok 33 /file/query-default-handler-uri-async 3555s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/enumerator-cancellation/.dirs/home 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/enumerator-cancellation/.dirs/cache 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/enumerator-cancellation/.dirs/system-config1:/tmp/test_file_OOCR52/file/enumerator-cancellation/.dirs/system-config2 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/enumerator-cancellation/.dirs/config 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/enumerator-cancellation/.dirs/system-data1:/tmp/test_file_OOCR52/file/enumerator-cancellation/.dirs/system-data2 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/enumerator-cancellation/.dirs/data 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/enumerator-cancellation/.dirs/state 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/enumerator-cancellation/.dirs/runtime 3555s ok 34 /file/enumerator-cancellation 3555s # Start of async-create-delete tests 3555s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/async-create-delete/0/.dirs/home 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/async-create-delete/0/.dirs/cache 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/async-create-delete/0/.dirs/system-config1:/tmp/test_file_OOCR52/file/async-create-delete/0/.dirs/system-config2 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/async-create-delete/0/.dirs/config 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/async-create-delete/0/.dirs/system-data1:/tmp/test_file_OOCR52/file/async-create-delete/0/.dirs/system-data2 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/async-create-delete/0/.dirs/data 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/async-create-delete/0/.dirs/state 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/async-create-delete/0/.dirs/runtime 3555s ok 35 /file/async-create-delete/0 3555s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/async-create-delete/1/.dirs/home 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/async-create-delete/1/.dirs/cache 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/async-create-delete/1/.dirs/system-config1:/tmp/test_file_OOCR52/file/async-create-delete/1/.dirs/system-config2 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/async-create-delete/1/.dirs/config 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/async-create-delete/1/.dirs/system-data1:/tmp/test_file_OOCR52/file/async-create-delete/1/.dirs/system-data2 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/async-create-delete/1/.dirs/data 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/async-create-delete/1/.dirs/state 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/async-create-delete/1/.dirs/runtime 3555s ok 36 /file/async-create-delete/1 3555s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/async-create-delete/10/.dirs/home 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/async-create-delete/10/.dirs/cache 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/async-create-delete/10/.dirs/system-config1:/tmp/test_file_OOCR52/file/async-create-delete/10/.dirs/system-config2 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/async-create-delete/10/.dirs/config 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/async-create-delete/10/.dirs/system-data1:/tmp/test_file_OOCR52/file/async-create-delete/10/.dirs/system-data2 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/async-create-delete/10/.dirs/data 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/async-create-delete/10/.dirs/state 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/async-create-delete/10/.dirs/runtime 3555s ok 37 /file/async-create-delete/10 3555s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/async-create-delete/25/.dirs/home 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/async-create-delete/25/.dirs/cache 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/async-create-delete/25/.dirs/system-config1:/tmp/test_file_OOCR52/file/async-create-delete/25/.dirs/system-config2 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/async-create-delete/25/.dirs/config 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/async-create-delete/25/.dirs/system-data1:/tmp/test_file_OOCR52/file/async-create-delete/25/.dirs/system-data2 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/async-create-delete/25/.dirs/data 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/async-create-delete/25/.dirs/state 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/async-create-delete/25/.dirs/runtime 3555s ok 38 /file/async-create-delete/25 3555s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/async-create-delete/4096/.dirs/home 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/async-create-delete/4096/.dirs/cache 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/async-create-delete/4096/.dirs/system-config1:/tmp/test_file_OOCR52/file/async-create-delete/4096/.dirs/system-config2 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/async-create-delete/4096/.dirs/config 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/async-create-delete/4096/.dirs/system-data1:/tmp/test_file_OOCR52/file/async-create-delete/4096/.dirs/system-data2 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/async-create-delete/4096/.dirs/data 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/async-create-delete/4096/.dirs/state 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/async-create-delete/4096/.dirs/runtime 3555s ok 39 /file/async-create-delete/4096 3555s # End of async-create-delete tests 3555s # Start of replace-symlink tests 3555s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/replace-symlink/using-etag/.dirs/home 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/replace-symlink/using-etag/.dirs/cache 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/replace-symlink/using-etag/.dirs/system-config1:/tmp/test_file_OOCR52/file/replace-symlink/using-etag/.dirs/system-config2 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/replace-symlink/using-etag/.dirs/config 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/replace-symlink/using-etag/.dirs/system-data1:/tmp/test_file_OOCR52/file/replace-symlink/using-etag/.dirs/system-data2 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/replace-symlink/using-etag/.dirs/data 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/replace-symlink/using-etag/.dirs/state 3555s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/replace-symlink/using-etag/.dirs/runtime 3555s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2417 3555s # /file/replace-symlink/using-etag summary: Test that ETag checks work when replacing a file through a symlink 3555s # Using temporary directory /tmp/test_file_OOCR52/g_file_replace_symlink_using_etag_QVFS52 3557s ok 40 /file/replace-symlink/using-etag 3557s # slow test /file/replace-symlink/using-etag executed in 2.02 secs 3557s # End of replace-symlink tests 3557s # Start of replace tests 3557s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/replace/write-only/.dirs/home 3557s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/replace/write-only/.dirs/cache 3557s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/replace/write-only/.dirs/system-config1:/tmp/test_file_OOCR52/file/replace/write-only/.dirs/system-config2 3557s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/replace/write-only/.dirs/config 3557s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/replace/write-only/.dirs/system-data1:/tmp/test_file_OOCR52/file/replace/write-only/.dirs/system-data2 3557s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/replace/write-only/.dirs/data 3557s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/replace/write-only/.dirs/state 3557s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/replace/write-only/.dirs/runtime 3557s # /file/replace/write-only summary: Test various situations for g_file_replace() 3557s # Current umask: 2 3557s # Test 0, using temporary directory /tmp/test_file_OOCR52/g_file_replace_OH5R52 3557s # Test 1, using temporary directory /tmp/test_file_OOCR52/g_file_replace_BR7R52 3557s # Test 2, using temporary directory /tmp/test_file_OOCR52/g_file_replace_CZKU52 3557s # Test 3, using temporary directory /tmp/test_file_OOCR52/g_file_replace_9Q5T52 3557s # Test 4, using temporary directory /tmp/test_file_OOCR52/g_file_replace_GS8T52 3557s # Test 5, using temporary directory /tmp/test_file_OOCR52/g_file_replace_9ACU52 3557s # Test 6, using temporary directory /tmp/test_file_OOCR52/g_file_replace_AQTT52 3557s # Test 7, using temporary directory /tmp/test_file_OOCR52/g_file_replace_V9YT52 3557s # Test 8, using temporary directory /tmp/test_file_OOCR52/g_file_replace_ETCT52 3557s # Test 9, using temporary directory /tmp/test_file_OOCR52/g_file_replace_68GT52 3557s # Test 10, using temporary directory /tmp/test_file_OOCR52/g_file_replace_GHMT52 3557s # Test 11, using temporary directory /tmp/test_file_OOCR52/g_file_replace_A64V52 3557s # Test 12, using temporary directory /tmp/test_file_OOCR52/g_file_replace_7M2V52 3557s # Test 13, using temporary directory /tmp/test_file_OOCR52/g_file_replace_HPGV52 3557s # Test 14, using temporary directory /tmp/test_file_OOCR52/g_file_replace_0MSV52 3557s # Test 15, using temporary directory /tmp/test_file_OOCR52/g_file_replace_YV7U52 3557s # Test 16, using temporary directory /tmp/test_file_OOCR52/g_file_replace_QEEV52 3557s # Test 17, using temporary directory /tmp/test_file_OOCR52/g_file_replace_UHUU52 3557s # Test 18, using temporary directory /tmp/test_file_OOCR52/g_file_replace_2CI852 3557s # Test 19, using temporary directory /tmp/test_file_OOCR52/g_file_replace_DAN852 3557s # Test 20, using temporary directory /tmp/test_file_OOCR52/g_file_replace_AQ3752 3557s # Test 21, using temporary directory /tmp/test_file_OOCR52/g_file_replace_2IE852 3557s # Test 22, using temporary directory /tmp/test_file_OOCR52/g_file_replace_OEU752 3557s # Test 23, using temporary directory /tmp/test_file_OOCR52/g_file_replace_C0Y752 3557s # Test 24, using temporary directory /tmp/test_file_OOCR52/g_file_replace_RIF752 3557s # Test 25, using temporary directory /tmp/test_file_OOCR52/g_file_replace_OQK752 3557s # Test 26, using temporary directory /tmp/test_file_OOCR52/g_file_replace_MMN752 3557s # Test 27, using temporary directory /tmp/test_file_OOCR52/g_file_replace_S5U952 3557s # Test 28, using temporary directory /tmp/test_file_OOCR52/g_file_replace_L26952 3557s # Test 29, using temporary directory /tmp/test_file_OOCR52/g_file_replace_19L952 3557s # Test 30, using temporary directory /tmp/test_file_OOCR52/g_file_replace_XAP952 3557s # Test 31, using temporary directory /tmp/test_file_OOCR52/g_file_replace_X7S952 3557s # Test 32, using temporary directory /tmp/test_file_OOCR52/g_file_replace_VI8852 3557s # Test 33, using temporary directory /tmp/test_file_OOCR52/g_file_replace_1IV852 3557s # Test 34, using temporary directory /tmp/test_file_OOCR52/g_file_replace_RSS852 3557s # Test 35, using temporary directory /tmp/test_file_OOCR52/g_file_replace_ETW852 3557s # Test 36, using temporary directory /tmp/test_file_OOCR52/g_file_replace_632852 3557s # Test 37, using temporary directory /tmp/test_file_OOCR52/g_file_replace_XNHB62 3557s # Test 38, using temporary directory /tmp/test_file_OOCR52/g_file_replace_0WYA62 3557s # Test 39, using temporary directory /tmp/test_file_OOCR52/g_file_replace_N02A62 3557s # Test 40, using temporary directory /tmp/test_file_OOCR52/g_file_replace_U3OA62 3557s # Test 41, using temporary directory /tmp/test_file_OOCR52/g_file_replace_HSCA62 3557s # Test 42, using temporary directory /tmp/test_file_OOCR52/g_file_replace_CTWC62 3557s # Test 43, using temporary directory /tmp/test_file_OOCR52/g_file_replace_A6BC62 3557s # Test 44, using temporary directory /tmp/test_file_OOCR52/g_file_replace_28LC62 3557s # Test 45, using temporary directory /tmp/test_file_OOCR52/g_file_replace_DYKC62 3557s # Test 46, using temporary directory /tmp/test_file_OOCR52/g_file_replace_XC7B62 3557s # Test 47, using temporary directory /tmp/test_file_OOCR52/g_file_replace_1S5B62 3557s # Test 48, using temporary directory /tmp/test_file_OOCR52/g_file_replace_BXTB62 3557s # We do not have CAP_DAC_OVERRIDE or equivalent 3557s ok 41 /file/replace/write-only 3557s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/replace/read-write/.dirs/home 3557s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/replace/read-write/.dirs/cache 3557s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/replace/read-write/.dirs/system-config1:/tmp/test_file_OOCR52/file/replace/read-write/.dirs/system-config2 3557s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/replace/read-write/.dirs/config 3557s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/replace/read-write/.dirs/system-data1:/tmp/test_file_OOCR52/file/replace/read-write/.dirs/system-data2 3557s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/replace/read-write/.dirs/data 3557s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/replace/read-write/.dirs/state 3557s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/replace/read-write/.dirs/runtime 3557s # /file/replace/read-write summary: Test various situations for g_file_replace() 3557s # Current umask: 2 3557s # Test 0, using temporary directory /tmp/test_file_OOCR52/g_file_replace_PVU252 3557s # Test 1, using temporary directory /tmp/test_file_OOCR52/g_file_replace_XDX252 3557s # Test 2, using temporary directory /tmp/test_file_OOCR52/g_file_replace_YVH252 3557s # Test 3, using temporary directory /tmp/test_file_OOCR52/g_file_replace_AUN252 3557s # Test 4, using temporary directory /tmp/test_file_OOCR52/g_file_replace_GTQ252 3557s # Test 5, using temporary directory /tmp/test_file_OOCR52/g_file_replace_854152 3558s # Test 6, using temporary directory /tmp/test_file_OOCR52/g_file_replace_GLF252 3558s # Test 7, using temporary directory /tmp/test_file_OOCR52/g_file_replace_Q90152 3558s # Test 8, using temporary directory /tmp/test_file_OOCR52/g_file_replace_DS3152 3558s # Test 9, using temporary directory /tmp/test_file_OOCR52/g_file_replace_141152 3558s # Test 10, using temporary directory /tmp/test_file_OOCR52/g_file_replace_MFH452 3558s # Test 11, using temporary directory /tmp/test_file_OOCR52/g_file_replace_54V352 3558s # Test 12, using temporary directory /tmp/test_file_OOCR52/g_file_replace_MNZ352 3558s # Test 13, using temporary directory /tmp/test_file_OOCR52/g_file_replace_WH3352 3558s # Test 14, using temporary directory /tmp/test_file_OOCR52/g_file_replace_2JJ352 3558s # Test 15, using temporary directory /tmp/test_file_OOCR52/g_file_replace_0OV352 3558s # Test 16, using temporary directory /tmp/test_file_OOCR52/g_file_replace_ORA352 3558s # Test 17, using temporary directory /tmp/test_file_OOCR52/g_file_replace_Q0P552 3558s # Test 18, using temporary directory /tmp/test_file_OOCR52/g_file_replace_NOU552 3558s # Test 19, using temporary directory /tmp/test_file_OOCR52/g_file_replace_UGB552 3558s # Test 20, using temporary directory /tmp/test_file_OOCR52/g_file_replace_CMM552 3558s # Test 21, using temporary directory /tmp/test_file_OOCR52/g_file_replace_VF3452 3558s # Test 22, using temporary directory /tmp/test_file_OOCR52/g_file_replace_3I9452 3558s # Test 23, using temporary directory /tmp/test_file_OOCR52/g_file_replace_8E7452 3558s # Test 24, using temporary directory /tmp/test_file_OOCR52/g_file_replace_03T452 3558s # Test 25, using temporary directory /tmp/test_file_OOCR52/g_file_replace_WT2652 3558s # Test 26, using temporary directory /tmp/test_file_OOCR52/g_file_replace_5C6652 3558s # Test 27, using temporary directory /tmp/test_file_OOCR52/g_file_replace_399652 3558s # Test 28, using temporary directory /tmp/test_file_OOCR52/g_file_replace_7CAX52 3558s # Test 29, using temporary directory /tmp/test_file_OOCR52/g_file_replace_Y1EX52 3558s # Test 30, using temporary directory /tmp/test_file_OOCR52/g_file_replace_36HX52 3558s # Test 31, using temporary directory /tmp/test_file_OOCR52/g_file_replace_I8WW52 3558s # Test 32, using temporary directory /tmp/test_file_OOCR52/g_file_replace_I91W52 3558s # Test 33, using temporary directory /tmp/test_file_OOCR52/g_file_replace_LFOW52 3558s # Test 34, using temporary directory /tmp/test_file_OOCR52/g_file_replace_9KLW52 3558s # Test 35, using temporary directory /tmp/test_file_OOCR52/g_file_replace_BKPW52 3558s # Test 36, using temporary directory /tmp/test_file_OOCR52/g_file_replace_ZO5V52 3558s # Test 37, using temporary directory /tmp/test_file_OOCR52/g_file_replace_7MGW52 3558s # Test 38, using temporary directory /tmp/test_file_OOCR52/g_file_replace_1SPY52 3558s # Test 39, using temporary directory /tmp/test_file_OOCR52/g_file_replace_RICY52 3558s # Test 40, using temporary directory /tmp/test_file_OOCR52/g_file_replace_X7HY52 3558s # Test 41, using temporary directory /tmp/test_file_OOCR52/g_file_replace_2NYX52 3558s # Test 42, using temporary directory /tmp/test_file_OOCR52/g_file_replace_5Z4X52 3558s # Test 43, using temporary directory /tmp/test_file_OOCR52/g_file_replace_N9KX52 3558s # Test 44, using temporary directory /tmp/test_file_OOCR52/g_file_replace_NRVX52 3558s # Test 45, using temporary directory /tmp/test_file_OOCR52/g_file_replace_WTTX52 3558s # Test 46, using temporary directory /tmp/test_file_OOCR52/g_file_replace_U53Z52 3558s # Test 47, using temporary directory /tmp/test_file_OOCR52/g_file_replace_0Z7Z52 3558s # Test 48, using temporary directory /tmp/test_file_OOCR52/g_file_replace_4WOZ52 3558s # We do not have CAP_DAC_OVERRIDE or equivalent 3558s ok 42 /file/replace/read-write 3558s # End of replace tests 3558s # Start of copy tests 3558s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/copy/progress/.dirs/home 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/copy/progress/.dirs/cache 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/copy/progress/.dirs/system-config1:/tmp/test_file_OOCR52/file/copy/progress/.dirs/system-config2 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/copy/progress/.dirs/config 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/copy/progress/.dirs/system-data1:/tmp/test_file_OOCR52/file/copy/progress/.dirs/system-data2 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/copy/progress/.dirs/data 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/copy/progress/.dirs/state 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/copy/progress/.dirs/runtime 3558s ok 43 /file/copy/progress 3558s # End of copy tests 3558s # Start of writev tests 3558s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/writev/no-bytes-written/.dirs/home 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/writev/no-bytes-written/.dirs/cache 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/writev/no-bytes-written/.dirs/system-config1:/tmp/test_file_OOCR52/file/writev/no-bytes-written/.dirs/system-config2 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/writev/no-bytes-written/.dirs/config 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/writev/no-bytes-written/.dirs/system-data1:/tmp/test_file_OOCR52/file/writev/no-bytes-written/.dirs/system-data2 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/writev/no-bytes-written/.dirs/data 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/writev/no-bytes-written/.dirs/state 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/writev/no-bytes-written/.dirs/runtime 3558s ok 44 /file/writev/no-bytes-written 3558s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/writev/no-vectors/.dirs/home 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/writev/no-vectors/.dirs/cache 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/writev/no-vectors/.dirs/system-config1:/tmp/test_file_OOCR52/file/writev/no-vectors/.dirs/system-config2 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/writev/no-vectors/.dirs/config 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/writev/no-vectors/.dirs/system-data1:/tmp/test_file_OOCR52/file/writev/no-vectors/.dirs/system-data2 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/writev/no-vectors/.dirs/data 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/writev/no-vectors/.dirs/state 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/writev/no-vectors/.dirs/runtime 3558s ok 45 /file/writev/no-vectors 3558s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/writev/empty-vectors/.dirs/home 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/writev/empty-vectors/.dirs/cache 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/writev/empty-vectors/.dirs/system-config1:/tmp/test_file_OOCR52/file/writev/empty-vectors/.dirs/system-config2 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/writev/empty-vectors/.dirs/config 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/writev/empty-vectors/.dirs/system-data1:/tmp/test_file_OOCR52/file/writev/empty-vectors/.dirs/system-data2 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/writev/empty-vectors/.dirs/data 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/writev/empty-vectors/.dirs/state 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/writev/empty-vectors/.dirs/runtime 3558s ok 46 /file/writev/empty-vectors 3558s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/writev/too-big-vectors/.dirs/home 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/writev/too-big-vectors/.dirs/cache 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/writev/too-big-vectors/.dirs/system-config1:/tmp/test_file_OOCR52/file/writev/too-big-vectors/.dirs/system-config2 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/writev/too-big-vectors/.dirs/config 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/writev/too-big-vectors/.dirs/system-data1:/tmp/test_file_OOCR52/file/writev/too-big-vectors/.dirs/system-data2 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/writev/too-big-vectors/.dirs/data 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/writev/too-big-vectors/.dirs/state 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/writev/too-big-vectors/.dirs/runtime 3558s ok 47 /file/writev/too-big-vectors 3558s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/writev/async/.dirs/home 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/writev/async/.dirs/cache 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/writev/async/.dirs/system-config1:/tmp/test_file_OOCR52/file/writev/async/.dirs/system-config2 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/writev/async/.dirs/config 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/writev/async/.dirs/system-data1:/tmp/test_file_OOCR52/file/writev/async/.dirs/system-data2 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/writev/async/.dirs/data 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/writev/async/.dirs/state 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/writev/async/.dirs/runtime 3558s ok 48 /file/writev/async 3558s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/writev/async_all/.dirs/home 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/writev/async_all/.dirs/cache 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/writev/async_all/.dirs/system-config1:/tmp/test_file_OOCR52/file/writev/async_all/.dirs/system-config2 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/writev/async_all/.dirs/config 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/writev/async_all/.dirs/system-data1:/tmp/test_file_OOCR52/file/writev/async_all/.dirs/system-data2 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/writev/async_all/.dirs/data 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/writev/async_all/.dirs/state 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/writev/async_all/.dirs/runtime 3558s ok 49 /file/writev/async_all 3558s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/writev/async_all-empty-vectors/.dirs/home 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/writev/async_all-empty-vectors/.dirs/cache 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/writev/async_all-empty-vectors/.dirs/system-config1:/tmp/test_file_OOCR52/file/writev/async_all-empty-vectors/.dirs/system-config2 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/writev/async_all-empty-vectors/.dirs/config 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/writev/async_all-empty-vectors/.dirs/system-data1:/tmp/test_file_OOCR52/file/writev/async_all-empty-vectors/.dirs/system-data2 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/writev/async_all-empty-vectors/.dirs/data 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/writev/async_all-empty-vectors/.dirs/state 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/writev/async_all-empty-vectors/.dirs/runtime 3558s ok 50 /file/writev/async_all-empty-vectors 3558s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/writev/async_all-no-vectors/.dirs/home 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/writev/async_all-no-vectors/.dirs/cache 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/writev/async_all-no-vectors/.dirs/system-config1:/tmp/test_file_OOCR52/file/writev/async_all-no-vectors/.dirs/system-config2 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/writev/async_all-no-vectors/.dirs/config 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/writev/async_all-no-vectors/.dirs/system-data1:/tmp/test_file_OOCR52/file/writev/async_all-no-vectors/.dirs/system-data2 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/writev/async_all-no-vectors/.dirs/data 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/writev/async_all-no-vectors/.dirs/state 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/writev/async_all-no-vectors/.dirs/runtime 3558s ok 51 /file/writev/async_all-no-vectors 3558s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/writev/async_all-to-big-vectors/.dirs/home 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/writev/async_all-to-big-vectors/.dirs/cache 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/writev/async_all-to-big-vectors/.dirs/system-config1:/tmp/test_file_OOCR52/file/writev/async_all-to-big-vectors/.dirs/system-config2 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/writev/async_all-to-big-vectors/.dirs/config 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/writev/async_all-to-big-vectors/.dirs/system-data1:/tmp/test_file_OOCR52/file/writev/async_all-to-big-vectors/.dirs/system-data2 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/writev/async_all-to-big-vectors/.dirs/data 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/writev/async_all-to-big-vectors/.dirs/state 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/writev/async_all-to-big-vectors/.dirs/runtime 3558s ok 52 /file/writev/async_all-to-big-vectors 3558s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/writev/async_all-cancellation/.dirs/home 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/writev/async_all-cancellation/.dirs/cache 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/writev/async_all-cancellation/.dirs/system-config1:/tmp/test_file_OOCR52/file/writev/async_all-cancellation/.dirs/system-config2 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/writev/async_all-cancellation/.dirs/config 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/writev/async_all-cancellation/.dirs/system-data1:/tmp/test_file_OOCR52/file/writev/async_all-cancellation/.dirs/system-data2 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/writev/async_all-cancellation/.dirs/data 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/writev/async_all-cancellation/.dirs/state 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/writev/async_all-cancellation/.dirs/runtime 3558s ok 53 /file/writev/async_all-cancellation 3558s # End of writev tests 3558s # Start of from-uri tests 3558s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/from-uri/ignores-query-string/.dirs/home 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/from-uri/ignores-query-string/.dirs/cache 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/from-uri/ignores-query-string/.dirs/system-config1:/tmp/test_file_OOCR52/file/from-uri/ignores-query-string/.dirs/system-config2 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/from-uri/ignores-query-string/.dirs/config 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/from-uri/ignores-query-string/.dirs/system-data1:/tmp/test_file_OOCR52/file/from-uri/ignores-query-string/.dirs/system-data2 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/from-uri/ignores-query-string/.dirs/data 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/from-uri/ignores-query-string/.dirs/state 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/from-uri/ignores-query-string/.dirs/runtime 3558s ok 54 /file/from-uri/ignores-query-string 3558s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_OOCR52/file/from-uri/ignores-fragment/.dirs/home 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_OOCR52/file/from-uri/ignores-fragment/.dirs/cache 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_OOCR52/file/from-uri/ignores-fragment/.dirs/system-config1:/tmp/test_file_OOCR52/file/from-uri/ignores-fragment/.dirs/system-config2 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_OOCR52/file/from-uri/ignores-fragment/.dirs/config 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_OOCR52/file/from-uri/ignores-fragment/.dirs/system-data1:/tmp/test_file_OOCR52/file/from-uri/ignores-fragment/.dirs/system-data2 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_OOCR52/file/from-uri/ignores-fragment/.dirs/data 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_OOCR52/file/from-uri/ignores-fragment/.dirs/state 3558s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_OOCR52/file/from-uri/ignores-fragment/.dirs/runtime 3558s ok 55 /file/from-uri/ignores-fragment 3558s # End of from-uri tests 3558s # End of file tests 3558s ok - glib/file.test 3558s # Running test: glib/thumbnail-verification.test 3558s TAP version 14 3558s ok - glib/thumbnail-verification.test 3558s # random seed: R02Scea37c4a3d51d2c9f1cb2923e1cc6b7d 3558s 1..1 3558s # Start of png-thumbs tests 3558s ok 1 /png-thumbs/validity 3558s # End of png-thumbs tests 3558s # Running test: glib/utils-c-17.test 3558s TAP version 14 3558s # random seed: R02Sa03464b37bbb7e555718dbba9eae43fd 3558s 1..41 3558s # Start of utils tests 3558s ok 1 /utils/language-names 3558s ok 2 /utils/locale-variants 3558s ok 3 /utils/version 3558s ok 4 /utils/appname 3558s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 3558s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 3558s ok 5 /utils/prgname-thread-safety 3558s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 3558s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 3558s ok 6 /utils/tmpdir 3558s ok 7 /utils/basic_bits 3558s ok 8 /utils/bits 3558s ok 9 /utils/swap 3558s ok 10 /utils/find-program 3558s ok 11 /utils/find-program-for-path 3558s ok 12 /utils/debug 3558s ok 13 /utils/codeset 3558s ok 14 /utils/codeset2 3558s ok 15 /utils/console-charset 3558s ok 16 /utils/gettext 3558s ok 17 /utils/username 3558s ok 18 /utils/realname 3558s ok 19 /utils/hostname 3558s ok 20 /utils/xdgdirs 3558s ok 21 /utils/specialdir 3558s # NAME: Ubuntu 3558s ok 22 /utils/os-info 3558s ok 23 /utils/clear-pointer 3558s ok 24 /utils/clear-pointer-cast 3558s ok 25 /utils/take-pointer 3558s ok 26 /utils/clear-source 3558s ok 27 /utils/misc-mem 3558s # /utils/aligned-mem summary: Aligned memory allocator 3558s # Alignment must not be zero 3558s # Alignment must be a power of two 3558s # Alignment must be a multiple of sizeof(void*) 3559s ok 28 /utils/aligned-mem 3559s # /utils/free-sized summary: Check that g_free_sized() works 3559s ok 29 /utils/free-sized 3559s ok 30 /utils/nullify 3559s ok 31 /utils/atexit 3559s ok 32 /utils/check-setuid 3559s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 3559s ok 33 /utils/int-limits 3559s ok 34 /utils/clear-list 3559s ok 35 /utils/clear-slist 3559s ok 36 /utils/steal-handle-id 3559s # Start of specialdir tests 3559s ok 37 /utils/specialdir/desktop 3559s # End of specialdir tests 3559s # Start of clear-pointer tests 3559s ok 38 /utils/clear-pointer/side-effects 3559s # End of clear-pointer tests 3559s # Start of aligned-mem tests 3559s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 3559s ok 39 /utils/aligned-mem/alignment 3559s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 3559s ok - glib/utils-c-17.test 3559s ok 40 /utils/aligned-mem/zeroed 3559s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 3559s ok 41 /utils/aligned-mem/free-sized 3559s # Start of subprocess tests 3559s # End of subprocess tests 3559s # End of aligned-mem tests 3559s # End of utils tests 3559s # Running test: glib/gdbus-address-get-session.test 3559s TAP version 14 3559s # random seed: R02Sde2efb369a23d714f8d2382febfbfefc 3559s 1..2 3559s # Start of gdbus tests 3559s # Executing: glib/gdbus-address-get-session.test 3559s ok 1 /gdbus/x11-autolaunch 3559s ok 2 /gdbus/xdg-runtime 3559s # End of gdbus tests 3559s ok - glib/gdbus-address-get-session.test 3559s # Running test: glib/bindinggroup.test 3559s TAP version 14 3559s # random seed: R02Sa8911f963916cdd3e43257fe435a1eae 3559s 1..11 3559s # Start of GObject tests 3559s # Start of BindingGroup tests 3559s ok 1 /GObject/BindingGroup/invalid 3559s ok 2 /GObject/BindingGroup/default 3559s ok 3 /GObject/BindingGroup/bidirectional 3559s ok 4 /GObject/BindingGroup/transform 3559s ok 5 /GObject/BindingGroup/transform-closures 3559s ok 6 /GObject/BindingGroup/same-object 3559s ok 7 /GObject/BindingGroup/weak-ref-source 3559s ok 8 /GObject/BindingGroup/weak-ref-target 3559s ok 9 /GObject/BindingGroup/properties 3559s ok 10 /GObject/BindingGroup/weak-notify-no-bindings 3559s ok 11 /GObject/BindingGroup/empty-closures 3559s # End of BindingGroup tests 3559s # End of GObject tests 3559s ok - glib/bindinggroup.test 3559s # Running test: glib/registered-type-info.test 3559s TAP version 14 3559s # random seed: R02Se5d14bc41796e575dec7334dc3c307aa 3559s 1..1 3559s # Start of registered-type-info tests 3559s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_registered-type-info_867752/registered-type-info/boxed/.dirs/home 3559s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_registered-type-info_867752/registered-type-info/boxed/.dirs/cache 3559s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_registered-type-info_867752/registered-type-info/boxed/.dirs/system-config1:/tmp/test_registered-type-info_867752/registered-type-info/boxed/.dirs/system-config2 3559s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_registered-type-info_867752/registered-type-info/boxed/.dirs/config 3559s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_registered-type-info_867752/registered-type-info/boxed/.dirs/system-data1:/tmp/test_registered-type-info_867752/registered-type-info/boxed/.dirs/system-data2 3559s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_registered-type-info_867752/registered-type-info/boxed/.dirs/data 3559s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_registered-type-info_867752/registered-type-info/boxed/.dirs/state 3559s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_registered-type-info_867752/registered-type-info/boxed/.dirs/runtime 3559s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3559s # /registered-type-info/boxed summary: Test various boxed and non-boxed types for GIRegisteredTypeInfo 3559s # Expecting CClosure to not be boxed 3559s # Expecting TypeCValue to not be boxed 3559s # Expecting InitiallyUnownedClass to not be boxed 3559s # Expecting BookmarkFile to be boxed 3559s # Expecting Closure to be boxed 3559s # Expecting Object to not be boxed 3559s ok 1 /registered-type-info/boxed 3559s # End of registered-type-info tests 3559s ok - glib/registered-type-info.test 3559s # Running test: glib/objects-refcount2.test 3559s TAP version 14 3559s # random seed: R02S68829c7920c1aa3355006a164f8c2964 3559s 1..1 3559s # Start of gobject tests 3559s # Start of refcount tests 3559s # init 0x555b8619b3f0 3559s # 3559s # . 3560s # . 3560s # . 3560s # . 3560s # . 3560s # . 3560s # . 3560s # . 3560s # . 3560s # . 3560s # . 3560s # . 3560s # . 3560s # . 3560s # . 3560s # . 3560s # . 3561s # . 3561s # . 3561s # . 3561s # . 3561s # . 3561s # . 3561s # . 3561s # . 3561s # . 3561s # . 3561s # . 3561s # . 3561s # . 3561s # . 3561s # . 3562s # . 3562s # . 3562s # . 3562s # . 3562s # . 3562s # . 3562s # . 3562s # . 3562s # . 3562s # . 3562s # . 3562s # . 3562s # . 3562s # . 3562s # . 3562s # . 3563s # . 3563s # . 3563s # . 3563s # . 3563s # . 3563s # . 3563s # . 3563s # . 3563s # . 3563s # . 3563s # . 3563s # . 3563s # . 3563s # . 3563s # . 3563s # . 3564s # . 3564s # . 3564s # . 3564s # Executing: glib/objects-refcount2.test 3564s # . 3564s # . 3564s # . 3564s # . 3564s # . 3564s # . 3564s # . 3564s # . 3564s # . 3564s # . 3564s # . 3564s # . 3565s # . 3565s # . 3565s # . 3565s # . 3565s # . 3565s # . 3565s # . 3565s # . 3565s # . 3565s # . 3565s # . 3565s # . 3565s # . 3565s # . 3565s # . 3566s # . 3566s # . 3566s # . 3566s # . 3566s # . 3566s # . 3566s # . 3566s # . 3566s # . 3566s # . 3566s # . 3566s # . 3566s # . 3566s # . 3566s # . 3567s # . 3567s # . 3567s # . 3567s # . 3567s # . 3567s # . 3567s # . 3567s # . 3567s # . 3567s # . 3567s # . 3567s # . 3567s # . 3567s # . 3567s # . 3567s # . 3568s # . 3568s # . 3568s # . 3568s # . 3568s # . 3568s # . 3568s # . 3568s # . 3568s # . 3568s # . 3568s # . 3568s # . 3568s # . 3568s # . 3568s # . 3569s # . 3569s # . 3569s # . 3569s # . 3569s # . 3569s # Executing: glib/objects-refcount2.test 3569s # . 3569s # . 3569s # . 3569s # . 3569s # . 3569s # . 3569s # . 3569s # . 3569s # . 3569s # . 3569s # . 3570s # . 3570s # . 3570s # . 3570s # . 3570s # . 3570s # . 3570s # . 3570s # . 3570s # . 3570s # . 3570s # . 3570s # . 3570s # . 3570s # . 3570s # . 3570s # . 3571s # . 3571s # . 3571s # . 3571s # . 3571s # . 3571s # . 3571s # . 3571s # . 3571s # . 3571s # . 3571s # . 3571s # . 3571s # . 3571s # . 3571s # . 3572s # . 3572s # . 3572s # . 3572s # . 3572s # . 3572s # . 3572s # . 3572s # . 3572s # . 3572s # . 3572s # . 3572s # . 3572s # . 3572s # . 3572s # . 3572s # . 3573s # . 3573s # . 3573s # . 3573s # . 3573s # . 3573s # . 3573s # . 3573s # . 3573s # . 3573s # . 3573s # . 3573s # . 3573s # . 3573s # . 3573s # . 3574s # . 3574s # . 3574s # . 3574s # . 3574s # Executing: glib/objects-refcount2.test 3574s # . 3574s # . 3574s # . 3574s # . 3574s # . 3574s # . 3574s # . 3574s # . 3574s # . 3574s # . 3574s # . 3574s # . 3575s # . 3575s # . 3575s # . 3575s # . 3575s # . 3575s # . 3575s # . 3575s # . 3575s # . 3575s # . 3575s # . 3575s # . 3575s # . 3575s # . 3575s # . 3576s # . 3576s # . 3576s # . 3576s # . 3576s # . 3576s # . 3576s # . 3576s # . 3576s # . 3576s # . 3576s # . 3576s # . 3576s # . 3576s # . 3576s # . 3576s # . 3577s # . 3577s # . 3577s # . 3577s # . 3577s # . 3577s # . 3577s # . 3577s # . 3577s # . 3577s # . 3577s # . 3577s # . 3577s # . 3577s # . 3577s # . 3578s # . 3578s # . 3578s # . 3578s # . 3578s # . 3578s # . 3578s # . 3578s # . 3578s # . 3578s # . 3578s # . 3578s # . 3578s # . 3578s # . 3578s # . 3578s # . 3579s # . 3579s # . 3579s # . 3579s # Executing: glib/objects-refcount2.test 3579s # . 3579s # . 3579s # . 3579s # . 3579s # . 3579s # . 3579s # . 3579s # . 3579s # . 3579s # . 3579s # . 3579s # . 3580s # . 3580s # . 3580s # . 3580s # . 3580s # . 3580s # . 3580s # . 3580s # . 3580s # . 3580s # . 3580s # . 3580s # . 3580s # . 3580s # . 3580s # . 3580s # . 3581s # . 3581s # . 3581s # . 3581s # . 3581s # . 3581s # . 3581s # . 3581s # . 3581s # . 3581s # . 3581s # . 3581s # . 3581s # . 3581s # . 3581s # . 3582s # . 3582s # . 3582s # . 3582s # . 3582s # . 3582s # . 3582s # . 3582s # . 3582s # . 3582s # . 3582s # . 3582s # . 3582s # . 3582s # . 3582s # . 3582s # . 3583s # . 3583s # . 3583s # . 3583s # . 3583s # . 3583s # . 3583s # . 3583s # . 3583s # . 3583s # . 3583s # . 3583s # . 3583s # . 3583s # . 3583s # . 3584s # . 3584s # . 3584s # . 3584s # . 3584s # Executing: glib/objects-refcount2.test 3584s # . 3584s # . 3584s # . 3584s # . 3584s # . 3584s # . 3584s # . 3584s # . 3584s # . 3584s # . 3584s # . 3584s # . 3585s # . 3585s # . 3585s # . 3585s # . 3585s # . 3585s # . 3585s # . 3585s # . 3585s # . 3585s # . 3585s # . 3585s # . 3585s # . 3585s # . 3585s # . 3586s # . 3586s # . 3586s # . 3586s # . 3586s # . 3586s # . 3586s # . 3586s # . 3586s # . 3586s # . 3586s # . 3586s # . 3586s # . 3586s # . 3586s # . 3586s # . 3587s # . 3587s # . 3587s # . 3587s # . 3587s # . 3587s # . 3587s # . 3587s # . 3587s # . 3587s # . 3587s # . 3587s # . 3587s # . 3587s # . 3587s # . 3587s # . 3588s # . 3588s # . 3588s # . 3588s # . 3588s # . 3588s # . 3588s # . 3588s # . 3588s # . 3588s # . 3588s # . 3588s # . 3588s # . 3588s # . 3588s # . 3589s # . 3589s # . 3589s # . 3589s # . 3589s # Executing: glib/objects-refcount2.test 3589s # . 3589s # . 3589s # . 3589s # . 3589s # . 3589s # . 3589s # . 3589s # . 3589s # . 3589s # . 3589s # . 3589s # . 3590s # . 3590s # . 3590s # . 3590s # . 3590s # . 3590s # . 3590s # . 3590s # . 3590s # . 3590s # . 3590s # . 3590s # . 3590s # . 3590s # . 3590s # . 3590s # . 3591s # . 3591s # . 3591s # . 3591s # . 3591s # . 3591s # . 3591s # . 3591s # . 3591s # . 3591s # . 3591s # . 3591s # . 3591s # . 3591s # . 3591s # . 3592s # . 3592s # . 3592s # . 3592s # . 3592s # . 3592s # . 3592s # . 3592s # . 3592s # . 3592s # . 3592s # . 3592s # . 3592s # . 3592s # . 3592s # . 3592s # . 3593s # . 3593s # . 3593s # . 3593s # . 3593s # . 3593s # . 3593s # . 3593s # . 3593s # . 3593s # . 3593s # . 3593s # . 3593s # . 3593s # . 3593s # . 3593s # . 3594s # . 3594s # . 3594s # . 3594s # Executing: glib/objects-refcount2.test 3594s # . 3594s # . 3594s # . 3594s # . 3594s # . 3594s # . 3594s # . 3594s # . 3594s # . 3594s # . 3594s # . 3594s # . 3594s # . 3595s # . 3595s # . 3595s # . 3595s # . 3595s # . 3595s # . 3595s # . 3595s # . 3595s # . 3595s # . 3595s # . 3595s # . 3595s # . 3595s # . 3595s # . 3596s # . 3596s # . 3596s # . 3596s # . 3596s # . 3596s # . 3596s # . 3596s # . 3596s # . 3596s # . 3596s # . 3596s # . 3596s # . 3596s # . 3596s # . 3596s # . 3597s # . 3597s # . 3597s # . 3597s # . 3597s # . 3597s # . 3597s # . 3597s # . 3597s # . 3597s # . 3597s # . 3597s # . 3597s # . 3597s # . 3597s # . 3597s # . 3598s # . 3598s # . 3598s # . 3598s # . 3598s # . 3598s # . 3598s # . 3598s # . 3598s # . 3598s # . 3598s # . 3598s # . 3598s # . 3598s # . 3598s # . 3598s # . 3599s # . 3599s # . 3599s # . 3599s # Executing: glib/objects-refcount2.test 3599s # . 3599s # . 3599s # . 3599s # . 3599s # . 3599s # . 3599s # . 3599s # . 3599s # . 3599s # . 3599s # . 3599s # . 3600s # . 3600s # . 3600s # . 3600s # . 3600s # . 3600s # . 3600s # . 3600s # . 3600s # . 3600s # . 3600s # . 3600s # . 3600s # . 3600s # . 3600s # . 3600s # . 3601s # . 3601s # . 3601s # . 3601s # . 3601s # . 3601s # . 3601s # . 3601s # . 3601s # . 3601s # . 3601s # . 3601s # . 3601s # . 3601s # . 3601s # . 3601s # . 3602s # . 3602s # . 3602s # . 3602s # . 3602s # . 3602s # . 3602s # . 3602s # . 3602s # . 3602s # . 3602s # . 3602s # . 3602s # . 3602s # . 3602s # . 3602s # . 3603s # . 3603s # . 3603s # . 3603s # . 3603s # . 3603s # . 3603s # . 3603s # . 3603s # . 3603s # . 3603s # . 3603s # . 3603s # . 3603s # . 3603s # . 3604s # . 3604s # . 3604s # . 3604s # . 3604s # Executing: glib/objects-refcount2.test 3604s # . 3604s # . 3604s # . 3604s # . 3604s # . 3604s # . 3604s # . 3604s # . 3604s # . 3604s # . 3604s # . 3604s # . 3605s # . 3605s # . 3605s # . 3605s # . 3605s # . 3605s # . 3605s # . 3605s # . 3605s # . 3605s # . 3605s # . 3605s # . 3605s # . 3605s # . 3605s # . 3605s # . 3606s # . 3606s # . 3606s # . 3606s # . 3606s # . 3606s # . 3606s # . 3606s # . 3606s # . 3606s # . 3606s # . 3606s # . 3606s # . 3606s # . 3606s # . 3606s # . 3607s # . 3607s # . 3607s # . 3607s # . 3607s # . 3607s # . 3607s # . 3607s # . 3607s # . 3607s # . 3607s # . 3607s # . 3607s # . 3607s # . 3607s # . 3608s # . 3608s # . 3608s # . 3608s # . 3608s # . 3608s # . 3608s # . 3608s # . 3608s # . 3608s # . 3608s # . 3608s # . 3608s # . 3608s # . 3608s # . 3608s # . 3609s # . 3609s # . 3609s # . 3609s # . 3609s # Executing: glib/objects-refcount2.test 3609s # . 3609s # . 3609s # . 3609s # . 3609s # . 3609s # . 3609s # . 3609s # . 3609s # . 3609s # . 3609s # . 3609s # . 3610s # . 3610s # . 3610s # . 3610s # . 3610s # . 3610s # . 3610s # . 3610s # . 3610s # . 3610s # . 3610s # . 3610s # . 3610s # . 3610s # . 3610s # . 3611s # . 3611s # . 3611s # . 3611s # . 3611s # . 3611s # . 3611s # . 3611s # . 3611s # . 3611s # . 3611s # . 3611s # . 3611s # . 3611s # . 3611s # . 3611s # . 3612s # . 3612s # . 3612s # . 3612s # . 3612s # . 3612s # . 3612s # . 3612s # . 3612s # . 3612s # . 3612s # . 3612s # . 3612s # . 3612s # . 3612s # . 3613s # . 3613s # . 3613s # . 3613s # . 3613s # . 3613s # . 3613s # . 3613s # . 3613s # . 3613s # . 3613s # . 3613s # . 3613s # . 3613s # . 3613s # . 3613s # . 3614s # . 3614s # . 3614s # . 3614s # . 3614s # Executing: glib/objects-refcount2.test 3614s # . 3614s # . 3614s # . 3614s # . 3614s # . 3614s # . 3614s # . 3614s # . 3614s # . 3614s # . 3614s # . 3614s # . 3615s # . 3615s # . 3615s # . 3615s # . 3615s # . 3615s # . 3615s # . 3615s # . 3615s # . 3615s # . 3615s # . 3615s # . 3615s # . 3615s # . 3615s # . 3615s # . 3616s # . 3616s # . 3616s # . 3616s # . 3616s # . 3616s # . 3616s # . 3616s # . 3616s # . 3616s # . 3616s # . 3616s # . 3616s # . 3616s # . 3616s # . 3617s # . 3617s # . 3617s # . 3617s # . 3617s # . 3617s # . 3617s # . 3617s # . 3617s # . 3617s # . 3617s # . 3617s # . 3617s # . 3617s # . 3617s # . 3618s # . 3618s # . 3618s # . 3618s # . 3618s # . 3618s # . 3618s # . 3618s # . 3618s # . 3618s # . 3618s # . 3618s # . 3618s # . 3618s # . 3618s # . 3618s # . 3618s # . 3619s # . 3619s # . 3619s # . 3619s # Executing: glib/objects-refcount2.test 3619s # . 3619s # . 3619s # . 3619s # . 3619s # . 3619s # . 3619s # . 3619s # . 3619s # . 3619s # . 3619s # . 3619s # . 3620s # . 3620s # . 3620s # . 3620s # . 3620s # . 3620s # . 3620s # . 3620s # . 3620s # . 3620s # . 3620s # . 3620s # . 3620s # . 3620s # . 3620s # . 3620s # . 3621s # . 3621s # . 3621s # . 3621s # . 3621s # . 3621s # . 3621s # . 3621s # . 3621s # . 3621s # . 3621s # . 3621s # . 3621s # . 3621s # . 3621s # . 3621s # . 3622s # . 3622s # . 3622s # . 3622s # . 3622s # . 3622s # . 3622s # . 3622s # . 3622s # . 3622s # . 3622s # . 3622s # . 3622s # . 3622s # . 3622s # . 3623s # . 3623s # . 3623s # . 3623s # . 3623s # . 3623s # . 3623s # . 3623s # . 3623s # . 3623s # . 3623s # . 3623s # . 3623s # . 3623s # . 3623s # . 3623s # dispose 0x555b8619b3f0! 3623s # 3623s ok 1 /gobject/refcount/object-advanced 3623s # slow test /gobject/refcount/object-advanced executed in 64.03 secs 3623s # End of refcount tests 3623s # End of gobject tests 3623s ok - glib/objects-refcount2.test 3623s # Running test: glib/relation.test 3624s TAP version 14 3624s # random seed: R02S40b91c308fb6aecfec0c4a1546db2a15 3624s 1..1 3624s # Start of glib tests 3624s ok 1 /glib/relation 3624s # End of glib tests 3624s ok - glib/relation.test 3624s # Running test: glib/portal-support-flatpak-full.test 3624s # Executing: glib/portal-support-flatpak-full.test 3624s TAP version 14 3624s # random seed: R02S4b808a46c678f6b2354f69d8e993d6ab 3624s 1..1 3624s # Start of portal-support tests 3624s # Start of flatpak tests 3624s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-full_A3AW52/portal-support/flatpak/full/.dirs/home 3624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-full_A3AW52/portal-support/flatpak/full/.dirs/cache 3624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-full_A3AW52/portal-support/flatpak/full/.dirs/system-config1:/tmp/test_portal-support-flatpak-full_A3AW52/portal-support/flatpak/full/.dirs/system-config2 3624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-full_A3AW52/portal-support/flatpak/full/.dirs/config 3624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-full_A3AW52/portal-support/flatpak/full/.dirs/system-data1:/tmp/test_portal-support-flatpak-full_A3AW52/portal-support/flatpak/full/.dirs/system-data2 3624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-full_A3AW52/portal-support/flatpak/full/.dirs/data 3624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-full_A3AW52/portal-support/flatpak/full/.dirs/state 3624s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-full_A3AW52/portal-support/flatpak/full/.dirs/runtime 3624s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-full_A3AW52/portal-support/flatpak/full/.dirs/runtime/.flatpak-info 3624s ok 1 /portal-support/flatpak/full 3624s # End of flatpak tests 3624s # End of portal-support tests 3624s ok - glib/portal-support-flatpak-full.test 3624s # Running test: glib/date.test 3624s TAP version 14 3624s # random seed: R02S2c5dfa656b7c1d6797334a47e3cd114b 3624s 1..121 3624s # Start of date tests 3624s ok 1 /date/basic 3624s ok 2 /date/empty 3624s ok 3 /date/dmy 3624s ok 4 /date/julian 3624s ok 5 /date/compare 3624s ok 6 /date/dates 3624s ok 7 /date/strftime 3624s ok 8 /date/two-digit-years 3624s ok 9 /date/parse 3624s ok 10 /date/parse_locale_change # SKIP locale th_TH not available 3624s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=793550 3624s ok 11 /date/month_substring 3624s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=749206 3624s ok 12 /date/month_names # SKIP libc doesn’t support all alternative month names 3624s ok 13 /date/clamp 3624s ok 14 /date/order 3624s ok 15 /date/copy 3624s # Vector 0: 0000-00-00, invalid 3624s # Vector 1: 0001-01-01, valid 3624s # Vector 2: 0000-01-01, invalid 3624s # Vector 3: 2000-02-30, invalid 3624s # Vector 4: 2000-02-29, valid 3624s # Vector 5: 2001-02-29, invalid 3624s # Vector 6: 65535-01-01, valid 3624s ok 16 /date/valid-dmy 3624s # Start of parse tests 3624s # Test 0 3624s # Test 1 3624s ok 17 /date/parse/invalid 3624s # End of parse tests 3624s # Start of year tests 3624s ok 18 /date/year/1 3624s ok 19 /date/year/2 3624s ok 20 /date/year/3 3624s ok 21 /date/year/4 3624s ok 22 /date/year/5 3624s ok 23 /date/year/6 3624s ok 24 /date/year/7 3624s ok 25 /date/year/8 3624s ok 26 /date/year/9 3624s ok 27 /date/year/10 3625s ok 28 /date/year/11 3625s ok 29 /date/year/12 3625s ok 30 /date/year/13 3625s ok 31 /date/year/14 3625s ok 32 /date/year/98 3625s ok 33 /date/year/99 3625s ok 34 /date/year/100 3625s ok 35 /date/year/101 3625s ok 36 /date/year/102 3625s ok 37 /date/year/103 3625s ok 38 /date/year/397 3625s ok 39 /date/year/398 3625s ok 40 /date/year/399 3625s ok 41 /date/year/400 3625s ok 42 /date/year/401 3625s ok 43 /date/year/402 3626s ok 44 /date/year/403 3626s ok 45 /date/year/404 3626s ok 46 /date/year/405 3626s ok 47 /date/year/406 3626s ok 48 /date/year/1598 3626s ok 49 /date/year/1599 3626s ok 50 /date/year/1600 3626s ok 51 /date/year/1601 3626s ok 52 /date/year/1602 3626s ok 53 /date/year/1650 3626s ok 54 /date/year/1651 3626s ok 55 /date/year/1897 3626s ok 56 /date/year/1898 3626s ok 57 /date/year/1899 3626s ok 58 /date/year/1900 3626s ok 59 /date/year/1901 3626s ok 60 /date/year/1902 3626s ok 61 /date/year/1903 3627s ok 62 /date/year/1961 3627s ok 63 /date/year/1962 3627s ok 64 /date/year/1963 3627s ok 65 /date/year/1964 3627s ok 66 /date/year/1965 3627s ok 67 /date/year/1967 3627s ok 68 /date/year/1968 3627s ok 69 /date/year/1969 3627s ok 70 /date/year/1970 3627s ok 71 /date/year/1971 3627s ok 72 /date/year/1972 3627s ok 73 /date/year/1973 3627s ok 74 /date/year/1974 3627s ok 75 /date/year/1975 3627s ok 76 /date/year/1976 3627s ok 77 /date/year/1977 3627s ok 78 /date/year/1978 3627s ok 79 /date/year/1979 3628s ok 80 /date/year/1980 3628s ok 81 /date/year/1981 3628s ok 82 /date/year/1982 3628s ok 83 /date/year/1983 3628s ok 84 /date/year/1984 3628s ok 85 /date/year/1985 3628s ok 86 /date/year/1986 3628s ok 87 /date/year/1987 3628s ok 88 /date/year/1988 3628s ok 89 /date/year/1989 3628s ok 90 /date/year/1990 3628s ok 91 /date/year/1991 3628s ok 92 /date/year/1992 3628s ok 93 /date/year/1993 3628s ok 94 /date/year/1994 3628s ok 95 /date/year/1995 3628s ok 96 /date/year/1996 3629s ok 97 /date/year/1997 3629s ok 98 /date/year/1998 3629s ok 99 /date/year/1999 3629s ok 100 /date/year/2000 3629s ok 101 /date/year/2001 3629s # Executing: glib/date.test 3629s ok 102 /date/year/2002 3629s ok 103 /date/year/2003 3629s ok 104 /date/year/2004 3629s ok 105 /date/year/2005 3629s ok 106 /date/year/2006 3629s ok 107 /date/year/2007 3629s ok 108 /date/year/2008 3629s ok 109 /date/year/2009 3629s ok 110 /date/year/2010 3629s ok 111 /date/year/2011 3629s ok 112 /date/year/2012 3629s ok 113 /date/year/3000 3630s ok 114 /date/year/3001 3630s ok 115 /date/year/3002 3630s ok 116 /date/year/3998 3630s ok 117 /date/year/3999 3630s ok 118 /date/year/4000 3630s ok 119 /date/year/4001 3630s ok 120 /date/year/4002 3630s ok 121 /date/year/4003 3630s # End of year tests 3630s # End of date tests 3630s ok - glib/date.test 3630s # Running test: glib/gutils-user-database.test 3630s TAP version 14 3630s # random seed: R02Se38bdbbe613972a99f96387a0190ee7f 3630s 1..1 3630s # Start of gutils tests 3630s ok 1 /gutils/get_user_database_entry 3630s # End of gutils tests 3630s ok - glib/gutils-user-database.test 3630s # Running test: glib/struct-info.test 3630s TAP version 14 3630s # random seed: R02Sd9b4da247d39db58d5be939d7da6bf1d 3630s 1..4 3630s # Start of struct-info tests 3630s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_31IV52/struct-info/field-iterators/.dirs/home 3630s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_31IV52/struct-info/field-iterators/.dirs/cache 3630s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_31IV52/struct-info/field-iterators/.dirs/system-config1:/tmp/test_struct-info_31IV52/struct-info/field-iterators/.dirs/system-config2 3630s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_31IV52/struct-info/field-iterators/.dirs/config 3630s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_31IV52/struct-info/field-iterators/.dirs/system-data1:/tmp/test_struct-info_31IV52/struct-info/field-iterators/.dirs/system-data2 3630s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_31IV52/struct-info/field-iterators/.dirs/data 3630s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_31IV52/struct-info/field-iterators/.dirs/state 3630s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_31IV52/struct-info/field-iterators/.dirs/runtime 3630s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3630s # /struct-info/field-iterators summary: Test iterating through a struct's fields with gi_struct_info_get_field() 3630s ok 1 /struct-info/field-iterators 3630s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_31IV52/struct-info/sizeof-gvalue/.dirs/home 3630s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_31IV52/struct-info/sizeof-gvalue/.dirs/cache 3630s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_31IV52/struct-info/sizeof-gvalue/.dirs/system-config1:/tmp/test_struct-info_31IV52/struct-info/sizeof-gvalue/.dirs/system-config2 3630s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_31IV52/struct-info/sizeof-gvalue/.dirs/config 3630s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_31IV52/struct-info/sizeof-gvalue/.dirs/system-data1:/tmp/test_struct-info_31IV52/struct-info/sizeof-gvalue/.dirs/system-data2 3630s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_31IV52/struct-info/sizeof-gvalue/.dirs/data 3630s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_31IV52/struct-info/sizeof-gvalue/.dirs/state 3630s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_31IV52/struct-info/sizeof-gvalue/.dirs/runtime 3630s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3630s # /struct-info/sizeof-gvalue summary: Test that gi_struct_info_get_size() reports the correct sizeof GValue 3630s ok 2 /struct-info/sizeof-gvalue 3630s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_31IV52/struct-info/is-pointer-for-struct-method-arg/.dirs/home 3630s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_31IV52/struct-info/is-pointer-for-struct-method-arg/.dirs/cache 3630s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_31IV52/struct-info/is-pointer-for-struct-method-arg/.dirs/system-config1:/tmp/test_struct-info_31IV52/struct-info/is-pointer-for-struct-method-arg/.dirs/system-config2 3630s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_31IV52/struct-info/is-pointer-for-struct-method-arg/.dirs/config 3630s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_31IV52/struct-info/is-pointer-for-struct-method-arg/.dirs/system-data1:/tmp/test_struct-info_31IV52/struct-info/is-pointer-for-struct-method-arg/.dirs/system-data2 3630s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_31IV52/struct-info/is-pointer-for-struct-method-arg/.dirs/data 3630s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_31IV52/struct-info/is-pointer-for-struct-method-arg/.dirs/state 3630s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_31IV52/struct-info/is-pointer-for-struct-method-arg/.dirs/runtime 3630s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3630s # /struct-info/is-pointer-for-struct-method-arg summary: Test that a struct method reports the correct type with gi_type_info_is_pointer() 3630s ok 3 /struct-info/is-pointer-for-struct-method-arg 3630s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_31IV52/struct-info/boxed/.dirs/home 3630s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_31IV52/struct-info/boxed/.dirs/cache 3630s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_31IV52/struct-info/boxed/.dirs/system-config1:/tmp/test_struct-info_31IV52/struct-info/boxed/.dirs/system-config2 3630s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_31IV52/struct-info/boxed/.dirs/config 3630s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_31IV52/struct-info/boxed/.dirs/system-data1:/tmp/test_struct-info_31IV52/struct-info/boxed/.dirs/system-data2 3630s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_31IV52/struct-info/boxed/.dirs/data 3630s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_31IV52/struct-info/boxed/.dirs/state 3630s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_31IV52/struct-info/boxed/.dirs/runtime 3630s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3630s # /struct-info/boxed summary: Test that a boxed struct is recognised as such 3630s ok 4 /struct-info/boxed 3630s # End of struct-info tests 3630s ok - glib/struct-info.test 3630s # Running test: glib/gdbus-threading.test 3630s TAP version 14 3630s # random seed: R02S514e0bf867bab19bd431d73b7f4e1bb5 3630s # 1..0 # SKIP all gdbus-threading tests skipped because they are too unreliable (glib#1515) 3630s ok - glib/gdbus-threading.test 3630s # Running test: glib/dynamictype.test 3630s TAP version 14 3630s # random seed: R02S284ba4b61b805560215305936a53fa50 3630s 1..2 3630s # Start of gobject tests 3630s ok - glib/dynamictype.test 3630s ok 1 /gobject/dynamic-type 3630s # Start of dynamic-type tests 3630s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/623 3630s ok 2 /gobject/dynamic-type/query 3630s # End of dynamic-type tests 3630s # End of gobject tests 3630s # Running test: glib/dbus-appinfo.test 3631s TAP version 14 3631s # random seed: R02S1fa03eabbe37e88cc9efe4cbffaba377 3631s 1..7 3631s # Start of appinfo tests 3631s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_QGB452/appinfo/dbusappinfo/.dirs/home 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_QGB452/appinfo/dbusappinfo/.dirs/cache 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_QGB452/appinfo/dbusappinfo/.dirs/system-config1:/tmp/test_dbus-appinfo_QGB452/appinfo/dbusappinfo/.dirs/system-config2 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_QGB452/appinfo/dbusappinfo/.dirs/config 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_QGB452/appinfo/dbusappinfo/.dirs/system-data1:/tmp/test_dbus-appinfo_QGB452/appinfo/dbusappinfo/.dirs/system-data2 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_QGB452/appinfo/dbusappinfo/.dirs/data 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_QGB452/appinfo/dbusappinfo/.dirs/state 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_QGB452/appinfo/dbusappinfo/.dirs/runtime 3631s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 3631s ok 1 /appinfo/dbusappinfo 3631s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_QGB452/appinfo/flatpak-doc-export/.dirs/home 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_QGB452/appinfo/flatpak-doc-export/.dirs/cache 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_QGB452/appinfo/flatpak-doc-export/.dirs/system-config1:/tmp/test_dbus-appinfo_QGB452/appinfo/flatpak-doc-export/.dirs/system-config2 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_QGB452/appinfo/flatpak-doc-export/.dirs/config 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_QGB452/appinfo/flatpak-doc-export/.dirs/system-data1:/tmp/test_dbus-appinfo_QGB452/appinfo/flatpak-doc-export/.dirs/system-data2 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_QGB452/appinfo/flatpak-doc-export/.dirs/data 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_QGB452/appinfo/flatpak-doc-export/.dirs/state 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_QGB452/appinfo/flatpak-doc-export/.dirs/runtime 3631s # /appinfo/flatpak-doc-export summary: Test that files launched via Flatpak apps are made available via the document portal. 3631s # Acquired a message bus connection 3631s # Acquired the name org.freedesktop.portal.Documents 3631s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_QGB452/appinfo/dbusappinfo/.dirs/config to /tmp/test_dbus-appinfo_QGB452/appinfo/flatpak-doc-export/.dirs/config 3631s # on_flatpak_open received file '/document-portal/document-id/org.gtk.test.dbusappinfo.flatpak.desktop' 3631s # fake-document-portal cancelled 3631s ok 2 /appinfo/flatpak-doc-export 3631s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_QGB452/appinfo/flatpak-missing-doc-export/.dirs/home 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_QGB452/appinfo/flatpak-missing-doc-export/.dirs/cache 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_QGB452/appinfo/flatpak-missing-doc-export/.dirs/system-config1:/tmp/test_dbus-appinfo_QGB452/appinfo/flatpak-missing-doc-export/.dirs/system-config2 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_QGB452/appinfo/flatpak-missing-doc-export/.dirs/config 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_QGB452/appinfo/flatpak-missing-doc-export/.dirs/system-data1:/tmp/test_dbus-appinfo_QGB452/appinfo/flatpak-missing-doc-export/.dirs/system-data2 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_QGB452/appinfo/flatpak-missing-doc-export/.dirs/data 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_QGB452/appinfo/flatpak-missing-doc-export/.dirs/state 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_QGB452/appinfo/flatpak-missing-doc-export/.dirs/runtime 3631s # /appinfo/flatpak-missing-doc-export summary: Test that files launched via Flatpak apps are made available via the document portal. 3631s # Acquired a message bus connection 3631s # Acquired the name org.freedesktop.portal.Documents 3631s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_QGB452/appinfo/flatpak-doc-export/.dirs/config to /tmp/test_dbus-appinfo_QGB452/appinfo/flatpak-missing-doc-export/.dirs/config 3631s # on_flatpak_open received file '/hopefully/an/invalid/path.desktop' 3631s # fake-document-portal cancelled 3631s ok 3 /appinfo/flatpak-missing-doc-export 3631s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-file/.dirs/home 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-file/.dirs/cache 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-file/.dirs/system-config1:/tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-file/.dirs/system-config2 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-file/.dirs/config 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-file/.dirs/system-data1:/tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-file/.dirs/system-data2 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-file/.dirs/data 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-file/.dirs/state 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-file/.dirs/runtime 3631s # Acquired a message bus connection 3631s # Acquired the name org.freedesktop.portal.Desktop 3631s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_QGB452/appinfo/flatpak-missing-doc-export/.dirs/config to /tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-file/.dirs/config 3631s # Got open file request for file:///usr/libexec/installed-tests/glib/org.gtk.test.dbusappinfo.flatpak.desktop 3631s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_5/t 3631s # Response emitted 3631s # fake-desktop-portal cancelled 3631s ok 4 /appinfo/portal-open-file 3631s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-uri/.dirs/home 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-uri/.dirs/cache 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-uri/.dirs/system-config1:/tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-uri/.dirs/system-config2 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-uri/.dirs/config 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-uri/.dirs/system-data1:/tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-uri/.dirs/system-data2 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-uri/.dirs/data 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-uri/.dirs/state 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-uri/.dirs/runtime 3631s # Acquired a message bus connection 3631s # Acquired the name org.freedesktop.portal.Desktop 3631s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-file/.dirs/config to /tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-uri/.dirs/config 3631s # Got open file request for http://example.com 3631s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_7/t 3631s # Response emitted 3631s # fake-desktop-portal cancelled 3631s ok 5 /appinfo/portal-open-uri 3631s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-file-async/.dirs/home 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-file-async/.dirs/cache 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-file-async/.dirs/system-config1:/tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-file-async/.dirs/system-config2 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-file-async/.dirs/config 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-file-async/.dirs/system-data1:/tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-file-async/.dirs/system-data2 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-file-async/.dirs/data 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-file-async/.dirs/state 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-file-async/.dirs/runtime 3631s # Acquired a message bus connection 3631s # Acquired the name org.freedesktop.portal.Desktop 3631s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-uri/.dirs/config to /tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-file-async/.dirs/config 3631s # Got open file request for file:///usr/libexec/installed-tests/glib/org.gtk.test.dbusappinfo.flatpak.desktop 3631s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_9/gio238357191 3631s # Response emitted 3631s # fake-desktop-portal cancelled 3631s ok 6 /appinfo/portal-open-file-async 3631s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-uri-async/.dirs/home 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-uri-async/.dirs/cache 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-uri-async/.dirs/system-config1:/tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-uri-async/.dirs/system-config2 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-uri-async/.dirs/config 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-uri-async/.dirs/system-data1:/tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-uri-async/.dirs/system-data2 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-uri-async/.dirs/data 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-uri-async/.dirs/state 3631s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-uri-async/.dirs/runtime 3631s # Acquired a message bus connection 3631s # Acquired the name org.freedesktop.portal.Desktop 3631s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-file-async/.dirs/config to /tmp/test_dbus-appinfo_QGB452/appinfo/portal-open-uri-async/.dirs/config 3631s # Got open file request for http://example.com 3631s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_11/gio497181166 3631s # Response emitted 3631s # fake-desktop-portal cancelled 3631s ok 7 /appinfo/portal-open-uri-async 3631s # End of appinfo tests 3631s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3631s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3631s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3631s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3631s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3631s ok - glib/dbus-appinfo.test 3631s # Running test: glib/rcbox.test 3631s TAP version 14 3632s # random seed: R02S46ec9d447ef3ce84f8d9dc89c6bea01f 3632s 1..8 3632s # Start of rcbox tests 3632s ok 1 /rcbox/new 3632s # global_point = 0x5556aa7318a0 3632s ok 2 /rcbox/release-full 3632s # global_point_a = 0x5556aa7318a0 3632s # global_point_b = 0x5556aa731970 3632s ok 3 /rcbox/dup 3632s ok 4 /rcbox/alignment 3632s # End of rcbox tests 3632s # Start of atomic-rcbox tests 3632s ok 5 /atomic-rcbox/new 3632s # global_point = 0x5556aa731970 3632s ok 6 /atomic-rcbox/release-full 3632s # global_point_a = 0x5556aa731970 3632s # global_point_b = 0x5556aa7318a0 3632s ok 7 /atomic-rcbox/dup 3632s ok 8 /atomic-rcbox/alignment 3632s # End of atomic-rcbox tests 3632s ok - glib/rcbox.test 3632s # Running test: glib/collate.test 3632s TAP version 14 3632s # random seed: R02S3c2cca3b1026bb14870c2e6557677b39 3632s 1..9 3632s # Start of unicode tests 3632s # Start of collate tests 3632s ok 1 /unicode/collate/0 3632s ok 2 /unicode/collate/1 3632s ok 3 /unicode/collate/2 3632s # End of collate tests 3632s # Start of collate-key tests 3632s ok 4 /unicode/collate-key/0 3632s ok - glib/collate.test 3632s ok 5 /unicode/collate-key/1 3632s ok 6 /unicode/collate-key/2 3632s # End of collate-key tests 3632s # Start of collate-filename tests 3632s ok 7 /unicode/collate-filename/0 3632s ok 8 /unicode/collate-filename/1 3632s ok 9 /unicode/collate-filename/2 3632s # End of collate-filename tests 3632s # End of unicode tests 3632s # Running test: glib/markup-collect.test 3632s TAP version 14 3632s # random seed: R02S0f27bdd1e9c35da954ace43559777cc3 3632s 1..21 3632s # Start of markup tests 3632s # Start of collect tests 3632s ok 1 /markup/collect/0 3632s ok 2 /markup/collect/1 3632s ok 3 /markup/collect/2 3632s ok 4 /markup/collect/3 3632s ok 5 /markup/collect/4 3632s ok 6 /markup/collect/5 3632s ok 7 /markup/collect/6 3632s ok 8 /markup/collect/7 3632s ok 9 /markup/collect/8 3632s ok 10 /markup/collect/9 3632s ok 11 /markup/collect/10 3632s ok 12 /markup/collect/11 3632s ok 13 /markup/collect/12 3632s ok 14 /markup/collect/13 3632s ok 15 /markup/collect/14 3632s ok 16 /markup/collect/15 3632s ok 17 /markup/collect/16 3632s ok 18 /markup/collect/17 3632s ok 19 /markup/collect/18 3632s ok 20 /markup/collect/19 3632s ok 21 /markup/collect/cleanup 3632s # End of collect tests 3632s # End of markup tests 3632s ok - glib/markup-collect.test 3632s # Running test: glib/reference.test 3632s TAP version 14 3632s # random seed: R02S3ce13cc8691e13fe7baa1c44ea00c2ae 3632s 1..29 3632s # Start of type tests 3632s ok 1 /type/fundamentals 3632s ok 2 /type/qdata 3632s ok 3 /type/query 3632s ok 4 /type/class-private 3632s # End of type tests 3632s # Start of object tests 3632s ok 5 /object/clear 3632s ok 6 /object/clear-function 3632s ok 7 /object/set 3632s ok 8 /object/set-function 3632s ok 9 /object/value 3632s ok 10 /object/initially-unowned 3632s ok 11 /object/weak-pointer 3632s ok 12 /object/weak-ref 3632s ok 13 /object/toggle-ref 3632s ok 14 /object/qdata 3632s ok 15 /object/qdata2 3632s # Start of set tests 3632s # /object/set/derived-type summary: Check that g_set_object() doesn?t give strict aliasing warnings when used on types derived from GObject 3632s ok 16 /object/set/derived-type 3632s # End of set tests 3632s # Start of weak-pointer tests 3632s ok 17 /object/weak-pointer/clear 3632s ok 18 /object/weak-pointer/clear-function 3632s ok 19 /object/weak-pointer/set 3632s ok 20 /object/weak-pointer/set-function 3632s # End of weak-pointer tests 3632s # Start of weak-ref tests 3632s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 3632s # /object/weak-ref/on-dispose summary: Test that a weak ref set during dispose vfunc is cleared 3632s ok 21 /object/weak-ref/on-dispose 3632s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/865 3632s # /object/weak-ref/on-run-dispose summary: Test that a weak ref is cleared on g_object_run_dispose() 3632s ok 22 /object/weak-ref/on-run-dispose 3632s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 3632s # /object/weak-ref/on-toggle-notify summary: Test that a weak ref set on toggle notify is cleared 3632s ok 23 /object/weak-ref/on-toggle-notify 3632s ok 24 /object/weak-ref/in-toggle-notify 3632s ok 25 /object/weak-ref/many 3632s # Start of concurrent tests 3632s ok 26 /object/weak-ref/concurrent/0 3632s ok 27 /object/weak-ref/concurrent/1 3632s # End of concurrent tests 3632s # End of weak-ref tests 3632s # Start of toggle-ref tests 3632s ok 28 /object/toggle-ref/ref-on-dispose 3632s ok 29 /object/toggle-ref/ref-and-notify-on-dispose 3632s # End of toggle-ref tests 3632s # End of object tests 3632s ok - glib/reference.test 3632s # Running test: glib/pattern.test 3632s TAP version 14 3632s # random seed: R02Sae5c0d530159346c85ed178685639672 3632s 1..90 3632s # Start of pattern tests 3632s # Start of compile tests 3632s ok 1 /pattern/compile/0 3632s ok 2 /pattern/compile/1 3632s ok 3 /pattern/compile/2 3632s ok 4 /pattern/compile/3 3632s ok 5 /pattern/compile/4 3632s ok 6 /pattern/compile/5 3632s ok 7 /pattern/compile/6 3632s ok 8 /pattern/compile/7 3632s ok 9 /pattern/compile/8 3632s ok 10 /pattern/compile/9 3632s ok 11 /pattern/compile/10 3632s ok 12 /pattern/compile/11 3632s ok 13 /pattern/compile/12 3632s ok 14 /pattern/compile/13 3632s # End of compile tests 3632s # Start of copy tests 3632s ok 15 /pattern/copy/0 3632s ok 16 /pattern/copy/1 3632s ok 17 /pattern/copy/2 3632s ok 18 /pattern/copy/3 3632s ok 19 /pattern/copy/4 3632s ok 20 /pattern/copy/5 3632s ok 21 /pattern/copy/6 3632s ok 22 /pattern/copy/7 3632s ok 23 /pattern/copy/8 3632s ok 24 /pattern/copy/9 3632s ok 25 /pattern/copy/10 3632s ok 26 /pattern/copy/11 3632s ok 27 /pattern/copy/12 3632s ok 28 /pattern/copy/13 3632s # End of copy tests 3632s # Start of match tests 3632s ok 29 /pattern/match/0 3632s ok 30 /pattern/match/1 3632s ok 31 /pattern/match/2 3632s ok 32 /pattern/match/3 3632s ok 33 /pattern/match/4 3632s ok 34 /pattern/match/5 3632s ok 35 /pattern/match/6 3632s ok 36 /pattern/match/7 3632s ok 37 /pattern/match/8 3632s ok 38 /pattern/match/9 3632s ok 39 /pattern/match/10 3632s ok 40 /pattern/match/11 3632s ok 41 /pattern/match/12 3632s ok 42 /pattern/match/13 3632s ok 43 /pattern/match/14 3632s ok 44 /pattern/match/15 3632s ok 45 /pattern/match/16 3632s ok 46 /pattern/match/17 3632s ok 47 /pattern/match/18 3632s ok 48 /pattern/match/19 3632s ok 49 /pattern/match/20 3632s ok 50 /pattern/match/21 3632s ok 51 /pattern/match/22 3632s ok 52 /pattern/match/23 3632s ok 53 /pattern/match/24 3632s ok 54 /pattern/match/25 3632s ok 55 /pattern/match/26 3632s ok 56 /pattern/match/27 3632s ok 57 /pattern/match/28 3632s ok 58 /pattern/match/29 3632s ok 59 /pattern/match/30 3632s ok 60 /pattern/match/31 3632s ok 61 /pattern/match/32 3632s ok 62 /pattern/match/33 3632s ok 63 /pattern/match/34 3632s ok 64 /pattern/match/35 3632s ok 65 /pattern/match/36 3632s ok 66 /pattern/match/37 3632s ok 67 /pattern/match/38 3632s ok 68 /pattern/match/39 3632s ok 69 /pattern/match/40 3632s ok 70 /pattern/match/41 3632s ok 71 /pattern/match/42 3632s ok 72 /pattern/match/43 3632s ok 73 /pattern/match/44 3632s ok 74 /pattern/match/45 3632s ok 75 /pattern/match/46 3632s ok 76 /pattern/match/47 3632s ok 77 /pattern/match/48 3632s ok 78 /pattern/match/49 3632s ok 79 /pattern/match/50 3632s # End of match tests 3632s # Start of equal tests 3632s ok 80 /pattern/equal/0 3632s ok 81 /pattern/equal/1 3632s ok 82 /pattern/equal/2 3632s ok 83 /pattern/equal/3 3632s ok 84 /pattern/equal/4 3632s ok 85 /pattern/equal/5 3632s ok 86 /pattern/equal/6 3632s ok 87 /pattern/equal/7 3632s ok 88 /pattern/equal/8 3632s ok 89 /pattern/equal/9 3632s ok 90 /pattern/equal/10 3632s # End of equal tests 3632s # End of pattern tests 3632s ok - glib/pattern.test 3632s # Running test: glib/live-g-file.test 3632s TAP version 14 3632s # random seed: R02Scf730f265a3a9e0692b2f21a2b5968f5 3632s 1..13 3632s # Start of live-g-file tests 3632s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_IJ1952/live-g-file/prep_clean_structure/.dirs/home 3632s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/prep_clean_structure/.dirs/cache 3632s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_IJ1952/live-g-file/prep_clean_structure/.dirs/system-config1:/tmp/test_live-g-file_IJ1952/live-g-file/prep_clean_structure/.dirs/system-config2 3632s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/prep_clean_structure/.dirs/config 3632s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_IJ1952/live-g-file/prep_clean_structure/.dirs/system-data1:/tmp/test_live-g-file_IJ1952/live-g-file/prep_clean_structure/.dirs/system-data2 3632s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/prep_clean_structure/.dirs/data 3632s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/prep_clean_structure/.dirs/state 3632s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_IJ1952/live-g-file/prep_clean_structure/.dirs/runtime 3632s # Cleaning target testing structure in '/tmp/test_live-g-file_IJ1952/testdir_live-g-file'... 3632s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 3632s ok 1 /live-g-file/prep_clean_structure 3632s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_IJ1952/live-g-file/create_structure/.dirs/home 3632s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/create_structure/.dirs/cache 3632s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_IJ1952/live-g-file/create_structure/.dirs/system-config1:/tmp/test_live-g-file_IJ1952/live-g-file/create_structure/.dirs/system-config2 3632s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/create_structure/.dirs/config 3632s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_IJ1952/live-g-file/create_structure/.dirs/system-data1:/tmp/test_live-g-file_IJ1952/live-g-file/create_structure/.dirs/system-data2 3632s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/create_structure/.dirs/data 3632s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/create_structure/.dirs/state 3632s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_IJ1952/live-g-file/create_structure/.dirs/runtime 3632s # 3632s # Going to create testing structure in '/tmp/test_live-g-file_IJ1952/testdir_live-g-file'... 3632s # Creating directory 'dir1'... 3632s # Creating directory 'dir1/subdir'... 3632s # Creating directory 'dir2'... 3632s # Creating directory 'dir-target'... 3632s # Creating directory 'dir_no-access'... 3632s # Creating directory 'dir_no-write'... 3632s # Creating file 'target-file'... 3632s # Creating file 'normal_file'... 3632s # Creating symlink 'normal_file-symlink' --> 'normal_file'... 3632s # Creating file 'executable_file'... 3632s # Creating file 'private_file'... 3632s # Creating file 'normal_file2'... 3632s # Creating file 'readonly_file'... 3632s # Creating file 'UTF_pr?i?lis? z'... 3632s # Creating directory 'dir_pr?i?lis? z'... 3632s # Creating symlink 'lost_symlink' --> 'nowhere'... 3632s # Creating directory 'dir_hidden'... 3632s # Creating file 'dir_hidden/.a-hidden-file'... 3632s # Creating file 'dir_hidden/file-in-.hidden1'... 3632s # Creating file 'dir_hidden/file-in-.hidden2'... 3632s # Creating pattern file... 3633s # done. 3633s ok 2 /live-g-file/create_structure 3633s # slow test /live-g-file/create_structure executed in 0.53 secs 3633s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_initial_structure/.dirs/home 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_initial_structure/.dirs/cache 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_IJ1952/live-g-file/test_initial_structure/.dirs/system-config1:/tmp/test_live-g-file_IJ1952/live-g-file/test_initial_structure/.dirs/system-config2 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_initial_structure/.dirs/config 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_IJ1952/live-g-file/test_initial_structure/.dirs/system-data1:/tmp/test_live-g-file_IJ1952/live-g-file/test_initial_structure/.dirs/system-data2 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_initial_structure/.dirs/data 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_initial_structure/.dirs/state 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_IJ1952/live-g-file/test_initial_structure/.dirs/runtime 3633s # Testing sample structure in '/tmp/test_live-g-file_IJ1952/testdir_live-g-file'... 3633s # Testing file 'dir1'... 3633s # Testing file 'dir1/subdir'... 3633s # Testing file 'dir2'... 3633s # Testing file 'dir-target'... 3633s # Testing file 'dir_no-access'... 3633s # Testing file 'dir_no-write'... 3633s # Testing file 'target-file'... 3633s # Testing file 'normal_file'... 3633s # Testing file 'normal_file-symlink'... 3633s # Testing file 'executable_file'... 3633s # Testing file 'private_file'... 3633s # Testing file 'normal_file2'... 3633s # Testing file 'readonly_file'... 3633s # Testing file 'UTF_pr?i?lis? z'... 3633s # Testing file 'dir_pr?i?lis? z'... 3633s # Testing file 'lost_symlink'... 3633s # Testing file 'dir_hidden'... 3633s # Testing file 'dir_hidden/.a-hidden-file'... 3633s # Testing file 'dir_hidden/file-in-.hidden1'... 3633s # Testing file 'dir_hidden/file-in-.hidden2'... 3633s # Testing pattern file... 3633s # read 65536 bytes, total = 65536 of 65536. 3633s ok 3 /live-g-file/test_initial_structure 3633s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_traverse_structure/.dirs/home 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_traverse_structure/.dirs/cache 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_IJ1952/live-g-file/test_traverse_structure/.dirs/system-config1:/tmp/test_live-g-file_IJ1952/live-g-file/test_traverse_structure/.dirs/system-config2 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_traverse_structure/.dirs/config 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_IJ1952/live-g-file/test_traverse_structure/.dirs/system-data1:/tmp/test_live-g-file_IJ1952/live-g-file/test_traverse_structure/.dirs/system-data2 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_traverse_structure/.dirs/data 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_traverse_structure/.dirs/state 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_IJ1952/live-g-file/test_traverse_structure/.dirs/runtime 3633s # Traversing through the sample structure in '/tmp/test_live-g-file_IJ1952/testdir_live-g-file'... 3633s # Found file dir1, relative to root: dir1 3633s # Found file subdir, relative to root: dir1/subdir 3633s # Found file dir2, relative to root: dir2 3633s # Found file dir-target, relative to root: dir-target 3633s # Found file dir_no-access, relative to root: dir_no-access 3633s # Found file dir_no-write, relative to root: dir_no-write 3633s # Found file target-file, relative to root: target-file 3633s # Found file normal_file, relative to root: normal_file 3633s # Found file normal_file-symlink, relative to root: normal_file-symlink 3633s # Found file executable_file, relative to root: executable_file 3633s # Found file private_file, relative to root: private_file 3633s # Found file normal_file2, relative to root: normal_file2 3633s # Found file readonly_file, relative to root: readonly_file 3633s # Found file UTF_pr?i?lis? z, relative to root: UTF_pr?i?lis? z 3633s # Found file dir_pr?i?lis? z, relative to root: dir_pr?i?lis? z 3633s # Found file lost_symlink, relative to root: lost_symlink 3633s # Found file dir_hidden, relative to root: dir_hidden 3633s # Found file .a-hidden-file, relative to root: dir_hidden/.a-hidden-file 3633s # Found file file-in-.hidden1, relative to root: dir_hidden/file-in-.hidden1 3633s # Found file .hidden, relative to root: dir_hidden/.hidden 3633s # Found file file-in-.hidden2, relative to root: dir_hidden/file-in-.hidden2 3633s # Found file pattern_file, relative to root: pattern_file 3633s ok 4 /live-g-file/test_traverse_structure 3633s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_enumerate/.dirs/home 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_enumerate/.dirs/cache 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_IJ1952/live-g-file/test_enumerate/.dirs/system-config1:/tmp/test_live-g-file_IJ1952/live-g-file/test_enumerate/.dirs/system-config2 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_enumerate/.dirs/config 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_IJ1952/live-g-file/test_enumerate/.dirs/system-data1:/tmp/test_live-g-file_IJ1952/live-g-file/test_enumerate/.dirs/system-data2 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_enumerate/.dirs/data 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_enumerate/.dirs/state 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_IJ1952/live-g-file/test_enumerate/.dirs/runtime 3633s # Test enumerate '/tmp/test_live-g-file_IJ1952/testdir_live-g-file'... 3633s # Testing file 'dir_no-access' 3633s # Testing file 'normal_file' 3633s # Testing file 'normal_file-symlink' 3633s # Testing file 'not_exists' 3633s # Testing file 'not_exists' 3633s # Testing file 'not_exists2' 3633s # Testing file 'not_exists3' 3633s # Testing file 'not_exists4' 3633s # Testing file 'dir_no-execute/file' 3633s ok 5 /live-g-file/test_enumerate 3633s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_open/.dirs/home 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_open/.dirs/cache 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_IJ1952/live-g-file/test_open/.dirs/system-config1:/tmp/test_live-g-file_IJ1952/live-g-file/test_open/.dirs/system-config2 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_open/.dirs/config 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_IJ1952/live-g-file/test_open/.dirs/system-data1:/tmp/test_live-g-file_IJ1952/live-g-file/test_open/.dirs/system-data2 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_open/.dirs/data 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_open/.dirs/state 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_IJ1952/live-g-file/test_open/.dirs/runtime 3633s # test_open: 'dir1' 3633s # test_open: 'dir_no-access' 3633s # test_open: 'target-file' 3633s # test_open: 'normal_file-symlink' 3633s # test_open: 'executable_file' 3633s # test_open: 'private_file' 3633s # test_open: 'readonly_file' 3633s # test_open: 'UTF_pr?i?lis? z' 3633s # test_open: 'pattern_file' 3633s # test_open: 'not_exists' 3633s # test_open: 'dir_no-execute/file' 3633s # test_open: 'lost_symlink' 3633s ok 6 /live-g-file/test_open 3633s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_create/.dirs/home 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_create/.dirs/cache 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_IJ1952/live-g-file/test_create/.dirs/system-config1:/tmp/test_live-g-file_IJ1952/live-g-file/test_create/.dirs/system-config2 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_create/.dirs/config 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_IJ1952/live-g-file/test_create/.dirs/system-data1:/tmp/test_live-g-file_IJ1952/live-g-file/test_create/.dirs/system-data2 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_create/.dirs/data 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_create/.dirs/state 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_IJ1952/live-g-file/test_create/.dirs/runtime 3633s # test_create: 'dir1' 3633s # error code 3 = Error opening file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/dir1?: Is a directory 3633s # test_create: 'dir1/subdir' 3633s # error code 3 = Error opening file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/dir1/subdir?: Is a directory 3633s # test_create: 'dir2' 3633s # error code 2 = Error opening file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/dir2?: File exists 3633s # test_create: 'normal_file' 3633s # error code 2 = Error opening file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/normal_file?: File exists 3633s # test_create: 'executable_file' 3633s # test_create: 'private_file' 3633s # test_create: 'normal_file2' 3633s # test_create: 'UTF_pr?i?lis? z' 3633s # error code 2 = Error opening file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/UTF_pr?i?lis? z?: File exists 3633s # test_create: 'dir_pr?i?lis? z' 3633s # error code 2 = Error opening file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/dir_pr?i?lis? z?: File exists 3633s # test_create: 'pattern_file' 3633s # test_create: 'not_exists2' 3633s # test_create: 'not_exists3' 3633s # test_create: 'not_exists4' 3633s ok 7 /live-g-file/test_create 3633s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_copy_move/.dirs/home 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_copy_move/.dirs/cache 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_IJ1952/live-g-file/test_copy_move/.dirs/system-config1:/tmp/test_live-g-file_IJ1952/live-g-file/test_copy_move/.dirs/system-config2 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_copy_move/.dirs/config 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_IJ1952/live-g-file/test_copy_move/.dirs/system-data1:/tmp/test_live-g-file_IJ1952/live-g-file/test_copy_move/.dirs/system-data2 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_copy_move/.dirs/data 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_copy_move/.dirs/state 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_IJ1952/live-g-file/test_copy_move/.dirs/runtime 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'dir1/subdir' --> 'dir-target' 3633s # res = 0, error code 25 = Can?t recursively copy directory 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'dir1/subdir' --> '.' 3633s # res = 0, error code 2 = Target file exists 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'dir1/subdir' --> 'target-file' 3633s # res = 0, error code 4 = Error when getting information for file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/target-file/dir1/subdir?: Not a directory 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'dir1/subdir' --> 'not_exists' 3633s # res = 0, error code 25 = Can?t recursively copy directory 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'dir1/subdir' --> 'dir_no-access' 3633s # res = 0, error code 25 = Can?t recursively copy directory 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'dir1/subdir' --> 'dir_no-write' 3633s # res = 0, error code 25 = Can?t recursively copy directory 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'dir2' --> 'dir-target' 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'dir-target' --> 'dir-target' 3633s # res = 0, error code 25 = Can?t recursively copy directory 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'dir-target' --> '.' 3633s # res = 0, error code 2 = Target file exists 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'dir-target' --> 'target-file' 3633s # res = 0, error code 4 = Error when getting information for file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/target-file/dir-target?: Not a directory 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'dir-target' --> 'not_exists' 3633s # res = 0, error code 25 = Can?t recursively copy directory 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'dir-target' --> 'dir_no-access' 3633s # res = 0, error code 25 = Can?t recursively copy directory 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'dir-target' --> 'dir_no-write' 3633s # res = 0, error code 25 = Can?t recursively copy directory 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'target-file' --> 'dir-target' 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'target-file' --> '.' 3633s # res = 0, error code 2 = Error opening file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/target-file?: File exists 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'target-file' --> 'target-file' 3633s # res = 0, error code 4 = Error opening file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/target-file/target-file?: Not a directory 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'target-file' --> 'not_exists' 3633s # res = 0, error code 1 = Error opening file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/not_exists/target-file?: No such file or directory 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'target-file' --> 'dir_no-access' 3633s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/dir_no-access/target-file?: Permission denied 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'target-file' --> 'dir_no-write' 3633s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/dir_no-write/target-file?: Permission denied 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'normal_file-symlink' --> 'dir-target' 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'normal_file-symlink' --> '.' 3633s # res = 0, error code 2 = Error making symbolic link /tmp/test_live-g-file_IJ1952/testdir_live-g-file/normal_file-symlink: File exists 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'normal_file-symlink' --> 'target-file' 3633s # res = 0, error code 4 = Error making symbolic link /tmp/test_live-g-file_IJ1952/testdir_live-g-file/target-file/normal_file-symlink: Not a directory 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'normal_file-symlink' --> 'not_exists' 3633s # res = 0, error code 1 = Error making symbolic link /tmp/test_live-g-file_IJ1952/testdir_live-g-file/not_exists/normal_file-symlink: No such file or directory 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'normal_file-symlink' --> 'dir_no-access' 3633s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_IJ1952/testdir_live-g-file/dir_no-access/normal_file-symlink: Permission denied 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'normal_file-symlink' --> 'dir_no-write' 3633s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_IJ1952/testdir_live-g-file/dir_no-write/normal_file-symlink: Permission denied 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'executable_file' --> 'dir-target' 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'executable_file' --> 'dir-target' 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'executable_file' --> '.' 3633s # res = 0, error code 2 = Error opening file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/executable_file?: File exists 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'executable_file' --> 'target-file' 3633s # res = 0, error code 4 = Error opening file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/target-file/executable_file?: Not a directory 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'executable_file' --> 'not_exists' 3633s # res = 0, error code 1 = Error opening file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/not_exists/executable_file?: No such file or directory 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'executable_file' --> 'dir_no-access' 3633s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/dir_no-access/executable_file?: Permission denied 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'executable_file' --> 'dir_no-write' 3633s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/dir_no-write/executable_file?: Permission denied 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'private_file' --> 'dir-target' 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'private_file' --> 'dir-target' 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'private_file' --> '.' 3633s # res = 0, error code 2 = Error opening file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/private_file?: File exists 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'private_file' --> 'target-file' 3633s # res = 0, error code 4 = Error opening file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/target-file/private_file?: Not a directory 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'private_file' --> 'not_exists' 3633s # res = 0, error code 1 = Error opening file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/not_exists/private_file?: No such file or directory 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'private_file' --> 'dir_no-access' 3633s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/dir_no-access/private_file?: Permission denied 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'private_file' --> 'dir_no-write' 3633s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/dir_no-write/private_file?: Permission denied 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'normal_file2' --> 'dir-target' 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'normal_file2' --> 'dir-target' 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'normal_file2' --> '.' 3633s # res = 0, error code 2 = Error opening file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/normal_file2?: File exists 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'normal_file2' --> 'target-file' 3633s # res = 0, error code 4 = Error opening file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/target-file/normal_file2?: Not a directory 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'normal_file2' --> 'not_exists' 3633s # res = 0, error code 1 = Error opening file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/not_exists/normal_file2?: No such file or directory 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'normal_file2' --> 'dir_no-access' 3633s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/dir_no-access/normal_file2?: Permission denied 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'normal_file2' --> 'dir_no-write' 3633s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/dir_no-write/normal_file2?: Permission denied 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'UTF_pr?i?lis? z' --> 'dir-target' 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'UTF_pr?i?lis? z' --> 'dir-target' 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'UTF_pr?i?lis? z' --> '.' 3633s # res = 0, error code 2 = Error opening file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/UTF_pr?i?lis? z?: File exists 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'UTF_pr?i?lis? z' --> 'target-file' 3633s # res = 0, error code 4 = Error opening file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/target-file/UTF_pr?i?lis? z?: Not a directory 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'UTF_pr?i?lis? z' --> 'not_exists' 3633s # res = 0, error code 1 = Error opening file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/not_exists/UTF_pr?i?lis? z?: No such file or directory 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'UTF_pr?i?lis? z' --> 'dir_no-access' 3633s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/dir_no-access/UTF_pr?i?lis? z?: Permission denied 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'UTF_pr?i?lis? z' --> 'dir_no-write' 3633s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/dir_no-write/UTF_pr?i?lis? z?: Permission denied 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'pattern_file' --> 'dir-target' 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'pattern_file' --> '.' 3633s # res = 0, error code 2 = Error opening file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/pattern_file?: File exists 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'pattern_file' --> 'target-file' 3633s # res = 0, error code 4 = Error opening file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/target-file/pattern_file?: Not a directory 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'pattern_file' --> 'not_exists' 3633s # res = 0, error code 1 = Error opening file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/not_exists/pattern_file?: No such file or directory 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'pattern_file' --> 'dir_no-access' 3633s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/dir_no-access/pattern_file?: Permission denied 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'pattern_file' --> 'dir_no-write' 3633s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/dir_no-write/pattern_file?: Permission denied 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'not_exists' --> 'dir-target' 3633s # res = 0, error code 1 = Error when getting information for file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/not_exists?: No such file or directory 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'not_exists' --> '.' 3633s # res = 0, error code 1 = Error when getting information for file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/not_exists?: No such file or directory 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'not_exists' --> 'target-file' 3633s # res = 0, error code 1 = Error when getting information for file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/not_exists?: No such file or directory 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'not_exists' --> 'not_exists' 3633s # res = 0, error code 1 = Error when getting information for file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/not_exists?: No such file or directory 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'not_exists' --> 'dir_no-access' 3633s # res = 0, error code 1 = Error when getting information for file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/not_exists?: No such file or directory 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'not_exists' --> 'dir_no-write' 3633s # res = 0, error code 1 = Error when getting information for file ?/tmp/test_live-g-file_IJ1952/testdir_live-g-file/not_exists?: No such file or directory 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'not_exists' --> 'dir-target' 3633s # res = 0, error code 1 = Error moving file /tmp/test_live-g-file_IJ1952/testdir_live-g-file/not_exists: No such file or directory 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'lost_symlink' --> 'dir-target' 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'lost_symlink' --> '.' 3633s # res = 0, error code 2 = Error making symbolic link /tmp/test_live-g-file_IJ1952/testdir_live-g-file/lost_symlink: File exists 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'lost_symlink' --> 'target-file' 3633s # res = 0, error code 4 = Error making symbolic link /tmp/test_live-g-file_IJ1952/testdir_live-g-file/target-file/lost_symlink: Not a directory 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'lost_symlink' --> 'not_exists' 3633s # res = 0, error code 1 = Error making symbolic link /tmp/test_live-g-file_IJ1952/testdir_live-g-file/not_exists/lost_symlink: No such file or directory 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'lost_symlink' --> 'dir_no-access' 3633s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_IJ1952/testdir_live-g-file/dir_no-access/lost_symlink: Permission denied 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s # do_copy_move: 'lost_symlink' --> 'dir_no-write' 3633s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_IJ1952/testdir_live-g-file/dir_no-write/lost_symlink: Permission denied 3633s ok 8 /live-g-file/test_copy_move 3633s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_delete/.dirs/home 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_delete/.dirs/cache 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_IJ1952/live-g-file/test_delete/.dirs/system-config1:/tmp/test_live-g-file_IJ1952/live-g-file/test_delete/.dirs/system-config2 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_delete/.dirs/config 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_IJ1952/live-g-file/test_delete/.dirs/system-data1:/tmp/test_live-g-file_IJ1952/live-g-file/test_delete/.dirs/system-data2 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_delete/.dirs/data 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_delete/.dirs/state 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_IJ1952/live-g-file/test_delete/.dirs/runtime 3633s # Deleting dir1, path = /tmp/test_live-g-file_IJ1952/testdir_live-g-file/dir1 3633s # result = 0, error = Error removing file /tmp/test_live-g-file_IJ1952/testdir_live-g-file/dir1: Directory not empty 3633s # Deleting dir2, path = /tmp/test_live-g-file_IJ1952/testdir_live-g-file/dir2 3633s # result = 0, error = Error removing file /tmp/test_live-g-file_IJ1952/testdir_live-g-file/dir2: No such file or directory 3633s # Deleting executable_file, path = /tmp/test_live-g-file_IJ1952/testdir_live-g-file/executable_file 3633s # result = 0, error = Error trashing file /tmp/test_live-g-file_IJ1952/testdir_live-g-file/executable_file: No such file or directory 3633s # Deleting readonly_file, path = /tmp/test_live-g-file_IJ1952/testdir_live-g-file/readonly_file 3633s # Deleting dir_pr?i?lis? z, path = /tmp/test_live-g-file_IJ1952/testdir_live-g-file/dir_pr?i?lis? z 3633s # Deleting not_exists, path = /tmp/test_live-g-file_IJ1952/testdir_live-g-file/not_exists 3633s # result = 0, error = Error removing file /tmp/test_live-g-file_IJ1952/testdir_live-g-file/not_exists: No such file or directory 3633s # Deleting not_exists, path = /tmp/test_live-g-file_IJ1952/testdir_live-g-file/not_exists 3633s # result = 0, error = Error trashing file /tmp/test_live-g-file_IJ1952/testdir_live-g-file/not_exists: No such file or directory 3633s # Deleting dir_no-execute/file, path = /tmp/test_live-g-file_IJ1952/testdir_live-g-file/dir_no-execute/file 3633s # result = 0, error = Error removing file /tmp/test_live-g-file_IJ1952/testdir_live-g-file/dir_no-execute/file: No such file or directory 3633s # Deleting lost_symlink, path = /tmp/test_live-g-file_IJ1952/testdir_live-g-file/lost_symlink 3633s ok 9 /live-g-file/test_delete 3633s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_make_directory_with_parents/.dirs/home 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_make_directory_with_parents/.dirs/cache 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_IJ1952/live-g-file/test_make_directory_with_parents/.dirs/system-config1:/tmp/test_live-g-file_IJ1952/live-g-file/test_make_directory_with_parents/.dirs/system-config2 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_make_directory_with_parents/.dirs/config 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_IJ1952/live-g-file/test_make_directory_with_parents/.dirs/system-data1:/tmp/test_live-g-file_IJ1952/live-g-file/test_make_directory_with_parents/.dirs/system-data2 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_make_directory_with_parents/.dirs/data 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_make_directory_with_parents/.dirs/state 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_IJ1952/live-g-file/test_make_directory_with_parents/.dirs/runtime 3633s # We do not have CAP_DAC_OVERRIDE or equivalent 3633s ok 10 /live-g-file/test_make_directory_with_parents 3633s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_IJ1952/live-g-file/final_clean/.dirs/home 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/final_clean/.dirs/cache 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_IJ1952/live-g-file/final_clean/.dirs/system-config1:/tmp/test_live-g-file_IJ1952/live-g-file/final_clean/.dirs/system-config2 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/final_clean/.dirs/config 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_IJ1952/live-g-file/final_clean/.dirs/system-data1:/tmp/test_live-g-file_IJ1952/live-g-file/final_clean/.dirs/system-data2 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/final_clean/.dirs/data 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/final_clean/.dirs/state 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_IJ1952/live-g-file/final_clean/.dirs/runtime 3633s # Cleaning target testing structure in '/tmp/test_live-g-file_IJ1952/testdir_live-g-file'... 3633s # deleting 'dir1' 3633s # deleting 'subdir' 3633s # deleting 'dir-target' 3633s # deleting 'dir2' 3633s # deleting 'target-file' 3633s # deleting 'normal_file-symlink' 3633s # deleting 'pattern_file' 3633s # deleting 'executable_file' 3633s # deleting 'private_file' 3633s # deleting 'normal_file2' 3633s # deleting 'UTF_pr?i?lis? z' 3633s # deleting 'lost_symlink' 3633s # deleting 'dir_no-access' 3633s # deleting 'dir_no-write' 3633s # deleting 'target-file' 3633s # deleting 'normal_file' 3633s # deleting 'normal_file-symlink' 3633s # deleting 'executable_file~' 3633s # deleting 'private_file' 3633s # deleting 'normal_file2~' 3633s # deleting 'a' 3633s # deleting 'UTF_pr?i?lis? z' 3633s # deleting 'dir_hidden' 3633s # deleting '.a-hidden-file' 3633s # deleting 'file-in-.hidden1' 3633s # deleting '.hidden' 3633s # deleting 'file-in-.hidden2' 3633s # deleting 'pattern_file' 3633s # deleting 'executable_file' 3633s # deleting 'normal_file2' 3633s # deleting 'not_exists2' 3633s # deleting 'not_exists3' 3633s # deleting 'not_exists4' 3633s ok 11 /live-g-file/final_clean 3633s # Start of test_unix_is_mountpoint tests 3633s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/home 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/cache 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_IJ1952/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-config1:/tmp/test_live-g-file_IJ1952/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-config2 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/config 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_IJ1952/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-data1:/tmp/test_live-g-file_IJ1952/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-data2 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/data 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/state 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_IJ1952/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/runtime 3633s ok 12 /live-g-file/test_unix_is_mountpoint/sysroot 3633s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_unix_is_mountpoint/proc/.dirs/home 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_unix_is_mountpoint/proc/.dirs/cache 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_IJ1952/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-config1:/tmp/test_live-g-file_IJ1952/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-config2 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_unix_is_mountpoint/proc/.dirs/config 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_IJ1952/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-data1:/tmp/test_live-g-file_IJ1952/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-data2 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_unix_is_mountpoint/proc/.dirs/data 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_IJ1952/live-g-file/test_unix_is_mountpoint/proc/.dirs/state 3633s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_IJ1952/live-g-file/test_unix_is_mountpoint/proc/.dirs/runtime 3633s ok 13 /live-g-file/test_unix_is_mountpoint/proc 3633s # End of test_unix_is_mountpoint tests 3633s # End of live-g-file tests 3633s ok - glib/live-g-file.test 3633s # Running test: glib/signals.test 3633s TAP version 14 3633s # random seed: R02S55043d06b08b616ece15a959278dad4d 3633s 1..31 3633s # Start of gobject tests 3633s # Start of signals tests 3633s ok 1 /gobject/signals/all-types 3633s ok 2 /gobject/signals/variant 3633s ok 3 /gobject/signals/destroy-target-object 3633s ok 4 /gobject/signals/generic-marshaller-1 3633s ok 5 /gobject/signals/generic-marshaller-2 3633s ok 6 /gobject/signals/generic-marshaller-enum-return-signed 3633s ok 7 /gobject/signals/generic-marshaller-enum-return-unsigned 3633s ok 8 /gobject/signals/generic-marshaller-int-return 3633s ok 9 /gobject/signals/generic-marshaller-uint-return 3633s ok 10 /gobject/signals/generic-marshaller-interface-return 3633s ok 11 /gobject/signals/custom-marshaller 3633s ok 12 /gobject/signals/connect 3633s ok 13 /gobject/signals/emission-hook 3633s ok 14 /gobject/signals/emitv 3633s ok 15 /gobject/signals/accumulator 3633s # Signal: accumulator-class-first 3633s # Signal: accumulator-class-last 3633s # Signal: accumulator-class-cleanup 3633s # Signal: accumulator-class-first-last 3633s # Signal: accumulator-class-first-last-cleanup 3633s # Signal: accumulator-class-last-cleanup 3633s ok 16 /gobject/signals/accumulator-class 3633s ok 17 /gobject/signals/introspection 3633s ok 18 /gobject/signals/block-handler 3633s ok 19 /gobject/signals/stop-emission 3633s ok 20 /gobject/signals/invocation-hint 3633s ok 21 /gobject/signals/test-disconnection-wrong-object 3633s ok 22 /gobject/signals/clear-signal-handler 3633s # /gobject/signals/lookup summary: Test that g_signal_lookup() works with a variety of inputs. 3633s ok 23 /gobject/signals/lookup 3633s # /gobject/signals/parse-name summary: Test that g_signal_parse_name() works with a variety of inputs. 3633s ok 24 /gobject/signals/parse-name 3633s ok 25 /gobject/signals/is-valid-name 3633s ok 26 /gobject/signals/weak-ref-disconnect 3633s # Start of lookup tests 3633s # /gobject/signals/lookup/invalid summary: Test that g_signal_lookup() emits a warning if looking up an invalid signal name. 3633s ok 27 /gobject/signals/lookup/invalid 3633s # End of lookup tests 3633s # Start of parse-name tests 3633s # /gobject/signals/parse-name/invalid summary: Test that g_signal_parse_name() ignores a variety of invalid inputs. 3633s # Parser input: 3633s # Parser input: 7zip 3633s # Parser input: invalid:signal 3633s # Parser input: simple-detailed:: 3633s # Parser input: simple-detailed: 3633s # Parser input: : 3633s # Parser input: :: 3633s # Parser input: :valid-detail 3633s # Parser input: ::valid-detail 3633s ok 28 /gobject/signals/parse-name/invalid 3633s # End of parse-name tests 3633s # Start of invalid-name tests 3633s # /gobject/signals/invalid-name/colon summary: Check that g_signal_new() rejects invalid signal names. 3634s ok 29 /gobject/signals/invalid-name/colon 3634s # /gobject/signals/invalid-name/first-char summary: Check that g_signal_new() rejects invalid signal names. 3634s ok 30 /gobject/signals/invalid-name/first-char 3634s # /gobject/signals/invalid-name/empty summary: Check that g_signal_new() rejects invalid signal names. 3634s ok 31 /gobject/signals/invalid-name/empty 3634s # End of invalid-name tests 3634s # End of signals tests 3634s # End of gobject tests 3634s ok - glib/signals.test 3634s # Running test: glib/autoptr-gio.test 3634s # Executing: glib/autoptr-gio.test 3634s TAP version 14 3634s # random seed: R02Scd3906a8a3f68dc553b2182bcdd7fca2 3634s 1..1 3634s # Start of autoptr tests 3634s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 3634s ok 1 /autoptr/autoptr 3634s # End of autoptr tests 3634s ok - glib/autoptr-gio.test 3634s # Running test: glib/signalgroup.test 3634s TAP version 14 3634s # random seed: R02S77465eee9b66c17fa24d7776458bddb6 3634s 1..9 3634s # Start of GObject tests 3634s # Start of SignalGroup tests 3634s ok 1 /GObject/SignalGroup/invalid 3634s ok 2 /GObject/SignalGroup/simple 3634s ok 3 /GObject/SignalGroup/changing-target 3634s ok 4 /GObject/SignalGroup/blocking 3634s ok 5 /GObject/SignalGroup/weak-ref-target 3634s ok 6 /GObject/SignalGroup/connect-object 3634s ok 7 /GObject/SignalGroup/signal-parsing 3634s ok 8 /GObject/SignalGroup/properties 3634s ok 9 /GObject/SignalGroup/interface 3634s # Start of signal-parsing tests 3634s # End of signal-parsing tests 3634s # End of SignalGroup tests 3634s # End of GObject tests 3634s ok - glib/signalgroup.test 3634s # Running test: glib/signals-refcount3.test 3634s TAP version 14 3634s # random seed: R02S3c75680a00e0dfc901c239bfc26a86e4 3634s 1..1 3634s # Start of gobject tests 3634s # Start of refcount tests 3634s # init 0x55557bed9dc0 3634s # 3634s # init 0x55557bed6310 3634s # 3639s # Executing: glib/signals-refcount3.test 3639s # dispose 0x55557bed9dc0! 3639s # 3639s # dispose 0x55557bed6310! 3639s # 3639s ok 1 /gobject/refcount/signals 3639s ok - glib/signals-refcount3.test 3639s # slow test /gobject/refcount/signals executed in 5.02 secs 3639s # End of refcount tests 3639s # End of gobject tests 3639s # Running test: glib/unix-mounts.test 3639s TAP version 14 3639s # random seed: R02Sfa3ab0d08688f3b0ca493fcae693bb36 3639s 1..4 3639s # Start of unix-mounts tests 3639s ok 1 /unix-mounts/is-system-fs-type 3639s ok 2 /unix-mounts/is-system-device-path 3639s # /unix-mounts/get-mount-points summary: Basic test of g_unix_mount_points_get_from_file() 3639s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 3639s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 3639s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 3639s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 3639s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 3639s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 3639s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 3639s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 3639s ok 3 /unix-mounts/get-mount-points 3639s # /unix-mounts/get-mount-entries summary: Basic test of g_unix_mounts_get_from_file() 3639s ok 4 /unix-mounts/get-mount-entries 3639s # End of unix-mounts tests 3639s ok - glib/unix-mounts.test 3639s # Running test: glib/memory-monitor-dbus.test 3642s TAP version 13 3642s ok 1 __main__.TestLowMemoryMonitor.test_low_memory_warning_signal # SKIP https://bugs.debian.org/995178 3642s 1..1 3642s ok - glib/memory-monitor-dbus.test 3642s # Running test: glib/completion.test 3642s TAP version 14 3642s # random seed: R02S2da3b46200ae135ddab6061003ce3d69 3642s 1..1 3642s # Start of completion tests 3642s ok 1 /completion/test-completion 3642s # End of completion tests 3642s ok - glib/completion.test 3642s # Running test: glib/shell.test 3642s TAP version 14 3642s # random seed: R02Sa27cd2c2da3d59ed63d0c1924ca9c5b4 3642s 1..51 3642s # Start of shell tests 3642s # Start of cmdline tests 3642s test cmdline: foo bar 3642s ok 1 /shell/cmdline/0 3642s test cmdline: foo 'bar' 3642s ok 2 /shell/cmdline/1 3642s test cmdline: foo "bar" 3642s ok 3 /shell/cmdline/2 3642s test cmdline: foo '' 'bar' 3642s ok 4 /shell/cmdline/3 3642s test cmdline: foo "bar"'baz'blah'foo'\''blah'"boo" 3642s ok 5 /shell/cmdline/4 3642s test cmdline: foo blah foo bar baz 3642s ok 6 /shell/cmdline/5 3642s test cmdline: foo ' spaces more spaces lots of spaces in this ' 3642s ok 7 /shell/cmdline/6 3642s test cmdline: foo \ 3642s bar 3642s ok 8 /shell/cmdline/7 3642s test cmdline: foo '' '' 3642s ok 9 /shell/cmdline/8 3642s test cmdline: foo \" la la la 3642s ok 10 /shell/cmdline/9 3642s test cmdline: foo \ foo woo woo\ 3642s ok 11 /shell/cmdline/10 3642s test cmdline: foo "yada yada \$\"" 3642s ok 12 /shell/cmdline/11 3642s test cmdline: foo "c:\\" 3642s ok 13 /shell/cmdline/12 3642s test cmdline: foo # bla bla bla 3642s bar 3642s ok 14 /shell/cmdline/13 3642s test cmdline: foo a#b 3642s ok 15 /shell/cmdline/14 3642s test cmdline: #foo 3642s ok 16 /shell/cmdline/15 3642s test cmdline: foo bar \ 3642s ok 17 /shell/cmdline/16 3642s test cmdline: foo 'bar baz 3642s ok 18 /shell/cmdline/17 3642s test cmdline: foo '"bar" baz 3642s ok 19 /shell/cmdline/18 3642s test cmdline: 3642s ok 20 /shell/cmdline/19 3642s test cmdline: 3642s ok 21 /shell/cmdline/20 3642s test cmdline: # foo bar 3642s ok 22 /shell/cmdline/21 3642s test cmdline: foo '/bar/summer'\''09 tours.pdf' 3642s ok 23 /shell/cmdline/22 3642s # End of cmdline tests 3642s # Start of quote tests 3642s ok 24 /shell/quote/0 3642s ok 25 /shell/quote/1 3642s ok 26 /shell/quote/2 3642s ok 27 /shell/quote/3 3642s ok 28 /shell/quote/4 3642s ok 29 /shell/quote/5 3642s ok 30 /shell/quote/6 3642s # End of quote tests 3642s # Start of unquote tests 3642s ok 31 /shell/unquote/0 3642s ok 32 /shell/unquote/1 3642s ok 33 /shell/unquote/2 3642s ok 34 /shell/unquote/3 3642s ok 35 /shell/unquote/4 3642s ok 36 /shell/unquote/5 3642s ok 37 /shell/unquote/6 3642s ok 38 /shell/unquote/7 3642s ok 39 /shell/unquote/8 3642s ok 40 /shell/unquote/9 3642s ok 41 /shell/unquote/10 3642s ok 42 /shell/unquote/11 3642s ok 43 /shell/unquote/12 3642s ok 44 /shell/unquote/13 3642s ok 45 /shell/unquote/14 3642s ok 46 /shell/unquote/15 3642s ok 47 /shell/unquote/16 3642s ok 48 /shell/unquote/17 3642s ok 49 /shell/unquote/18 3642s ok 50 /shell/unquote/19 3642s ok 51 /shell/unquote/20 3642s # End of unquote tests 3642s # End of shell tests 3642s ok - glib/shell.test 3642s # Running test: glib/regex.test 3642s TAP version 14 3642s # random seed: R02Sd485b39e8b7af98505c1f281e1f4b3ba 3642s 1..848 3642s # Start of regex tests 3643s ok 1 /regex/properties 3643s ok 2 /regex/class 3643s ok 3 /regex/lookahead 3643s ok 4 /regex/lookbehind 3643s ok 5 /regex/subpattern 3643s ok 6 /regex/condition 3643s ok 7 /regex/recursion 3643s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=640489 3643s ok 8 /regex/multiline 3643s ok 9 /regex/explicit-crlf 3643s ok 10 /regex/max-lookbehind 3643s ok 11 /regex/compile-errors 3643s ok 12 /regex/jit-unsupported-matching 3643s # /regex/unmatched-named-subpattern summary: Test that unmatched subpatterns can still be queried 3643s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2881 3643s ok 13 /regex/unmatched-named-subpattern 3643s # /regex/compiled-regex-after-jit-failure summary: Test that failed OPTIMIZE regex doesn't cause issues on subsequent matches 3643s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2824 3643s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 3643s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 3644s # Executing: glib/regex.test 3644s ok 14 /regex/compiled-regex-after-jit-failure 3644s # slow test /regex/compiled-regex-after-jit-failure executed in 1.66 secs 3644s # Start of new tests 3644s ok 15 /regex/new/1 3644s ok 16 /regex/new/2 3644s ok 17 /regex/new/3 3644s ok 18 /regex/new/4 3644s ok 19 /regex/new/5 3644s ok 20 /regex/new/6 3644s ok 21 /regex/new/7 3644s ok 22 /regex/new/8 3644s ok 23 /regex/new/9 3644s ok 24 /regex/new/10 3644s ok 25 /regex/new/11 3644s ok 26 /regex/new/12 3644s ok 27 /regex/new/13 3644s ok 28 /regex/new/14 3644s ok 29 /regex/new/15 3644s ok 30 /regex/new/16 3644s ok 31 /regex/new/17 3644s ok 32 /regex/new/18 3644s ok 33 /regex/new/19 3644s ok 34 /regex/new/71 3644s ok 35 /regex/new/80 3644s ok 36 /regex/new/82 3644s # End of new tests 3644s # Start of new-check-flags tests 3644s ok 37 /regex/new-check-flags/20 3644s ok 38 /regex/new-check-flags/21 3644s ok 39 /regex/new-check-flags/22 3644s ok 40 /regex/new-check-flags/23 3644s ok 41 /regex/new-check-flags/24 3644s ok 42 /regex/new-check-flags/25 3644s ok 43 /regex/new-check-flags/26 3644s ok 44 /regex/new-check-flags/27 3644s ok 45 /regex/new-check-flags/28 3644s ok 46 /regex/new-check-flags/29 3644s ok 47 /regex/new-check-flags/30 3644s ok 48 /regex/new-check-flags/31 3644s ok 49 /regex/new-check-flags/32 3644s ok 50 /regex/new-check-flags/33 3644s ok 51 /regex/new-check-flags/34 3644s ok 52 /regex/new-check-flags/35 3644s ok 53 /regex/new-check-flags/36 3644s # End of new-check-flags tests 3644s # Start of new-fail tests 3644s ok 54 /regex/new-fail/37 3644s ok 55 /regex/new-fail/38 3644s ok 56 /regex/new-fail/39 3644s ok 57 /regex/new-fail/40 3644s ok 58 /regex/new-fail/41 3644s ok 59 /regex/new-fail/42 3644s ok 60 /regex/new-fail/43 3644s ok 61 /regex/new-fail/44 3644s ok 62 /regex/new-fail/45 3644s ok 63 /regex/new-fail/46 3644s ok 64 /regex/new-fail/47 3644s ok 65 /regex/new-fail/48 3644s ok 66 /regex/new-fail/49 3644s ok 67 /regex/new-fail/50 3644s ok 68 /regex/new-fail/51 3644s ok 69 /regex/new-fail/52 3644s ok 70 /regex/new-fail/53 3644s ok 71 /regex/new-fail/54 3644s ok 72 /regex/new-fail/55 3644s ok 73 /regex/new-fail/56 3644s ok 74 /regex/new-fail/57 3644s ok 75 /regex/new-fail/58 3644s ok 76 /regex/new-fail/59 3644s ok 77 /regex/new-fail/60 3644s ok 78 /regex/new-fail/61 3644s ok 79 /regex/new-fail/62 3644s ok 80 /regex/new-fail/63 3644s ok 81 /regex/new-fail/64 3644s ok 82 /regex/new-fail/65 3644s ok 83 /regex/new-fail/66 3644s ok 84 /regex/new-fail/67 3644s ok 85 /regex/new-fail/68 3644s ok 86 /regex/new-fail/69 3644s ok 87 /regex/new-fail/70 3644s ok 88 /regex/new-fail/72 3644s ok 89 /regex/new-fail/73 3644s ok 90 /regex/new-fail/74 3644s ok 91 /regex/new-fail/75 3644s ok 92 /regex/new-fail/76 3644s ok 93 /regex/new-fail/77 3644s ok 94 /regex/new-fail/78 3644s ok 95 /regex/new-fail/79 3644s ok 96 /regex/new-fail/81 3644s ok 97 /regex/new-fail/83 3644s ok 98 /regex/new-fail/84 3644s ok 99 /regex/new-fail/85 3644s ok 100 /regex/new-fail/86 3644s ok 101 /regex/new-fail/87 3644s ok 102 /regex/new-fail/88 3644s ok 103 /regex/new-fail/89 3644s ok 104 /regex/new-fail/90 3644s ok 105 /regex/new-fail/91 3644s # End of new-fail tests 3644s # Start of match-simple tests 3644s ok 106 /regex/match-simple/92 3644s ok 107 /regex/match-simple/93 3644s ok 108 /regex/match-simple/94 3644s ok 109 /regex/match-simple/95 3644s ok 110 /regex/match-simple/96 3644s ok 111 /regex/match-simple/97 3644s ok 112 /regex/match-simple/98 3644s ok 113 /regex/match-simple/99 3644s ok 114 /regex/match-simple/100 3644s ok 115 /regex/match-simple/101 3644s ok 116 /regex/match-simple/102 3644s ok 117 /regex/match-simple/103 3644s ok 118 /regex/match-simple/104 3644s ok 119 /regex/match-simple/105 3644s ok 120 /regex/match-simple/106 3644s ok 121 /regex/match-simple/107 3644s ok 122 /regex/match-simple/108 3644s ok 123 /regex/match-simple/109 3644s ok 124 /regex/match-simple/110 3644s ok 125 /regex/match-simple/111 3644s ok 126 /regex/match-simple/112 3644s ok 127 /regex/match-simple/113 3644s ok 128 /regex/match-simple/114 3644s ok 129 /regex/match-simple/115 3644s ok 130 /regex/match-simple/116 3644s ok 131 /regex/match-simple/117 3644s ok 132 /regex/match-simple/118 3644s ok 133 /regex/match-simple/119 3644s ok 134 /regex/match-simple/120 3644s ok 135 /regex/match-simple/121 3644s ok 136 /regex/match-simple/122 3644s ok 137 /regex/match-simple/123 3644s ok 138 /regex/match-simple/124 3644s ok 139 /regex/match-simple/125 3644s ok 140 /regex/match-simple/126 3644s ok 141 /regex/match-simple/127 3644s ok 142 /regex/match-simple/128 3644s ok 143 /regex/match-simple/129 3644s ok 144 /regex/match-simple/130 3644s ok 145 /regex/match-simple/131 3644s ok 146 /regex/match-simple/132 3644s ok 147 /regex/match-simple/133 3644s ok 148 /regex/match-simple/134 3644s ok 149 /regex/match-simple/135 3644s ok 150 /regex/match-simple/136 3644s ok 151 /regex/match-simple/137 3644s ok 152 /regex/match-simple/138 3644s ok 153 /regex/match-simple/139 3644s ok 154 /regex/match-simple/140 3644s ok 155 /regex/match-simple/141 3644s ok 156 /regex/match-simple/142 3644s ok 157 /regex/match-simple/143 3644s ok 158 /regex/match-simple/144 3644s ok 159 /regex/match-simple/145 3644s ok 160 /regex/match-simple/146 3644s ok 161 /regex/match-simple/147 3644s ok 162 /regex/match-simple/148 3644s ok 163 /regex/match-simple/149 3644s ok 164 /regex/match-simple/150 3644s ok 165 /regex/match-simple/151 3644s ok 166 /regex/match-simple/152 3644s ok 167 /regex/match-simple/153 3644s ok 168 /regex/match-simple/154 3644s ok 169 /regex/match-simple/155 3644s ok 170 /regex/match-simple/156 3644s ok 171 /regex/match-simple/157 3644s ok 172 /regex/match-simple/158 3644s ok 173 /regex/match-simple/159 3644s ok 174 /regex/match-simple/160 3644s ok 175 /regex/match-simple/161 3644s ok 176 /regex/match-simple/162 3644s ok 177 /regex/match-simple/163 3645s ok 178 /regex/match-simple/164 3645s # slow test /regex/match-simple/164 executed in 0.75 secs 3645s # End of match-simple tests 3645s # Start of match-simple-optimized tests 3645s ok 179 /regex/match-simple-optimized/92 3645s ok 180 /regex/match-simple-optimized/93 3645s ok 181 /regex/match-simple-optimized/94 3645s ok 182 /regex/match-simple-optimized/95 3645s ok 183 /regex/match-simple-optimized/96 3645s ok 184 /regex/match-simple-optimized/97 3645s ok 185 /regex/match-simple-optimized/98 3645s ok 186 /regex/match-simple-optimized/99 3645s ok 187 /regex/match-simple-optimized/100 3645s ok 188 /regex/match-simple-optimized/101 3645s ok 189 /regex/match-simple-optimized/102 3645s ok 190 /regex/match-simple-optimized/103 3645s ok 191 /regex/match-simple-optimized/104 3645s ok 192 /regex/match-simple-optimized/105 3645s ok 193 /regex/match-simple-optimized/106 3645s ok 194 /regex/match-simple-optimized/107 3645s ok 195 /regex/match-simple-optimized/108 3645s ok 196 /regex/match-simple-optimized/109 3645s ok 197 /regex/match-simple-optimized/110 3645s ok 198 /regex/match-simple-optimized/111 3645s ok 199 /regex/match-simple-optimized/112 3645s ok 200 /regex/match-simple-optimized/113 3645s ok 201 /regex/match-simple-optimized/114 3645s ok 202 /regex/match-simple-optimized/115 3645s ok 203 /regex/match-simple-optimized/116 3645s ok 204 /regex/match-simple-optimized/117 3645s ok 205 /regex/match-simple-optimized/118 3645s ok 206 /regex/match-simple-optimized/119 3645s ok 207 /regex/match-simple-optimized/120 3645s ok 208 /regex/match-simple-optimized/121 3645s ok 209 /regex/match-simple-optimized/122 3645s ok 210 /regex/match-simple-optimized/123 3645s ok 211 /regex/match-simple-optimized/124 3645s ok 212 /regex/match-simple-optimized/125 3645s ok 213 /regex/match-simple-optimized/126 3645s ok 214 /regex/match-simple-optimized/127 3645s ok 215 /regex/match-simple-optimized/128 3645s ok 216 /regex/match-simple-optimized/129 3645s ok 217 /regex/match-simple-optimized/130 3645s ok 218 /regex/match-simple-optimized/131 3645s ok 219 /regex/match-simple-optimized/132 3645s ok 220 /regex/match-simple-optimized/133 3645s ok 221 /regex/match-simple-optimized/134 3645s ok 222 /regex/match-simple-optimized/135 3645s ok 223 /regex/match-simple-optimized/136 3645s ok 224 /regex/match-simple-optimized/137 3645s ok 225 /regex/match-simple-optimized/138 3645s ok 226 /regex/match-simple-optimized/139 3645s ok 227 /regex/match-simple-optimized/140 3645s ok 228 /regex/match-simple-optimized/141 3645s ok 229 /regex/match-simple-optimized/142 3645s ok 230 /regex/match-simple-optimized/143 3645s ok 231 /regex/match-simple-optimized/144 3645s ok 232 /regex/match-simple-optimized/145 3645s ok 233 /regex/match-simple-optimized/146 3645s ok 234 /regex/match-simple-optimized/147 3645s ok 235 /regex/match-simple-optimized/148 3645s ok 236 /regex/match-simple-optimized/149 3645s ok 237 /regex/match-simple-optimized/150 3645s ok 238 /regex/match-simple-optimized/151 3645s ok 239 /regex/match-simple-optimized/152 3645s ok 240 /regex/match-simple-optimized/153 3645s ok 241 /regex/match-simple-optimized/154 3645s ok 242 /regex/match-simple-optimized/155 3645s ok 243 /regex/match-simple-optimized/156 3645s ok 244 /regex/match-simple-optimized/157 3645s ok 245 /regex/match-simple-optimized/158 3645s ok 246 /regex/match-simple-optimized/159 3645s ok 247 /regex/match-simple-optimized/160 3645s ok 248 /regex/match-simple-optimized/161 3645s ok 249 /regex/match-simple-optimized/162 3645s ok 250 /regex/match-simple-optimized/163 3645s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 3646s ok 251 /regex/match-simple-optimized/164 3646s # slow test /regex/match-simple-optimized/164 executed in 0.82 secs 3646s # End of match-simple-optimized tests 3646s # Start of match tests 3646s ok 252 /regex/match/165 3646s ok 253 /regex/match/166 3646s ok 254 /regex/match/167 3646s ok 255 /regex/match/168 3646s ok 256 /regex/match/169 3646s ok 257 /regex/match/170 3646s ok 258 /regex/match/171 3646s ok 259 /regex/match/172 3646s ok 260 /regex/match/173 3646s ok 261 /regex/match/174 3646s ok 262 /regex/match/175 3646s ok 263 /regex/match/176 3646s ok 264 /regex/match/177 3646s ok 265 /regex/match/178 3646s ok 266 /regex/match/179 3646s ok 267 /regex/match/180 3646s ok 268 /regex/match/181 3646s ok 269 /regex/match/182 3646s ok 270 /regex/match/183 3646s ok 271 /regex/match/184 3646s ok 272 /regex/match/185 3646s ok 273 /regex/match/186 3646s ok 274 /regex/match/187 3646s ok 275 /regex/match/188 3646s ok 276 /regex/match/189 3646s ok 277 /regex/match/190 3646s ok 278 /regex/match/191 3646s ok 279 /regex/match/192 3646s ok 280 /regex/match/193 3646s ok 281 /regex/match/194 3646s ok 282 /regex/match/195 3646s ok 283 /regex/match/196 3646s ok 284 /regex/match/197 3646s ok 285 /regex/match/198 3646s ok 286 /regex/match/199 3646s ok 287 /regex/match/200 3646s ok 288 /regex/match/201 3646s ok 289 /regex/match/202 3646s ok 290 /regex/match/203 3646s ok 291 /regex/match/204 3646s ok 292 /regex/match/205 3646s ok 293 /regex/match/206 3646s ok 294 /regex/match/207 3646s ok 295 /regex/match/208 3646s ok 296 /regex/match/209 3646s ok 297 /regex/match/210 3646s ok 298 /regex/match/211 3646s ok 299 /regex/match/212 3646s ok 300 /regex/match/213 3646s ok 301 /regex/match/214 3646s ok 302 /regex/match/215 3646s ok 303 /regex/match/216 3646s ok 304 /regex/match/217 3646s ok 305 /regex/match/218 3646s ok 306 /regex/match/219 3646s ok 307 /regex/match/220 3646s ok 308 /regex/match/221 3646s ok 309 /regex/match/222 3646s ok 310 /regex/match/223 3646s ok 311 /regex/match/224 3646s ok 312 /regex/match/225 3646s ok 313 /regex/match/226 3646s ok 314 /regex/match/227 3646s ok 315 /regex/match/228 3646s ok 316 /regex/match/229 3646s ok 317 /regex/match/230 3646s ok 318 /regex/match/231 3646s ok 319 /regex/match/232 3646s ok 320 /regex/match/233 3646s ok 321 /regex/match/234 3646s ok 322 /regex/match/235 3646s ok 323 /regex/match/236 3646s ok 324 /regex/match/237 3646s ok 325 /regex/match/238 3646s ok 326 /regex/match/239 3646s ok 327 /regex/match/240 3646s ok 328 /regex/match/241 3646s ok 329 /regex/match/242 3646s ok 330 /regex/match/243 3646s ok 331 /regex/match/244 3646s ok 332 /regex/match/245 3646s ok 333 /regex/match/246 3646s ok 334 /regex/match/partial281 3646s ok 335 /regex/match/partial282 3646s ok 336 /regex/match/partial283 3646s ok 337 /regex/match/partial284 3646s ok 338 /regex/match/partial285 3646s ok 339 /regex/match/partial286 3646s ok 340 /regex/match/partial287 3646s ok 341 /regex/match/partial288 3646s ok 342 /regex/match/partial289 3646s ok 343 /regex/match/partial290 3646s ok 344 /regex/match/partial291 3646s ok 345 /regex/match/partial292 3646s ok 346 /regex/match/partial293 3646s ok 347 /regex/match/partial294 3646s ok 348 /regex/match/partial295 3646s ok 349 /regex/match/partial296 3646s ok 350 /regex/match/partial297 3646s ok 351 /regex/match/partial298 3646s ok 352 /regex/match/partial299 3646s ok 353 /regex/match/partial300 3646s ok 354 /regex/match/partial301 3646s ok 355 /regex/match/partial302 3646s # Start of next0 tests 3646s ok 356 /regex/match/next0/247 3646s ok 357 /regex/match/next0/248 3646s ok 358 /regex/match/next0/249 3646s ok 359 /regex/match/next0/250 3646s # End of next0 tests 3646s # Start of next1 tests 3646s ok 360 /regex/match/next1/251 3646s ok 361 /regex/match/next1/252 3646s ok 362 /regex/match/next1/253 3646s ok 363 /regex/match/next1/254 3646s ok 364 /regex/match/next1/255 3646s # End of next1 tests 3646s # Start of next2 tests 3646s ok 365 /regex/match/next2/256 3646s ok 366 /regex/match/next2/257 3646s ok 367 /regex/match/next2/258 3646s ok 368 /regex/match/next2/259 3646s ok 369 /regex/match/next2/260 3646s ok 370 /regex/match/next2/261 3646s ok 371 /regex/match/next2/262 3646s ok 372 /regex/match/next2/263 3646s # End of next2 tests 3646s # Start of next3 tests 3646s ok 373 /regex/match/next3/264 3646s ok 374 /regex/match/next3/265 3646s ok 375 /regex/match/next3/266 3646s ok 376 /regex/match/next3/267 3646s ok 377 /regex/match/next3/268 3646s ok 378 /regex/match/next3/269 3646s # End of next3 tests 3646s # Start of next4 tests 3646s ok 379 /regex/match/next4/270 3646s # End of next4 tests 3646s # Start of count tests 3646s ok 380 /regex/match/count/271 3646s ok 381 /regex/match/count/272 3646s ok 382 /regex/match/count/273 3646s ok 383 /regex/match/count/274 3646s ok 384 /regex/match/count/275 3646s ok 385 /regex/match/count/276 3646s ok 386 /regex/match/count/277 3646s ok 387 /regex/match/count/278 3646s ok 388 /regex/match/count/279 3646s ok 389 /regex/match/count/280 3646s # End of count tests 3646s # Start of count-optimized tests 3646s ok 390 /regex/match/count-optimized/271 3646s ok 391 /regex/match/count-optimized/272 3646s ok 392 /regex/match/count-optimized/273 3646s ok 393 /regex/match/count-optimized/274 3646s ok 394 /regex/match/count-optimized/275 3646s ok 395 /regex/match/count-optimized/276 3646s ok 396 /regex/match/count-optimized/277 3646s ok 397 /regex/match/count-optimized/278 3646s ok 398 /regex/match/count-optimized/279 3646s ok 399 /regex/match/count-optimized/280 3646s # End of count-optimized tests 3646s # Start of partial-optimized tests 3646s ok 400 /regex/match/partial-optimized/281 3646s ok 401 /regex/match/partial-optimized/282 3646s ok 402 /regex/match/partial-optimized/283 3646s ok 403 /regex/match/partial-optimized/284 3646s ok 404 /regex/match/partial-optimized/285 3646s ok 405 /regex/match/partial-optimized/286 3646s ok 406 /regex/match/partial-optimized/287 3646s ok 407 /regex/match/partial-optimized/288 3646s ok 408 /regex/match/partial-optimized/289 3646s ok 409 /regex/match/partial-optimized/290 3646s ok 410 /regex/match/partial-optimized/291 3646s ok 411 /regex/match/partial-optimized/292 3646s ok 412 /regex/match/partial-optimized/293 3646s ok 413 /regex/match/partial-optimized/294 3646s ok 414 /regex/match/partial-optimized/295 3646s ok 415 /regex/match/partial-optimized/296 3646s ok 416 /regex/match/partial-optimized/297 3646s ok 417 /regex/match/partial-optimized/298 3646s ok 418 /regex/match/partial-optimized/299 3646s ok 419 /regex/match/partial-optimized/300 3646s ok 420 /regex/match/partial-optimized/301 3646s ok 421 /regex/match/partial-optimized/302 3646s # End of partial-optimized tests 3646s # Start of subpattern tests 3646s ok 422 /regex/match/subpattern/303 3646s ok 423 /regex/match/subpattern/304 3646s ok 424 /regex/match/subpattern/305 3646s ok 425 /regex/match/subpattern/306 3646s ok 426 /regex/match/subpattern/307 3646s ok 427 /regex/match/subpattern/308 3646s ok 428 /regex/match/subpattern/309 3646s ok 429 /regex/match/subpattern/310 3646s ok 430 /regex/match/subpattern/311 3646s ok 431 /regex/match/subpattern/312 3646s ok 432 /regex/match/subpattern/313 3646s ok 433 /regex/match/subpattern/314 3646s ok 434 /regex/match/subpattern/315 3646s # Start of named tests 3646s # Start of dupnames tests 3646s ok 435 /regex/match/subpattern/named/dupnames/325 3646s ok 436 /regex/match/subpattern/named/dupnames/326 3646s ok 437 /regex/match/subpattern/named/dupnames/327 3646s ok 438 /regex/match/subpattern/named/dupnames/328 3646s ok 439 /regex/match/subpattern/named/dupnames/329 3646s # End of dupnames tests 3646s # End of named tests 3646s # End of subpattern tests 3646s # Start of subpattern-optimized tests 3646s ok 440 /regex/match/subpattern-optimized/303 3646s ok 441 /regex/match/subpattern-optimized/304 3646s ok 442 /regex/match/subpattern-optimized/305 3646s ok 443 /regex/match/subpattern-optimized/306 3646s ok 444 /regex/match/subpattern-optimized/307 3646s ok 445 /regex/match/subpattern-optimized/308 3646s ok 446 /regex/match/subpattern-optimized/309 3646s ok 447 /regex/match/subpattern-optimized/310 3646s ok 448 /regex/match/subpattern-optimized/311 3646s ok 449 /regex/match/subpattern-optimized/312 3646s ok 450 /regex/match/subpattern-optimized/313 3646s ok 451 /regex/match/subpattern-optimized/314 3646s ok 452 /regex/match/subpattern-optimized/315 3646s # End of subpattern-optimized tests 3646s # Start of named tests 3646s # Start of subpattern tests 3646s ok 453 /regex/match/named/subpattern/316 3646s ok 454 /regex/match/named/subpattern/317 3646s ok 455 /regex/match/named/subpattern/318 3646s ok 456 /regex/match/named/subpattern/319 3646s ok 457 /regex/match/named/subpattern/320 3646s ok 458 /regex/match/named/subpattern/321 3646s ok 459 /regex/match/named/subpattern/322 3646s ok 460 /regex/match/named/subpattern/323 3646s ok 461 /regex/match/named/subpattern/324 3646s ok 462 /regex/match/named/subpattern/330 3646s ok 463 /regex/match/named/subpattern/331 3646s ok 464 /regex/match/named/subpattern/332 3646s ok 465 /regex/match/named/subpattern/333 3646s ok 466 /regex/match/named/subpattern/334 3646s # End of subpattern tests 3646s # End of named tests 3646s # End of match tests 3646s # Start of match-optimized tests 3646s ok 467 /regex/match-optimized/165 3646s ok 468 /regex/match-optimized/166 3646s ok 469 /regex/match-optimized/167 3646s ok 470 /regex/match-optimized/168 3646s ok 471 /regex/match-optimized/169 3646s ok 472 /regex/match-optimized/170 3646s ok 473 /regex/match-optimized/171 3646s ok 474 /regex/match-optimized/172 3646s ok 475 /regex/match-optimized/173 3646s ok 476 /regex/match-optimized/174 3646s ok 477 /regex/match-optimized/175 3646s ok 478 /regex/match-optimized/176 3646s ok 479 /regex/match-optimized/177 3646s ok 480 /regex/match-optimized/178 3646s ok 481 /regex/match-optimized/179 3646s ok 482 /regex/match-optimized/180 3646s ok 483 /regex/match-optimized/181 3646s ok 484 /regex/match-optimized/182 3646s ok 485 /regex/match-optimized/183 3646s ok 486 /regex/match-optimized/184 3646s ok 487 /regex/match-optimized/185 3646s ok 488 /regex/match-optimized/186 3646s ok 489 /regex/match-optimized/187 3646s ok 490 /regex/match-optimized/188 3646s ok 491 /regex/match-optimized/189 3646s ok 492 /regex/match-optimized/190 3646s ok 493 /regex/match-optimized/191 3646s ok 494 /regex/match-optimized/192 3646s ok 495 /regex/match-optimized/193 3646s ok 496 /regex/match-optimized/194 3646s ok 497 /regex/match-optimized/195 3646s ok 498 /regex/match-optimized/196 3646s ok 499 /regex/match-optimized/197 3646s ok 500 /regex/match-optimized/198 3646s ok 501 /regex/match-optimized/199 3646s ok 502 /regex/match-optimized/200 3646s ok 503 /regex/match-optimized/201 3646s ok 504 /regex/match-optimized/202 3646s ok 505 /regex/match-optimized/203 3646s ok 506 /regex/match-optimized/204 3646s ok 507 /regex/match-optimized/205 3646s ok 508 /regex/match-optimized/206 3646s ok 509 /regex/match-optimized/207 3646s ok 510 /regex/match-optimized/208 3646s ok 511 /regex/match-optimized/209 3646s ok 512 /regex/match-optimized/210 3646s ok 513 /regex/match-optimized/211 3646s ok 514 /regex/match-optimized/212 3646s ok 515 /regex/match-optimized/213 3646s ok 516 /regex/match-optimized/214 3646s ok 517 /regex/match-optimized/215 3646s ok 518 /regex/match-optimized/216 3646s ok 519 /regex/match-optimized/217 3646s ok 520 /regex/match-optimized/218 3646s ok 521 /regex/match-optimized/219 3646s ok 522 /regex/match-optimized/220 3646s ok 523 /regex/match-optimized/221 3646s ok 524 /regex/match-optimized/222 3646s ok 525 /regex/match-optimized/223 3646s ok 526 /regex/match-optimized/224 3646s ok 527 /regex/match-optimized/225 3646s ok 528 /regex/match-optimized/226 3646s ok 529 /regex/match-optimized/227 3646s ok 530 /regex/match-optimized/228 3646s ok 531 /regex/match-optimized/229 3646s ok 532 /regex/match-optimized/230 3646s ok 533 /regex/match-optimized/231 3646s ok 534 /regex/match-optimized/232 3646s ok 535 /regex/match-optimized/233 3646s ok 536 /regex/match-optimized/234 3646s ok 537 /regex/match-optimized/235 3646s ok 538 /regex/match-optimized/236 3646s ok 539 /regex/match-optimized/237 3646s ok 540 /regex/match-optimized/238 3646s ok 541 /regex/match-optimized/239 3646s ok 542 /regex/match-optimized/240 3646s ok 543 /regex/match-optimized/241 3646s ok 544 /regex/match-optimized/242 3646s ok 545 /regex/match-optimized/243 3646s ok 546 /regex/match-optimized/244 3646s ok 547 /regex/match-optimized/245 3646s ok 548 /regex/match-optimized/246 3646s # End of match-optimized tests 3646s # Start of fetch-all0 tests 3646s ok 549 /regex/fetch-all0/335 3646s ok 550 /regex/fetch-all0/336 3646s # End of fetch-all0 tests 3646s # Start of fetch-all1 tests 3646s ok 551 /regex/fetch-all1/337 3646s ok 552 /regex/fetch-all1/338 3646s ok 553 /regex/fetch-all1/339 3646s # End of fetch-all1 tests 3646s # Start of fetch-all2 tests 3646s ok 554 /regex/fetch-all2/340 3646s ok 555 /regex/fetch-all2/341 3646s ok 556 /regex/fetch-all2/342 3646s # End of fetch-all2 tests 3646s # Start of fetch-all3 tests 3646s ok 557 /regex/fetch-all3/343 3646s ok 558 /regex/fetch-all3/344 3646s ok 559 /regex/fetch-all3/345 3646s ok 560 /regex/fetch-all3/346 3646s ok 561 /regex/fetch-all3/347 3646s # End of fetch-all3 tests 3646s # Start of split tests 3646s # Start of simple0 tests 3646s ok 562 /regex/split/simple0/348 3646s ok 563 /regex/split/simple0/349 3646s ok 564 /regex/split/simple0/364 3646s ok 565 /regex/split/simple0/365 3646s # End of simple0 tests 3646s # Start of simple1 tests 3646s ok 566 /regex/split/simple1/350 3646s ok 567 /regex/split/simple1/351 3646s # End of simple1 tests 3646s # Start of simple2 tests 3646s ok 568 /regex/split/simple2/352 3646s ok 569 /regex/split/simple2/358 3646s ok 570 /regex/split/simple2/360 3646s # End of simple2 tests 3646s # Start of simple3 tests 3646s ok 571 /regex/split/simple3/353 3646s ok 572 /regex/split/simple3/354 3646s ok 573 /regex/split/simple3/355 3646s ok 574 /regex/split/simple3/356 3646s ok 575 /regex/split/simple3/357 3646s ok 576 /regex/split/simple3/359 3646s ok 577 /regex/split/simple3/361 3646s ok 578 /regex/split/simple3/362 3646s ok 579 /regex/split/simple3/363 3646s # End of simple3 tests 3646s # End of split tests 3646s # Start of split0 tests 3646s ok 580 /regex/split0/366 3646s ok 581 /regex/split0/368 3646s # End of split0 tests 3646s # Start of full-split0 tests 3646s ok 582 /regex/full-split0/367 3646s ok 583 /regex/full-split0/369 3646s ok 584 /regex/full-split0/370 3646s ok 585 /regex/full-split0/371 3646s ok 586 /regex/full-split0/372 3646s # End of full-split0 tests 3646s # Start of split1 tests 3646s ok 587 /regex/split1/373 3646s ok 588 /regex/split1/376 3646s # End of split1 tests 3646s # Start of full-split1 tests 3646s ok 589 /regex/full-split1/374 3646s ok 590 /regex/full-split1/375 3646s ok 591 /regex/full-split1/377 3646s ok 592 /regex/full-split1/378 3646s ok 593 /regex/full-split1/404 3646s # End of full-split1 tests 3646s # Start of split2 tests 3646s ok 594 /regex/split2/379 3646s ok 595 /regex/split2/383 3646s ok 596 /regex/split2/395 3646s # End of split2 tests 3646s # Start of full-split2 tests 3646s ok 597 /regex/full-split2/380 3646s ok 598 /regex/full-split2/381 3646s ok 599 /regex/full-split2/382 3646s ok 600 /regex/full-split2/384 3646s ok 601 /regex/full-split2/396 3646s ok 602 /regex/full-split2/399 3646s ok 603 /regex/full-split2/405 3646s # End of full-split2 tests 3646s # Start of split3 tests 3646s ok 604 /regex/split3/385 3646s ok 605 /regex/split3/387 3646s ok 606 /regex/split3/389 3646s ok 607 /regex/split3/391 3646s ok 608 /regex/split3/393 3646s ok 609 /regex/split3/397 3646s ok 610 /regex/split3/400 3646s ok 611 /regex/split3/402 3646s # End of split3 tests 3646s # Start of full-split3 tests 3646s ok 612 /regex/full-split3/386 3646s ok 613 /regex/full-split3/388 3646s ok 614 /regex/full-split3/390 3646s ok 615 /regex/full-split3/392 3646s ok 616 /regex/full-split3/394 3646s ok 617 /regex/full-split3/398 3646s ok 618 /regex/full-split3/401 3646s ok 619 /regex/full-split3/403 3646s ok 620 /regex/full-split3/406 3646s ok 621 /regex/full-split3/407 3646s # End of full-split3 tests 3646s # Start of check-repacement tests 3646s ok 622 /regex/check-repacement/408 3646s ok 623 /regex/check-repacement/409 3646s ok 624 /regex/check-repacement/410 3646s ok 625 /regex/check-repacement/411 3646s ok 626 /regex/check-repacement/412 3646s ok 627 /regex/check-repacement/413 3646s ok 628 /regex/check-repacement/414 3646s ok 629 /regex/check-repacement/415 3646s # End of check-repacement tests 3646s # Start of expand tests 3646s ok 630 /regex/expand/416 3646s ok 631 /regex/expand/417 3646s ok 632 /regex/expand/418 3646s ok 633 /regex/expand/419 3646s ok 634 /regex/expand/420 3646s ok 635 /regex/expand/421 3646s ok 636 /regex/expand/422 3646s ok 637 /regex/expand/423 3646s ok 638 /regex/expand/424 3646s ok 639 /regex/expand/425 3646s ok 640 /regex/expand/426 3646s ok 641 /regex/expand/427 3646s ok 642 /regex/expand/428 3646s ok 643 /regex/expand/429 3646s ok 644 /regex/expand/430 3646s ok 645 /regex/expand/431 3646s ok 646 /regex/expand/432 3646s ok 647 /regex/expand/433 3646s ok 648 /regex/expand/434 3646s ok 649 /regex/expand/435 3646s ok 650 /regex/expand/436 3646s ok 651 /regex/expand/437 3646s ok 652 /regex/expand/438 3646s ok 653 /regex/expand/439 3646s ok 654 /regex/expand/440 3646s ok 655 /regex/expand/441 3646s ok 656 /regex/expand/442 3646s ok 657 /regex/expand/443 3646s ok 658 /regex/expand/444 3646s ok 659 /regex/expand/445 3646s ok 660 /regex/expand/446 3646s ok 661 /regex/expand/447 3646s ok 662 /regex/expand/448 3646s ok 663 /regex/expand/449 3646s ok 664 /regex/expand/450 3646s ok 665 /regex/expand/451 3646s ok 666 /regex/expand/452 3646s ok 667 /regex/expand/453 3646s ok 668 /regex/expand/454 3646s ok 669 /regex/expand/455 3646s ok 670 /regex/expand/456 3646s ok 671 /regex/expand/457 3646s ok 672 /regex/expand/458 3646s ok 673 /regex/expand/459 3646s ok 674 /regex/expand/460 3646s ok 675 /regex/expand/461 3646s ok 676 /regex/expand/462 3646s ok 677 /regex/expand/463 3646s ok 678 /regex/expand/464 3646s ok 679 /regex/expand/465 3646s ok 680 /regex/expand/466 3646s ok 681 /regex/expand/467 3646s ok 682 /regex/expand/468 3646s ok 683 /regex/expand/469 3646s ok 684 /regex/expand/470 3646s ok 685 /regex/expand/471 3646s ok 686 /regex/expand/472 3646s ok 687 /regex/expand/473 3646s ok 688 /regex/expand/474 3646s ok 689 /regex/expand/475 3646s ok 690 /regex/expand/476 3646s ok 691 /regex/expand/477 3646s ok 692 /regex/expand/478 3646s ok 693 /regex/expand/479 3646s ok 694 /regex/expand/480 3646s ok 695 /regex/expand/481 3646s # End of expand tests 3646s # Start of replace tests 3646s ok 696 /regex/replace/482 3646s ok 697 /regex/replace/483 3646s ok 698 /regex/replace/484 3646s ok 699 /regex/replace/485 3646s ok 700 /regex/replace/486 3646s ok 701 /regex/replace/487 3646s ok 702 /regex/replace/488 3646s ok 703 /regex/replace/489 3646s ok 704 /regex/replace/490 3646s ok 705 /regex/replace/491 3646s ok 706 /regex/replace/492 3646s ok 707 /regex/replace/493 3646s ok 708 /regex/replace/494 3646s ok 709 /regex/replace/495 3646s ok 710 /regex/replace/496 3646s ok 711 /regex/replace/497 3646s ok 712 /regex/replace/498 3646s ok 713 /regex/replace/499 3646s ok 714 /regex/replace/500 3646s ok 715 /regex/replace/501 3646s ok 716 /regex/replace/502 3646s ok 717 /regex/replace/503 3646s ok 718 /regex/replace/504 3646s ok 719 /regex/replace/505 3646s ok 720 /regex/replace/506 3646s ok 721 /regex/replace/507 3646s ok 722 /regex/replace/508 3646s ok 723 /regex/replace/509 3646s # End of replace tests 3646s # Start of replace-optimized tests 3646s ok 724 /regex/replace-optimized/482 3646s ok 725 /regex/replace-optimized/483 3646s ok 726 /regex/replace-optimized/484 3646s ok 727 /regex/replace-optimized/485 3646s ok 728 /regex/replace-optimized/486 3646s ok 729 /regex/replace-optimized/487 3646s ok 730 /regex/replace-optimized/488 3646s ok 731 /regex/replace-optimized/489 3646s ok 732 /regex/replace-optimized/490 3646s ok 733 /regex/replace-optimized/491 3646s ok 734 /regex/replace-optimized/492 3646s ok 735 /regex/replace-optimized/493 3646s ok 736 /regex/replace-optimized/494 3646s ok 737 /regex/replace-optimized/495 3646s ok 738 /regex/replace-optimized/496 3646s ok 739 /regex/replace-optimized/497 3646s ok 740 /regex/replace-optimized/498 3646s ok 741 /regex/replace-optimized/499 3646s ok 742 /regex/replace-optimized/500 3646s ok 743 /regex/replace-optimized/501 3646s ok 744 /regex/replace-optimized/502 3646s ok 745 /regex/replace-optimized/503 3646s ok 746 /regex/replace-optimized/504 3646s ok 747 /regex/replace-optimized/505 3646s ok 748 /regex/replace-optimized/506 3646s ok 749 /regex/replace-optimized/507 3646s ok 750 /regex/replace-optimized/508 3646s ok 751 /regex/replace-optimized/509 3646s # End of replace-optimized tests 3646s # Start of replace-literally tests 3646s ok 752 /regex/replace-literally/510 3646s ok 753 /regex/replace-literally/511 3646s ok 754 /regex/replace-literally/512 3646s ok 755 /regex/replace-literally/513 3646s ok 756 /regex/replace-literally/514 3646s ok 757 /regex/replace-literally/515 3646s ok 758 /regex/replace-literally/516 3646s ok 759 /regex/replace-literally/517 3646s ok 760 /regex/replace-literally/518 3646s ok 761 /regex/replace-literally/519 3646s ok 762 /regex/replace-literally/520 3646s ok 763 /regex/replace-literally/521 3646s ok 764 /regex/replace-literally/522 3646s ok 765 /regex/replace-literally/523 3646s ok 766 /regex/replace-literally/524 3646s ok 767 /regex/replace-literally/525 3646s ok 768 /regex/replace-literally/526 3646s ok 769 /regex/replace-literally/527 3646s ok 770 /regex/replace-literally/528 3646s ok 771 /regex/replace-literally/529 3646s # End of replace-literally tests 3646s # Start of string-number tests 3646s ok 772 /regex/string-number/530 3646s ok 773 /regex/string-number/531 3646s ok 774 /regex/string-number/532 3646s ok 775 /regex/string-number/533 3646s ok 776 /regex/string-number/534 3646s ok 777 /regex/string-number/535 3646s ok 778 /regex/string-number/536 3646s ok 779 /regex/string-number/537 3646s ok 780 /regex/string-number/538 3646s ok 781 /regex/string-number/539 3646s ok 782 /regex/string-number/540 3646s ok 783 /regex/string-number/541 3646s ok 784 /regex/string-number/542 3646s ok 785 /regex/string-number/543 3646s ok 786 /regex/string-number/544 3646s # End of string-number tests 3646s # Start of escape_nul tests 3646s ok 787 /regex/escape_nul/545 3646s ok 788 /regex/escape_nul/546 3646s ok 789 /regex/escape_nul/547 3646s ok 790 /regex/escape_nul/548 3646s ok 791 /regex/escape_nul/549 3646s ok 792 /regex/escape_nul/550 3646s ok 793 /regex/escape_nul/551 3646s ok 794 /regex/escape_nul/552 3646s ok 795 /regex/escape_nul/553 3646s ok 796 /regex/escape_nul/554 3646s ok 797 /regex/escape_nul/555 3646s ok 798 /regex/escape_nul/556 3646s ok 799 /regex/escape_nul/557 3646s ok 800 /regex/escape_nul/558 3646s ok 801 /regex/escape_nul/559 3646s # End of escape_nul tests 3646s # Start of escape tests 3646s ok 802 /regex/escape/560 3646s ok 803 /regex/escape/561 3646s ok 804 /regex/escape/562 3646s ok 805 /regex/escape/563 3646s ok 806 /regex/escape/564 3646s ok 807 /regex/escape/565 3646s ok 808 /regex/escape/566 3646s ok 809 /regex/escape/567 3646s ok 810 /regex/escape/568 3646s ok 811 /regex/escape/569 3646s ok 812 /regex/escape/570 3646s ok 813 /regex/escape/571 3646s ok 814 /regex/escape/572 3646s ok 815 /regex/escape/573 3646s ok 816 /regex/escape/574 3646s ok 817 /regex/escape/575 3646s ok 818 /regex/escape/576 3646s ok 819 /regex/escape/577 3646s # End of escape tests 3646s # Start of match-all0 tests 3646s ok 820 /regex/match-all0/578 3646s ok 821 /regex/match-all0/580 3646s # End of match-all0 tests 3646s # Start of match-all-full0 tests 3646s ok 822 /regex/match-all-full0/579 3646s ok 823 /regex/match-all-full0/581 3646s ok 824 /regex/match-all-full0/582 3646s ok 825 /regex/match-all-full0/583 3646s # End of match-all-full0 tests 3646s # Start of match-all1 tests 3646s ok 826 /regex/match-all1/584 3646s ok 827 /regex/match-all1/586 3646s ok 828 /regex/match-all1/591 3646s # End of match-all1 tests 3646s # Start of match-all-full1 tests 3646s ok 829 /regex/match-all-full1/585 3646s ok 830 /regex/match-all-full1/587 3646s ok 831 /regex/match-all-full1/588 3646s ok 832 /regex/match-all-full1/589 3646s ok 833 /regex/match-all-full1/590 3646s ok 834 /regex/match-all-full1/592 3646s # End of match-all-full1 tests 3646s # Start of match-all2 tests 3646s ok 835 /regex/match-all2/593 3646s ok 836 /regex/match-all2/595 3646s ok 837 /regex/match-all2/597 3646s # End of match-all2 tests 3646s # Start of match-all-full2 tests 3646s ok 838 /regex/match-all-full2/594 3646s ok 839 /regex/match-all-full2/596 3646s ok 840 /regex/match-all-full2/598 3646s # End of match-all-full2 tests 3646s # Start of match-all3 tests 3646s ok 841 /regex/match-all3/599 3646s ok 842 /regex/match-all3/601 3646s # End of match-all3 tests 3646s # Start of match-all-full3 tests 3646s ok 843 /regex/match-all-full3/600 3646s ok 844 /regex/match-all-full3/602 3646s # End of match-all-full3 tests 3646s # Start of match-notempty tests 3646s ok 845 /regex/match-notempty/603 3646s # End of match-notempty tests 3646s # Start of match-notempty-optimized tests 3646s ok 846 /regex/match-notempty-optimized/603 3646s # End of match-notempty-optimized tests 3646s # Start of match-notempty-atstart tests 3646s ok 847 /regex/match-notempty-atstart/604 3646s # End of match-notempty-atstart tests 3646s # Start of match-notempty-atstart-optimized tests 3646s ok 848 /regex/match-notempty-atstart-optimized/604 3646s # End of match-notempty-atstart-optimized tests 3646s # End of regex tests 3646s ok - glib/regex.test 3646s # Running test: glib/rec-mutex.test 3646s TAP version 14 3646s # random seed: R02S31629044b3a92f369a96ce4c5adc0504 3646s 1..29 3646s # Start of thread tests 3646s ok 1 /thread/rec-mutex1 3646s ok 2 /thread/rec-mutex2 3646s ok 3 /thread/rec-mutex3 3647s ok 4 /thread/rec-mutex4 3647s # Start of rec-mutex tests 3647s # Start of perf tests 3647s # Start of uncontended tests 3647s # max perf: 0.002674 mips 3647s ok 5 /thread/rec-mutex/perf/uncontended/depth1 3647s # max perf: 0.037037 mips 3647s ok 6 /thread/rec-mutex/perf/uncontended/depth2 3647s # max perf: 0.333333 mips 3647s ok 7 /thread/rec-mutex/perf/uncontended/depth3 3647s # max perf: 0.500000 mips 3647s ok 8 /thread/rec-mutex/perf/uncontended/depth4 3647s # max perf: 0.200000 mips 3647s ok 9 /thread/rec-mutex/perf/uncontended/depth5 3647s # End of uncontended tests 3647s # Start of contended1 tests 3647s # max perf: 1.000000 mips 3647s ok 10 /thread/rec-mutex/perf/contended1/depth1 3647s # max perf: 0.666667 mips 3647s ok 11 /thread/rec-mutex/perf/contended1/depth2 3647s # max perf: 0.666667 mips 3647s ok 12 /thread/rec-mutex/perf/contended1/depth3 3647s # max perf: 0.500000 mips 3647s ok 13 /thread/rec-mutex/perf/contended1/depth4 3647s # max perf: 0.500000 mips 3647s ok 14 /thread/rec-mutex/perf/contended1/depth5 3647s # End of contended1 tests 3647s # Start of contended2 tests 3647s # max perf: 0.017857 mips 3647s ok 15 /thread/rec-mutex/perf/contended2/depth1 3647s # max perf: 0.130435 mips 3647s ok 16 /thread/rec-mutex/perf/contended2/depth2 3647s # max perf: 0.428571 mips 3647s ok 17 /thread/rec-mutex/perf/contended2/depth3 3647s # max perf: 0.272727 mips 3647s ok 18 /thread/rec-mutex/perf/contended2/depth4 3647s # max perf: 0.333333 mips 3647s ok 19 /thread/rec-mutex/perf/contended2/depth5 3647s # End of contended2 tests 3647s # Start of contended3 tests 3647s # max perf: 0.056338 mips 3647s ok 20 /thread/rec-mutex/perf/contended3/depth1 3647s # max perf: 0.800000 mips 3647s ok 21 /thread/rec-mutex/perf/contended3/depth2 3647s # max perf: 0.004540 mips 3647s ok 22 /thread/rec-mutex/perf/contended3/depth3 3647s # max perf: 0.666667 mips 3647s ok 23 /thread/rec-mutex/perf/contended3/depth4 3647s # max perf: 0.500000 mips 3647s ok 24 /thread/rec-mutex/perf/contended3/depth5 3647s # End of contended3 tests 3647s # Start of contended4 tests 3647s # max perf: 1.250000 mips 3647s ok 25 /thread/rec-mutex/perf/contended4/depth1 3647s # max perf: 0.333333 mips 3647s ok 26 /thread/rec-mutex/perf/contended4/depth2 3647s # max perf: 0.833333 mips 3647s ok 27 /thread/rec-mutex/perf/contended4/depth3 3647s # max perf: 0.294118 mips 3647s ok 28 /thread/rec-mutex/perf/contended4/depth4 3647s # max perf: 0.555556 mips 3647s ok 29 /thread/rec-mutex/perf/contended4/depth5 3647s # End of contended4 tests 3647s # End of perf tests 3647s # End of rec-mutex tests 3647s # End of thread tests 3647s ok - glib/rec-mutex.test 3647s # Running test: glib/giomodule.test 3647s TAP version 14 3647s # random seed: R02Sd83c1106371d72fb538914a1a5c3f78f 3647s 1..3 3647s # Start of giomodule tests 3647s ok 1 /giomodule/extension-point 3647s ok 2 /giomodule/module-scan-all 3647s ok 3 /giomodule/module-scan-all-with-scope 3647s # End of giomodule tests 3647s ok - glib/giomodule.test 3647s # Running test: glib/io-channel.test 3647s TAP version 14 3647s # random seed: R02Sa9e92347145c5d5aee374daedd95a8a3 3647s 1..2 3647s # Start of io-channel tests 3647s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_io-channel_3Z9R52/io-channel/read-write/.dirs/home 3647s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_io-channel_3Z9R52/io-channel/read-write/.dirs/cache 3647s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_io-channel_3Z9R52/io-channel/read-write/.dirs/system-config1:/tmp/test_io-channel_3Z9R52/io-channel/read-write/.dirs/system-config2 3647s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_io-channel_3Z9R52/io-channel/read-write/.dirs/config 3647s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_io-channel_3Z9R52/io-channel/read-write/.dirs/system-data1:/tmp/test_io-channel_3Z9R52/io-channel/read-write/.dirs/system-data2 3647s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_io-channel_3Z9R52/io-channel/read-write/.dirs/data 3647s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_io-channel_3Z9R52/io-channel/read-write/.dirs/state 3647s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_io-channel_3Z9R52/io-channel/read-write/.dirs/runtime 3647s # Line one 3647s # 3647s # Line two 3647s # 3647s # Line three 3647s # 3647s # /* Hello */ 3647s # 3647s # \x1234\x567890\x6666 3647s # 3647s # read 62 bytes, wrote 62 bytes 3647s ok 1 /io-channel/read-write 3647s # Start of read-line tests 3647s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_io-channel_3Z9R52/io-channel/read-line/embedded-nuls/.dirs/home 3647s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_io-channel_3Z9R52/io-channel/read-line/embedded-nuls/.dirs/cache 3647s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_io-channel_3Z9R52/io-channel/read-line/embedded-nuls/.dirs/system-config1:/tmp/test_io-channel_3Z9R52/io-channel/read-line/embedded-nuls/.dirs/system-config2 3647s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_io-channel_3Z9R52/io-channel/read-line/embedded-nuls/.dirs/config 3647s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_io-channel_3Z9R52/io-channel/read-line/embedded-nuls/.dirs/system-data1:/tmp/test_io-channel_3Z9R52/io-channel/read-line/embedded-nuls/.dirs/system-data2 3647s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_io-channel_3Z9R52/io-channel/read-line/embedded-nuls/.dirs/data 3647s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_io-channel_3Z9R52/io-channel/read-line/embedded-nuls/.dirs/state 3647s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_io-channel_3Z9R52/io-channel/read-line/embedded-nuls/.dirs/runtime 3647s # /io-channel/read-line/embedded-nuls summary: Test that reading a line containing embedded nuls works when using non-standard line terminators. 3647s ok 2 /io-channel/read-line/embedded-nuls 3647s # End of read-line tests 3647s # End of io-channel tests 3647s ok - glib/io-channel.test 3647s # Running test: glib/notify-init2.test 3647s TAP version 14 3647s # random seed: R02S892e9d7c7450cf4a09a2fde3b124b494 3647s 1..1 3647s # Start of properties tests 3647s # /properties/notify-in-init2 summary: Test that notify freezing during construction of objects with custom constructor works 3647s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2665 3647s ok - glib/notify-init2.test 3647s ok 1 /properties/notify-in-init2 3647s # End of properties tests 3647s # Running test: glib/gdbus-introspection.test 3647s TAP version 14 3647s # random seed: R02Scdf927e92c912d5a3760ec873b936b90 3647s 1..4 3647s # Start of gdbus tests 3647s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_AW9A62/gdbus/introspection-parser/.dirs/home 3647s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_AW9A62/gdbus/introspection-parser/.dirs/cache 3647s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_AW9A62/gdbus/introspection-parser/.dirs/system-config1:/tmp/test_gdbus-introspection_AW9A62/gdbus/introspection-parser/.dirs/system-config2 3647s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_AW9A62/gdbus/introspection-parser/.dirs/config 3647s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_AW9A62/gdbus/introspection-parser/.dirs/system-data1:/tmp/test_gdbus-introspection_AW9A62/gdbus/introspection-parser/.dirs/system-data2 3647s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_AW9A62/gdbus/introspection-parser/.dirs/data 3647s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_AW9A62/gdbus/introspection-parser/.dirs/state 3647s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_AW9A62/gdbus/introspection-parser/.dirs/runtime 3648s ok 1 /gdbus/introspection-parser 3648s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_AW9A62/gdbus/introspection-generate/.dirs/home 3648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_AW9A62/gdbus/introspection-generate/.dirs/cache 3648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_AW9A62/gdbus/introspection-generate/.dirs/system-config1:/tmp/test_gdbus-introspection_AW9A62/gdbus/introspection-generate/.dirs/system-config2 3648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_AW9A62/gdbus/introspection-generate/.dirs/config 3648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_AW9A62/gdbus/introspection-generate/.dirs/system-data1:/tmp/test_gdbus-introspection_AW9A62/gdbus/introspection-generate/.dirs/system-data2 3648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_AW9A62/gdbus/introspection-generate/.dirs/data 3648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_AW9A62/gdbus/introspection-generate/.dirs/state 3648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_AW9A62/gdbus/introspection-generate/.dirs/runtime 3648s ok 2 /gdbus/introspection-generate 3648s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_AW9A62/gdbus/introspection-default-direction/.dirs/home 3648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_AW9A62/gdbus/introspection-default-direction/.dirs/cache 3648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_AW9A62/gdbus/introspection-default-direction/.dirs/system-config1:/tmp/test_gdbus-introspection_AW9A62/gdbus/introspection-default-direction/.dirs/system-config2 3648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_AW9A62/gdbus/introspection-default-direction/.dirs/config 3648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_AW9A62/gdbus/introspection-default-direction/.dirs/system-data1:/tmp/test_gdbus-introspection_AW9A62/gdbus/introspection-default-direction/.dirs/system-data2 3648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_AW9A62/gdbus/introspection-default-direction/.dirs/data 3648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_AW9A62/gdbus/introspection-default-direction/.dirs/state 3648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_AW9A62/gdbus/introspection-default-direction/.dirs/runtime 3648s ok 3 /gdbus/introspection-default-direction 3648s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_AW9A62/gdbus/introspection-extra-data/.dirs/home 3648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_AW9A62/gdbus/introspection-extra-data/.dirs/cache 3648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_AW9A62/gdbus/introspection-extra-data/.dirs/system-config1:/tmp/test_gdbus-introspection_AW9A62/gdbus/introspection-extra-data/.dirs/system-config2 3648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_AW9A62/gdbus/introspection-extra-data/.dirs/config 3648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_AW9A62/gdbus/introspection-extra-data/.dirs/system-data1:/tmp/test_gdbus-introspection_AW9A62/gdbus/introspection-extra-data/.dirs/system-data2 3648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_AW9A62/gdbus/introspection-extra-data/.dirs/data 3648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_AW9A62/gdbus/introspection-extra-data/.dirs/state 3648s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_AW9A62/gdbus/introspection-extra-data/.dirs/runtime 3648s ok 4 /gdbus/introspection-extra-data 3648s # End of gdbus tests 3648s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3648s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3648s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3648s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3648s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3648s ok - glib/gdbus-introspection.test 3648s # Running test: glib/ifaceproperties.test 3648s TAP version 14 3648s # random seed: R02S4b7a37e2a08b5fe6f970d14d9c7df6de 3648s 1..7 3648s # Start of interface tests 3648s # Start of properties tests 3648s ok 1 /interface/properties/set 3648s ok 2 /interface/properties/notify 3648s ok 3 /interface/properties/find-overridden 3648s ok 4 /interface/properties/list-overridden 3648s ok 5 /interface/properties/find-interface 3648s ok 6 /interface/properties/list-interface 3648s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=637738 3648s ok 7 /interface/properties/not-overridden 3648s # End of properties tests 3648s # End of interface tests 3648s ok - glib/ifaceproperties.test 3648s # Running test: glib/thread-pool-slow.test 3648s TAP version 14 3648s # random seed: R02Sed6ffcf10d81ccc3268b6004373401fc 3648s 1..7 3648s # Start of threadpool tests 3648s ok 1 /threadpool/functions 3649s # Executing: glib/thread-pool-slow.test 3649s ok 2 /threadpool/stop-unused 3649s # slow test /threadpool/stop-unused executed in 0.55 secs 3649s ok 3 /threadpool/pools 3649s # [unsorted] ===> pushed new thread with id:86, number of threads:1, unprocessed:0 3649s # [unsorted] ===> pushed new thread with id:75, number of threads:2, unprocessed:1 3649s # [unsorted] ===> pushed new thread with id:29, number of threads:3, unprocessed:2 3649s # [unsorted] ===> pushed new thread with id:7, number of threads:4, unprocessed:3 3649s # [unsorted] ===> pushed new thread with id:44, number of threads:5, unprocessed:4 3649s # [unsorted] ===> pushed new thread with id:95, number of threads:6, unprocessed:5 3649s # [unsorted] ===> pushed new thread with id:35, number of threads:7, unprocessed:6 3649s # [unsorted] ===> pushed new thread with id:43, number of threads:8, unprocessed:7 3649s # [unsorted] ===> pushed new thread with id:7, number of threads:9, unprocessed:8 3649s # [unsorted] ===> pushed new thread with id:91, number of threads:10, unprocessed:5 3649s # [unsorted] ===> pushed new thread with id:15, number of threads:10, unprocessed:6 3649s # [unsorted] ===> pushed new thread with id:20, number of threads:10, unprocessed:7 3649s # [unsorted] ===> pushed new thread with id:56, number of threads:10, unprocessed:8 3649s # [unsorted] ===> pushed new thread with id:29, number of threads:10, unprocessed:9 3649s # [unsorted] ===> pushed new thread with id:34, number of threads:10, unprocessed:10 3649s # [unsorted] ===> pushed new thread with id:79, number of threads:10, unprocessed:11 3649s # [unsorted] ===> pushed new thread with id:37, number of threads:10, unprocessed:12 3649s # [unsorted] ===> pushed new thread with id:73, number of threads:10, unprocessed:13 3649s # [unsorted] ===> pushed new thread with id:100, number of threads:10, unprocessed:14 3649s # [unsorted] ===> pushed new thread with id:31, number of threads:10, unprocessed:15 3649s # [unsorted] ===> pushed new thread with id:21, number of threads:10, unprocessed:15 3649s # [unsorted] ===> pushed new thread with id:87, number of threads:10, unprocessed:16 3649s # [unsorted] ===> pushed new thread with id:35, number of threads:10, unprocessed:17 3649s # [unsorted] ===> pushed new thread with id:53, number of threads:10, unprocessed:17 3649s # [unsorted] ===> pushed new thread with id:71, number of threads:10, unprocessed:18 3649s # [unsorted] ===> pushed new thread with id:5, number of threads:10, unprocessed:18 3649s # [unsorted] ===> pushed new thread with id:74, number of threads:10, unprocessed:18 3649s # [unsorted] ===> pushed new thread with id:52, number of threads:10, unprocessed:19 3649s # [unsorted] ===> pushed new thread with id:2, number of threads:10, unprocessed:20 3649s # [unsorted] ===> pushed new thread with id:98, number of threads:10, unprocessed:21 3649s # [unsorted] ===> pushed new thread with id:39, number of threads:10, unprocessed:22 3649s # [unsorted] ===> pushed new thread with id:28, number of threads:10, unprocessed:23 3649s # [unsorted] ===> pushed new thread with id:35, number of threads:10, unprocessed:24 3649s # [unsorted] ===> pushed new thread with id:45, number of threads:10, unprocessed:25 3649s # [unsorted] ===> pushed new thread with id:76, number of threads:10, unprocessed:26 3649s # [unsorted] ===> pushed new thread with id:44, number of threads:10, unprocessed:27 3649s # [unsorted] ===> pushed new thread with id:98, number of threads:10, unprocessed:28 3649s # [unsorted] ===> pushed new thread with id:33, number of threads:10, unprocessed:29 3649s # [unsorted] ===> pushed new thread with id:15, number of threads:10, unprocessed:30 3649s # [unsorted] ===> pushed new thread with id:76, number of threads:10, unprocessed:31 3649s # [unsorted] ===> pushed new thread with id:8, number of threads:10, unprocessed:32 3649s # [unsorted] ===> pushed new thread with id:12, number of threads:10, unprocessed:33 3649s # [unsorted] ===> pushed new thread with id:22, number of threads:10, unprocessed:34 3649s # [unsorted] ===> pushed new thread with id:95, number of threads:10, unprocessed:35 3649s # [unsorted] ===> pushed new thread with id:29, number of threads:10, unprocessed:36 3649s # [unsorted] ===> pushed new thread with id:9, number of threads:10, unprocessed:37 3649s # [unsorted] ===> pushed new thread with id:20, number of threads:10, unprocessed:38 3649s # [unsorted] ===> pushed new thread with id:22, number of threads:10, unprocessed:39 3649s # [unsorted] ===> pushed new thread with id:57, number of threads:10, unprocessed:40 3649s # [unsorted] ===> pushed new thread with id:52, number of threads:10, unprocessed:41 3649s # [unsorted] ===> pushed new thread with id:58, number of threads:10, unprocessed:42 3649s # [unsorted] ===> pushed new thread with id:72, number of threads:10, unprocessed:43 3649s # [unsorted] ===> pushed new thread with id:77, number of threads:10, unprocessed:44 3649s # [unsorted] ===> pushed new thread with id:17, number of threads:10, unprocessed:45 3649s # [unsorted] ===> pushed new thread with id:9, number of threads:10, unprocessed:46 3649s # [unsorted] ===> pushed new thread with id:47, number of threads:10, unprocessed:47 3649s # [unsorted] ===> pushed new thread with id:77, number of threads:10, unprocessed:48 3649s # [unsorted] ===> pushed new thread with id:88, number of threads:10, unprocessed:49 3649s # [unsorted] ===> pushed new thread with id:11, number of threads:10, unprocessed:50 3649s # [unsorted] ===> pushed new thread with id:81, number of threads:10, unprocessed:51 3649s # [unsorted] ===> pushed new thread with id:75, number of threads:10, unprocessed:52 3649s # [unsorted] ===> pushed new thread with id:18, number of threads:10, unprocessed:53 3649s # [unsorted] ===> pushed new thread with id:7, number of threads:10, unprocessed:54 3649s # [unsorted] ===> pushed new thread with id:57, number of threads:10, unprocessed:55 3649s # [unsorted] ===> pushed new thread with id:86, number of threads:10, unprocessed:56 3649s # [unsorted] ===> pushed new thread with id:19, number of threads:10, unprocessed:57 3649s # [unsorted] ===> pushed new thread with id:33, number of threads:10, unprocessed:57 3649s # [unsorted] ===> pushed new thread with id:11, number of threads:10, unprocessed:58 3649s # [unsorted] ===> pushed new thread with id:5, number of threads:10, unprocessed:59 3649s # [unsorted] ===> pushed new thread with id:36, number of threads:10, unprocessed:60 3649s # [unsorted] ===> pushed new thread with id:84, number of threads:10, unprocessed:61 3649s # [unsorted] ===> pushed new thread with id:92, number of threads:10, unprocessed:62 3649s # [unsorted] ===> pushed new thread with id:80, number of threads:10, unprocessed:63 3649s # [unsorted] ===> pushed new thread with id:60, number of threads:10, unprocessed:64 3649s # [unsorted] ===> pushed new thread with id:66, number of threads:10, unprocessed:65 3649s # [unsorted] ===> pushed new thread with id:14, number of threads:10, unprocessed:66 3649s # [unsorted] ===> pushed new thread with id:35, number of threads:10, unprocessed:67 3649s # [unsorted] ===> pushed new thread with id:42, number of threads:10, unprocessed:68 3649s # [unsorted] ===> pushed new thread with id:34, number of threads:10, unprocessed:69 3649s # [unsorted] ===> pushed new thread with id:33, number of threads:10, unprocessed:70 3649s # [unsorted] ===> pushed new thread with id:98, number of threads:10, unprocessed:71 3649s # [unsorted] ===> pushed new thread with id:100, number of threads:10, unprocessed:72 3649s # [unsorted] ===> pushed new thread with id:59, number of threads:10, unprocessed:73 3649s # [unsorted] ===> pushed new thread with id:49, number of threads:10, unprocessed:74 3649s # [unsorted] ===> pushed new thread with id:67, number of threads:10, unprocessed:75 3649s # [unsorted] ===> pushed new thread with id:86, number of threads:10, unprocessed:76 3649s # [unsorted] ===> pushed new thread with id:87, number of threads:10, unprocessed:77 3649s # [unsorted] ===> pushed new thread with id:16, number of threads:10, unprocessed:78 3649s # [unsorted] ===> pushed new thread with id:64, number of threads:10, unprocessed:79 3649s # [unsorted] ===> pushed new thread with id:44, number of threads:10, unprocessed:80 3649s # [unsorted] ===> pushed new thread with id:13, number of threads:10, unprocessed:81 3649s # [unsorted] ===> pushed new thread with id:16, number of threads:10, unprocessed:82 3649s # [unsorted] ===> pushed new thread with id:84, number of threads:10, unprocessed:83 3649s # [unsorted] ===> pushed new thread with id:26, number of threads:10, unprocessed:84 3649s # [unsorted] ===> pushed new thread with id:45, number of threads:10, unprocessed:85 3649s # [unsorted] ===> pushed new thread with id:99, number of threads:10, unprocessed:86 3649s # [unsorted] ===> pushed new thread with id:24, number of threads:10, unprocessed:87 3649s # [unsorted] ===> pushed new thread with id:74, number of threads:10, unprocessed:88 3649s # [unsorted] ===> pushed new thread with id:70, number of threads:10, unprocessed:89 3649s # [unsorted] ===> pushed new thread with id:65, number of threads:10, unprocessed:90 3649s ok 4 /threadpool/no-sort 3649s # [ sorted] ===> pushed new thread with id:32, number of threads:0, unprocessed:1 3649s # [ sorted] ===> pushed new thread with id:83, number of threads:0, unprocessed:2 3649s # [ sorted] ===> pushed new thread with id:74, number of threads:0, unprocessed:3 3649s # [ sorted] ===> pushed new thread with id:89, number of threads:0, unprocessed:4 3649s # [ sorted] ===> pushed new thread with id:65, number of threads:0, unprocessed:5 3649s # [ sorted] ===> pushed new thread with id:29, number of threads:0, unprocessed:6 3649s # [ sorted] ===> pushed new thread with id:92, number of threads:0, unprocessed:7 3649s # [ sorted] ===> pushed new thread with id:18, number of threads:0, unprocessed:8 3649s # [ sorted] ===> pushed new thread with id:87, number of threads:0, unprocessed:9 3649s # [ sorted] ===> pushed new thread with id:2, number of threads:0, unprocessed:10 3649s # [ sorted] ===> pushed new thread with id:24, number of threads:0, unprocessed:11 3649s # [ sorted] ===> pushed new thread with id:67, number of threads:0, unprocessed:12 3649s # [ sorted] ===> pushed new thread with id:11, number of threads:0, unprocessed:13 3649s # [ sorted] ===> pushed new thread with id:7, number of threads:0, unprocessed:14 3649s # [ sorted] ===> pushed new thread with id:6, number of threads:0, unprocessed:15 3649s # [ sorted] ===> pushed new thread with id:32, number of threads:0, unprocessed:16 3649s # [ sorted] ===> pushed new thread with id:91, number of threads:0, unprocessed:17 3649s # [ sorted] ===> pushed new thread with id:7, number of threads:0, unprocessed:18 3649s # [ sorted] ===> pushed new thread with id:73, number of threads:0, unprocessed:19 3649s # [ sorted] ===> pushed new thread with id:93, number of threads:0, unprocessed:20 3649s # [ sorted] ===> pushed new thread with id:64, number of threads:0, unprocessed:21 3649s # [ sorted] ===> pushed new thread with id:43, number of threads:0, unprocessed:22 3649s # [ sorted] ===> pushed new thread with id:59, number of threads:0, unprocessed:23 3649s # [ sorted] ===> pushed new thread with id:49, number of threads:0, unprocessed:24 3649s # [ sorted] ===> pushed new thread with id:89, number of threads:0, unprocessed:25 3649s # [ sorted] ===> pushed new thread with id:36, number of threads:0, unprocessed:26 3649s # [ sorted] ===> pushed new thread with id:74, number of threads:0, unprocessed:27 3649s # [ sorted] ===> pushed new thread with id:20, number of threads:0, unprocessed:28 3649s # [ sorted] ===> pushed new thread with id:73, number of threads:0, unprocessed:29 3649s # [ sorted] ===> pushed new thread with id:51, number of threads:0, unprocessed:30 3649s # [ sorted] ===> pushed new thread with id:14, number of threads:0, unprocessed:31 3649s # [ sorted] ===> pushed new thread with id:72, number of threads:0, unprocessed:32 3649s # [ sorted] ===> pushed new thread with id:9, number of threads:0, unprocessed:33 3649s # [ sorted] ===> pushed new thread with id:23, number of threads:0, unprocessed:34 3649s # [ sorted] ===> pushed new thread with id:35, number of threads:0, unprocessed:35 3649s # [ sorted] ===> pushed new thread with id:21, number of threads:0, unprocessed:36 3649s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:37 3649s # [ sorted] ===> pushed new thread with id:76, number of threads:0, unprocessed:38 3649s # [ sorted] ===> pushed new thread with id:33, number of threads:0, unprocessed:39 3649s # [ sorted] ===> pushed new thread with id:96, number of threads:0, unprocessed:40 3649s # [ sorted] ===> pushed new thread with id:50, number of threads:0, unprocessed:41 3649s # [ sorted] ===> pushed new thread with id:43, number of threads:0, unprocessed:42 3649s # [ sorted] ===> pushed new thread with id:37, number of threads:0, unprocessed:43 3649s # [ sorted] ===> pushed new thread with id:59, number of threads:0, unprocessed:44 3649s # [ sorted] ===> pushed new thread with id:56, number of threads:0, unprocessed:45 3649s # [ sorted] ===> pushed new thread with id:80, number of threads:0, unprocessed:46 3649s # [ sorted] ===> pushed new thread with id:45, number of threads:0, unprocessed:47 3649s # [ sorted] ===> pushed new thread with id:11, number of threads:0, unprocessed:48 3649s # [ sorted] ===> pushed new thread with id:68, number of threads:0, unprocessed:49 3649s # [ sorted] ===> pushed new thread with id:67, number of threads:0, unprocessed:50 3649s # [ sorted] ===> pushed new thread with id:74, number of threads:0, unprocessed:51 3649s # [ sorted] ===> pushed new thread with id:41, number of threads:0, unprocessed:52 3649s # [ sorted] ===> pushed new thread with id:12, number of threads:0, unprocessed:53 3649s # [ sorted] ===> pushed new thread with id:100, number of threads:0, unprocessed:54 3649s # [ sorted] ===> pushed new thread with id:38, number of threads:0, unprocessed:55 3649s # [ sorted] ===> pushed new thread with id:82, number of threads:0, unprocessed:56 3649s # [ sorted] ===> pushed new thread with id:74, number of threads:0, unprocessed:57 3649s # [ sorted] ===> pushed new thread with id:61, number of threads:0, unprocessed:58 3649s # [ sorted] ===> pushed new thread with id:11, number of threads:0, unprocessed:59 3649s # [ sorted] ===> pushed new thread with id:56, number of threads:0, unprocessed:60 3649s # [ sorted] ===> pushed new thread with id:74, number of threads:0, unprocessed:61 3649s # [ sorted] ===> pushed new thread with id:28, number of threads:0, unprocessed:62 3649s # [ sorted] ===> pushed new thread with id:8, number of threads:0, unprocessed:63 3649s # [ sorted] ===> pushed new thread with id:8, number of threads:0, unprocessed:64 3649s # [ sorted] ===> pushed new thread with id:4, number of threads:0, unprocessed:65 3649s # [ sorted] ===> pushed new thread with id:57, number of threads:0, unprocessed:66 3649s # [ sorted] ===> pushed new thread with id:71, number of threads:0, unprocessed:67 3649s # [ sorted] ===> pushed new thread with id:90, number of threads:0, unprocessed:68 3649s # [ sorted] ===> pushed new thread with id:95, number of threads:0, unprocessed:69 3649s # [ sorted] ===> pushed new thread with id:44, number of threads:0, unprocessed:70 3649s # [ sorted] ===> pushed new thread with id:3, number of threads:0, unprocessed:71 3649s # [ sorted] ===> pushed new thread with id:42, number of threads:0, unprocessed:72 3649s # [ sorted] ===> pushed new thread with id:53, number of threads:0, unprocessed:73 3649s # [ sorted] ===> pushed new thread with id:26, number of threads:0, unprocessed:74 3649s # [ sorted] ===> pushed new thread with id:5, number of threads:0, unprocessed:75 3649s # [ sorted] ===> pushed new thread with id:4, number of threads:0, unprocessed:76 3649s # [ sorted] ===> pushed new thread with id:50, number of threads:0, unprocessed:77 3649s # [ sorted] ===> pushed new thread with id:26, number of threads:0, unprocessed:78 3649s # [ sorted] ===> pushed new thread with id:61, number of threads:0, unprocessed:79 3649s # [ sorted] ===> pushed new thread with id:93, number of threads:0, unprocessed:80 3649s # [ sorted] ===> pushed new thread with id:36, number of threads:0, unprocessed:81 3649s # [ sorted] ===> pushed new thread with id:14, number of threads:0, unprocessed:82 3649s # [ sorted] ===> pushed new thread with id:84, number of threads:0, unprocessed:83 3649s # [ sorted] ===> pushed new thread with id:75, number of threads:0, unprocessed:84 3649s # [ sorted] ===> pushed new thread with id:44, number of threads:0, unprocessed:85 3649s # [ sorted] ===> pushed new thread with id:80, number of threads:0, unprocessed:86 3649s # [ sorted] ===> pushed new thread with id:41, number of threads:0, unprocessed:87 3649s # [ sorted] ===> pushed new thread with id:50, number of threads:0, unprocessed:88 3649s # [ sorted] ===> pushed new thread with id:48, number of threads:0, unprocessed:89 3649s # [ sorted] ===> pushed new thread with id:47, number of threads:0, unprocessed:90 3649s # [ sorted] ===> pushed new thread with id:9, number of threads:0, unprocessed:91 3649s # [ sorted] ===> pushed new thread with id:57, number of threads:0, unprocessed:92 3649s # [ sorted] ===> pushed new thread with id:35, number of threads:0, unprocessed:93 3649s # [ sorted] ===> pushed new thread with id:89, number of threads:0, unprocessed:94 3649s # [ sorted] ===> pushed new thread with id:55, number of threads:0, unprocessed:95 3649s # [ sorted] ===> pushed new thread with id:89, number of threads:0, unprocessed:96 3649s # [ sorted] ===> pushed new thread with id:82, number of threads:0, unprocessed:97 3649s # [ sorted] ===> pushed new thread with id:43, number of threads:0, unprocessed:98 3649s # [ sorted] ===> pushed new thread with id:99, number of threads:0, unprocessed:99 3649s # [ sorted] ===> pushed new thread with id:39, number of threads:0, unprocessed:100 3649s # Starting thread pool processing 3649s ok 5 /threadpool/sort 3649s ok 6 /threadpool/stop-unused-multiple 3649s # slow test /threadpool/stop-unused-multiple executed in 0.57 secs 3650s # Pool idle thread count: 0, unprocessed jobs: 40 3650s # Pool idle thread count: 0, unprocessed jobs: 0 3650s # Pool idle thread count: 0, unprocessed jobs: 0 3651s # Pool idle thread count: 10, unprocessed jobs: 0 3651s # Pool idle thread count: 10, unprocessed jobs: 0 3651s # Pool idle thread count: 10, unprocessed jobs: 0 3651s # Pool idle thread count: 10, unprocessed jobs: 0 3652s # Pool idle thread count: 10, unprocessed jobs: 0 3652s # Pool idle thread count: 10, unprocessed jobs: 0 3652s # Pool idle thread count: 10, unprocessed jobs: 0 3652s # Pool idle thread count: 10, unprocessed jobs: 0 3653s # Pool idle thread count: 10, unprocessed jobs: 0 3653s # Pool idle thread count: 10, unprocessed jobs: 0 3653s # Pool idle thread count: 10, unprocessed jobs: 0 3653s # Pool idle thread count: 10, unprocessed jobs: 0 3654s # Pool idle thread count: 10, unprocessed jobs: 0 3654s # Pool idle thread count: 10, unprocessed jobs: 0 3654s # Executing: glib/thread-pool-slow.test 3654s # Pool idle thread count: 10, unprocessed jobs: 0 3654s # Pool idle thread count: 10, unprocessed jobs: 0 3655s # Pool idle thread count: 10, unprocessed jobs: 0 3655s # Pool idle thread count: 10, unprocessed jobs: 0 3655s # Pool idle thread count: 10, unprocessed jobs: 0 3655s # Pool idle thread count: 10, unprocessed jobs: 0 3656s # Pool idle thread count: 10, unprocessed jobs: 0 3656s # Pool idle thread count: 10, unprocessed jobs: 0 3656s # Pool idle thread count: 10, unprocessed jobs: 0 3656s # Pool idle thread count: 10, unprocessed jobs: 0 3657s # Pool idle thread count: 10, unprocessed jobs: 0 3657s # Pool idle thread count: 10, unprocessed jobs: 0 3657s # Pool idle thread count: 10, unprocessed jobs: 0 3657s # Pool idle thread count: 10, unprocessed jobs: 0 3658s # Pool idle thread count: 10, unprocessed jobs: 0 3658s # Pool idle thread count: 10, unprocessed jobs: 0 3658s # Pool idle thread count: 10, unprocessed jobs: 0 3658s # Pool idle thread count: 10, unprocessed jobs: 0 3659s # Pool idle thread count: 9, unprocessed jobs: 1 3659s # Pool idle thread count: 8, unprocessed jobs: 0 3659s # Pool idle thread count: 8, unprocessed jobs: 0 3659s # Pool idle thread count: 8, unprocessed jobs: 0 3659s # Executing: glib/thread-pool-slow.test 3659s # Pool idle thread count: 10, unprocessed jobs: 0 3659s # Pool idle thread count: 10, unprocessed jobs: 0 3660s # Pool idle thread count: 10, unprocessed jobs: 0 3660s # Pool idle thread count: 10, unprocessed jobs: 0 3660s # Pool idle thread count: 10, unprocessed jobs: 0 3660s # Pool idle thread count: 10, unprocessed jobs: 0 3661s # Pool idle thread count: 2, unprocessed jobs: 0 3661s # Pool idle thread count: 2, unprocessed jobs: 0 3661s # Pool idle thread count: 2, unprocessed jobs: 0 3661s # Pool idle thread count: 2, unprocessed jobs: 0 3662s # Pool idle thread count: 2, unprocessed jobs: 0 3662s # Pool idle thread count: 2, unprocessed jobs: 0 3662s # Pool idle thread count: 2, unprocessed jobs: 0 3662s # Pool idle thread count: 2, unprocessed jobs: 0 3663s # Pool idle thread count: 2, unprocessed jobs: 0 3663s # Pool idle thread count: 2, unprocessed jobs: 0 3663s # Pool idle thread count: 2, unprocessed jobs: 0 3663s # Pool idle thread count: 2, unprocessed jobs: 0 3664s # Pool idle thread count: 2, unprocessed jobs: 0 3664s # Pool idle thread count: 2, unprocessed jobs: 0 3664s # Executing: glib/thread-pool-slow.test 3664s # Pool idle thread count: 2, unprocessed jobs: 0 3664s # Pool idle thread count: 2, unprocessed jobs: 0 3665s # Pool idle thread count: 2, unprocessed jobs: 0 3665s # Pool idle thread count: 2, unprocessed jobs: 0 3665s # Pool idle thread count: 2, unprocessed jobs: 0 3665s # Pool idle thread count: 2, unprocessed jobs: 0 3666s # Pool idle thread count: 2, unprocessed jobs: 0 3666s # Pool idle thread count: 2, unprocessed jobs: 0 3666s # Pool idle thread count: 2, unprocessed jobs: 0 3666s # Pool idle thread count: 2, unprocessed jobs: 0 3667s # Pool idle thread count: 2, unprocessed jobs: 0 3667s # Pool idle thread count: 2, unprocessed jobs: 0 3667s # Pool idle thread count: 2, unprocessed jobs: 0 3667s # Pool idle thread count: 2, unprocessed jobs: 0 3668s # Pool idle thread count: 2, unprocessed jobs: 0 3668s # Pool idle thread count: 2, unprocessed jobs: 0 3668s # Pool idle thread count: 2, unprocessed jobs: 0 3668s # Pool idle thread count: 2, unprocessed jobs: 0 3669s # Pool idle thread count: 2, unprocessed jobs: 0 3669s # Pool idle thread count: 2, unprocessed jobs: 0 3669s # Executing: glib/thread-pool-slow.test 3669s ok 7 /threadpool/idle-time 3669s # slow test /threadpool/idle-time executed in 19.55 secs 3669s # End of threadpool tests 3669s ok - glib/thread-pool-slow.test 3669s # Running test: glib/charset.test 3669s TAP version 14 3669s # random seed: R02Sbbb4dc66331a0d4ace0327e29904b050 3669s 1..2 3669s # Start of charset tests 3669s # Test 0 3669s # Test 1 3669s # Test 2 3669s # Test 3 3669s ok 1 /charset/language_names_with_category 3669s ok 2 /charset/language_names_with_category_async 3669s # End of charset tests 3669s ok - glib/charset.test 3669s # Running test: glib/portal-support-snap.test 3669s TAP version 14 3669s # random seed: R02S4426cff1ca6efdf66dce3b6f4d1992ed 3669s 1..7 3669s # Start of portal-support tests 3669s # Start of snap tests 3669s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/no-snapctl/.dirs/home 3669s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/no-snapctl/.dirs/cache 3669s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/no-snapctl/.dirs/system-config1:/tmp/test_portal-support-snap_5ZI952/portal-support/snap/no-snapctl/.dirs/system-config2 3669s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/no-snapctl/.dirs/config 3669s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/no-snapctl/.dirs/system-data1:/tmp/test_portal-support-snap_5ZI952/portal-support/snap/no-snapctl/.dirs/system-data2 3669s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/no-snapctl/.dirs/data 3669s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/no-snapctl/.dirs/state 3669s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/no-snapctl/.dirs/runtime 3669s # Created snap.yaml in /tmp/test_portal-support-snap_5ZI952/meta/snap.yaml 3669s Unable to clean up temporary directory /tmp/test_portal-support-snap_5ZI952/portal-support/snap/no-snapctl: No such file or directory 3669s ok 1 /portal-support/snap/no-snapctl 3669s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/none/.dirs/home 3669s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/none/.dirs/cache 3669s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/none/.dirs/system-config1:/tmp/test_portal-support-snap_5ZI952/portal-support/snap/none/.dirs/system-config2 3669s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/none/.dirs/config 3669s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/none/.dirs/system-data1:/tmp/test_portal-support-snap_5ZI952/portal-support/snap/none/.dirs/system-data2 3669s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/none/.dirs/data 3669s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/none/.dirs/state 3669s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/none/.dirs/runtime 3669s # Created snap.yaml in /tmp/test_portal-support-snap_5ZI952/meta/snap.yaml 3669s # Created snapctl in /tmp/test_portal-support-snap_5ZI952/portal-support/snap/none/.dirs/runtime/snapctl 3669s Unable to clean up temporary directory /tmp/test_portal-support-snap_5ZI952/portal-support/snap/none: No such file or directory 3669s ok 2 /portal-support/snap/none 3669s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/all/.dirs/home 3669s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/all/.dirs/cache 3669s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/all/.dirs/system-config1:/tmp/test_portal-support-snap_5ZI952/portal-support/snap/all/.dirs/system-config2 3669s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/all/.dirs/config 3669s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/all/.dirs/system-data1:/tmp/test_portal-support-snap_5ZI952/portal-support/snap/all/.dirs/system-data2 3669s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/all/.dirs/data 3669s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/all/.dirs/state 3669s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/all/.dirs/runtime 3669s # Created snap.yaml in /tmp/test_portal-support-snap_5ZI952/meta/snap.yaml 3669s # Created snapctl in /tmp/test_portal-support-snap_5ZI952/portal-support/snap/all/.dirs/runtime/snapctl 3670s Unable to clean up temporary directory /tmp/test_portal-support-snap_5ZI952/portal-support/snap/all: No such file or directory 3670s ok 3 /portal-support/snap/all 3670s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/desktop-only/.dirs/home 3670s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/desktop-only/.dirs/cache 3670s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/desktop-only/.dirs/system-config1:/tmp/test_portal-support-snap_5ZI952/portal-support/snap/desktop-only/.dirs/system-config2 3670s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/desktop-only/.dirs/config 3670s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/desktop-only/.dirs/system-data1:/tmp/test_portal-support-snap_5ZI952/portal-support/snap/desktop-only/.dirs/system-data2 3670s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/desktop-only/.dirs/data 3670s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/desktop-only/.dirs/state 3670s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/desktop-only/.dirs/runtime 3670s # Created snap.yaml in /tmp/test_portal-support-snap_5ZI952/meta/snap.yaml 3670s # Created snapctl in /tmp/test_portal-support-snap_5ZI952/portal-support/snap/desktop-only/.dirs/runtime/snapctl 3670s Unable to clean up temporary directory /tmp/test_portal-support-snap_5ZI952/portal-support/snap/desktop-only: No such file or directory 3670s ok 4 /portal-support/snap/desktop-only 3670s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/network-only/.dirs/home 3670s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/network-only/.dirs/cache 3670s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/network-only/.dirs/system-config1:/tmp/test_portal-support-snap_5ZI952/portal-support/snap/network-only/.dirs/system-config2 3670s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/network-only/.dirs/config 3670s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/network-only/.dirs/system-data1:/tmp/test_portal-support-snap_5ZI952/portal-support/snap/network-only/.dirs/system-data2 3670s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/network-only/.dirs/data 3670s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/network-only/.dirs/state 3670s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/network-only/.dirs/runtime 3670s # Created snap.yaml in /tmp/test_portal-support-snap_5ZI952/meta/snap.yaml 3670s # Created snapctl in /tmp/test_portal-support-snap_5ZI952/portal-support/snap/network-only/.dirs/runtime/snapctl 3670s Unable to clean up temporary directory /tmp/test_portal-support-snap_5ZI952/portal-support/snap/network-only: No such file or directory 3670s ok 5 /portal-support/snap/network-only 3670s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/gsettings-only/.dirs/home 3670s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/gsettings-only/.dirs/cache 3670s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/gsettings-only/.dirs/system-config1:/tmp/test_portal-support-snap_5ZI952/portal-support/snap/gsettings-only/.dirs/system-config2 3670s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/gsettings-only/.dirs/config 3670s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/gsettings-only/.dirs/system-data1:/tmp/test_portal-support-snap_5ZI952/portal-support/snap/gsettings-only/.dirs/system-data2 3670s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/gsettings-only/.dirs/data 3670s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/gsettings-only/.dirs/state 3670s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/gsettings-only/.dirs/runtime 3670s # Created snap.yaml in /tmp/test_portal-support-snap_5ZI952/meta/snap.yaml 3670s # Created snapctl in /tmp/test_portal-support-snap_5ZI952/portal-support/snap/gsettings-only/.dirs/runtime/snapctl 3670s Unable to clean up temporary directory /tmp/test_portal-support-snap_5ZI952/portal-support/snap/gsettings-only: No such file or directory 3670s ok 6 /portal-support/snap/gsettings-only 3670s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/updates-dynamically/.dirs/home 3670s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/updates-dynamically/.dirs/cache 3670s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/updates-dynamically/.dirs/system-config1:/tmp/test_portal-support-snap_5ZI952/portal-support/snap/updates-dynamically/.dirs/system-config2 3670s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/updates-dynamically/.dirs/config 3670s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/updates-dynamically/.dirs/system-data1:/tmp/test_portal-support-snap_5ZI952/portal-support/snap/updates-dynamically/.dirs/system-data2 3670s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/updates-dynamically/.dirs/data 3670s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/updates-dynamically/.dirs/state 3670s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_5ZI952/portal-support/snap/updates-dynamically/.dirs/runtime 3670s # Created snap.yaml in /tmp/test_portal-support-snap_5ZI952/meta/snap.yaml 3670s # Created snapctl in /tmp/test_portal-support-snap_5ZI952/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 3670s # Created snapctl in /tmp/test_portal-support-snap_5ZI952/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 3670s # Created snapctl in /tmp/test_portal-support-snap_5ZI952/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 3670s # Created snapctl in /tmp/test_portal-support-snap_5ZI952/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 3670s # Created snapctl in /tmp/test_portal-support-snap_5ZI952/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 3671s # Created snapctl in /tmp/test_portal-support-snap_5ZI952/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 3671s # Created snapctl in /tmp/test_portal-support-snap_5ZI952/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 3671s Unable to clean up temporary directory /tmp/test_portal-support-snap_5ZI952/portal-support/snap/updates-dynamically: No such file or directory 3671s ok 7 /portal-support/snap/updates-dynamically 3671s # slow test /portal-support/snap/updates-dynamically executed in 0.85 secs 3671s # End of snap tests 3671s # End of portal-support tests 3671s Unable to clean up temporary directory /tmp/test_portal-support-snap_5ZI952: No such file or directory 3671s ok - glib/portal-support-snap.test 3671s # Running test: glib/codegen.py.test 3674s TAP version 13 3674s ok 1 __main__.TestCodegen.test_call_flags_and_timeout_method_args 3674s # gdbus-codegen: /usr/bin/gdbus-codegen 3674s # tmpdir: /tmp/tmp2a6ye_yj 3674s # /tmp/tmp2a6ye_yj/tmpn7_a9dpo.xml: 3674s # <node> 3674s # <interface name="org.project.UsefulInterface"> 3674s # <method name="UsefulMethod"/> 3674s # </interface> 3674s # </node> 3674s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2a6ye_yj/tmpn7_a9dpo.xml', '--output', '-', '--header'] 3674s # Return code: 0 3674s # Output: 3674s # /* 3674s # * This file is generated by gdbus-codegen, do not modify it. 3674s # * 3674s # * The license of this code is the same as for the D-Bus interface description 3674s # * it was derived from. Note that it links to GLib, so must comply with the 3674s # * LGPL linking clauses. 3674s # */ 3674s # 3674s # #ifndef __STDOUT__ 3674s # #define __STDOUT__ 3674s # 3674s # #include <gio/gio.h> 3674s # 3674s # G_BEGIN_DECLS 3674s # 3674s # 3674s # /* ------------------------------------------------------------------------ */ 3674s # /* Declarations for org.project.UsefulInterface */ 3674s # 3674s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 3674s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 3674s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 3674s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 3674s # 3674s # struct _OrgProjectUsefulInterface; 3674s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 3674s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 3674s # 3674s # struct _OrgProjectUsefulInterfaceIface 3674s # { 3674s # GTypeInterface parent_iface; 3674s # 3674s # gboolean (*handle_useful_method) ( 3674s # OrgProjectUsefulInterface *object, 3674s # GDBusMethodInvocation *invocation); 3674s # 3674s # }; 3674s # 3674s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 3674s # 3674s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 3674s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 3674s # 3674s # 3674s # /* D-Bus method call completion functions: */ 3674s # void org_project_useful_interface_complete_useful_method ( 3674s # OrgProjectUsefulInterface *object, 3674s # GDBusMethodInvocation *invocation); 3674s # 3674s # 3674s # 3674s # /* D-Bus method calls: */ 3674s # void org_project_useful_interface_call_useful_method ( 3674s # OrgProjectUsefulInterface *proxy, 3674s # GCancellable *cancellable, 3674s # GAsyncReadyCallback callback, 3674s # gpointer user_data); 3674s # 3674s # gboolean org_project_useful_interface_call_useful_method_finish ( 3674s # OrgProjectUsefulInterface *proxy, 3674s # GAsyncResult *res, 3674s # GError **error); 3674s # 3674s # gboolean org_project_useful_interface_call_useful_method_sync ( 3674s # OrgProjectUsefulInterface *proxy, 3674s # GCancellable *cancellable, 3674s # GError **error); 3674s # 3674s # 3674s # 3674s # /* ---- */ 3674s # 3674s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 3674s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 3674s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 3674s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 3674s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 3674s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 3674s # 3674s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 3674s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 3674s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 3674s # 3674s # struct _OrgProjectUsefulInterfaceProxy 3674s # { 3674s # /*< private >*/ 3674s # GDBusProxy parent_instance; 3674s # OrgProjectUsefulInterfaceProxyPrivate *priv; 3674s # }; 3674s # 3674s # struct _OrgProjectUsefulInterfaceProxyClass 3674s # { 3674s # GDBusProxyClass parent_class; 3674s # }; 3674s # 3674s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 3674s # 3674s # #if GLIB_CHECK_VERSION(2, 44, 0) 3674s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 3674s # #endif 3674s # 3674s # void org_project_useful_interface_proxy_new ( 3674s # GDBusConnection *connection, 3674s # GDBusProxyFlags flags, 3674s # const gchar *name, 3674s # const gchar *object_path, 3674s # GCancellable *cancellable, 3674s # GAsyncReadyCallback callback, 3674s # gpointer user_data); 3674s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 3674s # GAsyncResult *res, 3674s # GError **error); 3674s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 3674s # GDBusConnection *connection, 3674s # GDBusProxyFlags flags, 3674s # const gchar *name, 3674s # const gchar *object_path, 3674s # GCancellable *cancellable, 3674s # GError **error); 3674s # 3674s # void org_project_useful_interface_proxy_new_for_bus ( 3674s # GBusType bus_type, 3674s # GDBusProxyFlags flags, 3674s # const gchar *name, 3674s # const gchar *object_path, 3674s # GCancellable *cancellable, 3674s # GAsyncReadyCallback callback, 3674s # gpointer user_data); 3674s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 3674s # GAsyncResult *res, 3674s # GError **error); 3674s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 3674s # GBusType bus_type, 3674s # GDBusProxyFlags flags, 3674s # const gchar *name, 3674s # const gchar *object_path, 3674s # GCancellable *cancellable, 3674s # GError **error); 3674s # 3674s # 3674s # /* ---- */ 3674s # 3674s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 3674s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 3674s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 3674s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 3674s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 3674s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 3674s # 3674s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 3674s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 3674s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 3674s # 3674s # struct _OrgProjectUsefulInterfaceSkeleton 3674s # { 3674s # /*< private >*/ 3674s # GDBusInterfaceSkeleton parent_instance; 3674s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 3674s # }; 3674s # 3674s # struct _OrgProjectUsefulInterfaceSkeletonClass 3674s # { 3674s # GDBusInterfaceSkeletonClass parent_class; 3674s # }; 3674s # 3674s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 3674s # 3674s # #if GLIB_CHECK_VERSION(2, 44, 0) 3674s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 3674s # #endif 3674s # 3674s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 3674s # 3674s # 3674s # G_END_DECLS 3674s # 3674s # #endif /* __STDOUT__ */ 3674s # Error: 3674s # 3674s # /tmp/tmp2a6ye_yj/tmpcz7nfsl6.xml: 3674s # <node> 3674s # <interface name="org.project.UsefulInterface"> 3674s # <method name="UsefulMethod"/> 3674s # </interface> 3674s # </node> 3674s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2a6ye_yj/tmpcz7nfsl6.xml', '--output', '-', '--header', '--glib-min-required', '2.32'] 3674s # Return code: 0 3674s # Output: 3674s # /* 3674s # * This file is generated by gdbus-codegen, do not modify it. 3674s # * 3674s # * The license of this code is the same as for the D-Bus interface description 3674s # * it was derived from. Note that it links to GLib, so must comply with the 3674s # * LGPL linking clauses. 3674s # */ 3674s # 3674s # #ifndef __STDOUT__ 3674s # #define __STDOUT__ 3674s # 3674s # #include <gio/gio.h> 3674s # 3674s # G_BEGIN_DECLS 3674s # 3674s # 3674s # /* ------------------------------------------------------------------------ */ 3674s # /* Declarations for org.project.UsefulInterface */ 3674s # 3674s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 3674s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 3674s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 3674s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 3674s # 3674s # struct _OrgProjectUsefulInterface; 3674s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 3674s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 3674s # 3674s # struct _OrgProjectUsefulInterfaceIface 3674s # { 3674s # GTypeInterface parent_iface; 3674s # 3674s # gboolean (*handle_useful_method) ( 3674s # OrgProjectUsefulInterface *object, 3674s # GDBusMethodInvocation *invocation); 3674s # 3674s # }; 3674s # 3674s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 3674s # 3674s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 3674s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 3674s # 3674s # 3674s # /* D-Bus method call completion functions: */ 3674s # void org_project_useful_interface_complete_useful_method ( 3674s # OrgProjectUsefulInterface *object, 3674s # GDBusMethodInvocation *invocation); 3674s # 3674s # 3674s # 3674s # /* D-Bus method calls: */ 3674s # void org_project_useful_interface_call_useful_method ( 3674s # OrgProjectUsefulInterface *proxy, 3674s # GCancellable *cancellable, 3674s # GAsyncReadyCallback callback, 3674s # gpointer user_data); 3674s # 3674s # gboolean org_project_useful_interface_call_useful_method_finish ( 3674s # OrgProjectUsefulInterface *proxy, 3674s # GAsyncResult *res, 3674s # GError **error); 3674s # 3674s # gboolean org_project_useful_interface_call_useful_method_sync ( 3674s # OrgProjectUsefulInterface *proxy, 3674s # GCancellable *cancellable, 3674s # GError **error); 3674s # 3674s # 3674s # 3674s # /* ---- */ 3674s # 3674s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 3674s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 3674s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 3674s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 3674s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 3674s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 3674s # 3674s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 3674s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 3674s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 3674s # 3674s # struct _OrgProjectUsefulInterfaceProxy 3674s # { 3674s # /*< private >*/ 3674s # GDBusProxy parent_instance; 3674s # OrgProjectUsefulInterfaceProxyPrivate *priv; 3674s # }; 3674s # 3674s # struct _OrgProjectUsefulInterfaceProxyClass 3674s # { 3674s # GDBusProxyClass parent_class; 3674s # }; 3674s # 3674s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 3674s # 3674s # #if GLIB_CHECK_VERSION(2, 44, 0) 3674s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 3674s # #endif 3674s # 3674s # void org_project_useful_interface_proxy_new ( 3674s # GDBusConnection *connection, 3674s # GDBusProxyFlags flags, 3674s # const gchar *name, 3674s # const gchar *object_path, 3674s # GCancellable *cancellable, 3674s # GAsyncReadyCallback callback, 3674s # gpointer user_data); 3674s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 3674s # GAsyncResult *res, 3674s # GError **error); 3674s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 3674s # GDBusConnection *connection, 3674s # GDBusProxyFlags flags, 3674s # const gchar *name, 3674s # const gchar *object_path, 3674s # GCancellable *cancellable, 3674s # GError **error); 3674s # 3674s # void org_project_useful_interface_proxy_new_for_bus ( 3674s # GBusType bus_type, 3674s # GDBusProxyFlags flags, 3674s # const gchar *name, 3674s # const gchar *object_path, 3674s # GCancellable *cancellable, 3674s # GAsyncReadyCallback callback, 3674s # gpointer user_data); 3674s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 3674s # GAsyncResult *res, 3674s # GError **error); 3674s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 3674s # GBusType bus_type, 3674s # GDBusProxyFlags flags, 3674s # const gchar *name, 3674s # const gchar *object_path, 3674s # GCancellable *cancellable, 3674s # GError **error); 3674s # 3674s # 3674s # /* ---- */ 3674s # 3674s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 3674s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 3674s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 3674s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 3674s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 3674s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 3674s # 3674s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 3674s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 3674s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 3674s # 3674s # struct _OrgProjectUsefulInterfaceSkeleton 3674s # { 3674s # /*< private >*/ 3674s # GDBusInterfaceSkeleton parent_instance; 3674s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 3674s # }; 3674s # 3674s # struct _OrgProjectUsefulInterfaceSkeletonClass 3674s # { 3674s # GDBusInterfaceSkeletonClass parent_class; 3674s # }; 3674s # 3674s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 3674s # 3674s # #if GLIB_CHECK_VERSION(2, 44, 0) 3674s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 3674s # #endif 3674s # 3674s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 3674s # 3674s # 3674s # G_END_DECLS 3674s # 3674s # #endif /* __STDOUT__ */ 3674s # Error: 3674s # 3674s # /tmp/tmp2a6ye_yj/tmpvfszozgh.xml: 3674s # <node> 3674s # <interface name="org.project.UsefulInterface"> 3674s # <method name="UsefulMethod"/> 3674s # </interface> 3674s # </node> 3674s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2a6ye_yj/tmpvfszozgh.xml', '--output', '-', '--header', '--glib-min-required', '2.64'] 3674s # Return code: 0 3674s # Output: 3674s # /* 3674s # * This file is generated by gdbus-codegen, do not modify it. 3674s # * 3674s # * The license of this code is the same as for the D-Bus interface description 3674s # * it was derived from. Note that it links to GLib, so must comply with the 3674s # * LGPL linking clauses. 3674s # */ 3674s # 3674s # #ifndef __STDOUT__ 3674s # #define __STDOUT__ 3674s # 3674s # #include <gio/gio.h> 3674s # 3674s # G_BEGIN_DECLS 3674s # 3674s # 3674s # /* ------------------------------------------------------------------------ */ 3674s # /* Declarations for org.project.UsefulInterface */ 3674s # 3674s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 3674s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 3674s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 3674s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 3674s # 3674s # struct _OrgProjectUsefulInterface; 3674s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 3674s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 3674s # 3674s # struct _OrgProjectUsefulInterfaceIface 3674s # { 3674s # GTypeInterface parent_iface; 3674s # 3674s # gboolean (*handle_useful_method) ( 3674s # OrgProjectUsefulInterface *object, 3674s # GDBusMethodInvocation *invocation); 3674s # 3674s # }; 3674s # 3674s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 3674s # 3674s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 3674s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 3674s # 3674s # 3674s # /* D-Bus method call completion functions: */ 3674s # void org_project_useful_interface_complete_useful_method ( 3674s # OrgProjectUsefulInterface *object, 3674s # GDBusMethodInvocation *invocation); 3674s # 3674s # 3674s # 3674s # /* D-Bus method calls: */ 3674s # void org_project_useful_interface_call_useful_method ( 3674s # OrgProjectUsefulInterface *proxy, 3674s # GDBusCallFlags call_flags, 3674s # gint timeout_msec, 3674s # GCancellable *cancellable, 3674s # GAsyncReadyCallback callback, 3674s # gpointer user_data); 3674s # 3674s # gboolean org_project_useful_interface_call_useful_method_finish ( 3674s # OrgProjectUsefulInterface *proxy, 3674s # GAsyncResult *res, 3674s # GError **error); 3674s # 3674s # gboolean org_project_useful_interface_call_useful_method_sync ( 3674s # OrgProjectUsefulInterface *proxy, 3674s # GDBusCallFlags call_flags, 3674s # gint timeout_msec, 3674s # GCancellable *cancellable, 3674s # GError **error); 3674s # 3674s # 3674s # 3674s # /* ---- */ 3674s # 3674s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 3674s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 3674s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 3674s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 3674s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 3674s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 3674s # 3674s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 3674s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 3674s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 3674s # 3674s # struct _OrgProjectUsefulInterfaceProxy 3674s # { 3674s # /*< private >*/ 3674s # GDBusProxy parent_instance; 3674s # OrgProjectUsefulInterfaceProxyPrivate *priv; 3674s # }; 3674s # 3674s # struct _OrgProjectUsefulInterfaceProxyClass 3674s # { 3674s # GDBusProxyClass parent_class; 3674s # }; 3674s # 3674s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 3674s # 3674s # #if GLIB_CHECK_VERSION(2, 44, 0) 3674s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 3674s # #endif 3674s # 3674s # void org_project_useful_interface_proxy_new ( 3674s # GDBusConnection *connection, 3674s # GDBusProxyFlags flags, 3674s # const gchar *name, 3674s # const gchar *object_path, 3674s # GCancellable *cancellable, 3674s # GAsyncReadyCallback callback, 3674s # gpointer user_data); 3674s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 3674s # GAsyncResult *res, 3674s # GError **error); 3674s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 3674s # GDBusConnection *connection, 3674s # GDBusProxyFlags flags, 3674s # const gchar *name, 3674s # const gchar *object_path, 3674s # GCancellable *cancellable, 3674s # GError **error); 3674s # 3674s # void org_project_useful_interface_proxy_new_for_bus ( 3674s # GBusType bus_type, 3674s # GDBusProxyFlags flags, 3674s # const gchar *name, 3674s # const gchar *object_path, 3674s # GCancellable *cancellable, 3674s # GAsyncReadyCallback callback, 3674s # gpointer user_data); 3674s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 3674s # GAsyncResult *res, 3674s # GError **error); 3674s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 3674s # GBusType bus_type, 3674s # GDBusProxyFlags flags, 3674s # const gchar *name, 3674s # const gchar *object_path, 3674s # GCancellable *cancellable, 3674s # GError **error); 3674s # 3674s # 3674s # /* ---- */ 3674s # 3674s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 3674s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 3674s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 3674s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 3674s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 3674s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 3674s # 3674s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 3674s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 3674s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 3674s # 3674s # struct _OrgProjectUsefulInterfaceSkeleton 3674s # { 3674s # /*< private >*/ 3674s # GDBusInterfaceSkeleton parent_instance; 3674s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 3674s # }; 3674s # 3674s # struct _OrgProjectUsefulInterfaceSkeletonClass 3674s # { 3674s # GDBusInterfaceSkeletonClass parent_class; 3674s # }; 3674s # 3674s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 3674s # 3674s # #if GLIB_CHECK_VERSION(2, 44, 0) 3674s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 3674s # #endif 3674s # 3674s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 3674s # 3674s # 3674s # G_END_DECLS 3674s # 3674s # #endif /* __STDOUT__ */ 3674s # Error: 3674s # Executing: glib/codegen.py.test 3679s # Executing: glib/codegen.py.test 3683s ok 2 __main__.TestCodegen.test_dbus_types 3683s # gdbus-codegen: /usr/bin/gdbus-codegen 3683s # tmpdir: /tmp/tmp7qc5dkeb 3683s # /tmp/tmp7qc5dkeb/tmpfljqnaqu.xml: 3683s # <node> 3683s # <interface name="BadTypes"> 3683s # <property type="{vs}" name="BadPropertyType" access="read" /> 3683s # </interface> 3683s # </node> 3683s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7qc5dkeb/tmpfljqnaqu.xml', '--output', '-', '--body'] 3683s # Return code: 1 3683s # Output: 3683s # 3683s # Error: 3683s # ERROR: Bad signature "{vs}". "v" is not a valid type for dictionary keys at position 1. 3683s # /tmp/tmp7qc5dkeb/tmppvqa4j0n.xml: 3683s # <node> 3683s # <interface name="BadTypes"> 3683s # <property type="(ss(s{{sv}s}))" name="BadPropertyType" access="read" /> 3683s # </interface> 3683s # </node> 3683s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7qc5dkeb/tmppvqa4j0n.xml', '--output', '-', '--body'] 3683s # Return code: 1 3683s # Output: 3683s # 3683s # Error: 3683s # ERROR: Bad signature "(ss(s{{sv}s}))". "{" is not a valid type for dictionary keys at position 6. 3683s # /tmp/tmp7qc5dkeb/tmp2fpfb3us.xml: 3683s # <node> 3683s # <interface name="BadTypes"> 3683s # <property type="{s" name="BadPropertyType" access="read" /> 3683s # </interface> 3683s # </node> 3683s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7qc5dkeb/tmp2fpfb3us.xml', '--output', '-', '--body'] 3683s # Return code: 1 3683s # Output: 3683s # 3683s # Error: 3683s # ERROR: Bad signature "{s". Error parsing string or brackets not closed. 3683s # /tmp/tmp7qc5dkeb/tmpoiyl9cbe.xml: 3683s # <node> 3683s # <interface name="BadTypes"> 3683s # <property type="(s{sss})" name="BadPropertyType" access="read" /> 3683s # </interface> 3683s # </node> 3683s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7qc5dkeb/tmpoiyl9cbe.xml', '--output', '-', '--body'] 3683s # Return code: 1 3683s # Output: 3683s # 3683s # Error: 3683s # ERROR: Bad signature "(s{sss})". Dict must end with "}" at position 5. 3683s # /tmp/tmp7qc5dkeb/tmp49zlhdn2.xml: 3683s # <node> 3683s # <interface name="BadTypes"> 3683s # <property type="z" name="BadPropertyType" access="read" /> 3683s # </interface> 3683s # </node> 3683s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7qc5dkeb/tmp49zlhdn2.xml', '--output', '-', '--body'] 3683s # Return code: 1 3683s # Output: 3683s # 3683s # Error: 3683s # ERROR: Bad signature "z". "z" is not a valid D-Bus type. 3683s # /tmp/tmp7qc5dkeb/tmpx0qenezg.xml: 3683s # <node> 3683s # <interface name="BadTypes"> 3683s # <property type="(ssms)" name="BadPropertyType" access="read" /> 3683s # </interface> 3683s # </node> 3683s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7qc5dkeb/tmpx0qenezg.xml', '--output', '-', '--body'] 3683s # Return code: 1 3683s # Output: 3683s # 3683s # Error: 3683s # ERROR: Bad signature "(ssms)". "m" is not a valid D-Bus type. 3683s # /tmp/tmp7qc5dkeb/tmpz78k1kt7.xml: 3683s # <node> 3683s # <interface name="BadTypes"> 3683s # <property type="(" name="BadPropertyType" access="read" /> 3683s # </interface> 3683s # </node> 3683s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7qc5dkeb/tmpz78k1kt7.xml', '--output', '-', '--body'] 3683s # Return code: 1 3683s # Output: 3683s # 3683s # Error: 3683s # ERROR: Bad signature "(". Error parsing string or brackets not closed. 3683s # /tmp/tmp7qc5dkeb/tmpzbrcvobm.xml: 3683s # <node> 3683s # <interface name="BadTypes"> 3683s # <property type="(((ss))" name="BadPropertyType" access="read" /> 3683s # </interface> 3683s # </node> 3683s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7qc5dkeb/tmpzbrcvobm.xml', '--output', '-', '--body'] 3683s # Return code: 1 3683s # Output: 3683s # 3683s # Error: 3683s # ERROR: Bad signature "(((ss))". Error parsing string or brackets not closed. 3683s # /tmp/tmp7qc5dkeb/tmppsanr3pw.xml: 3683s # <node> 3683s # <interface name="BadTypes"> 3683s # <property type="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas" name="BadPropertyType" access="read" /> 3683s # </interface> 3683s # </node> 3683s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7qc5dkeb/tmppsanr3pw.xml', '--output', '-', '--body'] 3683s # Return code: 1 3683s # Output: 3683s # 3683s # Error: 3683s # ERROR: Bad signature "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas". Too much recursion beginning at 129. 3683s # /tmp/tmp7qc5dkeb/tmpyoj0nff7.xml: 3683s # <node> 3683s # <interface name="BadTypes"> 3683s # <property type="(((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((s))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))" name="BadPropertyType" access="read" /> 3683s # </interface> 3683s # </node> 3683s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7qc5dkeb/tmpyoj0nff7.xml', '--output', '-', '--body'] 3683s # Return code: 1 3683s # Output: 3683s # 3683s # Error: 3683s # ERROR: D-Bus maximum signature length of 255 exceeded. 3683s # /tmp/tmp7qc5dkeb/tmpdj_aq_sf.xml: 3683s # <node> 3683s # <interface name="BadTypes"> 3683s # <property type="{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{sv}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}" name="BadPropertyType" access="read" /> 3683s # </interface> 3683s # </node> 3683s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7qc5dkeb/tmpdj_aq_sf.xml', '--output', '-', '--body'] 3683s # Return code: 1 3683s # Output: 3683s # 3683s # Error: 3683s # ERROR: D-Bus maximum signature length of 255 exceeded. 3683s # /tmp/tmp7qc5dkeb/tmp5ulslwml.xml: 3683s # <node> 3683s # <interface name="BadTypes"> 3683s # <property type="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaa{sv})" name="BadPropertyType" access="read" /> 3683s # </interface> 3683s # </node> 3683s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7qc5dkeb/tmp5ulslwml.xml', '--output', '-', '--body'] 3683s # Return code: 1 3683s # Output: 3683s # 3683s # Error: 3683s # ERROR: Bad signature "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaa{sv})". Too much recursion beginning at 129. 3683s # /tmp/tmp7qc5dkeb/tmpftf42fkn.xml: 3683s # <node> 3683s # <interface name="BadTypes"> 3683s # <property type="(ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss)" name="BadPropertyType" access="read" /> 3683s # </interface> 3683s # </node> 3683s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7qc5dkeb/tmpftf42fkn.xml', '--output', '-', '--body'] 3683s # Return code: 1 3683s # Output: 3683s # 3683s # Error: 3683s # ERROR: D-Bus maximum signature length of 255 exceeded. 3683s # /tmp/tmp7qc5dkeb/tmp92c21gej.xml: 3683s # <node> 3683s # <interface name="GoodTypes"> 3683s # <property type="si{s{b(ybnqiuxtdh)}}{yv}{nv}{dv}" name="GoodPropertyType" access="read" /> 3683s # </interface> 3683s # </node> 3683s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7qc5dkeb/tmp92c21gej.xml', '--output', '-', '--body'] 3683s # Return code: 0 3683s # Output: 3683s # /* 3683s # * This file is generated by gdbus-codegen, do not modify it. 3683s # * 3683s # * The license of this code is the same as for the D-Bus interface description 3683s # * it was derived from. Note that it links to GLib, so must comply with the 3683s # * LGPL linking clauses. 3683s # */ 3683s # 3683s # #ifdef HAVE_CONFIG_H 3683s # # include "config.h" 3683s # #endif 3683s # 3683s # #include <string.h> 3683s # #ifdef G_OS_UNIX 3683s # # include <gio/gunixfdlist.h> 3683s # #endif 3683s # 3683s # #ifdef G_ENABLE_DEBUG 3683s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3683s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3683s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3683s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3683s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3683s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3683s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3683s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3683s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3683s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3683s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3683s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3683s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3683s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3683s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3683s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3683s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3683s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3683s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3683s # #else /* !G_ENABLE_DEBUG */ 3683s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3683s # * Do not access GValues directly in your code. Instead, use the 3683s # * g_value_get_*() functions 3683s # */ 3683s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3683s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3683s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3683s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3683s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3683s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3683s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3683s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3683s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3683s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3683s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3683s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3683s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3683s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3683s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3683s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3683s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3683s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3683s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3683s # #endif /* !G_ENABLE_DEBUG */ 3683s # 3683s # typedef struct 3683s # { 3683s # GDBusArgInfo parent_struct; 3683s # gboolean use_gvariant; 3683s # } _ExtendedGDBusArgInfo; 3683s # 3683s # typedef struct 3683s # { 3683s # GDBusMethodInfo parent_struct; 3683s # const gchar *signal_name; 3683s # gboolean pass_fdlist; 3683s # } _ExtendedGDBusMethodInfo; 3683s # 3683s # typedef struct 3683s # { 3683s # GDBusSignalInfo parent_struct; 3683s # const gchar *signal_name; 3683s # } _ExtendedGDBusSignalInfo; 3683s # 3683s # typedef struct 3683s # { 3683s # GDBusPropertyInfo parent_struct; 3683s # const gchar *hyphen_name; 3683s # guint use_gvariant : 1; 3683s # guint emits_changed_signal : 1; 3683s # } _ExtendedGDBusPropertyInfo; 3683s # 3683s # typedef struct 3683s # { 3683s # GDBusInterfaceInfo parent_struct; 3683s # const gchar *hyphen_name; 3683s # } _ExtendedGDBusInterfaceInfo; 3683s # 3683s # typedef struct 3683s # { 3683s # const _ExtendedGDBusPropertyInfo *info; 3683s # guint prop_id; 3683s # GValue orig_value; /* the value before the change */ 3683s # } ChangedProperty; 3683s # 3683s # static void 3683s # _changed_property_free (ChangedProperty *data) 3683s # { 3683s # g_value_unset (&data->orig_value); 3683s # g_free (data); 3683s # } 3683s # 3683s # static gboolean 3683s # _g_strv_equal0 (gchar **a, gchar **b) 3683s # { 3683s # gboolean ret = FALSE; 3683s # guint n; 3683s # if (a == NULL && b == NULL) 3683s # { 3683s # ret = TRUE; 3683s # goto out; 3683s # } 3683s # if (a == NULL || b == NULL) 3683s # goto out; 3683s # if (g_strv_length (a) != g_strv_length (b)) 3683s # goto out; 3683s # for (n = 0; a[n] != NULL; n++) 3683s # if (g_strcmp0 (a[n], b[n]) != 0) 3683s # goto out; 3683s # ret = TRUE; 3683s # out: 3683s # return ret; 3683s # } 3683s # 3683s # static gboolean 3683s # _g_variant_equal0 (GVariant *a, GVariant *b) 3683s # { 3683s # gboolean ret = FALSE; 3683s # if (a == NULL && b == NULL) 3683s # { 3683s # ret = TRUE; 3683s # goto out; 3683s # } 3683s # if (a == NULL || b == NULL) 3683s # goto out; 3683s # ret = g_variant_equal (a, b); 3683s # out: 3683s # return ret; 3683s # } 3683s # 3683s # G_GNUC_UNUSED static gboolean 3683s # _g_value_equal (const GValue *a, const GValue *b) 3683s # { 3683s # gboolean ret = FALSE; 3683s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3683s # switch (G_VALUE_TYPE (a)) 3683s # { 3683s # case G_TYPE_BOOLEAN: 3683s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3683s # break; 3683s # case G_TYPE_UCHAR: 3683s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3683s # break; 3683s # case G_TYPE_INT: 3683s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3683s # break; 3683s # case G_TYPE_UINT: 3683s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3683s # break; 3683s # case G_TYPE_INT64: 3683s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3683s # break; 3683s # case G_TYPE_UINT64: 3683s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3683s # break; 3683s # case G_TYPE_DOUBLE: 3683s # { 3683s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3683s # gdouble da = g_value_get_double (a); 3683s # gdouble db = g_value_get_double (b); 3683s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3683s # } 3683s # break; 3683s # case G_TYPE_STRING: 3683s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3683s # break; 3683s # case G_TYPE_VARIANT: 3683s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3683s # break; 3683s # default: 3683s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3683s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3683s # else 3683s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3683s # break; 3683s # } 3683s # return ret; 3683s # } 3683s # 3683s # /* ------------------------------------------------------------------------ 3683s # * Code for interface GoodTypes 3683s # * ------------------------------------------------------------------------ 3683s # */ 3683s # 3683s # /** 3683s # * SECTION:GoodTypes 3683s # * @title: GoodTypes 3683s # * @short_description: Generated C code for the GoodTypes D-Bus interface 3683s # * 3683s # * This section contains code for working with the <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link> D-Bus interface in C. 3683s # */ 3683s # 3683s # /* ---- Introspection data for GoodTypes ---- */ 3683s # 3683s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 3683s # { 3683s # { 3683s # -1, 3683s # (gchar *) "GoodPropertyType", 3683s # (gchar *) "si{s{b(ybnqiuxtdh)}}{yv}{nv}{dv}", 3683s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 3683s # NULL 3683s # }, 3683s # "good-property-type", 3683s # FALSE, 3683s # TRUE 3683s # }; 3683s # 3683s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 3683s # { 3683s # &_good_types_property_info_good_property_type.parent_struct, 3683s # NULL 3683s # }; 3683s # 3683s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 3683s # { 3683s # { 3683s # -1, 3683s # (gchar *) "GoodTypes", 3683s # NULL, 3683s # NULL, 3683s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 3683s # NULL 3683s # }, 3683s # "good-types", 3683s # }; 3683s # 3683s # 3683s # /** 3683s # * good_types_interface_info: 3683s # * 3683s # * Gets a machine-readable description of the <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link> D-Bus interface. 3683s # * 3683s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3683s # */ 3683s # GDBusInterfaceInfo * 3683s # good_types_interface_info (void) 3683s # { 3683s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 3683s # } 3683s # 3683s # /** 3683s # * good_types_override_properties: 3683s # * @klass: The class structure for a #GObject derived class. 3683s # * @property_id_begin: The property id to assign to the first overridden property. 3683s # * 3683s # * Overrides all #GObject properties in the <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link> interface for a concrete class. 3683s # * The properties are overridden in the order they are defined. 3683s # * 3683s # * Returns: The last property id. 3683s # */ 3683s # guint 3683s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 3683s # { 3683s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 3683s # return property_id_begin - 1; 3683s # } 3683s # 3683s # 3683s # 3683s # /** 3683s # * GoodTypes: 3683s # * 3683s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link>. 3683s # */ 3683s # 3683s # /** 3683s # * GoodTypesIface: 3683s # * @parent_iface: The parent interface. 3683s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 3683s # * 3683s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link>. 3683s # */ 3683s # 3683s # typedef GoodTypesIface GoodTypesInterface; 3683s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 3683s # 3683s # static void 3683s # good_types_default_init (GoodTypesIface *iface) 3683s # { 3683s # /* GObject properties for D-Bus properties: */ 3683s # /** 3683s # * GoodTypes:good-property-type: 3683s # * 3683s # * Represents the D-Bus property <link linkend="gdbus-property-GoodTypes.GoodPropertyType">"GoodPropertyType"</link>. 3683s # * 3683s # * 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. 3683s # */ 3683s # g_object_interface_install_property (iface, 3683s # 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)); 3683s # } 3683s # 3683s # /** 3683s # * good_types_get_good_property_type: (skip) 3683s # * @object: A <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link>. 3683s # * 3683s # * Gets the value of the <link linkend="gdbus-property-GoodTypes.GoodPropertyType">"GoodPropertyType"</link> D-Bus property. 3683s # * 3683s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 3683s # * 3683s # * 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. 3683s # * 3683s # * 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. 3683s # */ 3683s # GVariant * 3683s # good_types_get_good_property_type (GoodTypes *object) 3683s # { 3683s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 3683s # 3683s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 3683s # } 3683s # 3683s # /** 3683s # * good_types_dup_good_property_type: (skip) 3683s # * @object: A <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link>. 3683s # * 3683s # * Gets a copy of the <link linkend="gdbus-property-GoodTypes.GoodPropertyType">"GoodPropertyType"</link> D-Bus property. 3683s # * 3683s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 3683s # * 3683s # * 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(). 3683s # */ 3683s # GVariant * 3683s # good_types_dup_good_property_type (GoodTypes *object) 3683s # { 3683s # GVariant *value; 3683s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 3683s # return value; 3683s # } 3683s # 3683s # /** 3683s # * good_types_set_good_property_type: (skip) 3683s # * @object: A <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link>. 3683s # * @value: The value to set. 3683s # * 3683s # * Sets the <link linkend="gdbus-property-GoodTypes.GoodPropertyType">"GoodPropertyType"</link> D-Bus property to @value. 3683s # * 3683s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 3683s # */ 3683s # void 3683s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 3683s # { 3683s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 3683s # } 3683s # 3683s # /* ------------------------------------------------------------------------ */ 3683s # 3683s # /** 3683s # * GoodTypesProxy: 3683s # * 3683s # * The <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link>Proxy structure contains only private data and should only be accessed using the provided API. 3683s # */ 3683s # 3683s # /** 3683s # * GoodTypesProxyClass: 3683s # * @parent_class: The parent class. 3683s # * 3683s # * Class structure for <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link>Proxy. 3683s # */ 3683s # 3683s # struct _GoodTypesProxyPrivate 3683s # { 3683s # GData *qdata; 3683s # }; 3683s # 3683s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 3683s # 3683s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3683s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 3683s # G_ADD_PRIVATE (GoodTypesProxy) 3683s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 3683s # 3683s # #else 3683s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 3683s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 3683s # 3683s # #endif 3683s # static void 3683s # good_types_proxy_finalize (GObject *object) 3683s # { 3683s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 3683s # g_datalist_clear (&proxy->priv->qdata); 3683s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 3683s # } 3683s # 3683s # static void 3683s # good_types_proxy_get_property (GObject *object, 3683s # guint prop_id, 3683s # GValue *value, 3683s # GParamSpec *pspec G_GNUC_UNUSED) 3683s # { 3683s # const _ExtendedGDBusPropertyInfo *info; 3683s # GVariant *variant; 3683s # g_assert (prop_id != 0 && prop_id - 1 < 1); 3683s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 3683s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 3683s # if (info->use_gvariant) 3683s # { 3683s # g_value_set_variant (value, variant); 3683s # } 3683s # else 3683s # { 3683s # if (variant != NULL) 3683s # g_dbus_gvariant_to_gvalue (variant, value); 3683s # } 3683s # if (variant != NULL) 3683s # g_variant_unref (variant); 3683s # } 3683s # 3683s # static void 3683s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 3683s # GAsyncResult *res, 3683s # gpointer user_data) 3683s # { 3683s # const _ExtendedGDBusPropertyInfo *info = user_data; 3683s # GError *error; 3683s # GVariant *_ret; 3683s # error = NULL; 3683s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 3683s # if (!_ret) 3683s # { 3683s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 3683s # info->parent_struct.name, 3683s # error->message, g_quark_to_string (error->domain), error->code); 3683s # g_error_free (error); 3683s # } 3683s # else 3683s # { 3683s # g_variant_unref (_ret); 3683s # } 3683s # } 3683s # 3683s # static void 3683s # good_types_proxy_set_property (GObject *object, 3683s # guint prop_id, 3683s # const GValue *value, 3683s # GParamSpec *pspec G_GNUC_UNUSED) 3683s # { 3683s # const _ExtendedGDBusPropertyInfo *info; 3683s # GVariant *variant; 3683s # g_assert (prop_id != 0 && prop_id - 1 < 1); 3683s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 3683s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 3683s # g_dbus_proxy_call (G_DBUS_PROXY (object), 3683s # "org.freedesktop.DBus.Properties.Set", 3683s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 3683s # G_DBUS_CALL_FLAGS_NONE, 3683s # -1, 3683s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 3683s # g_variant_unref (variant); 3683s # } 3683s # 3683s # static void 3683s # good_types_proxy_g_signal (GDBusProxy *proxy, 3683s # const gchar *sender_name G_GNUC_UNUSED, 3683s # const gchar *signal_name, 3683s # GVariant *parameters) 3683s # { 3683s # _ExtendedGDBusSignalInfo *info; 3683s # GVariantIter iter; 3683s # GVariant *child; 3683s # GValue *paramv; 3683s # gsize num_params; 3683s # gsize n; 3683s # guint signal_id; 3683s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 3683s # if (info == NULL) 3683s # return; 3683s # num_params = g_variant_n_children (parameters); 3683s # paramv = g_new0 (GValue, num_params + 1); 3683s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 3683s # g_value_set_object (¶mv[0], proxy); 3683s # g_variant_iter_init (&iter, parameters); 3683s # n = 1; 3683s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3683s # { 3683s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3683s # if (arg_info->use_gvariant) 3683s # { 3683s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3683s # g_value_set_variant (¶mv[n], child); 3683s # n++; 3683s # } 3683s # else 3683s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3683s # g_variant_unref (child); 3683s # } 3683s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 3683s # g_signal_emitv (paramv, signal_id, 0, NULL); 3683s # for (n = 0; n < num_params + 1; n++) 3683s # g_value_unset (¶mv[n]); 3683s # g_free (paramv); 3683s # } 3683s # 3683s # static void 3683s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 3683s # GVariant *changed_properties, 3683s # const gchar *const *invalidated_properties) 3683s # { 3683s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 3683s # guint n; 3683s # const gchar *key; 3683s # GVariantIter *iter; 3683s # _ExtendedGDBusPropertyInfo *info; 3683s # g_variant_get (changed_properties, "a{sv}", &iter); 3683s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3683s # { 3683s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 3683s # g_datalist_remove_data (&proxy->priv->qdata, key); 3683s # if (info != NULL) 3683s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3683s # } 3683s # g_variant_iter_free (iter); 3683s # for (n = 0; invalidated_properties[n] != NULL; n++) 3683s # { 3683s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 3683s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3683s # if (info != NULL) 3683s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3683s # } 3683s # } 3683s # 3683s # static GVariant * 3683s # good_types_proxy_get_good_property_type (GoodTypes *object) 3683s # { 3683s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 3683s # GVariant *variant; 3683s # GVariant *value = NULL; 3683s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 3683s # value = variant; 3683s # if (variant != NULL) 3683s # g_variant_unref (variant); 3683s # return value; 3683s # } 3683s # 3683s # static void 3683s # good_types_proxy_init (GoodTypesProxy *proxy) 3683s # { 3683s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3683s # proxy->priv = good_types_proxy_get_instance_private (proxy); 3683s # #else 3683s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 3683s # #endif 3683s # 3683s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 3683s # } 3683s # 3683s # static void 3683s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 3683s # { 3683s # GObjectClass *gobject_class; 3683s # GDBusProxyClass *proxy_class; 3683s # 3683s # gobject_class = G_OBJECT_CLASS (klass); 3683s # gobject_class->finalize = good_types_proxy_finalize; 3683s # gobject_class->get_property = good_types_proxy_get_property; 3683s # gobject_class->set_property = good_types_proxy_set_property; 3683s # 3683s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3683s # proxy_class->g_signal = good_types_proxy_g_signal; 3683s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 3683s # 3683s # good_types_override_properties (gobject_class, 1); 3683s # 3683s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3683s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 3683s # #endif 3683s # } 3683s # 3683s # static void 3683s # good_types_proxy_iface_init (GoodTypesIface *iface) 3683s # { 3683s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 3683s # } 3683s # 3683s # /** 3683s # * good_types_proxy_new: 3683s # * @connection: A #GDBusConnection. 3683s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3683s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3683s # * @object_path: An object path. 3683s # * @cancellable: (nullable): A #GCancellable or %NULL. 3683s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3683s # * @user_data: User data to pass to @callback. 3683s # * 3683s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link>. See g_dbus_proxy_new() for more details. 3683s # * 3683s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3683s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 3683s # * 3683s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 3683s # */ 3683s # void 3683s # good_types_proxy_new ( 3683s # GDBusConnection *connection, 3683s # GDBusProxyFlags flags, 3683s # const gchar *name, 3683s # const gchar *object_path, 3683s # GCancellable *cancellable, 3683s # GAsyncReadyCallback callback, 3683s # gpointer user_data) 3683s # { 3683s # 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); 3683s # } 3683s # 3683s # /** 3683s # * good_types_proxy_new_finish: 3683s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 3683s # * @error: Return location for error or %NULL 3683s # * 3683s # * Finishes an operation started with good_types_proxy_new(). 3683s # * 3683s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 3683s # */ 3683s # GoodTypes * 3683s # good_types_proxy_new_finish ( 3683s # GAsyncResult *res, 3683s # GError **error) 3683s # { 3683s # GObject *ret; 3683s # GObject *source_object; 3683s # source_object = g_async_result_get_source_object (res); 3683s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3683s # g_object_unref (source_object); 3683s # if (ret != NULL) 3683s # return GOOD_TYPES (ret); 3683s # else 3683s # return NULL; 3683s # } 3683s # 3683s # /** 3683s # * good_types_proxy_new_sync: 3683s # * @connection: A #GDBusConnection. 3683s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3683s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3683s # * @object_path: An object path. 3683s # * @cancellable: (nullable): A #GCancellable or %NULL. 3683s # * @error: Return location for error or %NULL 3683s # * 3683s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link>. See g_dbus_proxy_new_sync() for more details. 3683s # * 3683s # * The calling thread is blocked until a reply is received. 3683s # * 3683s # * See good_types_proxy_new() for the asynchronous version of this constructor. 3683s # * 3683s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 3683s # */ 3683s # GoodTypes * 3683s # good_types_proxy_new_sync ( 3683s # GDBusConnection *connection, 3683s # GDBusProxyFlags flags, 3683s # const gchar *name, 3683s # const gchar *object_path, 3683s # GCancellable *cancellable, 3683s # GError **error) 3683s # { 3683s # GInitable *ret; 3683s # 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); 3683s # if (ret != NULL) 3683s # return GOOD_TYPES (ret); 3683s # else 3683s # return NULL; 3683s # } 3683s # 3683s # 3683s # /** 3683s # * good_types_proxy_new_for_bus: 3683s # * @bus_type: A #GBusType. 3683s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3683s # * @name: A bus name (well-known or unique). 3683s # * @object_path: An object path. 3683s # * @cancellable: (nullable): A #GCancellable or %NULL. 3683s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3683s # * @user_data: User data to pass to @callback. 3683s # * 3683s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3683s # * 3683s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3683s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 3683s # * 3683s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3683s # */ 3683s # void 3683s # good_types_proxy_new_for_bus ( 3683s # GBusType bus_type, 3683s # GDBusProxyFlags flags, 3683s # const gchar *name, 3683s # const gchar *object_path, 3683s # GCancellable *cancellable, 3683s # GAsyncReadyCallback callback, 3683s # gpointer user_data) 3683s # { 3683s # 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); 3683s # } 3683s # 3683s # /** 3683s # * good_types_proxy_new_for_bus_finish: 3683s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 3683s # * @error: Return location for error or %NULL 3683s # * 3683s # * Finishes an operation started with good_types_proxy_new_for_bus(). 3683s # * 3683s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 3683s # */ 3683s # GoodTypes * 3683s # good_types_proxy_new_for_bus_finish ( 3683s # GAsyncResult *res, 3683s # GError **error) 3683s # { 3683s # GObject *ret; 3683s # GObject *source_object; 3683s # source_object = g_async_result_get_source_object (res); 3683s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3683s # g_object_unref (source_object); 3683s # if (ret != NULL) 3683s # return GOOD_TYPES (ret); 3683s # else 3683s # return NULL; 3683s # } 3683s # 3683s # /** 3683s # * good_types_proxy_new_for_bus_sync: 3683s # * @bus_type: A #GBusType. 3683s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3683s # * @name: A bus name (well-known or unique). 3683s # * @object_path: An object path. 3683s # * @cancellable: (nullable): A #GCancellable or %NULL. 3683s # * @error: Return location for error or %NULL 3683s # * 3683s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3683s # * 3683s # * The calling thread is blocked until a reply is received. 3683s # * 3683s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 3683s # * 3683s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 3683s # */ 3683s # GoodTypes * 3683s # good_types_proxy_new_for_bus_sync ( 3683s # GBusType bus_type, 3683s # GDBusProxyFlags flags, 3683s # const gchar *name, 3683s # const gchar *object_path, 3683s # GCancellable *cancellable, 3683s # GError **error) 3683s # { 3683s # GInitable *ret; 3683s # 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); 3683s # if (ret != NULL) 3683s # return GOOD_TYPES (ret); 3683s # else 3683s # return NULL; 3683s # } 3683s # 3683s # 3683s # /* ------------------------------------------------------------------------ */ 3683s # 3683s # /** 3683s # * GoodTypesSkeleton: 3683s # * 3683s # * The <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link>Skeleton structure contains only private data and should only be accessed using the provided API. 3683s # */ 3683s # 3683s # /** 3683s # * GoodTypesSkeletonClass: 3683s # * @parent_class: The parent class. 3683s # * 3683s # * Class structure for <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link>Skeleton. 3683s # */ 3683s # 3683s # struct _GoodTypesSkeletonPrivate 3683s # { 3683s # GValue *properties; 3683s # GList *changed_properties; 3683s # GSource *changed_properties_idle_source; 3683s # GMainContext *context; 3683s # GMutex lock; 3683s # }; 3683s # 3683s # static void 3683s # _good_types_skeleton_handle_method_call ( 3683s # GDBusConnection *connection G_GNUC_UNUSED, 3683s # const gchar *sender G_GNUC_UNUSED, 3683s # const gchar *object_path G_GNUC_UNUSED, 3683s # const gchar *interface_name, 3683s # const gchar *method_name, 3683s # GVariant *parameters, 3683s # GDBusMethodInvocation *invocation, 3683s # gpointer user_data) 3683s # { 3683s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 3683s # _ExtendedGDBusMethodInfo *info; 3683s # GVariantIter iter; 3683s # GVariant *child; 3683s # GValue *paramv; 3683s # gsize num_params; 3683s # guint num_extra; 3683s # gsize n; 3683s # guint signal_id; 3683s # GValue return_value = G_VALUE_INIT; 3683s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3683s # g_assert (info != NULL); 3683s # num_params = g_variant_n_children (parameters); 3683s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3683s # n = 0; 3683s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 3683s # g_value_set_object (¶mv[n++], skeleton); 3683s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3683s # g_value_set_object (¶mv[n++], invocation); 3683s # if (info->pass_fdlist) 3683s # { 3683s # #ifdef G_OS_UNIX 3683s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3683s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3683s # #else 3683s # g_assert_not_reached (); 3683s # #endif 3683s # } 3683s # g_variant_iter_init (&iter, parameters); 3683s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3683s # { 3683s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3683s # if (arg_info->use_gvariant) 3683s # { 3683s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3683s # g_value_set_variant (¶mv[n], child); 3683s # n++; 3683s # } 3683s # else 3683s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3683s # g_variant_unref (child); 3683s # } 3683s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 3683s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3683s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3683s # if (!g_value_get_boolean (&return_value)) 3683s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3683s # g_value_unset (&return_value); 3683s # for (n = 0; n < num_params + num_extra; n++) 3683s # g_value_unset (¶mv[n]); 3683s # g_free (paramv); 3683s # } 3683s # 3683s # static GVariant * 3683s # _good_types_skeleton_handle_get_property ( 3683s # GDBusConnection *connection G_GNUC_UNUSED, 3683s # const gchar *sender G_GNUC_UNUSED, 3683s # const gchar *object_path G_GNUC_UNUSED, 3683s # const gchar *interface_name G_GNUC_UNUSED, 3683s # const gchar *property_name, 3683s # GError **error, 3683s # gpointer user_data) 3683s # { 3683s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 3683s # GValue value = G_VALUE_INIT; 3683s # GParamSpec *pspec; 3683s # _ExtendedGDBusPropertyInfo *info; 3683s # GVariant *ret; 3683s # ret = NULL; 3683s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 3683s # g_assert (info != NULL); 3683s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3683s # if (pspec == NULL) 3683s # { 3683s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3683s # } 3683s # else 3683s # { 3683s # g_value_init (&value, pspec->value_type); 3683s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3683s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3683s # g_value_unset (&value); 3683s # } 3683s # return ret; 3683s # } 3683s # 3683s # static gboolean 3683s # _good_types_skeleton_handle_set_property ( 3683s # GDBusConnection *connection G_GNUC_UNUSED, 3683s # const gchar *sender G_GNUC_UNUSED, 3683s # const gchar *object_path G_GNUC_UNUSED, 3683s # const gchar *interface_name G_GNUC_UNUSED, 3683s # const gchar *property_name, 3683s # GVariant *variant, 3683s # GError **error, 3683s # gpointer user_data) 3683s # { 3683s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 3683s # GValue value = G_VALUE_INIT; 3683s # GParamSpec *pspec; 3683s # _ExtendedGDBusPropertyInfo *info; 3683s # gboolean ret; 3683s # ret = FALSE; 3683s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 3683s # g_assert (info != NULL); 3683s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3683s # if (pspec == NULL) 3683s # { 3683s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3683s # } 3683s # else 3683s # { 3683s # if (info->use_gvariant) 3683s # g_value_set_variant (&value, variant); 3683s # else 3683s # g_dbus_gvariant_to_gvalue (variant, &value); 3683s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3683s # g_value_unset (&value); 3683s # ret = TRUE; 3683s # } 3683s # return ret; 3683s # } 3683s # 3683s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 3683s # { 3683s # _good_types_skeleton_handle_method_call, 3683s # _good_types_skeleton_handle_get_property, 3683s # _good_types_skeleton_handle_set_property, 3683s # {NULL} 3683s # }; 3683s # 3683s # static GDBusInterfaceInfo * 3683s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3683s # { 3683s # return good_types_interface_info (); 3683s # } 3683s # 3683s # static GDBusInterfaceVTable * 3683s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3683s # { 3683s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 3683s # } 3683s # 3683s # static GVariant * 3683s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3683s # { 3683s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 3683s # 3683s # GVariantBuilder builder; 3683s # guint n; 3683s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3683s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3683s # #else 3683s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3683s # #endif 3683s # if (_good_types_interface_info.parent_struct.properties == NULL) 3683s # goto out; 3683s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 3683s # { 3683s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 3683s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3683s # { 3683s # GVariant *value; 3683s # 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); 3683s # if (value != NULL) 3683s # { 3683s # g_variant_take_ref (value); 3683s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3683s # g_variant_unref (value); 3683s # } 3683s # } 3683s # } 3683s # out: 3683s # return g_variant_builder_end (&builder); 3683s # } 3683s # 3683s # static gboolean _good_types_emit_changed (gpointer user_data); 3683s # 3683s # static void 3683s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 3683s # { 3683s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 3683s # gboolean emit_changed = FALSE; 3683s # 3683s # g_mutex_lock (&skeleton->priv->lock); 3683s # if (skeleton->priv->changed_properties_idle_source != NULL) 3683s # { 3683s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3683s # skeleton->priv->changed_properties_idle_source = NULL; 3683s # emit_changed = TRUE; 3683s # } 3683s # g_mutex_unlock (&skeleton->priv->lock); 3683s # 3683s # if (emit_changed) 3683s # _good_types_emit_changed (skeleton); 3683s # } 3683s # 3683s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 3683s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3683s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3683s # G_ADD_PRIVATE (GoodTypesSkeleton) 3683s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 3683s # 3683s # #else 3683s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3683s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 3683s # 3683s # #endif 3683s # static void 3683s # good_types_skeleton_finalize (GObject *object) 3683s # { 3683s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 3683s # guint n; 3683s # for (n = 0; n < 1; n++) 3683s # g_value_unset (&skeleton->priv->properties[n]); 3683s # g_free (skeleton->priv->properties); 3683s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3683s # if (skeleton->priv->changed_properties_idle_source != NULL) 3683s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3683s # g_main_context_unref (skeleton->priv->context); 3683s # g_mutex_clear (&skeleton->priv->lock); 3683s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 3683s # } 3683s # 3683s # static void 3683s # good_types_skeleton_get_property (GObject *object, 3683s # guint prop_id, 3683s # GValue *value, 3683s # GParamSpec *pspec G_GNUC_UNUSED) 3683s # { 3683s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 3683s # g_assert (prop_id != 0 && prop_id - 1 < 1); 3683s # g_mutex_lock (&skeleton->priv->lock); 3683s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 3683s # g_mutex_unlock (&skeleton->priv->lock); 3683s # } 3683s # 3683s # static gboolean 3683s # _good_types_emit_changed (gpointer user_data) 3683s # { 3683s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 3683s # GList *l; 3683s # GVariantBuilder builder; 3683s # GVariantBuilder invalidated_builder; 3683s # guint num_changes; 3683s # 3683s # g_mutex_lock (&skeleton->priv->lock); 3683s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3683s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3683s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 3683s # #else 3683s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 3683s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 3683s # #endif 3683s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 3683s # { 3683s # ChangedProperty *cp = l->data; 3683s # GVariant *variant; 3683s # const GValue *cur_value; 3683s # 3683s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 3683s # if (!_g_value_equal (cur_value, &cp->orig_value)) 3683s # { 3683s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 3683s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 3683s # g_variant_unref (variant); 3683s # num_changes++; 3683s # } 3683s # } 3683s # if (num_changes > 0) 3683s # { 3683s # GList *connections, *ll; 3683s # GVariant *signal_variant; 3683s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 3683s # &builder, &invalidated_builder)); 3683s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3683s # for (ll = connections; ll != NULL; ll = ll->next) 3683s # { 3683s # GDBusConnection *connection = ll->data; 3683s # 3683s # g_dbus_connection_emit_signal (connection, 3683s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 3683s # "org.freedesktop.DBus.Properties", 3683s # "PropertiesChanged", 3683s # signal_variant, 3683s # NULL); 3683s # } 3683s # g_variant_unref (signal_variant); 3683s # g_list_free_full (connections, g_object_unref); 3683s # } 3683s # else 3683s # { 3683s # g_variant_builder_clear (&builder); 3683s # g_variant_builder_clear (&invalidated_builder); 3683s # } 3683s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3683s # skeleton->priv->changed_properties = NULL; 3683s # skeleton->priv->changed_properties_idle_source = NULL; 3683s # g_mutex_unlock (&skeleton->priv->lock); 3683s # return FALSE; 3683s # } 3683s # 3683s # static void 3683s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 3683s # { 3683s # ChangedProperty *cp; 3683s # GList *l; 3683s # cp = NULL; 3683s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 3683s # { 3683s # ChangedProperty *i_cp = l->data; 3683s # if (i_cp->info == info) 3683s # { 3683s # cp = i_cp; 3683s # break; 3683s # } 3683s # } 3683s # if (cp == NULL) 3683s # { 3683s # cp = g_new0 (ChangedProperty, 1); 3683s # cp->prop_id = prop_id; 3683s # cp->info = info; 3683s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 3683s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 3683s # g_value_copy (orig_value, &cp->orig_value); 3683s # } 3683s # } 3683s # 3683s # static void 3683s # good_types_skeleton_notify (GObject *object, 3683s # GParamSpec *pspec G_GNUC_UNUSED) 3683s # { 3683s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 3683s # g_mutex_lock (&skeleton->priv->lock); 3683s # if (skeleton->priv->changed_properties != NULL && 3683s # skeleton->priv->changed_properties_idle_source == NULL) 3683s # { 3683s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 3683s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 3683s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 3683s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 3683s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 3683s # g_source_unref (skeleton->priv->changed_properties_idle_source); 3683s # } 3683s # g_mutex_unlock (&skeleton->priv->lock); 3683s # } 3683s # 3683s # static void 3683s # good_types_skeleton_set_property (GObject *object, 3683s # guint prop_id, 3683s # const GValue *value, 3683s # GParamSpec *pspec) 3683s # { 3683s # const _ExtendedGDBusPropertyInfo *info; 3683s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 3683s # g_assert (prop_id != 0 && prop_id - 1 < 1); 3683s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 3683s # g_mutex_lock (&skeleton->priv->lock); 3683s # g_object_freeze_notify (object); 3683s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 3683s # { 3683s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 3683s # info->emits_changed_signal) 3683s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 3683s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 3683s # g_object_notify_by_pspec (object, pspec); 3683s # } 3683s # g_mutex_unlock (&skeleton->priv->lock); 3683s # g_object_thaw_notify (object); 3683s # } 3683s # 3683s # static void 3683s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 3683s # { 3683s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3683s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 3683s # #else 3683s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 3683s # #endif 3683s # 3683s # g_mutex_init (&skeleton->priv->lock); 3683s # skeleton->priv->context = g_main_context_ref_thread_default (); 3683s # skeleton->priv->properties = g_new0 (GValue, 1); 3683s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 3683s # } 3683s # 3683s # static GVariant * 3683s # good_types_skeleton_get_good_property_type (GoodTypes *object) 3683s # { 3683s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 3683s # GVariant *value; 3683s # g_mutex_lock (&skeleton->priv->lock); 3683s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 3683s # g_mutex_unlock (&skeleton->priv->lock); 3683s # return value; 3683s # } 3683s # 3683s # static void 3683s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 3683s # { 3683s # GObjectClass *gobject_class; 3683s # GDBusInterfaceSkeletonClass *skeleton_class; 3683s # 3683s # gobject_class = G_OBJECT_CLASS (klass); 3683s # gobject_class->finalize = good_types_skeleton_finalize; 3683s # gobject_class->get_property = good_types_skeleton_get_property; 3683s # gobject_class->set_property = good_types_skeleton_set_property; 3683s # gobject_class->notify = good_types_skeleton_notify; 3683s # 3683s # 3683s # good_types_override_properties (gobject_class, 1); 3683s # 3683s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3683s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 3683s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 3683s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 3683s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 3683s # 3683s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3683s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 3683s # #endif 3683s # } 3683s # 3683s # static void 3683s # good_types_skeleton_iface_init (GoodTypesIface *iface) 3683s # { 3683s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 3683s # } 3683s # 3683s # /** 3683s # * good_types_skeleton_new: 3683s # * 3683s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link>. 3683s # * 3683s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 3683s # */ 3683s # GoodTypes * 3683s # good_types_skeleton_new (void) 3683s # { 3683s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 3683s # } 3683s # Error: 3683s # 3683s # /tmp/tmp7qc5dkeb/tmp1gpk_aks.xml: 3683s # <node> 3683s # <interface name="GoodTypes"> 3683s # <property type="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas" name="GoodPropertyType" access="read" /> 3683s # </interface> 3683s # </node> 3683s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7qc5dkeb/tmp1gpk_aks.xml', '--output', '-', '--body'] 3683s # Return code: 0 3683s # Output: 3683s # /* 3683s # * This file is generated by gdbus-codegen, do not modify it. 3683s # * 3683s # * The license of this code is the same as for the D-Bus interface description 3683s # * it was derived from. Note that it links to GLib, so must comply with the 3683s # * LGPL linking clauses. 3683s # */ 3683s # 3683s # #ifdef HAVE_CONFIG_H 3683s # # include "config.h" 3683s # #endif 3683s # 3683s # #include <string.h> 3683s # #ifdef G_OS_UNIX 3683s # # include <gio/gunixfdlist.h> 3683s # #endif 3683s # 3683s # #ifdef G_ENABLE_DEBUG 3683s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3683s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3683s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3683s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3683s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3683s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3683s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3683s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3683s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3683s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3683s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3683s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3683s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3683s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3683s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3683s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3683s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3683s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3683s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3683s # #else /* !G_ENABLE_DEBUG */ 3683s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3683s # * Do not access GValues directly in your code. Instead, use the 3683s # * g_value_get_*() functions 3683s # */ 3683s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3683s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3683s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3683s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3683s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3683s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3683s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3683s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3683s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3683s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3683s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3683s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3683s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3683s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3683s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3683s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3683s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3683s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3683s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3683s # #endif /* !G_ENABLE_DEBUG */ 3683s # 3683s # typedef struct 3683s # { 3683s # GDBusArgInfo parent_struct; 3683s # gboolean use_gvariant; 3683s # } _ExtendedGDBusArgInfo; 3683s # 3683s # typedef struct 3683s # { 3683s # GDBusMethodInfo parent_struct; 3683s # const gchar *signal_name; 3683s # gboolean pass_fdlist; 3683s # } _ExtendedGDBusMethodInfo; 3683s # 3683s # typedef struct 3683s # { 3683s # GDBusSignalInfo parent_struct; 3683s # const gchar *signal_name; 3683s # } _ExtendedGDBusSignalInfo; 3683s # 3683s # typedef struct 3683s # { 3683s # GDBusPropertyInfo parent_struct; 3683s # const gchar *hyphen_name; 3683s # guint use_gvariant : 1; 3683s # guint emits_changed_signal : 1; 3683s # } _ExtendedGDBusPropertyInfo; 3683s # 3683s # typedef struct 3683s # { 3683s # GDBusInterfaceInfo parent_struct; 3683s # const gchar *hyphen_name; 3683s # } _ExtendedGDBusInterfaceInfo; 3683s # 3683s # typedef struct 3683s # { 3683s # const _ExtendedGDBusPropertyInfo *info; 3683s # guint prop_id; 3683s # GValue orig_value; /* the value before the change */ 3683s # } ChangedProperty; 3683s # 3683s # static void 3683s # _changed_property_free (ChangedProperty *data) 3683s # { 3683s # g_value_unset (&data->orig_value); 3683s # g_free (data); 3683s # } 3683s # 3683s # static gboolean 3683s # _g_strv_equal0 (gchar **a, gchar **b) 3683s # { 3683s # gboolean ret = FALSE; 3683s # guint n; 3683s # if (a == NULL && b == NULL) 3683s # { 3683s # ret = TRUE; 3683s # goto out; 3683s # } 3683s # if (a == NULL || b == NULL) 3683s # goto out; 3683s # if (g_strv_length (a) != g_strv_length (b)) 3683s # goto out; 3683s # for (n = 0; a[n] != NULL; n++) 3683s # if (g_strcmp0 (a[n], b[n]) != 0) 3683s # goto out; 3683s # ret = TRUE; 3683s # out: 3683s # return ret; 3683s # } 3683s # 3683s # static gboolean 3683s # _g_variant_equal0 (GVariant *a, GVariant *b) 3683s # { 3683s # gboolean ret = FALSE; 3683s # if (a == NULL && b == NULL) 3683s # { 3683s # ret = TRUE; 3683s # goto out; 3683s # } 3683s # if (a == NULL || b == NULL) 3683s # goto out; 3683s # ret = g_variant_equal (a, b); 3683s # out: 3683s # return ret; 3683s # } 3683s # 3683s # G_GNUC_UNUSED static gboolean 3683s # _g_value_equal (const GValue *a, const GValue *b) 3683s # { 3683s # gboolean ret = FALSE; 3683s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3683s # switch (G_VALUE_TYPE (a)) 3683s # { 3683s # case G_TYPE_BOOLEAN: 3683s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3683s # break; 3683s # case G_TYPE_UCHAR: 3683s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3683s # break; 3683s # case G_TYPE_INT: 3683s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3683s # break; 3683s # case G_TYPE_UINT: 3683s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3683s # break; 3683s # case G_TYPE_INT64: 3683s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3683s # break; 3683s # case G_TYPE_UINT64: 3683s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3683s # break; 3683s # case G_TYPE_DOUBLE: 3683s # { 3683s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3683s # gdouble da = g_value_get_double (a); 3683s # gdouble db = g_value_get_double (b); 3683s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3683s # } 3683s # break; 3683s # case G_TYPE_STRING: 3683s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3683s # break; 3683s # case G_TYPE_VARIANT: 3683s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3683s # break; 3683s # default: 3683s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3683s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3683s # else 3683s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3683s # break; 3683s # } 3683s # return ret; 3683s # } 3683s # 3683s # /* ------------------------------------------------------------------------ 3683s # * Code for interface GoodTypes 3683s # * ------------------------------------------------------------------------ 3683s # */ 3683s # 3683s # /** 3683s # * SECTION:GoodTypes 3683s # * @title: GoodTypes 3683s # * @short_description: Generated C code for the GoodTypes D-Bus interface 3683s # * 3683s # * This section contains code for working with the <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link> D-Bus interface in C. 3683s # */ 3683s # 3683s # /* ---- Introspection data for GoodTypes ---- */ 3683s # 3683s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 3683s # { 3683s # { 3683s # -1, 3683s # (gchar *) "GoodPropertyType", 3683s # (gchar *) "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas", 3683s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 3683s # NULL 3683s # }, 3683s # "good-property-type", 3683s # FALSE, 3683s # TRUE 3683s # }; 3683s # 3683s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 3683s # { 3683s # &_good_types_property_info_good_property_type.parent_struct, 3683s # NULL 3683s # }; 3683s # 3683s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 3683s # { 3683s # { 3683s # -1, 3683s # (gchar *) "GoodTypes", 3683s # NULL, 3683s # NULL, 3683s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 3683s # NULL 3683s # }, 3683s # "good-types", 3683s # }; 3683s # 3683s # 3683s # /** 3683s # * good_types_interface_info: 3683s # * 3683s # * Gets a machine-readable description of the <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link> D-Bus interface. 3683s # * 3683s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3683s # */ 3683s # GDBusInterfaceInfo * 3683s # good_types_interface_info (void) 3683s # { 3683s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 3683s # } 3683s # 3683s # /** 3683s # * good_types_override_properties: 3683s # * @klass: The class structure for a #GObject derived class. 3683s # * @property_id_begin: The property id to assign to the first overridden property. 3683s # * 3683s # * Overrides all #GObject properties in the <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link> interface for a concrete class. 3683s # * The properties are overridden in the order they are defined. 3683s # * 3683s # * Returns: The last property id. 3683s # */ 3683s # guint 3683s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 3683s # { 3683s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 3683s # return property_id_begin - 1; 3683s # } 3683s # 3683s # 3683s # 3683s # /** 3683s # * GoodTypes: 3683s # * 3683s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link>. 3683s # */ 3683s # 3683s # /** 3683s # * GoodTypesIface: 3683s # * @parent_iface: The parent interface. 3683s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 3683s # * 3683s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link>. 3683s # */ 3683s # 3683s # typedef GoodTypesIface GoodTypesInterface; 3683s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 3683s # 3683s # static void 3683s # good_types_default_init (GoodTypesIface *iface) 3683s # { 3683s # /* GObject properties for D-Bus properties: */ 3683s # /** 3683s # * GoodTypes:good-property-type: 3683s # * 3683s # * Represents the D-Bus property <link linkend="gdbus-property-GoodTypes.GoodPropertyType">"GoodPropertyType"</link>. 3683s # * 3683s # * 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. 3683s # */ 3683s # g_object_interface_install_property (iface, 3683s # g_param_spec_variant ("good-property-type", "GoodPropertyType", "GoodPropertyType", G_VARIANT_TYPE ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas"), NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 3683s # } 3683s # 3683s # /** 3683s # * good_types_get_good_property_type: (skip) 3683s # * @object: A <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link>. 3683s # * 3683s # * Gets the value of the <link linkend="gdbus-property-GoodTypes.GoodPropertyType">"GoodPropertyType"</link> D-Bus property. 3683s # * 3683s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 3683s # * 3683s # * 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. 3683s # * 3683s # * 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. 3683s # */ 3683s # GVariant * 3683s # good_types_get_good_property_type (GoodTypes *object) 3683s # { 3683s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 3683s # 3683s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 3683s # } 3683s # 3683s # /** 3683s # * good_types_dup_good_property_type: (skip) 3683s # * @object: A <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link>. 3683s # * 3683s # * Gets a copy of the <link linkend="gdbus-property-GoodTypes.GoodPropertyType">"GoodPropertyType"</link> D-Bus property. 3683s # * 3683s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 3683s # * 3683s # * 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(). 3683s # */ 3683s # GVariant * 3683s # good_types_dup_good_property_type (GoodTypes *object) 3683s # { 3683s # GVariant *value; 3683s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 3683s # return value; 3683s # } 3683s # 3683s # /** 3683s # * good_types_set_good_property_type: (skip) 3683s # * @object: A <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link>. 3683s # * @value: The value to set. 3683s # * 3683s # * Sets the <link linkend="gdbus-property-GoodTypes.GoodPropertyType">"GoodPropertyType"</link> D-Bus property to @value. 3683s # * 3683s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 3683s # */ 3683s # void 3683s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 3683s # { 3683s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 3683s # } 3683s # 3683s # /* ------------------------------------------------------------------------ */ 3683s # 3683s # /** 3683s # * GoodTypesProxy: 3683s # * 3683s # * The <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link>Proxy structure contains only private data and should only be accessed using the provided API. 3683s # */ 3683s # 3683s # /** 3683s # * GoodTypesProxyClass: 3683s # * @parent_class: The parent class. 3683s # * 3683s # * Class structure for <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link>Proxy. 3683s # */ 3683s # 3683s # struct _GoodTypesProxyPrivate 3683s # { 3683s # GData *qdata; 3683s # }; 3683s # 3683s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 3683s # 3683s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3683s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 3683s # G_ADD_PRIVATE (GoodTypesProxy) 3683s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 3683s # 3683s # #else 3683s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 3683s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 3683s # 3683s # #endif 3683s # static void 3683s # good_types_proxy_finalize (GObject *object) 3683s # { 3683s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 3683s # g_datalist_clear (&proxy->priv->qdata); 3683s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 3683s # } 3683s # 3683s # static void 3683s # good_types_proxy_get_property (GObject *object, 3683s # guint prop_id, 3683s # GValue *value, 3683s # GParamSpec *pspec G_GNUC_UNUSED) 3683s # { 3683s # const _ExtendedGDBusPropertyInfo *info; 3683s # GVariant *variant; 3683s # g_assert (prop_id != 0 && prop_id - 1 < 1); 3683s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 3683s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 3683s # if (info->use_gvariant) 3683s # { 3683s # g_value_set_variant (value, variant); 3683s # } 3683s # else 3683s # { 3683s # if (variant != NULL) 3683s # g_dbus_gvariant_to_gvalue (variant, value); 3683s # } 3683s # if (variant != NULL) 3683s # g_variant_unref (variant); 3683s # } 3683s # 3683s # static void 3683s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 3683s # GAsyncResult *res, 3683s # gpointer user_data) 3683s # { 3683s # const _ExtendedGDBusPropertyInfo *info = user_data; 3683s # GError *error; 3683s # GVariant *_ret; 3683s # error = NULL; 3683s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 3683s # if (!_ret) 3683s # { 3683s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 3683s # info->parent_struct.name, 3683s # error->message, g_quark_to_string (error->domain), error->code); 3683s # g_error_free (error); 3683s # } 3683s # else 3683s # { 3683s # g_variant_unref (_ret); 3683s # } 3683s # } 3683s # 3683s # static void 3683s # good_types_proxy_set_property (GObject *object, 3683s # guint prop_id, 3683s # const GValue *value, 3683s # GParamSpec *pspec G_GNUC_UNUSED) 3683s # { 3683s # const _ExtendedGDBusPropertyInfo *info; 3683s # GVariant *variant; 3683s # g_assert (prop_id != 0 && prop_id - 1 < 1); 3683s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 3683s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 3683s # g_dbus_proxy_call (G_DBUS_PROXY (object), 3683s # "org.freedesktop.DBus.Properties.Set", 3683s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 3683s # G_DBUS_CALL_FLAGS_NONE, 3683s # -1, 3683s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 3683s # g_variant_unref (variant); 3683s # } 3683s # 3683s # static void 3683s # good_types_proxy_g_signal (GDBusProxy *proxy, 3683s # const gchar *sender_name G_GNUC_UNUSED, 3683s # const gchar *signal_name, 3683s # GVariant *parameters) 3683s # { 3683s # _ExtendedGDBusSignalInfo *info; 3683s # GVariantIter iter; 3683s # GVariant *child; 3683s # GValue *paramv; 3683s # gsize num_params; 3683s # gsize n; 3683s # guint signal_id; 3683s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 3683s # if (info == NULL) 3683s # return; 3683s # num_params = g_variant_n_children (parameters); 3683s # paramv = g_new0 (GValue, num_params + 1); 3683s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 3683s # g_value_set_object (¶mv[0], proxy); 3683s # g_variant_iter_init (&iter, parameters); 3683s # n = 1; 3683s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3683s # { 3683s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3683s # if (arg_info->use_gvariant) 3683s # { 3683s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3683s # g_value_set_variant (¶mv[n], child); 3683s # n++; 3683s # } 3683s # else 3683s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3683s # g_variant_unref (child); 3683s # } 3683s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 3683s # g_signal_emitv (paramv, signal_id, 0, NULL); 3683s # for (n = 0; n < num_params + 1; n++) 3683s # g_value_unset (¶mv[n]); 3683s # g_free (paramv); 3683s # } 3683s # 3683s # static void 3683s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 3683s # GVariant *changed_properties, 3683s # const gchar *const *invalidated_properties) 3683s # { 3683s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 3683s # guint n; 3683s # const gchar *key; 3683s # GVariantIter *iter; 3683s # _ExtendedGDBusPropertyInfo *info; 3683s # g_variant_get (changed_properties, "a{sv}", &iter); 3683s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3683s # { 3683s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 3683s # g_datalist_remove_data (&proxy->priv->qdata, key); 3683s # if (info != NULL) 3683s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3683s # } 3683s # g_variant_iter_free (iter); 3683s # for (n = 0; invalidated_properties[n] != NULL; n++) 3683s # { 3683s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 3683s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3683s # if (info != NULL) 3683s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3683s # } 3683s # } 3683s # 3683s # static GVariant * 3683s # good_types_proxy_get_good_property_type (GoodTypes *object) 3683s # { 3683s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 3683s # GVariant *variant; 3683s # GVariant *value = NULL; 3683s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 3683s # value = variant; 3683s # if (variant != NULL) 3683s # g_variant_unref (variant); 3683s # return value; 3683s # } 3683s # 3683s # static void 3683s # good_types_proxy_init (GoodTypesProxy *proxy) 3683s # { 3683s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3683s # proxy->priv = good_types_proxy_get_instance_private (proxy); 3683s # #else 3683s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 3683s # #endif 3683s # 3683s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 3683s # } 3683s # 3683s # static void 3683s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 3683s # { 3683s # GObjectClass *gobject_class; 3683s # GDBusProxyClass *proxy_class; 3683s # 3683s # gobject_class = G_OBJECT_CLASS (klass); 3683s # gobject_class->finalize = good_types_proxy_finalize; 3683s # gobject_class->get_property = good_types_proxy_get_property; 3683s # gobject_class->set_property = good_types_proxy_set_property; 3683s # 3683s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3683s # proxy_class->g_signal = good_types_proxy_g_signal; 3683s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 3683s # 3683s # good_types_override_properties (gobject_class, 1); 3683s # 3683s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3683s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 3683s # #endif 3683s # } 3683s # 3683s # static void 3683s # good_types_proxy_iface_init (GoodTypesIface *iface) 3683s # { 3683s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 3683s # } 3683s # 3683s # /** 3683s # * good_types_proxy_new: 3683s # * @connection: A #GDBusConnection. 3683s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3683s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3683s # * @object_path: An object path. 3683s # * @cancellable: (nullable): A #GCancellable or %NULL. 3683s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3683s # * @user_data: User data to pass to @callback. 3683s # * 3683s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link>. See g_dbus_proxy_new() for more details. 3683s # * 3683s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3683s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 3683s # * 3683s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 3683s # */ 3683s # void 3683s # good_types_proxy_new ( 3683s # GDBusConnection *connection, 3683s # GDBusProxyFlags flags, 3683s # const gchar *name, 3683s # const gchar *object_path, 3683s # GCancellable *cancellable, 3683s # GAsyncReadyCallback callback, 3683s # gpointer user_data) 3683s # { 3683s # 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); 3683s # } 3683s # 3683s # /** 3683s # * good_types_proxy_new_finish: 3683s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 3683s # * @error: Return location for error or %NULL 3683s # * 3683s # * Finishes an operation started with good_types_proxy_new(). 3683s # * 3683s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 3683s # */ 3683s # GoodTypes * 3683s # good_types_proxy_new_finish ( 3683s # GAsyncResult *res, 3683s # GError **error) 3683s # { 3683s # GObject *ret; 3683s # GObject *source_object; 3683s # source_object = g_async_result_get_source_object (res); 3683s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3683s # g_object_unref (source_object); 3683s # if (ret != NULL) 3683s # return GOOD_TYPES (ret); 3683s # else 3683s # return NULL; 3683s # } 3683s # 3683s # /** 3683s # * good_types_proxy_new_sync: 3683s # * @connection: A #GDBusConnection. 3683s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3683s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3683s # * @object_path: An object path. 3683s # * @cancellable: (nullable): A #GCancellable or %NULL. 3683s # * @error: Return location for error or %NULL 3683s # * 3683s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link>. See g_dbus_proxy_new_sync() for more details. 3683s # * 3683s # * The calling thread is blocked until a reply is received. 3683s # * 3683s # * See good_types_proxy_new() for the asynchronous version of this constructor. 3683s # * 3683s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 3683s # */ 3683s # GoodTypes * 3683s # good_types_proxy_new_sync ( 3683s # GDBusConnection *connection, 3683s # GDBusProxyFlags flags, 3683s # const gchar *name, 3683s # const gchar *object_path, 3683s # GCancellable *cancellable, 3683s # GError **error) 3683s # { 3683s # GInitable *ret; 3683s # 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); 3683s # if (ret != NULL) 3683s # return GOOD_TYPES (ret); 3683s # else 3683s # return NULL; 3683s # } 3683s # 3683s # 3683s # /** 3683s # * good_types_proxy_new_for_bus: 3683s # * @bus_type: A #GBusType. 3683s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3683s # * @name: A bus name (well-known or unique). 3683s # * @object_path: An object path. 3683s # * @cancellable: (nullable): A #GCancellable or %NULL. 3683s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3683s # * @user_data: User data to pass to @callback. 3683s # * 3683s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3683s # * 3683s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3683s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 3683s # * 3683s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3683s # */ 3683s # void 3683s # good_types_proxy_new_for_bus ( 3683s # GBusType bus_type, 3683s # GDBusProxyFlags flags, 3683s # const gchar *name, 3683s # const gchar *object_path, 3683s # GCancellable *cancellable, 3683s # GAsyncReadyCallback callback, 3683s # gpointer user_data) 3683s # { 3683s # 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); 3683s # } 3683s # 3683s # /** 3683s # * good_types_proxy_new_for_bus_finish: 3683s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 3683s # * @error: Return location for error or %NULL 3683s # * 3683s # * Finishes an operation started with good_types_proxy_new_for_bus(). 3683s # * 3683s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 3683s # */ 3683s # GoodTypes * 3683s # good_types_proxy_new_for_bus_finish ( 3683s # GAsyncResult *res, 3683s # GError **error) 3683s # { 3683s # GObject *ret; 3683s # GObject *source_object; 3683s # source_object = g_async_result_get_source_object (res); 3683s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3683s # g_object_unref (source_object); 3683s # if (ret != NULL) 3683s # return GOOD_TYPES (ret); 3683s # else 3683s # return NULL; 3683s # } 3683s # 3683s # /** 3683s # * good_types_proxy_new_for_bus_sync: 3683s # * @bus_type: A #GBusType. 3683s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3683s # * @name: A bus name (well-known or unique). 3683s # * @object_path: An object path. 3683s # * @cancellable: (nullable): A #GCancellable or %NULL. 3683s # * @error: Return location for error or %NULL 3683s # * 3683s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3683s # * 3683s # * The calling thread is blocked until a reply is received. 3683s # * 3683s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 3683s # * 3683s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 3683s # */ 3683s # GoodTypes * 3683s # good_types_proxy_new_for_bus_sync ( 3683s # GBusType bus_type, 3683s # GDBusProxyFlags flags, 3683s # const gchar *name, 3683s # const gchar *object_path, 3683s # GCancellable *cancellable, 3683s # GError **error) 3683s # { 3683s # GInitable *ret; 3683s # 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); 3683s # if (ret != NULL) 3683s # return GOOD_TYPES (ret); 3683s # else 3683s # return NULL; 3683s # } 3683s # 3683s # 3683s # /* ------------------------------------------------------------------------ */ 3683s # 3683s # /** 3683s # * GoodTypesSkeleton: 3683s # * 3683s # * The <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link>Skeleton structure contains only private data and should only be accessed using the provided API. 3683s # */ 3683s # 3683s # /** 3683s # * GoodTypesSkeletonClass: 3683s # * @parent_class: The parent class. 3683s # * 3683s # * Class structure for <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link>Skeleton. 3683s # */ 3683s # 3683s # struct _GoodTypesSkeletonPrivate 3683s # { 3683s # GValue *properties; 3683s # GList *changed_properties; 3683s # GSource *changed_properties_idle_source; 3683s # GMainContext *context; 3683s # GMutex lock; 3683s # }; 3683s # 3683s # static void 3683s # _good_types_skeleton_handle_method_call ( 3683s # GDBusConnection *connection G_GNUC_UNUSED, 3683s # const gchar *sender G_GNUC_UNUSED, 3683s # const gchar *object_path G_GNUC_UNUSED, 3683s # const gchar *interface_name, 3683s # const gchar *method_name, 3683s # GVariant *parameters, 3683s # GDBusMethodInvocation *invocation, 3683s # gpointer user_data) 3683s # { 3683s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 3683s # _ExtendedGDBusMethodInfo *info; 3683s # GVariantIter iter; 3683s # GVariant *child; 3683s # GValue *paramv; 3683s # gsize num_params; 3683s # guint num_extra; 3683s # gsize n; 3683s # guint signal_id; 3683s # GValue return_value = G_VALUE_INIT; 3683s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3683s # g_assert (info != NULL); 3683s # num_params = g_variant_n_children (parameters); 3683s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3683s # n = 0; 3683s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 3683s # g_value_set_object (¶mv[n++], skeleton); 3683s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3683s # g_value_set_object (¶mv[n++], invocation); 3683s # if (info->pass_fdlist) 3683s # { 3683s # #ifdef G_OS_UNIX 3683s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3683s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3683s # #else 3683s # g_assert_not_reached (); 3683s # #endif 3683s # } 3683s # g_variant_iter_init (&iter, parameters); 3683s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3683s # { 3683s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3683s # if (arg_info->use_gvariant) 3683s # { 3683s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3683s # g_value_set_variant (¶mv[n], child); 3683s # n++; 3683s # } 3683s # else 3683s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3683s # g_variant_unref (child); 3683s # } 3683s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 3683s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3683s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3683s # if (!g_value_get_boolean (&return_value)) 3683s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3683s # g_value_unset (&return_value); 3683s # for (n = 0; n < num_params + num_extra; n++) 3683s # g_value_unset (¶mv[n]); 3683s # g_free (paramv); 3683s # } 3683s # 3683s # static GVariant * 3683s # _good_types_skeleton_handle_get_property ( 3683s # GDBusConnection *connection G_GNUC_UNUSED, 3683s # const gchar *sender G_GNUC_UNUSED, 3683s # const gchar *object_path G_GNUC_UNUSED, 3683s # const gchar *interface_name G_GNUC_UNUSED, 3683s # const gchar *property_name, 3683s # GError **error, 3683s # gpointer user_data) 3683s # { 3683s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 3683s # GValue value = G_VALUE_INIT; 3683s # GParamSpec *pspec; 3683s # _ExtendedGDBusPropertyInfo *info; 3683s # GVariant *ret; 3683s # ret = NULL; 3683s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 3683s # g_assert (info != NULL); 3683s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3683s # if (pspec == NULL) 3683s # { 3683s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3683s # } 3683s # else 3683s # { 3683s # g_value_init (&value, pspec->value_type); 3683s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3683s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3683s # g_value_unset (&value); 3683s # } 3683s # return ret; 3683s # } 3683s # 3683s # static gboolean 3683s # _good_types_skeleton_handle_set_property ( 3683s # GDBusConnection *connection G_GNUC_UNUSED, 3683s # const gchar *sender G_GNUC_UNUSED, 3683s # const gchar *object_path G_GNUC_UNUSED, 3683s # const gchar *interface_name G_GNUC_UNUSED, 3683s # const gchar *property_name, 3683s # GVariant *variant, 3683s # GError **error, 3683s # gpointer user_data) 3683s # { 3683s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 3683s # GValue value = G_VALUE_INIT; 3683s # GParamSpec *pspec; 3683s # _ExtendedGDBusPropertyInfo *info; 3683s # gboolean ret; 3683s # ret = FALSE; 3683s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 3683s # g_assert (info != NULL); 3683s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3683s # if (pspec == NULL) 3683s # { 3683s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3683s # } 3683s # else 3683s # { 3683s # if (info->use_gvariant) 3683s # g_value_set_variant (&value, variant); 3683s # else 3683s # g_dbus_gvariant_to_gvalue (variant, &value); 3683s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3683s # g_value_unset (&value); 3683s # ret = TRUE; 3683s # } 3683s # return ret; 3683s # } 3683s # 3683s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 3683s # { 3683s # _good_types_skeleton_handle_method_call, 3683s # _good_types_skeleton_handle_get_property, 3683s # _good_types_skeleton_handle_set_property, 3683s # {NULL} 3683s # }; 3683s # 3683s # static GDBusInterfaceInfo * 3683s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3683s # { 3683s # return good_types_interface_info (); 3683s # } 3683s # 3683s # static GDBusInterfaceVTable * 3683s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3683s # { 3683s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 3683s # } 3683s # 3683s # static GVariant * 3683s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3683s # { 3683s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 3683s # 3683s # GVariantBuilder builder; 3683s # guint n; 3683s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3683s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3683s # #else 3683s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3683s # #endif 3683s # if (_good_types_interface_info.parent_struct.properties == NULL) 3683s # goto out; 3683s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 3683s # { 3683s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 3683s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3683s # { 3683s # GVariant *value; 3683s # 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); 3683s # if (value != NULL) 3683s # { 3683s # g_variant_take_ref (value); 3683s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3683s # g_variant_unref (value); 3683s # } 3683s # } 3683s # } 3683s # out: 3683s # return g_variant_builder_end (&builder); 3683s # } 3683s # 3683s # static gboolean _good_types_emit_changed (gpointer user_data); 3683s # 3683s # static void 3683s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 3683s # { 3683s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 3683s # gboolean emit_changed = FALSE; 3683s # 3683s # g_mutex_lock (&skeleton->priv->lock); 3683s # if (skeleton->priv->changed_properties_idle_source != NULL) 3683s # { 3683s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3683s # skeleton->priv->changed_properties_idle_source = NULL; 3683s # emit_changed = TRUE; 3683s # } 3683s # g_mutex_unlock (&skeleton->priv->lock); 3683s # 3683s # if (emit_changed) 3683s # _good_types_emit_changed (skeleton); 3683s # } 3683s # 3683s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 3683s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3683s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3683s # G_ADD_PRIVATE (GoodTypesSkeleton) 3683s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 3683s # 3683s # #else 3683s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3683s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 3683s # 3683s # #endif 3683s # static void 3683s # good_types_skeleton_finalize (GObject *object) 3683s # { 3683s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 3683s # guint n; 3683s # for (n = 0; n < 1; n++) 3683s # g_value_unset (&skeleton->priv->properties[n]); 3683s # g_free (skeleton->priv->properties); 3683s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3683s # if (skeleton->priv->changed_properties_idle_source != NULL) 3683s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3683s # g_main_context_unref (skeleton->priv->context); 3683s # g_mutex_clear (&skeleton->priv->lock); 3683s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 3683s # } 3683s # 3683s # static void 3683s # good_types_skeleton_get_property (GObject *object, 3683s # guint prop_id, 3683s # GValue *value, 3683s # GParamSpec *pspec G_GNUC_UNUSED) 3683s # { 3683s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 3683s # g_assert (prop_id != 0 && prop_id - 1 < 1); 3683s # g_mutex_lock (&skeleton->priv->lock); 3683s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 3683s # g_mutex_unlock (&skeleton->priv->lock); 3683s # } 3683s # 3683s # static gboolean 3683s # _good_types_emit_changed (gpointer user_data) 3683s # { 3683s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 3683s # GList *l; 3683s # GVariantBuilder builder; 3683s # GVariantBuilder invalidated_builder; 3683s # guint num_changes; 3683s # 3683s # g_mutex_lock (&skeleton->priv->lock); 3683s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3683s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3683s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 3683s # #else 3683s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 3683s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 3683s # #endif 3683s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 3683s # { 3683s # ChangedProperty *cp = l->data; 3683s # GVariant *variant; 3683s # const GValue *cur_value; 3683s # 3683s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 3683s # if (!_g_value_equal (cur_value, &cp->orig_value)) 3683s # { 3683s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 3683s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 3683s # g_variant_unref (variant); 3683s # num_changes++; 3683s # } 3683s # } 3683s # if (num_changes > 0) 3683s # { 3683s # GList *connections, *ll; 3683s # GVariant *signal_variant; 3683s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 3683s # &builder, &invalidated_builder)); 3683s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3683s # for (ll = connections; ll != NULL; ll = ll->next) 3683s # { 3683s # GDBusConnection *connection = ll->data; 3683s # 3683s # g_dbus_connection_emit_signal (connection, 3683s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 3683s # "org.freedesktop.DBus.Properties", 3683s # "PropertiesChanged", 3683s # signal_variant, 3683s # NULL); 3683s # } 3683s # g_variant_unref (signal_variant); 3683s # g_list_free_full (connections, g_object_unref); 3683s # } 3683s # else 3683s # { 3683s # g_variant_builder_clear (&builder); 3683s # g_variant_builder_clear (&invalidated_builder); 3683s # } 3683s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3683s # skeleton->priv->changed_properties = NULL; 3683s # skeleton->priv->changed_properties_idle_source = NULL; 3683s # g_mutex_unlock (&skeleton->priv->lock); 3683s # return FALSE; 3683s # } 3683s # 3683s # static void 3683s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 3683s # { 3683s # ChangedProperty *cp; 3683s # GList *l; 3683s # cp = NULL; 3683s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 3683s # { 3683s # ChangedProperty *i_cp = l->data; 3683s # if (i_cp->info == info) 3683s # { 3683s # cp = i_cp; 3683s # break; 3683s # } 3683s # } 3683s # if (cp == NULL) 3683s # { 3683s # cp = g_new0 (ChangedProperty, 1); 3683s # cp->prop_id = prop_id; 3683s # cp->info = info; 3683s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 3683s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 3683s # g_value_copy (orig_value, &cp->orig_value); 3683s # } 3683s # } 3683s # 3683s # static void 3683s # good_types_skeleton_notify (GObject *object, 3683s # GParamSpec *pspec G_GNUC_UNUSED) 3683s # { 3683s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 3683s # g_mutex_lock (&skeleton->priv->lock); 3683s # if (skeleton->priv->changed_properties != NULL && 3683s # skeleton->priv->changed_properties_idle_source == NULL) 3683s # { 3683s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 3683s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 3683s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 3683s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 3683s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 3683s # g_source_unref (skeleton->priv->changed_properties_idle_source); 3683s # } 3683s # g_mutex_unlock (&skeleton->priv->lock); 3683s # } 3683s # 3683s # static void 3683s # good_types_skeleton_set_property (GObject *object, 3683s # guint prop_id, 3683s # const GValue *value, 3683s # GParamSpec *pspec) 3683s # { 3683s # const _ExtendedGDBusPropertyInfo *info; 3683s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 3683s # g_assert (prop_id != 0 && prop_id - 1 < 1); 3683s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 3683s # g_mutex_lock (&skeleton->priv->lock); 3683s # g_object_freeze_notify (object); 3683s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 3683s # { 3683s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 3683s # info->emits_changed_signal) 3683s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 3683s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 3683s # g_object_notify_by_pspec (object, pspec); 3683s # } 3683s # g_mutex_unlock (&skeleton->priv->lock); 3683s # g_object_thaw_notify (object); 3683s # } 3683s # 3683s # static void 3683s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 3683s # { 3683s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3683s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 3683s # #else 3683s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 3683s # #endif 3683s # 3683s # g_mutex_init (&skeleton->priv->lock); 3683s # skeleton->priv->context = g_main_context_ref_thread_default (); 3683s # skeleton->priv->properties = g_new0 (GValue, 1); 3683s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 3683s # } 3683s # 3683s # static GVariant * 3683s # good_types_skeleton_get_good_property_type (GoodTypes *object) 3683s # { 3683s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 3683s # GVariant *value; 3683s # g_mutex_lock (&skeleton->priv->lock); 3683s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 3683s # g_mutex_unlock (&skeleton->priv->lock); 3683s # return value; 3683s # } 3683s # 3683s # static void 3683s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 3683s # { 3683s # GObjectClass *gobject_class; 3683s # GDBusInterfaceSkeletonClass *skeleton_class; 3683s # 3683s # gobject_class = G_OBJECT_CLASS (klass); 3683s # gobject_class->finalize = good_types_skeleton_finalize; 3683s # gobject_class->get_property = good_types_skeleton_get_property; 3683s # gobject_class->set_property = good_types_skeleton_set_property; 3683s # gobject_class->notify = good_types_skeleton_notify; 3683s # 3683s # 3683s # good_types_override_properties (gobject_class, 1); 3683s # 3683s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3683s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 3683s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 3683s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 3683s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 3683s # 3683s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3683s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 3683s # #endif 3683s # } 3683s # 3683s # static void 3683s # good_types_skeleton_iface_init (GoodTypesIface *iface) 3683s # { 3683s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 3683s # } 3683s # 3683s # /** 3683s # * good_types_skeleton_new: 3683s # * 3683s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link>. 3683s # * 3683s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 3683s # */ 3683s # GoodTypes * 3683s # good_types_skeleton_new (void) 3683s # { 3683s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 3683s # } 3683s # Error: 3683s # 3683s # /tmp/tmp7qc5dkeb/tmpjbhkos91.xml: 3683s # <node> 3683s # <interface name="GoodTypes"> 3683s # <property type="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaa{sv})" name="GoodPropertyType" access="read" /> 3683s # </interface> 3683s # </node> 3683s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7qc5dkeb/tmpjbhkos91.xml', '--output', '-', '--body'] 3683s # Return code: 0 3683s # Output: 3683s # /* 3683s # * This file is generated by gdbus-codegen, do not modify it. 3683s # * 3683s # * The license of this code is the same as for the D-Bus interface description 3683s # * it was derived from. Note that it links to GLib, so must comply with the 3683s # * LGPL linking clauses. 3683s # */ 3683s # 3683s # #ifdef HAVE_CONFIG_H 3683s # # include "config.h" 3683s # #endif 3683s # 3683s # #include <string.h> 3683s # #ifdef G_OS_UNIX 3683s # # include <gio/gunixfdlist.h> 3683s # #endif 3683s # 3683s # #ifdef G_ENABLE_DEBUG 3683s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3683s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3683s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3683s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3683s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3683s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3683s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3683s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3683s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3683s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3683s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3683s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3683s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3683s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3683s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3683s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3683s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3683s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3683s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3683s # #else /* !G_ENABLE_DEBUG */ 3683s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3683s # * Do not access GValues directly in your code. Instead, use the 3683s # * g_value_get_*() functions 3683s # */ 3683s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3683s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3683s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3683s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3683s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3683s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3683s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3683s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3683s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3683s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3683s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3683s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3683s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3683s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3683s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3683s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3683s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3683s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3683s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3683s # #endif /* !G_ENABLE_DEBUG */ 3683s # 3683s # typedef struct 3683s # { 3683s # GDBusArgInfo parent_struct; 3683s # gboolean use_gvariant; 3683s # } _ExtendedGDBusArgInfo; 3683s # 3683s # typedef struct 3683s # { 3683s # GDBusMethodInfo parent_struct; 3683s # const gchar *signal_name; 3683s # gboolean pass_fdlist; 3683s # } _ExtendedGDBusMethodInfo; 3683s # 3683s # typedef struct 3683s # { 3683s # GDBusSignalInfo parent_struct; 3683s # const gchar *signal_name; 3683s # } _ExtendedGDBusSignalInfo; 3683s # 3683s # typedef struct 3683s # { 3683s # GDBusPropertyInfo parent_struct; 3683s # const gchar *hyphen_name; 3683s # guint use_gvariant : 1; 3683s # guint emits_changed_signal : 1; 3683s # } _ExtendedGDBusPropertyInfo; 3683s # 3683s # typedef struct 3683s # { 3683s # GDBusInterfaceInfo parent_struct; 3683s # const gchar *hyphen_name; 3683s # } _ExtendedGDBusInterfaceInfo; 3683s # 3683s # typedef struct 3683s # { 3683s # const _ExtendedGDBusPropertyInfo *info; 3683s # guint prop_id; 3683s # GValue orig_value; /* the value before the change */ 3683s # } ChangedProperty; 3683s # 3683s # static void 3683s # _changed_property_free (ChangedProperty *data) 3683s # { 3683s # g_value_unset (&data->orig_value); 3683s # g_free (data); 3683s # } 3683s # 3683s # static gboolean 3683s # _g_strv_equal0 (gchar **a, gchar **b) 3683s # { 3683s # gboolean ret = FALSE; 3683s # guint n; 3683s # if (a == NULL && b == NULL) 3683s # { 3683s # ret = TRUE; 3683s # goto out; 3683s # } 3683s # if (a == NULL || b == NULL) 3683s # goto out; 3683s # if (g_strv_length (a) != g_strv_length (b)) 3683s # goto out; 3683s # for (n = 0; a[n] != NULL; n++) 3683s # if (g_strcmp0 (a[n], b[n]) != 0) 3683s # goto out; 3683s # ret = TRUE; 3683s # out: 3683s # return ret; 3683s # } 3683s # 3683s # static gboolean 3683s # _g_variant_equal0 (GVariant *a, GVariant *b) 3683s # { 3683s # gboolean ret = FALSE; 3683s # if (a == NULL && b == NULL) 3683s # { 3683s # ret = TRUE; 3683s # goto out; 3683s # } 3683s # if (a == NULL || b == NULL) 3683s # goto out; 3683s # ret = g_variant_equal (a, b); 3683s # out: 3683s # return ret; 3683s # } 3683s # 3683s # G_GNUC_UNUSED static gboolean 3683s # _g_value_equal (const GValue *a, const GValue *b) 3683s # { 3683s # gboolean ret = FALSE; 3683s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3683s # switch (G_VALUE_TYPE (a)) 3683s # { 3683s # case G_TYPE_BOOLEAN: 3683s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3683s # break; 3683s # case G_TYPE_UCHAR: 3683s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3683s # break; 3683s # case G_TYPE_INT: 3683s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3683s # break; 3683s # case G_TYPE_UINT: 3683s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3683s # break; 3683s # case G_TYPE_INT64: 3683s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3683s # break; 3683s # case G_TYPE_UINT64: 3683s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3683s # break; 3683s # case G_TYPE_DOUBLE: 3683s # { 3683s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3683s # gdouble da = g_value_get_double (a); 3683s # gdouble db = g_value_get_double (b); 3683s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3683s # } 3683s # break; 3683s # case G_TYPE_STRING: 3683s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3683s # break; 3683s # case G_TYPE_VARIANT: 3683s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3683s # break; 3683s # default: 3683s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3683s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3683s # else 3683s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3683s # break; 3683s # } 3683s # return ret; 3683s # } 3683s # 3683s # /* ------------------------------------------------------------------------ 3683s # * Code for interface GoodTypes 3683s # * ------------------------------------------------------------------------ 3683s # */ 3683s # 3683s # /** 3683s # * SECTION:GoodTypes 3683s # * @title: GoodTypes 3683s # * @short_description: Generated C code for the GoodTypes D-Bus interface 3683s # * 3683s # * This section contains code for working with the <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link> D-Bus interface in C. 3683s # */ 3683s # 3683s # /* ---- Introspection data for GoodTypes ---- */ 3683s # 3683s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 3683s # { 3683s # { 3683s # -1, 3683s # (gchar *) "GoodPropertyType", 3683s # (gchar *) "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaa{sv})", 3683s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 3683s # NULL 3683s # }, 3683s # "good-property-type", 3683s # FALSE, 3683s # TRUE 3683s # }; 3683s # 3683s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 3683s # { 3683s # &_good_types_property_info_good_property_type.parent_struct, 3683s # NULL 3683s # }; 3683s # 3683s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 3683s # { 3683s # { 3683s # -1, 3683s # (gchar *) "GoodTypes", 3683s # NULL, 3683s # NULL, 3683s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 3683s # NULL 3683s # }, 3683s # "good-types", 3683s # }; 3683s # 3683s # 3683s # /** 3683s # * good_types_interface_info: 3683s # * 3683s # * Gets a machine-readable description of the <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link> D-Bus interface. 3683s # * 3683s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3683s # */ 3683s # GDBusInterfaceInfo * 3683s # good_types_interface_info (void) 3683s # { 3683s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 3683s # } 3683s # 3683s # /** 3683s # * good_types_override_properties: 3683s # * @klass: The class structure for a #GObject derived class. 3683s # * @property_id_begin: The property id to assign to the first overridden property. 3683s # * 3683s # * Overrides all #GObject properties in the <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link> interface for a concrete class. 3683s # * The properties are overridden in the order they are defined. 3683s # * 3683s # * Returns: The last property id. 3683s # */ 3683s # guint 3683s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 3683s # { 3683s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 3683s # return property_id_begin - 1; 3683s # } 3683s # 3683s # 3683s # 3683s # /** 3683s # * GoodTypes: 3683s # * 3683s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link>. 3683s # */ 3683s # 3683s # /** 3683s # * GoodTypesIface: 3683s # * @parent_iface: The parent interface. 3683s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 3683s # * 3683s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link>. 3683s # */ 3683s # 3683s # typedef GoodTypesIface GoodTypesInterface; 3683s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 3683s # 3683s # static void 3683s # good_types_default_init (GoodTypesIface *iface) 3683s # { 3683s # /* GObject properties for D-Bus properties: */ 3683s # /** 3683s # * GoodTypes:good-property-type: 3683s # * 3683s # * Represents the D-Bus property <link linkend="gdbus-property-GoodTypes.GoodPropertyType">"GoodPropertyType"</link>. 3683s # * 3683s # * 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. 3683s # */ 3683s # g_object_interface_install_property (iface, 3683s # g_param_spec_variant ("good-property-type", "GoodPropertyType", "GoodPropertyType", G_VARIANT_TYPE ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaa{sv})"), NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 3683s # } 3683s # 3683s # /** 3683s # * good_types_get_good_property_type: (skip) 3683s # * @object: A <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link>. 3683s # * 3683s # * Gets the value of the <link linkend="gdbus-property-GoodTypes.GoodPropertyType">"GoodPropertyType"</link> D-Bus property. 3683s # * 3683s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 3683s # * 3683s # * 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. 3683s # * 3683s # * 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. 3683s # */ 3683s # GVariant * 3683s # good_types_get_good_property_type (GoodTypes *object) 3683s # { 3683s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 3683s # 3683s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 3683s # } 3683s # 3683s # /** 3683s # * good_types_dup_good_property_type: (skip) 3683s # * @object: A <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link>. 3683s # * 3683s # * Gets a copy of the <link linkend="gdbus-property-GoodTypes.GoodPropertyType">"GoodPropertyType"</link> D-Bus property. 3683s # * 3683s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 3683s # * 3683s # * 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(). 3683s # */ 3683s # GVariant * 3683s # good_types_dup_good_property_type (GoodTypes *object) 3683s # { 3683s # GVariant *value; 3683s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 3683s # return value; 3683s # } 3683s # 3683s # /** 3683s # * good_types_set_good_property_type: (skip) 3683s # * @object: A <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link>. 3683s # * @value: The value to set. 3683s # * 3683s # * Sets the <link linkend="gdbus-property-GoodTypes.GoodPropertyType">"GoodPropertyType"</link> D-Bus property to @value. 3683s # * 3683s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 3683s # */ 3683s # void 3683s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 3683s # { 3683s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 3683s # } 3683s # 3683s # /* ------------------------------------------------------------------------ */ 3683s # 3683s # /** 3683s # * GoodTypesProxy: 3683s # * 3683s # * The <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link>Proxy structure contains only private data and should only be accessed using the provided API. 3683s # */ 3683s # 3683s # /** 3683s # * GoodTypesProxyClass: 3683s # * @parent_class: The parent class. 3683s # * 3683s # * Class structure for <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link>Proxy. 3683s # */ 3683s # 3683s # struct _GoodTypesProxyPrivate 3683s # { 3683s # GData *qdata; 3683s # }; 3683s # 3683s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 3683s # 3683s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3683s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 3683s # G_ADD_PRIVATE (GoodTypesProxy) 3683s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 3683s # 3683s # #else 3683s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 3683s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 3683s # 3683s # #endif 3683s # static void 3683s # good_types_proxy_finalize (GObject *object) 3683s # { 3683s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 3683s # g_datalist_clear (&proxy->priv->qdata); 3683s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 3683s # } 3683s # 3683s # static void 3683s # good_types_proxy_get_property (GObject *object, 3683s # guint prop_id, 3683s # GValue *value, 3683s # GParamSpec *pspec G_GNUC_UNUSED) 3683s # { 3683s # const _ExtendedGDBusPropertyInfo *info; 3683s # GVariant *variant; 3683s # g_assert (prop_id != 0 && prop_id - 1 < 1); 3683s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 3683s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 3683s # if (info->use_gvariant) 3683s # { 3683s # g_value_set_variant (value, variant); 3683s # } 3683s # else 3683s # { 3683s # if (variant != NULL) 3683s # g_dbus_gvariant_to_gvalue (variant, value); 3683s # } 3683s # if (variant != NULL) 3683s # g_variant_unref (variant); 3683s # } 3683s # 3683s # static void 3683s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 3683s # GAsyncResult *res, 3683s # gpointer user_data) 3683s # { 3683s # const _ExtendedGDBusPropertyInfo *info = user_data; 3683s # GError *error; 3683s # GVariant *_ret; 3683s # error = NULL; 3683s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 3683s # if (!_ret) 3683s # { 3683s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 3683s # info->parent_struct.name, 3683s # error->message, g_quark_to_string (error->domain), error->code); 3683s # g_error_free (error); 3683s # } 3683s # else 3683s # { 3683s # g_variant_unref (_ret); 3683s # } 3683s # } 3683s # 3683s # static void 3683s # good_types_proxy_set_property (GObject *object, 3683s # guint prop_id, 3683s # const GValue *value, 3683s # GParamSpec *pspec G_GNUC_UNUSED) 3683s # { 3683s # const _ExtendedGDBusPropertyInfo *info; 3683s # GVariant *variant; 3683s # g_assert (prop_id != 0 && prop_id - 1 < 1); 3683s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 3683s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 3683s # g_dbus_proxy_call (G_DBUS_PROXY (object), 3683s # "org.freedesktop.DBus.Properties.Set", 3683s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 3683s # G_DBUS_CALL_FLAGS_NONE, 3683s # -1, 3683s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 3683s # g_variant_unref (variant); 3683s # } 3683s # 3683s # static void 3683s # good_types_proxy_g_signal (GDBusProxy *proxy, 3683s # const gchar *sender_name G_GNUC_UNUSED, 3683s # const gchar *signal_name, 3683s # GVariant *parameters) 3683s # { 3683s # _ExtendedGDBusSignalInfo *info; 3683s # GVariantIter iter; 3683s # GVariant *child; 3683s # GValue *paramv; 3683s # gsize num_params; 3683s # gsize n; 3683s # guint signal_id; 3683s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 3683s # if (info == NULL) 3683s # return; 3683s # num_params = g_variant_n_children (parameters); 3683s # paramv = g_new0 (GValue, num_params + 1); 3683s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 3683s # g_value_set_object (¶mv[0], proxy); 3683s # g_variant_iter_init (&iter, parameters); 3683s # n = 1; 3683s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3683s # { 3683s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3683s # if (arg_info->use_gvariant) 3683s # { 3683s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3683s # g_value_set_variant (¶mv[n], child); 3683s # n++; 3683s # } 3683s # else 3683s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3683s # g_variant_unref (child); 3683s # } 3683s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 3683s # g_signal_emitv (paramv, signal_id, 0, NULL); 3683s # for (n = 0; n < num_params + 1; n++) 3683s # g_value_unset (¶mv[n]); 3683s # g_free (paramv); 3683s # } 3683s # 3683s # static void 3683s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 3683s # GVariant *changed_properties, 3683s # const gchar *const *invalidated_properties) 3683s # { 3683s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 3683s # guint n; 3683s # const gchar *key; 3683s # GVariantIter *iter; 3683s # _ExtendedGDBusPropertyInfo *info; 3683s # g_variant_get (changed_properties, "a{sv}", &iter); 3683s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3683s # { 3683s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 3683s # g_datalist_remove_data (&proxy->priv->qdata, key); 3683s # if (info != NULL) 3683s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3683s # } 3683s # g_variant_iter_free (iter); 3683s # for (n = 0; invalidated_properties[n] != NULL; n++) 3683s # { 3683s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 3683s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3683s # if (info != NULL) 3683s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3683s # } 3683s # } 3683s # 3683s # static GVariant * 3683s # good_types_proxy_get_good_property_type (GoodTypes *object) 3683s # { 3683s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 3683s # GVariant *variant; 3683s # GVariant *value = NULL; 3683s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 3683s # value = variant; 3683s # if (variant != NULL) 3683s # g_variant_unref (variant); 3683s # return value; 3683s # } 3683s # 3683s # static void 3683s # good_types_proxy_init (GoodTypesProxy *proxy) 3683s # { 3683s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3683s # proxy->priv = good_types_proxy_get_instance_private (proxy); 3683s # #else 3683s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 3683s # #endif 3683s # 3683s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 3683s # } 3683s # 3683s # static void 3683s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 3683s # { 3683s # GObjectClass *gobject_class; 3683s # GDBusProxyClass *proxy_class; 3683s # 3683s # gobject_class = G_OBJECT_CLASS (klass); 3683s # gobject_class->finalize = good_types_proxy_finalize; 3683s # gobject_class->get_property = good_types_proxy_get_property; 3683s # gobject_class->set_property = good_types_proxy_set_property; 3683s # 3683s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3683s # proxy_class->g_signal = good_types_proxy_g_signal; 3683s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 3683s # 3683s # good_types_override_properties (gobject_class, 1); 3683s # 3683s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3683s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 3683s # #endif 3683s # } 3683s # 3683s # static void 3683s # good_types_proxy_iface_init (GoodTypesIface *iface) 3683s # { 3683s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 3683s # } 3683s # 3683s # /** 3683s # * good_types_proxy_new: 3683s # * @connection: A #GDBusConnection. 3683s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3683s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3683s # * @object_path: An object path. 3683s # * @cancellable: (nullable): A #GCancellable or %NULL. 3683s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3683s # * @user_data: User data to pass to @callback. 3683s # * 3683s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link>. See g_dbus_proxy_new() for more details. 3683s # * 3683s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3683s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 3683s # * 3683s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 3683s # */ 3683s # void 3683s # good_types_proxy_new ( 3683s # GDBusConnection *connection, 3683s # GDBusProxyFlags flags, 3683s # const gchar *name, 3683s # const gchar *object_path, 3683s # GCancellable *cancellable, 3683s # GAsyncReadyCallback callback, 3683s # gpointer user_data) 3683s # { 3683s # 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); 3683s # } 3683s # 3683s # /** 3683s # * good_types_proxy_new_finish: 3683s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 3683s # * @error: Return location for error or %NULL 3683s # * 3683s # * Finishes an operation started with good_types_proxy_new(). 3683s # * 3683s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 3683s # */ 3683s # GoodTypes * 3683s # good_types_proxy_new_finish ( 3683s # GAsyncResult *res, 3683s # GError **error) 3683s # { 3683s # GObject *ret; 3683s # GObject *source_object; 3683s # source_object = g_async_result_get_source_object (res); 3683s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3683s # g_object_unref (source_object); 3683s # if (ret != NULL) 3683s # return GOOD_TYPES (ret); 3683s # else 3683s # return NULL; 3683s # } 3683s # 3683s # /** 3683s # * good_types_proxy_new_sync: 3683s # * @connection: A #GDBusConnection. 3683s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3683s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3683s # * @object_path: An object path. 3683s # * @cancellable: (nullable): A #GCancellable or %NULL. 3683s # * @error: Return location for error or %NULL 3683s # * 3683s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link>. See g_dbus_proxy_new_sync() for more details. 3683s # * 3683s # * The calling thread is blocked until a reply is received. 3683s # * 3683s # * See good_types_proxy_new() for the asynchronous version of this constructor. 3683s # * 3683s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 3683s # */ 3683s # GoodTypes * 3683s # good_types_proxy_new_sync ( 3683s # GDBusConnection *connection, 3683s # GDBusProxyFlags flags, 3683s # const gchar *name, 3683s # const gchar *object_path, 3683s # GCancellable *cancellable, 3683s # GError **error) 3683s # { 3683s # GInitable *ret; 3683s # 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); 3683s # if (ret != NULL) 3683s # return GOOD_TYPES (ret); 3683s # else 3683s # return NULL; 3683s # } 3683s # 3683s # 3683s # /** 3683s # * good_types_proxy_new_for_bus: 3683s # * @bus_type: A #GBusType. 3683s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3683s # * @name: A bus name (well-known or unique). 3683s # * @object_path: An object path. 3683s # * @cancellable: (nullable): A #GCancellable or %NULL. 3683s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3683s # * @user_data: User data to pass to @callback. 3683s # * 3683s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3683s # * 3683s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3683s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 3683s # * 3683s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3683s # */ 3683s # void 3683s # good_types_proxy_new_for_bus ( 3683s # GBusType bus_type, 3683s # GDBusProxyFlags flags, 3683s # const gchar *name, 3683s # const gchar *object_path, 3683s # GCancellable *cancellable, 3683s # GAsyncReadyCallback callback, 3683s # gpointer user_data) 3683s # { 3683s # 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); 3683s # } 3683s # 3683s # /** 3683s # * good_types_proxy_new_for_bus_finish: 3683s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 3683s # * @error: Return location for error or %NULL 3683s # * 3683s # * Finishes an operation started with good_types_proxy_new_for_bus(). 3683s # * 3683s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 3683s # */ 3683s # GoodTypes * 3683s # good_types_proxy_new_for_bus_finish ( 3683s # GAsyncResult *res, 3683s # GError **error) 3683s # { 3683s # GObject *ret; 3683s # GObject *source_object; 3683s # source_object = g_async_result_get_source_object (res); 3683s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3683s # g_object_unref (source_object); 3683s # if (ret != NULL) 3683s # return GOOD_TYPES (ret); 3683s # else 3683s # return NULL; 3683s # } 3683s # 3683s # /** 3683s # * good_types_proxy_new_for_bus_sync: 3683s # * @bus_type: A #GBusType. 3683s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3683s # * @name: A bus name (well-known or unique). 3683s # * @object_path: An object path. 3683s # * @cancellable: (nullable): A #GCancellable or %NULL. 3683s # * @error: Return location for error or %NULL 3683s # * 3683s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3683s # * 3683s # * The calling thread is blocked until a reply is received. 3683s # * 3683s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 3683s # * 3683s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 3683s # */ 3683s # GoodTypes * 3683s # good_types_proxy_new_for_bus_sync ( 3683s # GBusType bus_type, 3683s # GDBusProxyFlags flags, 3683s # const gchar *name, 3683s # const gchar *object_path, 3683s # GCancellable *cancellable, 3683s # GError **error) 3683s # { 3683s # GInitable *ret; 3683s # 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); 3683s # if (ret != NULL) 3683s # return GOOD_TYPES (ret); 3683s # else 3683s # return NULL; 3683s # } 3683s # 3683s # 3683s # /* ------------------------------------------------------------------------ */ 3683s # 3683s # /** 3683s # * GoodTypesSkeleton: 3683s # * 3683s # * The <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link>Skeleton structure contains only private data and should only be accessed using the provided API. 3683s # */ 3683s # 3683s # /** 3683s # * GoodTypesSkeletonClass: 3683s # * @parent_class: The parent class. 3683s # * 3683s # * Class structure for <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link>Skeleton. 3683s # */ 3683s # 3683s # struct _GoodTypesSkeletonPrivate 3683s # { 3683s # GValue *properties; 3683s # GList *changed_properties; 3683s # GSource *changed_properties_idle_source; 3683s # GMainContext *context; 3683s # GMutex lock; 3683s # }; 3683s # 3683s # static void 3683s # _good_types_skeleton_handle_method_call ( 3683s # GDBusConnection *connection G_GNUC_UNUSED, 3683s # const gchar *sender G_GNUC_UNUSED, 3683s # const gchar *object_path G_GNUC_UNUSED, 3683s # const gchar *interface_name, 3683s # const gchar *method_name, 3683s # GVariant *parameters, 3683s # GDBusMethodInvocation *invocation, 3683s # gpointer user_data) 3683s # { 3683s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 3683s # _ExtendedGDBusMethodInfo *info; 3683s # GVariantIter iter; 3683s # GVariant *child; 3683s # GValue *paramv; 3683s # gsize num_params; 3683s # guint num_extra; 3683s # gsize n; 3683s # guint signal_id; 3683s # GValue return_value = G_VALUE_INIT; 3683s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3683s # g_assert (info != NULL); 3683s # num_params = g_variant_n_children (parameters); 3683s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3683s # n = 0; 3683s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 3683s # g_value_set_object (¶mv[n++], skeleton); 3683s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3683s # g_value_set_object (¶mv[n++], invocation); 3683s # if (info->pass_fdlist) 3683s # { 3683s # #ifdef G_OS_UNIX 3683s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3683s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3683s # #else 3683s # g_assert_not_reached (); 3683s # #endif 3683s # } 3683s # g_variant_iter_init (&iter, parameters); 3683s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3683s # { 3683s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3683s # if (arg_info->use_gvariant) 3683s # { 3683s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3683s # g_value_set_variant (¶mv[n], child); 3683s # n++; 3683s # } 3683s # else 3683s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3683s # g_variant_unref (child); 3683s # } 3683s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 3683s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3683s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3683s # if (!g_value_get_boolean (&return_value)) 3683s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3683s # g_value_unset (&return_value); 3683s # for (n = 0; n < num_params + num_extra; n++) 3683s # g_value_unset (¶mv[n]); 3683s # g_free (paramv); 3683s # } 3683s # 3683s # static GVariant * 3683s # _good_types_skeleton_handle_get_property ( 3683s # GDBusConnection *connection G_GNUC_UNUSED, 3683s # const gchar *sender G_GNUC_UNUSED, 3683s # const gchar *object_path G_GNUC_UNUSED, 3683s # const gchar *interface_name G_GNUC_UNUSED, 3683s # const gchar *property_name, 3683s # GError **error, 3683s # gpointer user_data) 3683s # { 3683s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 3683s # GValue value = G_VALUE_INIT; 3683s # GParamSpec *pspec; 3683s # _ExtendedGDBusPropertyInfo *info; 3683s # GVariant *ret; 3683s # ret = NULL; 3683s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 3683s # g_assert (info != NULL); 3683s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3683s # if (pspec == NULL) 3683s # { 3683s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3683s # } 3683s # else 3683s # { 3683s # g_value_init (&value, pspec->value_type); 3683s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3683s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3683s # g_value_unset (&value); 3683s # } 3683s # return ret; 3683s # } 3683s # 3683s # static gboolean 3683s # _good_types_skeleton_handle_set_property ( 3683s # GDBusConnection *connection G_GNUC_UNUSED, 3683s # const gchar *sender G_GNUC_UNUSED, 3683s # const gchar *object_path G_GNUC_UNUSED, 3683s # const gchar *interface_name G_GNUC_UNUSED, 3683s # const gchar *property_name, 3683s # GVariant *variant, 3683s # GError **error, 3683s # gpointer user_data) 3683s # { 3683s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 3683s # GValue value = G_VALUE_INIT; 3683s # GParamSpec *pspec; 3683s # _ExtendedGDBusPropertyInfo *info; 3683s # gboolean ret; 3683s # ret = FALSE; 3683s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 3683s # g_assert (info != NULL); 3683s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3683s # if (pspec == NULL) 3683s # { 3683s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3683s # } 3683s # else 3683s # { 3683s # if (info->use_gvariant) 3683s # g_value_set_variant (&value, variant); 3683s # else 3683s # g_dbus_gvariant_to_gvalue (variant, &value); 3683s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3683s # g_value_unset (&value); 3683s # ret = TRUE; 3683s # } 3683s # return ret; 3683s # } 3683s # 3683s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 3683s # { 3683s # _good_types_skeleton_handle_method_call, 3683s # _good_types_skeleton_handle_get_property, 3683s # _good_types_skeleton_handle_set_property, 3683s # {NULL} 3683s # }; 3683s # 3683s # static GDBusInterfaceInfo * 3683s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3683s # { 3683s # return good_types_interface_info (); 3683s # } 3683s # 3683s # static GDBusInterfaceVTable * 3683s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3683s # { 3683s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 3683s # } 3683s # 3683s # static GVariant * 3683s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3683s # { 3683s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 3683s # 3683s # GVariantBuilder builder; 3683s # guint n; 3683s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3683s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3683s # #else 3683s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3683s # #endif 3683s # if (_good_types_interface_info.parent_struct.properties == NULL) 3683s # goto out; 3683s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 3683s # { 3683s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 3683s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3683s # { 3683s # GVariant *value; 3683s # 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); 3683s # if (value != NULL) 3683s # { 3683s # g_variant_take_ref (value); 3683s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3683s # g_variant_unref (value); 3683s # } 3683s # } 3683s # } 3683s # out: 3683s # return g_variant_builder_end (&builder); 3683s # } 3683s # 3683s # static gboolean _good_types_emit_changed (gpointer user_data); 3683s # 3683s # static void 3683s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 3683s # { 3683s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 3683s # gboolean emit_changed = FALSE; 3683s # 3683s # g_mutex_lock (&skeleton->priv->lock); 3683s # if (skeleton->priv->changed_properties_idle_source != NULL) 3683s # { 3683s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3683s # skeleton->priv->changed_properties_idle_source = NULL; 3683s # emit_changed = TRUE; 3683s # } 3683s # g_mutex_unlock (&skeleton->priv->lock); 3683s # 3683s # if (emit_changed) 3683s # _good_types_emit_changed (skeleton); 3683s # } 3683s # 3683s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 3683s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3683s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3683s # G_ADD_PRIVATE (GoodTypesSkeleton) 3683s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 3683s # 3683s # #else 3683s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3683s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 3683s # 3683s # #endif 3683s # static void 3683s # good_types_skeleton_finalize (GObject *object) 3683s # { 3683s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 3683s # guint n; 3683s # for (n = 0; n < 1; n++) 3683s # g_value_unset (&skeleton->priv->properties[n]); 3683s # g_free (skeleton->priv->properties); 3683s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3683s # if (skeleton->priv->changed_properties_idle_source != NULL) 3683s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3683s # g_main_context_unref (skeleton->priv->context); 3683s # g_mutex_clear (&skeleton->priv->lock); 3683s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 3683s # } 3683s # 3683s # static void 3683s # good_types_skeleton_get_property (GObject *object, 3683s # guint prop_id, 3683s # GValue *value, 3683s # GParamSpec *pspec G_GNUC_UNUSED) 3683s # { 3683s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 3683s # g_assert (prop_id != 0 && prop_id - 1 < 1); 3683s # g_mutex_lock (&skeleton->priv->lock); 3683s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 3683s # g_mutex_unlock (&skeleton->priv->lock); 3683s # } 3683s # 3683s # static gboolean 3683s # _good_types_emit_changed (gpointer user_data) 3683s # { 3683s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 3683s # GList *l; 3683s # GVariantBuilder builder; 3683s # GVariantBuilder invalidated_builder; 3683s # guint num_changes; 3683s # 3683s # g_mutex_lock (&skeleton->priv->lock); 3683s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3683s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3683s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 3683s # #else 3683s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 3683s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 3683s # #endif 3683s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 3683s # { 3683s # ChangedProperty *cp = l->data; 3683s # GVariant *variant; 3683s # const GValue *cur_value; 3683s # 3683s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 3683s # if (!_g_value_equal (cur_value, &cp->orig_value)) 3683s # { 3683s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 3683s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 3683s # g_variant_unref (variant); 3683s # num_changes++; 3683s # } 3683s # } 3683s # if (num_changes > 0) 3683s # { 3683s # GList *connections, *ll; 3683s # GVariant *signal_variant; 3683s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 3683s # &builder, &invalidated_builder)); 3683s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3683s # for (ll = connections; ll != NULL; ll = ll->next) 3683s # { 3683s # GDBusConnection *connection = ll->data; 3683s # 3683s # g_dbus_connection_emit_signal (connection, 3683s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 3683s # "org.freedesktop.DBus.Properties", 3683s # "PropertiesChanged", 3683s # signal_variant, 3683s # NULL); 3683s # } 3683s # g_variant_unref (signal_variant); 3683s # g_list_free_full (connections, g_object_unref); 3683s # } 3683s # else 3683s # { 3683s # g_variant_builder_clear (&builder); 3683s # g_variant_builder_clear (&invalidated_builder); 3683s # } 3683s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3683s # skeleton->priv->changed_properties = NULL; 3683s # skeleton->priv->changed_properties_idle_source = NULL; 3683s # g_mutex_unlock (&skeleton->priv->lock); 3683s # return FALSE; 3683s # } 3683s # 3683s # static void 3683s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 3683s # { 3683s # ChangedProperty *cp; 3683s # GList *l; 3683s # cp = NULL; 3683s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 3683s # { 3683s # ChangedProperty *i_cp = l->data; 3683s # if (i_cp->info == info) 3683s # { 3683s # cp = i_cp; 3683s # break; 3683s # } 3683s # } 3683s # if (cp == NULL) 3683s # { 3683s # cp = g_new0 (ChangedProperty, 1); 3683s # cp->prop_id = prop_id; 3683s # cp->info = info; 3683s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 3683s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 3683s # g_value_copy (orig_value, &cp->orig_value); 3683s # } 3683s # } 3683s # 3683s # static void 3683s # good_types_skeleton_notify (GObject *object, 3683s # GParamSpec *pspec G_GNUC_UNUSED) 3683s # { 3683s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 3683s # g_mutex_lock (&skeleton->priv->lock); 3683s # if (skeleton->priv->changed_properties != NULL && 3683s # skeleton->priv->changed_properties_idle_source == NULL) 3683s # { 3683s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 3683s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 3683s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 3683s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 3683s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 3683s # g_source_unref (skeleton->priv->changed_properties_idle_source); 3683s # } 3683s # g_mutex_unlock (&skeleton->priv->lock); 3683s # } 3683s # 3683s # static void 3683s # good_types_skeleton_set_property (GObject *object, 3683s # guint prop_id, 3683s # const GValue *value, 3683s # GParamSpec *pspec) 3683s # { 3683s # const _ExtendedGDBusPropertyInfo *info; 3683s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 3683s # g_assert (prop_id != 0 && prop_id - 1 < 1); 3683s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 3683s # g_mutex_lock (&skeleton->priv->lock); 3683s # g_object_freeze_notify (object); 3683s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 3683s # { 3683s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 3683s # info->emits_changed_signal) 3683s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 3683s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 3683s # g_object_notify_by_pspec (object, pspec); 3683s # } 3683s # g_mutex_unlock (&skeleton->priv->lock); 3683s # g_object_thaw_notify (object); 3683s # } 3683s # 3683s # static void 3683s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 3683s # { 3683s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3683s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 3683s # #else 3683s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 3683s # #endif 3683s # 3683s # g_mutex_init (&skeleton->priv->lock); 3683s # skeleton->priv->context = g_main_context_ref_thread_default (); 3683s # skeleton->priv->properties = g_new0 (GValue, 1); 3683s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 3683s # } 3683s # 3683s # static GVariant * 3683s # good_types_skeleton_get_good_property_type (GoodTypes *object) 3683s # { 3683s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 3683s # GVariant *value; 3683s # g_mutex_lock (&skeleton->priv->lock); 3683s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 3683s # g_mutex_unlock (&skeleton->priv->lock); 3683s # return value; 3683s # } 3683s # 3683s # static void 3683s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 3683s # { 3683s # GObjectClass *gobject_class; 3683s # GDBusInterfaceSkeletonClass *skeleton_class; 3683s # 3683s # gobject_class = G_OBJECT_CLASS (klass); 3683s # gobject_class->finalize = good_types_skeleton_finalize; 3683s # gobject_class->get_property = good_types_skeleton_get_property; 3683s # gobject_class->set_property = good_types_skeleton_set_property; 3683s # gobject_class->notify = good_types_skeleton_notify; 3683s # 3683s # 3683s # good_types_override_properties (gobject_class, 1); 3683s # 3683s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3683s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 3683s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 3683s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 3683s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 3683s # 3683s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3683s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 3683s # #endif 3683s # } 3683s # 3683s # static void 3683s # good_types_skeleton_iface_init (GoodTypesIface *iface) 3683s # { 3683s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 3683s # } 3683s # 3683s # /** 3683s # * good_types_skeleton_new: 3683s # * 3683s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-GoodTypes.top_of_page">GoodTypes</link>. 3683s # * 3683s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 3683s # */ 3683s # GoodTypes * 3683s # good_types_skeleton_new (void) 3683s # { 3683s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 3683s # } 3683s # Error: 3683s ok 3 __main__.TestCodegen.test_empty_interface_body 3683s # gdbus-codegen: /usr/bin/gdbus-codegen 3683s # tmpdir: /tmp/tmp8og3y2gj 3683s # /tmp/tmp8og3y2gj/tmpotrka_dt.xml: 3683s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8og3y2gj/tmpotrka_dt.xml', '--output', '-', '--body'] 3683s # Return code: 0 3683s # Output: 3683s # /* 3683s # * This file is generated by gdbus-codegen, do not modify it. 3683s # * 3683s # * The license of this code is the same as for the D-Bus interface description 3683s # * it was derived from. Note that it links to GLib, so must comply with the 3683s # * LGPL linking clauses. 3683s # */ 3683s # 3683s # #ifdef HAVE_CONFIG_H 3683s # # include "config.h" 3683s # #endif 3683s # 3683s # #include <string.h> 3683s # #ifdef G_OS_UNIX 3683s # # include <gio/gunixfdlist.h> 3683s # #endif 3683s # 3683s # #ifdef G_ENABLE_DEBUG 3683s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3683s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3683s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3683s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3683s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3683s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3683s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3683s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3683s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3683s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3683s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3683s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3683s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3683s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3683s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3683s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3683s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3683s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3683s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3683s # #else /* !G_ENABLE_DEBUG */ 3683s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3683s # * Do not access GValues directly in your code. Instead, use the 3683s # * g_value_get_*() functions 3683s # */ 3683s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3683s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3683s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3683s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3683s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3683s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3683s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3683s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3683s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3683s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3683s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3683s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3683s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3683s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3683s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3683s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3683s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3683s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3683s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3683s # #endif /* !G_ENABLE_DEBUG */ 3683s # 3683s # typedef struct 3683s # { 3683s # GDBusArgInfo parent_struct; 3683s # gboolean use_gvariant; 3683s # } _ExtendedGDBusArgInfo; 3683s # 3683s # typedef struct 3683s # { 3683s # GDBusMethodInfo parent_struct; 3683s # const gchar *signal_name; 3683s # gboolean pass_fdlist; 3683s # } _ExtendedGDBusMethodInfo; 3683s # 3683s # typedef struct 3683s # { 3683s # GDBusSignalInfo parent_struct; 3683s # const gchar *signal_name; 3683s # } _ExtendedGDBusSignalInfo; 3683s # 3683s # typedef struct 3683s # { 3683s # GDBusPropertyInfo parent_struct; 3683s # const gchar *hyphen_name; 3683s # guint use_gvariant : 1; 3683s # guint emits_changed_signal : 1; 3683s # } _ExtendedGDBusPropertyInfo; 3683s # 3683s # typedef struct 3683s # { 3683s # GDBusInterfaceInfo parent_struct; 3683s # const gchar *hyphen_name; 3683s # } _ExtendedGDBusInterfaceInfo; 3683s # 3683s # typedef struct 3683s # { 3683s # const _ExtendedGDBusPropertyInfo *info; 3683s # guint prop_id; 3683s # GValue orig_value; /* the value before the change */ 3683s # } ChangedProperty; 3683s # 3683s # static void 3683s # _changed_property_free (ChangedProperty *data) 3683s # { 3683s # g_value_unset (&data->orig_value); 3683s # g_free (data); 3683s # } 3683s # 3683s # static gboolean 3683s # _g_strv_equal0 (gchar **a, gchar **b) 3683s # { 3683s # gboolean ret = FALSE; 3683s # guint n; 3683s # if (a == NULL && b == NULL) 3683s # { 3683s # ret = TRUE; 3683s # goto out; 3683s # } 3683s # if (a == NULL || b == NULL) 3683s # goto out; 3683s # if (g_strv_length (a) != g_strv_length (b)) 3683s # goto out; 3683s # for (n = 0; a[n] != NULL; n++) 3683s # if (g_strcmp0 (a[n], b[n]) != 0) 3683s # goto out; 3683s # ret = TRUE; 3683s # out: 3683s # return ret; 3683s # } 3683s # 3683s # static gboolean 3683s # _g_variant_equal0 (GVariant *a, GVariant *b) 3683s # { 3683s # gboolean ret = FALSE; 3683s # if (a == NULL && b == NULL) 3683s # { 3683s # ret = TRUE; 3683s # goto out; 3683s # } 3683s # if (a == NULL || b == NULL) 3683s # goto out; 3683s # ret = g_variant_equal (a, b); 3683s # out: 3683s # return ret; 3683s # } 3683s # 3683s # G_GNUC_UNUSED static gboolean 3683s # _g_value_equal (const GValue *a, const GValue *b) 3683s # { 3683s # gboolean ret = FALSE; 3683s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3683s # switch (G_VALUE_TYPE (a)) 3683s # { 3683s # case G_TYPE_BOOLEAN: 3683s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3683s # break; 3683s # case G_TYPE_UCHAR: 3683s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3683s # break; 3683s # case G_TYPE_INT: 3683s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3683s # break; 3683s # case G_TYPE_UINT: 3683s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3683s # break; 3683s # case G_TYPE_INT64: 3683s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3683s # break; 3683s # case G_TYPE_UINT64: 3683s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3683s # break; 3683s # case G_TYPE_DOUBLE: 3683s # { 3683s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3683s # gdouble da = g_value_get_double (a); 3683s # gdouble db = g_value_get_double (b); 3683s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3683s # } 3683s # break; 3683s # case G_TYPE_STRING: 3683s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3683s # break; 3683s # case G_TYPE_VARIANT: 3683s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3683s # break; 3683s # default: 3683s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3683s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3683s # else 3683s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3683s # break; 3683s # } 3683s # return ret; 3683s # } 3683s # Error: 3684s # Executing: glib/codegen.py.test 3684s ok 4 __main__.TestCodegen.test_empty_interface_header 3684s # gdbus-codegen: /usr/bin/gdbus-codegen 3684s # tmpdir: /tmp/tmpedw56_fd 3684s # /tmp/tmpedw56_fd/tmpg146b5vn.xml: 3684s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpedw56_fd/tmpg146b5vn.xml', '--output', '-', '--header'] 3684s # Return code: 0 3684s # Output: 3684s # /* 3684s # * This file is generated by gdbus-codegen, do not modify it. 3684s # * 3684s # * The license of this code is the same as for the D-Bus interface description 3684s # * it was derived from. Note that it links to GLib, so must comply with the 3684s # * LGPL linking clauses. 3684s # */ 3684s # 3684s # #ifndef __STDOUT__ 3684s # #define __STDOUT__ 3684s # 3684s # #include <gio/gio.h> 3684s # 3684s # G_BEGIN_DECLS 3684s # 3684s # 3684s # G_END_DECLS 3684s # 3684s # #endif /* __STDOUT__ */ 3684s # Error: 3685s ok 5 __main__.TestCodegen.test_empty_interface_info_body 3685s # gdbus-codegen: /usr/bin/gdbus-codegen 3685s # tmpdir: /tmp/tmp036n7rwg 3685s # /tmp/tmp036n7rwg/tmp08huy2ox.xml: 3685s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp036n7rwg/tmp08huy2ox.xml', '--output', '-', '--interface-info-body'] 3685s # Return code: 0 3685s # Output: 3685s # /* 3685s # * This file is generated by gdbus-codegen, do not modify it. 3685s # * 3685s # * The license of this code is the same as for the D-Bus interface description 3685s # * it was derived from. Note that it links to GLib, so must comply with the 3685s # * LGPL linking clauses. 3685s # */ 3685s # 3685s # #ifdef HAVE_CONFIG_H 3685s # # include "config.h" 3685s # #endif 3685s # 3685s # #include <string.h> 3685s # Error: 3685s ok 6 __main__.TestCodegen.test_empty_interface_info_header 3685s # gdbus-codegen: /usr/bin/gdbus-codegen 3685s # tmpdir: /tmp/tmp5wff6n4p 3685s # /tmp/tmp5wff6n4p/tmpraj3k0d5.xml: 3685s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp5wff6n4p/tmpraj3k0d5.xml', '--output', '-', '--interface-info-header'] 3685s # Return code: 0 3685s # Output: 3685s # /* 3685s # * This file is generated by gdbus-codegen, do not modify it. 3685s # * 3685s # * The license of this code is the same as for the D-Bus interface description 3685s # * it was derived from. Note that it links to GLib, so must comply with the 3685s # * LGPL linking clauses. 3685s # */ 3685s # 3685s # #ifndef __STDOUT__ 3685s # #define __STDOUT__ 3685s # 3685s # #include <gio/gio.h> 3685s # 3685s # G_BEGIN_DECLS 3685s # 3685s # 3685s # G_END_DECLS 3685s # 3685s # #endif /* __STDOUT__ */ 3685s # Error: 3686s ok 7 __main__.TestCodegen.test_generate_docbook 3686s # gdbus-codegen: /usr/bin/gdbus-codegen 3686s # tmpdir: /tmp/tmpedul1uha 3686s # /tmp/tmpedul1uha/tmp8az7k906.xml: 3686s # <node> 3686s # <interface name="org.project.Bar.Frobnicator"> 3686s # <method name="RandomMethod"/> 3686s # </interface> 3686s # </node> 3686s # 3686s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpedul1uha/tmp8az7k906.xml', '--generate-docbook', 'test'] 3686s # Return code: 0 3686s # Output: 3686s # 3686s # Error: 3686s ok 8 __main__.TestCodegen.test_generate_md 3686s # gdbus-codegen: /usr/bin/gdbus-codegen 3686s # tmpdir: /tmp/tmpvd5tbbvy 3686s # /tmp/tmpvd5tbbvy/tmpk__hagaj.xml: 3686s # <node> 3686s # <interface name="org.project.Bar.Frobnicator"> 3686s # <method name="RandomMethod"/> 3686s # </interface> 3686s # </node> 3686s # 3686s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpvd5tbbvy/tmpk__hagaj.xml', '--generate-md', 'test'] 3686s # Return code: 0 3686s # Output: 3686s # 3686s # Error: 3687s ok 9 __main__.TestCodegen.test_generate_methods_marshaller_simple_method 3687s # gdbus-codegen: /usr/bin/gdbus-codegen 3687s # tmpdir: /tmp/tmp3c390042 3687s # /tmp/tmp3c390042/tmpmhdmo5rp.xml: 3687s # <node> 3687s # <interface name="org.project.CallableIface"> 3687s # <method name="SimpleMethod"/> 3687s # </interface> 3687s # <interface name="org.project.OtherCallableIface"> 3687s # <method name="SimpleMethod"/> 3687s # </interface> 3687s # </node> 3687s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp3c390042/tmpmhdmo5rp.xml', '--output', '-', '--body'] 3687s # Return code: 0 3687s # Output: 3687s # /* 3687s # * This file is generated by gdbus-codegen, do not modify it. 3687s # * 3687s # * The license of this code is the same as for the D-Bus interface description 3687s # * it was derived from. Note that it links to GLib, so must comply with the 3687s # * LGPL linking clauses. 3687s # */ 3687s # 3687s # #ifdef HAVE_CONFIG_H 3687s # # include "config.h" 3687s # #endif 3687s # 3687s # #include <string.h> 3687s # #ifdef G_OS_UNIX 3687s # # include <gio/gunixfdlist.h> 3687s # #endif 3687s # 3687s # #ifdef G_ENABLE_DEBUG 3687s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3687s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3687s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3687s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3687s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3687s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3687s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3687s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3687s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3687s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3687s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3687s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3687s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3687s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3687s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3687s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3687s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3687s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3687s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3687s # #else /* !G_ENABLE_DEBUG */ 3687s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3687s # * Do not access GValues directly in your code. Instead, use the 3687s # * g_value_get_*() functions 3687s # */ 3687s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3687s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3687s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3687s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3687s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3687s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3687s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3687s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3687s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3687s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3687s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3687s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3687s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3687s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3687s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3687s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3687s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3687s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3687s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3687s # #endif /* !G_ENABLE_DEBUG */ 3687s # 3687s # typedef struct 3687s # { 3687s # GDBusArgInfo parent_struct; 3687s # gboolean use_gvariant; 3687s # } _ExtendedGDBusArgInfo; 3687s # 3687s # typedef struct 3687s # { 3687s # GDBusMethodInfo parent_struct; 3687s # const gchar *signal_name; 3687s # gboolean pass_fdlist; 3687s # } _ExtendedGDBusMethodInfo; 3687s # 3687s # typedef struct 3687s # { 3687s # GDBusSignalInfo parent_struct; 3687s # const gchar *signal_name; 3687s # } _ExtendedGDBusSignalInfo; 3687s # 3687s # typedef struct 3687s # { 3687s # GDBusPropertyInfo parent_struct; 3687s # const gchar *hyphen_name; 3687s # guint use_gvariant : 1; 3687s # guint emits_changed_signal : 1; 3687s # } _ExtendedGDBusPropertyInfo; 3687s # 3687s # typedef struct 3687s # { 3687s # GDBusInterfaceInfo parent_struct; 3687s # const gchar *hyphen_name; 3687s # } _ExtendedGDBusInterfaceInfo; 3687s # 3687s # typedef struct 3687s # { 3687s # const _ExtendedGDBusPropertyInfo *info; 3687s # guint prop_id; 3687s # GValue orig_value; /* the value before the change */ 3687s # } ChangedProperty; 3687s # 3687s # static void 3687s # _changed_property_free (ChangedProperty *data) 3687s # { 3687s # g_value_unset (&data->orig_value); 3687s # g_free (data); 3687s # } 3687s # 3687s # static gboolean 3687s # _g_strv_equal0 (gchar **a, gchar **b) 3687s # { 3687s # gboolean ret = FALSE; 3687s # guint n; 3687s # if (a == NULL && b == NULL) 3687s # { 3687s # ret = TRUE; 3687s # goto out; 3687s # } 3687s # if (a == NULL || b == NULL) 3687s # goto out; 3687s # if (g_strv_length (a) != g_strv_length (b)) 3687s # goto out; 3687s # for (n = 0; a[n] != NULL; n++) 3687s # if (g_strcmp0 (a[n], b[n]) != 0) 3687s # goto out; 3687s # ret = TRUE; 3687s # out: 3687s # return ret; 3687s # } 3687s # 3687s # static gboolean 3687s # _g_variant_equal0 (GVariant *a, GVariant *b) 3687s # { 3687s # gboolean ret = FALSE; 3687s # if (a == NULL && b == NULL) 3687s # { 3687s # ret = TRUE; 3687s # goto out; 3687s # } 3687s # if (a == NULL || b == NULL) 3687s # goto out; 3687s # ret = g_variant_equal (a, b); 3687s # out: 3687s # return ret; 3687s # } 3687s # 3687s # G_GNUC_UNUSED static gboolean 3687s # _g_value_equal (const GValue *a, const GValue *b) 3687s # { 3687s # gboolean ret = FALSE; 3687s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3687s # switch (G_VALUE_TYPE (a)) 3687s # { 3687s # case G_TYPE_BOOLEAN: 3687s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3687s # break; 3687s # case G_TYPE_UCHAR: 3687s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3687s # break; 3687s # case G_TYPE_INT: 3687s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3687s # break; 3687s # case G_TYPE_UINT: 3687s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3687s # break; 3687s # case G_TYPE_INT64: 3687s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3687s # break; 3687s # case G_TYPE_UINT64: 3687s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3687s # break; 3687s # case G_TYPE_DOUBLE: 3687s # { 3687s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3687s # gdouble da = g_value_get_double (a); 3687s # gdouble db = g_value_get_double (b); 3687s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3687s # } 3687s # break; 3687s # case G_TYPE_STRING: 3687s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3687s # break; 3687s # case G_TYPE_VARIANT: 3687s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3687s # break; 3687s # default: 3687s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3687s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3687s # else 3687s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3687s # break; 3687s # } 3687s # return ret; 3687s # } 3687s # 3687s # static void 3687s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 3687s # GClosure *closure, 3687s # GValue *return_value, 3687s # unsigned int n_param_values, 3687s # const GValue *param_values, 3687s # void *invocation_hint G_GNUC_UNUSED, 3687s # void *marshal_data) 3687s # { 3687s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 3687s # (void *data1, 3687s # GDBusMethodInvocation *arg_method_invocation, 3687s # void *data2); 3687s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 3687s # GCClosure *cc = (GCClosure*) closure; 3687s # void *data1, *data2; 3687s # gboolean v_return; 3687s # 3687s # g_return_if_fail (return_value != NULL); 3687s # g_return_if_fail (n_param_values == 2); 3687s # 3687s # if (G_CCLOSURE_SWAP_DATA (closure)) 3687s # { 3687s # data1 = closure->data; 3687s # data2 = g_value_peek_pointer (param_values + 0); 3687s # } 3687s # else 3687s # { 3687s # data1 = g_value_peek_pointer (param_values + 0); 3687s # data2 = closure->data; 3687s # } 3687s # 3687s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 3687s # (marshal_data ? marshal_data : cc->callback); 3687s # 3687s # v_return = 3687s # callback (data1, 3687s # g_marshal_value_peek_object (param_values + 1), 3687s # data2); 3687s # 3687s # g_value_set_boolean (return_value, v_return); 3687s # } 3687s # 3687s # /* ------------------------------------------------------------------------ 3687s # * Code for interface org.project.CallableIface 3687s # * ------------------------------------------------------------------------ 3687s # */ 3687s # 3687s # /** 3687s # * SECTION:OrgProjectCallableIface 3687s # * @title: OrgProjectCallableIface 3687s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 3687s # * 3687s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-CallableIface.top_of_page">org.project.CallableIface</link> D-Bus interface in C. 3687s # */ 3687s # 3687s # /* ---- Introspection data for org.project.CallableIface ---- */ 3687s # 3687s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_simple_method = 3687s # { 3687s # { 3687s # -1, 3687s # (gchar *) "SimpleMethod", 3687s # NULL, 3687s # NULL, 3687s # NULL 3687s # }, 3687s # "handle-simple-method", 3687s # FALSE 3687s # }; 3687s # 3687s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 3687s # { 3687s # &_org_project_callable_iface_method_info_simple_method.parent_struct, 3687s # NULL 3687s # }; 3687s # 3687s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 3687s # { 3687s # { 3687s # -1, 3687s # (gchar *) "org.project.CallableIface", 3687s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 3687s # NULL, 3687s # NULL, 3687s # NULL 3687s # }, 3687s # "org-project-callable-iface", 3687s # }; 3687s # 3687s # 3687s # /** 3687s # * org_project_callable_iface_interface_info: 3687s # * 3687s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-CallableIface.top_of_page">org.project.CallableIface</link> D-Bus interface. 3687s # * 3687s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3687s # */ 3687s # GDBusInterfaceInfo * 3687s # org_project_callable_iface_interface_info (void) 3687s # { 3687s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 3687s # } 3687s # 3687s # /** 3687s # * org_project_callable_iface_override_properties: 3687s # * @klass: The class structure for a #GObject derived class. 3687s # * @property_id_begin: The property id to assign to the first overridden property. 3687s # * 3687s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 3687s # * The properties are overridden in the order they are defined. 3687s # * 3687s # * Returns: The last property id. 3687s # */ 3687s # guint 3687s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3687s # { 3687s # return property_id_begin - 1; 3687s # } 3687s # 3687s # 3687s # inline static void 3687s # org_project_callable_iface_method_marshal_simple_method ( 3687s # GClosure *closure, 3687s # GValue *return_value, 3687s # unsigned int n_param_values, 3687s # const GValue *param_values, 3687s # void *invocation_hint, 3687s # void *marshal_data) 3687s # { 3687s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 3687s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3687s # } 3687s # 3687s # 3687s # /** 3687s # * OrgProjectCallableIface: 3687s # * 3687s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-CallableIface.top_of_page">org.project.CallableIface</link>. 3687s # */ 3687s # 3687s # /** 3687s # * OrgProjectCallableIfaceIface: 3687s # * @parent_iface: The parent interface. 3687s # * @handle_simple_method: Handler for the #OrgProjectCallableIface::handle-simple-method signal. 3687s # * 3687s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-CallableIface.top_of_page">org.project.CallableIface</link>. 3687s # */ 3687s # 3687s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 3687s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 3687s # 3687s # static void 3687s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 3687s # { 3687s # /* GObject signals for incoming D-Bus method calls: */ 3687s # /** 3687s # * OrgProjectCallableIface::handle-simple-method: 3687s # * @object: A #OrgProjectCallableIface. 3687s # * @invocation: A #GDBusMethodInvocation. 3687s # * 3687s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-CallableIface.SimpleMethod">SimpleMethod()</link> D-Bus method. 3687s # * 3687s # * 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. 3687s # * 3687s # * 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. 3687s # */ 3687s # g_signal_new ("handle-simple-method", 3687s # G_TYPE_FROM_INTERFACE (iface), 3687s # G_SIGNAL_RUN_LAST, 3687s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_simple_method), 3687s # g_signal_accumulator_true_handled, 3687s # NULL, 3687s # org_project_callable_iface_method_marshal_simple_method, 3687s # G_TYPE_BOOLEAN, 3687s # 1, 3687s # G_TYPE_DBUS_METHOD_INVOCATION); 3687s # 3687s # } 3687s # 3687s # /** 3687s # * org_project_callable_iface_call_simple_method: 3687s # * @proxy: A #OrgProjectCallableIfaceProxy. 3687s # * @cancellable: (nullable): A #GCancellable or %NULL. 3687s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3687s # * @user_data: User data to pass to @callback. 3687s # * 3687s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-CallableIface.SimpleMethod">SimpleMethod()</link> D-Bus method on @proxy. 3687s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3687s # * You can then call org_project_callable_iface_call_simple_method_finish() to get the result of the operation. 3687s # * 3687s # * See org_project_callable_iface_call_simple_method_sync() for the synchronous, blocking version of this method. 3687s # */ 3687s # void 3687s # org_project_callable_iface_call_simple_method ( 3687s # OrgProjectCallableIface *proxy, 3687s # GCancellable *cancellable, 3687s # GAsyncReadyCallback callback, 3687s # gpointer user_data) 3687s # { 3687s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3687s # "SimpleMethod", 3687s # g_variant_new ("()"), 3687s # G_DBUS_CALL_FLAGS_NONE, 3687s # -1, 3687s # cancellable, 3687s # callback, 3687s # user_data); 3687s # } 3687s # 3687s # /** 3687s # * org_project_callable_iface_call_simple_method_finish: 3687s # * @proxy: A #OrgProjectCallableIfaceProxy. 3687s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_simple_method(). 3687s # * @error: Return location for error or %NULL. 3687s # * 3687s # * Finishes an operation started with org_project_callable_iface_call_simple_method(). 3687s # * 3687s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3687s # */ 3687s # gboolean 3687s # org_project_callable_iface_call_simple_method_finish ( 3687s # OrgProjectCallableIface *proxy, 3687s # GAsyncResult *res, 3687s # GError **error) 3687s # { 3687s # GVariant *_ret; 3687s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3687s # if (_ret == NULL) 3687s # goto _out; 3687s # g_variant_get (_ret, 3687s # "()"); 3687s # g_variant_unref (_ret); 3687s # _out: 3687s # return _ret != NULL; 3687s # } 3687s # 3687s # /** 3687s # * org_project_callable_iface_call_simple_method_sync: 3687s # * @proxy: A #OrgProjectCallableIfaceProxy. 3687s # * @cancellable: (nullable): A #GCancellable or %NULL. 3687s # * @error: Return location for error or %NULL. 3687s # * 3687s # * Synchronously invokes the <link linkend="gdbus-method-org-project-CallableIface.SimpleMethod">SimpleMethod()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3687s # * 3687s # * See org_project_callable_iface_call_simple_method() for the asynchronous version of this method. 3687s # * 3687s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3687s # */ 3687s # gboolean 3687s # org_project_callable_iface_call_simple_method_sync ( 3687s # OrgProjectCallableIface *proxy, 3687s # GCancellable *cancellable, 3687s # GError **error) 3687s # { 3687s # GVariant *_ret; 3687s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3687s # "SimpleMethod", 3687s # g_variant_new ("()"), 3687s # G_DBUS_CALL_FLAGS_NONE, 3687s # -1, 3687s # cancellable, 3687s # error); 3687s # if (_ret == NULL) 3687s # goto _out; 3687s # g_variant_get (_ret, 3687s # "()"); 3687s # g_variant_unref (_ret); 3687s # _out: 3687s # return _ret != NULL; 3687s # } 3687s # 3687s # /** 3687s # * org_project_callable_iface_complete_simple_method: 3687s # * @object: A #OrgProjectCallableIface. 3687s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3687s # * 3687s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-CallableIface.SimpleMethod">SimpleMethod()</link> 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. 3687s # * 3687s # * This method will free @invocation, you cannot use it afterwards. 3687s # */ 3687s # void 3687s # org_project_callable_iface_complete_simple_method ( 3687s # OrgProjectCallableIface *object G_GNUC_UNUSED, 3687s # GDBusMethodInvocation *invocation) 3687s # { 3687s # g_dbus_method_invocation_return_value (invocation, 3687s # g_variant_new ("()")); 3687s # } 3687s # 3687s # /* ------------------------------------------------------------------------ */ 3687s # 3687s # /** 3687s # * OrgProjectCallableIfaceProxy: 3687s # * 3687s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 3687s # */ 3687s # 3687s # /** 3687s # * OrgProjectCallableIfaceProxyClass: 3687s # * @parent_class: The parent class. 3687s # * 3687s # * Class structure for #OrgProjectCallableIfaceProxy. 3687s # */ 3687s # 3687s # struct _OrgProjectCallableIfaceProxyPrivate 3687s # { 3687s # GData *qdata; 3687s # }; 3687s # 3687s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 3687s # 3687s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3687s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 3687s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 3687s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 3687s # 3687s # #else 3687s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 3687s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 3687s # 3687s # #endif 3687s # static void 3687s # org_project_callable_iface_proxy_finalize (GObject *object) 3687s # { 3687s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 3687s # g_datalist_clear (&proxy->priv->qdata); 3687s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 3687s # } 3687s # 3687s # static void 3687s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3687s # guint prop_id G_GNUC_UNUSED, 3687s # GValue *value G_GNUC_UNUSED, 3687s # GParamSpec *pspec G_GNUC_UNUSED) 3687s # { 3687s # } 3687s # 3687s # static void 3687s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3687s # guint prop_id G_GNUC_UNUSED, 3687s # const GValue *value G_GNUC_UNUSED, 3687s # GParamSpec *pspec G_GNUC_UNUSED) 3687s # { 3687s # } 3687s # 3687s # static void 3687s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 3687s # const gchar *sender_name G_GNUC_UNUSED, 3687s # const gchar *signal_name, 3687s # GVariant *parameters) 3687s # { 3687s # _ExtendedGDBusSignalInfo *info; 3687s # GVariantIter iter; 3687s # GVariant *child; 3687s # GValue *paramv; 3687s # gsize num_params; 3687s # gsize n; 3687s # guint signal_id; 3687s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 3687s # if (info == NULL) 3687s # return; 3687s # num_params = g_variant_n_children (parameters); 3687s # paramv = g_new0 (GValue, num_params + 1); 3687s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 3687s # g_value_set_object (¶mv[0], proxy); 3687s # g_variant_iter_init (&iter, parameters); 3687s # n = 1; 3687s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3687s # { 3687s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3687s # if (arg_info->use_gvariant) 3687s # { 3687s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3687s # g_value_set_variant (¶mv[n], child); 3687s # n++; 3687s # } 3687s # else 3687s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3687s # g_variant_unref (child); 3687s # } 3687s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 3687s # g_signal_emitv (paramv, signal_id, 0, NULL); 3687s # for (n = 0; n < num_params + 1; n++) 3687s # g_value_unset (¶mv[n]); 3687s # g_free (paramv); 3687s # } 3687s # 3687s # static void 3687s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 3687s # GVariant *changed_properties, 3687s # const gchar *const *invalidated_properties) 3687s # { 3687s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 3687s # guint n; 3687s # const gchar *key; 3687s # GVariantIter *iter; 3687s # _ExtendedGDBusPropertyInfo *info; 3687s # g_variant_get (changed_properties, "a{sv}", &iter); 3687s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3687s # { 3687s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 3687s # g_datalist_remove_data (&proxy->priv->qdata, key); 3687s # if (info != NULL) 3687s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3687s # } 3687s # g_variant_iter_free (iter); 3687s # for (n = 0; invalidated_properties[n] != NULL; n++) 3687s # { 3687s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 3687s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3687s # if (info != NULL) 3687s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3687s # } 3687s # } 3687s # 3687s # static void 3687s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 3687s # { 3687s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3687s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 3687s # #else 3687s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 3687s # #endif 3687s # 3687s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 3687s # } 3687s # 3687s # static void 3687s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 3687s # { 3687s # GObjectClass *gobject_class; 3687s # GDBusProxyClass *proxy_class; 3687s # 3687s # gobject_class = G_OBJECT_CLASS (klass); 3687s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 3687s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 3687s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 3687s # 3687s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3687s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 3687s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 3687s # 3687s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3687s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 3687s # #endif 3687s # } 3687s # 3687s # static void 3687s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 3687s # { 3687s # } 3687s # 3687s # /** 3687s # * org_project_callable_iface_proxy_new: 3687s # * @connection: A #GDBusConnection. 3687s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3687s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3687s # * @object_path: An object path. 3687s # * @cancellable: (nullable): A #GCancellable or %NULL. 3687s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3687s # * @user_data: User data to pass to @callback. 3687s # * 3687s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-CallableIface.top_of_page">org.project.CallableIface</link>. See g_dbus_proxy_new() for more details. 3687s # * 3687s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3687s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 3687s # * 3687s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3687s # */ 3687s # void 3687s # org_project_callable_iface_proxy_new ( 3687s # GDBusConnection *connection, 3687s # GDBusProxyFlags flags, 3687s # const gchar *name, 3687s # const gchar *object_path, 3687s # GCancellable *cancellable, 3687s # GAsyncReadyCallback callback, 3687s # gpointer user_data) 3687s # { 3687s # 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); 3687s # } 3687s # 3687s # /** 3687s # * org_project_callable_iface_proxy_new_finish: 3687s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 3687s # * @error: Return location for error or %NULL 3687s # * 3687s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 3687s # * 3687s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 3687s # */ 3687s # OrgProjectCallableIface * 3687s # org_project_callable_iface_proxy_new_finish ( 3687s # GAsyncResult *res, 3687s # GError **error) 3687s # { 3687s # GObject *ret; 3687s # GObject *source_object; 3687s # source_object = g_async_result_get_source_object (res); 3687s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3687s # g_object_unref (source_object); 3687s # if (ret != NULL) 3687s # return ORG_PROJECT_CALLABLE_IFACE (ret); 3687s # else 3687s # return NULL; 3687s # } 3687s # 3687s # /** 3687s # * org_project_callable_iface_proxy_new_sync: 3687s # * @connection: A #GDBusConnection. 3687s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3687s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3687s # * @object_path: An object path. 3687s # * @cancellable: (nullable): A #GCancellable or %NULL. 3687s # * @error: Return location for error or %NULL 3687s # * 3687s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-CallableIface.top_of_page">org.project.CallableIface</link>. See g_dbus_proxy_new_sync() for more details. 3687s # * 3687s # * The calling thread is blocked until a reply is received. 3687s # * 3687s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 3687s # * 3687s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 3687s # */ 3687s # OrgProjectCallableIface * 3687s # org_project_callable_iface_proxy_new_sync ( 3687s # GDBusConnection *connection, 3687s # GDBusProxyFlags flags, 3687s # const gchar *name, 3687s # const gchar *object_path, 3687s # GCancellable *cancellable, 3687s # GError **error) 3687s # { 3687s # GInitable *ret; 3687s # 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); 3687s # if (ret != NULL) 3687s # return ORG_PROJECT_CALLABLE_IFACE (ret); 3687s # else 3687s # return NULL; 3687s # } 3687s # 3687s # 3687s # /** 3687s # * org_project_callable_iface_proxy_new_for_bus: 3687s # * @bus_type: A #GBusType. 3687s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3687s # * @name: A bus name (well-known or unique). 3687s # * @object_path: An object path. 3687s # * @cancellable: (nullable): A #GCancellable or %NULL. 3687s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3687s # * @user_data: User data to pass to @callback. 3687s # * 3687s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3687s # * 3687s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3687s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 3687s # * 3687s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3687s # */ 3687s # void 3687s # org_project_callable_iface_proxy_new_for_bus ( 3687s # GBusType bus_type, 3687s # GDBusProxyFlags flags, 3687s # const gchar *name, 3687s # const gchar *object_path, 3687s # GCancellable *cancellable, 3687s # GAsyncReadyCallback callback, 3687s # gpointer user_data) 3687s # { 3687s # 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); 3687s # } 3687s # 3687s # /** 3687s # * org_project_callable_iface_proxy_new_for_bus_finish: 3687s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 3687s # * @error: Return location for error or %NULL 3687s # * 3687s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 3687s # * 3687s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 3687s # */ 3687s # OrgProjectCallableIface * 3687s # org_project_callable_iface_proxy_new_for_bus_finish ( 3687s # GAsyncResult *res, 3687s # GError **error) 3687s # { 3687s # GObject *ret; 3687s # GObject *source_object; 3687s # source_object = g_async_result_get_source_object (res); 3687s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3687s # g_object_unref (source_object); 3687s # if (ret != NULL) 3687s # return ORG_PROJECT_CALLABLE_IFACE (ret); 3687s # else 3687s # return NULL; 3687s # } 3687s # 3687s # /** 3687s # * org_project_callable_iface_proxy_new_for_bus_sync: 3687s # * @bus_type: A #GBusType. 3687s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3687s # * @name: A bus name (well-known or unique). 3687s # * @object_path: An object path. 3687s # * @cancellable: (nullable): A #GCancellable or %NULL. 3687s # * @error: Return location for error or %NULL 3687s # * 3687s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3687s # * 3687s # * The calling thread is blocked until a reply is received. 3687s # * 3687s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 3687s # * 3687s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 3687s # */ 3687s # OrgProjectCallableIface * 3687s # org_project_callable_iface_proxy_new_for_bus_sync ( 3687s # GBusType bus_type, 3687s # GDBusProxyFlags flags, 3687s # const gchar *name, 3687s # const gchar *object_path, 3687s # GCancellable *cancellable, 3687s # GError **error) 3687s # { 3687s # GInitable *ret; 3687s # 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); 3687s # if (ret != NULL) 3687s # return ORG_PROJECT_CALLABLE_IFACE (ret); 3687s # else 3687s # return NULL; 3687s # } 3687s # 3687s # 3687s # /* ------------------------------------------------------------------------ */ 3687s # 3687s # /** 3687s # * OrgProjectCallableIfaceSkeleton: 3687s # * 3687s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3687s # */ 3687s # 3687s # /** 3687s # * OrgProjectCallableIfaceSkeletonClass: 3687s # * @parent_class: The parent class. 3687s # * 3687s # * Class structure for #OrgProjectCallableIfaceSkeleton. 3687s # */ 3687s # 3687s # struct _OrgProjectCallableIfaceSkeletonPrivate 3687s # { 3687s # GValue *properties; 3687s # GList *changed_properties; 3687s # GSource *changed_properties_idle_source; 3687s # GMainContext *context; 3687s # GMutex lock; 3687s # }; 3687s # 3687s # static void 3687s # _org_project_callable_iface_skeleton_handle_method_call ( 3687s # GDBusConnection *connection G_GNUC_UNUSED, 3687s # const gchar *sender G_GNUC_UNUSED, 3687s # const gchar *object_path G_GNUC_UNUSED, 3687s # const gchar *interface_name, 3687s # const gchar *method_name, 3687s # GVariant *parameters, 3687s # GDBusMethodInvocation *invocation, 3687s # gpointer user_data) 3687s # { 3687s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 3687s # _ExtendedGDBusMethodInfo *info; 3687s # GVariantIter iter; 3687s # GVariant *child; 3687s # GValue *paramv; 3687s # gsize num_params; 3687s # guint num_extra; 3687s # gsize n; 3687s # guint signal_id; 3687s # GValue return_value = G_VALUE_INIT; 3687s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3687s # g_assert (info != NULL); 3687s # num_params = g_variant_n_children (parameters); 3687s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3687s # n = 0; 3687s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 3687s # g_value_set_object (¶mv[n++], skeleton); 3687s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3687s # g_value_set_object (¶mv[n++], invocation); 3687s # if (info->pass_fdlist) 3687s # { 3687s # #ifdef G_OS_UNIX 3687s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3687s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3687s # #else 3687s # g_assert_not_reached (); 3687s # #endif 3687s # } 3687s # g_variant_iter_init (&iter, parameters); 3687s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3687s # { 3687s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3687s # if (arg_info->use_gvariant) 3687s # { 3687s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3687s # g_value_set_variant (¶mv[n], child); 3687s # n++; 3687s # } 3687s # else 3687s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3687s # g_variant_unref (child); 3687s # } 3687s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 3687s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3687s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3687s # if (!g_value_get_boolean (&return_value)) 3687s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3687s # g_value_unset (&return_value); 3687s # for (n = 0; n < num_params + num_extra; n++) 3687s # g_value_unset (¶mv[n]); 3687s # g_free (paramv); 3687s # } 3687s # 3687s # static GVariant * 3687s # _org_project_callable_iface_skeleton_handle_get_property ( 3687s # GDBusConnection *connection G_GNUC_UNUSED, 3687s # const gchar *sender G_GNUC_UNUSED, 3687s # const gchar *object_path G_GNUC_UNUSED, 3687s # const gchar *interface_name G_GNUC_UNUSED, 3687s # const gchar *property_name, 3687s # GError **error, 3687s # gpointer user_data) 3687s # { 3687s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 3687s # GValue value = G_VALUE_INIT; 3687s # GParamSpec *pspec; 3687s # _ExtendedGDBusPropertyInfo *info; 3687s # GVariant *ret; 3687s # ret = NULL; 3687s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 3687s # g_assert (info != NULL); 3687s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3687s # if (pspec == NULL) 3687s # { 3687s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3687s # } 3687s # else 3687s # { 3687s # g_value_init (&value, pspec->value_type); 3687s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3687s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3687s # g_value_unset (&value); 3687s # } 3687s # return ret; 3687s # } 3687s # 3687s # static gboolean 3687s # _org_project_callable_iface_skeleton_handle_set_property ( 3687s # GDBusConnection *connection G_GNUC_UNUSED, 3687s # const gchar *sender G_GNUC_UNUSED, 3687s # const gchar *object_path G_GNUC_UNUSED, 3687s # const gchar *interface_name G_GNUC_UNUSED, 3687s # const gchar *property_name, 3687s # GVariant *variant, 3687s # GError **error, 3687s # gpointer user_data) 3687s # { 3687s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 3687s # GValue value = G_VALUE_INIT; 3687s # GParamSpec *pspec; 3687s # _ExtendedGDBusPropertyInfo *info; 3687s # gboolean ret; 3687s # ret = FALSE; 3687s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 3687s # g_assert (info != NULL); 3687s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3687s # if (pspec == NULL) 3687s # { 3687s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3687s # } 3687s # else 3687s # { 3687s # if (info->use_gvariant) 3687s # g_value_set_variant (&value, variant); 3687s # else 3687s # g_dbus_gvariant_to_gvalue (variant, &value); 3687s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3687s # g_value_unset (&value); 3687s # ret = TRUE; 3687s # } 3687s # return ret; 3687s # } 3687s # 3687s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 3687s # { 3687s # _org_project_callable_iface_skeleton_handle_method_call, 3687s # _org_project_callable_iface_skeleton_handle_get_property, 3687s # _org_project_callable_iface_skeleton_handle_set_property, 3687s # {NULL} 3687s # }; 3687s # 3687s # static GDBusInterfaceInfo * 3687s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3687s # { 3687s # return org_project_callable_iface_interface_info (); 3687s # } 3687s # 3687s # static GDBusInterfaceVTable * 3687s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3687s # { 3687s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 3687s # } 3687s # 3687s # static GVariant * 3687s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3687s # { 3687s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 3687s # 3687s # GVariantBuilder builder; 3687s # guint n; 3687s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3687s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3687s # #else 3687s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3687s # #endif 3687s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 3687s # goto out; 3687s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 3687s # { 3687s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 3687s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3687s # { 3687s # GVariant *value; 3687s # 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); 3687s # if (value != NULL) 3687s # { 3687s # g_variant_take_ref (value); 3687s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3687s # g_variant_unref (value); 3687s # } 3687s # } 3687s # } 3687s # out: 3687s # return g_variant_builder_end (&builder); 3687s # } 3687s # 3687s # static void 3687s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3687s # { 3687s # } 3687s # 3687s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 3687s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3687s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3687s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 3687s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 3687s # 3687s # #else 3687s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3687s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 3687s # 3687s # #endif 3687s # static void 3687s # org_project_callable_iface_skeleton_finalize (GObject *object) 3687s # { 3687s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 3687s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3687s # if (skeleton->priv->changed_properties_idle_source != NULL) 3687s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3687s # g_main_context_unref (skeleton->priv->context); 3687s # g_mutex_clear (&skeleton->priv->lock); 3687s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 3687s # } 3687s # 3687s # static void 3687s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 3687s # { 3687s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3687s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 3687s # #else 3687s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 3687s # #endif 3687s # 3687s # g_mutex_init (&skeleton->priv->lock); 3687s # skeleton->priv->context = g_main_context_ref_thread_default (); 3687s # } 3687s # 3687s # static void 3687s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 3687s # { 3687s # GObjectClass *gobject_class; 3687s # GDBusInterfaceSkeletonClass *skeleton_class; 3687s # 3687s # gobject_class = G_OBJECT_CLASS (klass); 3687s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 3687s # 3687s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3687s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 3687s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 3687s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 3687s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 3687s # 3687s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3687s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 3687s # #endif 3687s # } 3687s # 3687s # static void 3687s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 3687s # { 3687s # } 3687s # 3687s # /** 3687s # * org_project_callable_iface_skeleton_new: 3687s # * 3687s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-CallableIface.top_of_page">org.project.CallableIface</link>. 3687s # * 3687s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 3687s # */ 3687s # OrgProjectCallableIface * 3687s # org_project_callable_iface_skeleton_new (void) 3687s # { 3687s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 3687s # } 3687s # 3687s # /* ------------------------------------------------------------------------ 3687s # * Code for interface org.project.OtherCallableIface 3687s # * ------------------------------------------------------------------------ 3687s # */ 3687s # 3687s # /** 3687s # * SECTION:OrgProjectOtherCallableIface 3687s # * @title: OrgProjectOtherCallableIface 3687s # * @short_description: Generated C code for the org.project.OtherCallableIface D-Bus interface 3687s # * 3687s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-OtherCallableIface.top_of_page">org.project.OtherCallableIface</link> D-Bus interface in C. 3687s # */ 3687s # 3687s # /* ---- Introspection data for org.project.OtherCallableIface ---- */ 3687s # 3687s # static const _ExtendedGDBusMethodInfo _org_project_other_callable_iface_method_info_simple_method = 3687s # { 3687s # { 3687s # -1, 3687s # (gchar *) "SimpleMethod", 3687s # NULL, 3687s # NULL, 3687s # NULL 3687s # }, 3687s # "handle-simple-method", 3687s # FALSE 3687s # }; 3687s # 3687s # static const GDBusMethodInfo * const _org_project_other_callable_iface_method_info_pointers[] = 3687s # { 3687s # &_org_project_other_callable_iface_method_info_simple_method.parent_struct, 3687s # NULL 3687s # }; 3687s # 3687s # static const _ExtendedGDBusInterfaceInfo _org_project_other_callable_iface_interface_info = 3687s # { 3687s # { 3687s # -1, 3687s # (gchar *) "org.project.OtherCallableIface", 3687s # (GDBusMethodInfo **) &_org_project_other_callable_iface_method_info_pointers, 3687s # NULL, 3687s # NULL, 3687s # NULL 3687s # }, 3687s # "org-project-other-callable-iface", 3687s # }; 3687s # 3687s # 3687s # /** 3687s # * org_project_other_callable_iface_interface_info: 3687s # * 3687s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-OtherCallableIface.top_of_page">org.project.OtherCallableIface</link> D-Bus interface. 3687s # * 3687s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3687s # */ 3687s # GDBusInterfaceInfo * 3687s # org_project_other_callable_iface_interface_info (void) 3687s # { 3687s # return (GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct; 3687s # } 3687s # 3687s # /** 3687s # * org_project_other_callable_iface_override_properties: 3687s # * @klass: The class structure for a #GObject derived class. 3687s # * @property_id_begin: The property id to assign to the first overridden property. 3687s # * 3687s # * Overrides all #GObject properties in the #OrgProjectOtherCallableIface interface for a concrete class. 3687s # * The properties are overridden in the order they are defined. 3687s # * 3687s # * Returns: The last property id. 3687s # */ 3687s # guint 3687s # org_project_other_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3687s # { 3687s # return property_id_begin - 1; 3687s # } 3687s # 3687s # 3687s # inline static void 3687s # org_project_other_callable_iface_method_marshal_simple_method ( 3687s # GClosure *closure, 3687s # GValue *return_value, 3687s # unsigned int n_param_values, 3687s # const GValue *param_values, 3687s # void *invocation_hint, 3687s # void *marshal_data) 3687s # { 3687s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 3687s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3687s # } 3687s # 3687s # 3687s # /** 3687s # * OrgProjectOtherCallableIface: 3687s # * 3687s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-OtherCallableIface.top_of_page">org.project.OtherCallableIface</link>. 3687s # */ 3687s # 3687s # /** 3687s # * OrgProjectOtherCallableIfaceIface: 3687s # * @parent_iface: The parent interface. 3687s # * @handle_simple_method: Handler for the #OrgProjectOtherCallableIface::handle-simple-method signal. 3687s # * 3687s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-OtherCallableIface.top_of_page">org.project.OtherCallableIface</link>. 3687s # */ 3687s # 3687s # typedef OrgProjectOtherCallableIfaceIface OrgProjectOtherCallableIfaceInterface; 3687s # G_DEFINE_INTERFACE (OrgProjectOtherCallableIface, org_project_other_callable_iface, G_TYPE_OBJECT) 3687s # 3687s # static void 3687s # org_project_other_callable_iface_default_init (OrgProjectOtherCallableIfaceIface *iface) 3687s # { 3687s # /* GObject signals for incoming D-Bus method calls: */ 3687s # /** 3687s # * OrgProjectOtherCallableIface::handle-simple-method: 3687s # * @object: A #OrgProjectOtherCallableIface. 3687s # * @invocation: A #GDBusMethodInvocation. 3687s # * 3687s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-OtherCallableIface.SimpleMethod">SimpleMethod()</link> D-Bus method. 3687s # * 3687s # * 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. 3687s # * 3687s # * 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. 3687s # */ 3687s # g_signal_new ("handle-simple-method", 3687s # G_TYPE_FROM_INTERFACE (iface), 3687s # G_SIGNAL_RUN_LAST, 3687s # G_STRUCT_OFFSET (OrgProjectOtherCallableIfaceIface, handle_simple_method), 3687s # g_signal_accumulator_true_handled, 3687s # NULL, 3687s # org_project_other_callable_iface_method_marshal_simple_method, 3687s # G_TYPE_BOOLEAN, 3687s # 1, 3687s # G_TYPE_DBUS_METHOD_INVOCATION); 3687s # 3687s # } 3687s # 3687s # /** 3687s # * org_project_other_callable_iface_call_simple_method: 3687s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 3687s # * @cancellable: (nullable): A #GCancellable or %NULL. 3687s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3687s # * @user_data: User data to pass to @callback. 3687s # * 3687s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-OtherCallableIface.SimpleMethod">SimpleMethod()</link> D-Bus method on @proxy. 3687s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3687s # * You can then call org_project_other_callable_iface_call_simple_method_finish() to get the result of the operation. 3687s # * 3687s # * See org_project_other_callable_iface_call_simple_method_sync() for the synchronous, blocking version of this method. 3687s # */ 3687s # void 3687s # org_project_other_callable_iface_call_simple_method ( 3687s # OrgProjectOtherCallableIface *proxy, 3687s # GCancellable *cancellable, 3687s # GAsyncReadyCallback callback, 3687s # gpointer user_data) 3687s # { 3687s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3687s # "SimpleMethod", 3687s # g_variant_new ("()"), 3687s # G_DBUS_CALL_FLAGS_NONE, 3687s # -1, 3687s # cancellable, 3687s # callback, 3687s # user_data); 3687s # } 3687s # 3687s # /** 3687s # * org_project_other_callable_iface_call_simple_method_finish: 3687s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 3687s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_call_simple_method(). 3687s # * @error: Return location for error or %NULL. 3687s # * 3687s # * Finishes an operation started with org_project_other_callable_iface_call_simple_method(). 3687s # * 3687s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3687s # */ 3687s # gboolean 3687s # org_project_other_callable_iface_call_simple_method_finish ( 3687s # OrgProjectOtherCallableIface *proxy, 3687s # GAsyncResult *res, 3687s # GError **error) 3687s # { 3687s # GVariant *_ret; 3687s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3687s # if (_ret == NULL) 3687s # goto _out; 3687s # g_variant_get (_ret, 3687s # "()"); 3687s # g_variant_unref (_ret); 3687s # _out: 3687s # return _ret != NULL; 3687s # } 3687s # 3687s # /** 3687s # * org_project_other_callable_iface_call_simple_method_sync: 3687s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 3687s # * @cancellable: (nullable): A #GCancellable or %NULL. 3687s # * @error: Return location for error or %NULL. 3687s # * 3687s # * Synchronously invokes the <link linkend="gdbus-method-org-project-OtherCallableIface.SimpleMethod">SimpleMethod()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3687s # * 3687s # * See org_project_other_callable_iface_call_simple_method() for the asynchronous version of this method. 3687s # * 3687s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3687s # */ 3687s # gboolean 3687s # org_project_other_callable_iface_call_simple_method_sync ( 3687s # OrgProjectOtherCallableIface *proxy, 3687s # GCancellable *cancellable, 3687s # GError **error) 3687s # { 3687s # GVariant *_ret; 3687s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3687s # "SimpleMethod", 3687s # g_variant_new ("()"), 3687s # G_DBUS_CALL_FLAGS_NONE, 3687s # -1, 3687s # cancellable, 3687s # error); 3687s # if (_ret == NULL) 3687s # goto _out; 3687s # g_variant_get (_ret, 3687s # "()"); 3687s # g_variant_unref (_ret); 3687s # _out: 3687s # return _ret != NULL; 3687s # } 3687s # 3687s # /** 3687s # * org_project_other_callable_iface_complete_simple_method: 3687s # * @object: A #OrgProjectOtherCallableIface. 3687s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3687s # * 3687s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-OtherCallableIface.SimpleMethod">SimpleMethod()</link> 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. 3687s # * 3687s # * This method will free @invocation, you cannot use it afterwards. 3687s # */ 3687s # void 3687s # org_project_other_callable_iface_complete_simple_method ( 3687s # OrgProjectOtherCallableIface *object G_GNUC_UNUSED, 3687s # GDBusMethodInvocation *invocation) 3687s # { 3687s # g_dbus_method_invocation_return_value (invocation, 3687s # g_variant_new ("()")); 3687s # } 3687s # 3687s # /* ------------------------------------------------------------------------ */ 3687s # 3687s # /** 3687s # * OrgProjectOtherCallableIfaceProxy: 3687s # * 3687s # * The #OrgProjectOtherCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 3687s # */ 3687s # 3687s # /** 3687s # * OrgProjectOtherCallableIfaceProxyClass: 3687s # * @parent_class: The parent class. 3687s # * 3687s # * Class structure for #OrgProjectOtherCallableIfaceProxy. 3687s # */ 3687s # 3687s # struct _OrgProjectOtherCallableIfaceProxyPrivate 3687s # { 3687s # GData *qdata; 3687s # }; 3687s # 3687s # static void org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface); 3687s # 3687s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3687s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 3687s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceProxy) 3687s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 3687s # 3687s # #else 3687s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 3687s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 3687s # 3687s # #endif 3687s # static void 3687s # org_project_other_callable_iface_proxy_finalize (GObject *object) 3687s # { 3687s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (object); 3687s # g_datalist_clear (&proxy->priv->qdata); 3687s # G_OBJECT_CLASS (org_project_other_callable_iface_proxy_parent_class)->finalize (object); 3687s # } 3687s # 3687s # static void 3687s # org_project_other_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3687s # guint prop_id G_GNUC_UNUSED, 3687s # GValue *value G_GNUC_UNUSED, 3687s # GParamSpec *pspec G_GNUC_UNUSED) 3687s # { 3687s # } 3687s # 3687s # static void 3687s # org_project_other_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3687s # guint prop_id G_GNUC_UNUSED, 3687s # const GValue *value G_GNUC_UNUSED, 3687s # GParamSpec *pspec G_GNUC_UNUSED) 3687s # { 3687s # } 3687s # 3687s # static void 3687s # org_project_other_callable_iface_proxy_g_signal (GDBusProxy *proxy, 3687s # const gchar *sender_name G_GNUC_UNUSED, 3687s # const gchar *signal_name, 3687s # GVariant *parameters) 3687s # { 3687s # _ExtendedGDBusSignalInfo *info; 3687s # GVariantIter iter; 3687s # GVariant *child; 3687s # GValue *paramv; 3687s # gsize num_params; 3687s # gsize n; 3687s # guint signal_id; 3687s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, signal_name); 3687s # if (info == NULL) 3687s # return; 3687s # num_params = g_variant_n_children (parameters); 3687s # paramv = g_new0 (GValue, num_params + 1); 3687s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 3687s # g_value_set_object (¶mv[0], proxy); 3687s # g_variant_iter_init (&iter, parameters); 3687s # n = 1; 3687s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3687s # { 3687s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3687s # if (arg_info->use_gvariant) 3687s # { 3687s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3687s # g_value_set_variant (¶mv[n], child); 3687s # n++; 3687s # } 3687s # else 3687s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3687s # g_variant_unref (child); 3687s # } 3687s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 3687s # g_signal_emitv (paramv, signal_id, 0, NULL); 3687s # for (n = 0; n < num_params + 1; n++) 3687s # g_value_unset (¶mv[n]); 3687s # g_free (paramv); 3687s # } 3687s # 3687s # static void 3687s # org_project_other_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 3687s # GVariant *changed_properties, 3687s # const gchar *const *invalidated_properties) 3687s # { 3687s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (_proxy); 3687s # guint n; 3687s # const gchar *key; 3687s # GVariantIter *iter; 3687s # _ExtendedGDBusPropertyInfo *info; 3687s # g_variant_get (changed_properties, "a{sv}", &iter); 3687s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3687s # { 3687s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, key); 3687s # g_datalist_remove_data (&proxy->priv->qdata, key); 3687s # if (info != NULL) 3687s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3687s # } 3687s # g_variant_iter_free (iter); 3687s # for (n = 0; invalidated_properties[n] != NULL; n++) 3687s # { 3687s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 3687s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3687s # if (info != NULL) 3687s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3687s # } 3687s # } 3687s # 3687s # static void 3687s # org_project_other_callable_iface_proxy_init (OrgProjectOtherCallableIfaceProxy *proxy) 3687s # { 3687s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3687s # proxy->priv = org_project_other_callable_iface_proxy_get_instance_private (proxy); 3687s # #else 3687s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY, OrgProjectOtherCallableIfaceProxyPrivate); 3687s # #endif 3687s # 3687s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_callable_iface_interface_info ()); 3687s # } 3687s # 3687s # static void 3687s # org_project_other_callable_iface_proxy_class_init (OrgProjectOtherCallableIfaceProxyClass *klass) 3687s # { 3687s # GObjectClass *gobject_class; 3687s # GDBusProxyClass *proxy_class; 3687s # 3687s # gobject_class = G_OBJECT_CLASS (klass); 3687s # gobject_class->finalize = org_project_other_callable_iface_proxy_finalize; 3687s # gobject_class->get_property = org_project_other_callable_iface_proxy_get_property; 3687s # gobject_class->set_property = org_project_other_callable_iface_proxy_set_property; 3687s # 3687s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3687s # proxy_class->g_signal = org_project_other_callable_iface_proxy_g_signal; 3687s # proxy_class->g_properties_changed = org_project_other_callable_iface_proxy_g_properties_changed; 3687s # 3687s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3687s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceProxyPrivate)); 3687s # #endif 3687s # } 3687s # 3687s # static void 3687s # org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 3687s # { 3687s # } 3687s # 3687s # /** 3687s # * org_project_other_callable_iface_proxy_new: 3687s # * @connection: A #GDBusConnection. 3687s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3687s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3687s # * @object_path: An object path. 3687s # * @cancellable: (nullable): A #GCancellable or %NULL. 3687s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3687s # * @user_data: User data to pass to @callback. 3687s # * 3687s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-OtherCallableIface.top_of_page">org.project.OtherCallableIface</link>. See g_dbus_proxy_new() for more details. 3687s # * 3687s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3687s # * You can then call org_project_other_callable_iface_proxy_new_finish() to get the result of the operation. 3687s # * 3687s # * See org_project_other_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3687s # */ 3687s # void 3687s # org_project_other_callable_iface_proxy_new ( 3687s # GDBusConnection *connection, 3687s # GDBusProxyFlags flags, 3687s # const gchar *name, 3687s # const gchar *object_path, 3687s # GCancellable *cancellable, 3687s # GAsyncReadyCallback callback, 3687s # gpointer user_data) 3687s # { 3687s # 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); 3687s # } 3687s # 3687s # /** 3687s # * org_project_other_callable_iface_proxy_new_finish: 3687s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new(). 3687s # * @error: Return location for error or %NULL 3687s # * 3687s # * Finishes an operation started with org_project_other_callable_iface_proxy_new(). 3687s # * 3687s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 3687s # */ 3687s # OrgProjectOtherCallableIface * 3687s # org_project_other_callable_iface_proxy_new_finish ( 3687s # GAsyncResult *res, 3687s # GError **error) 3687s # { 3687s # GObject *ret; 3687s # GObject *source_object; 3687s # source_object = g_async_result_get_source_object (res); 3687s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3687s # g_object_unref (source_object); 3687s # if (ret != NULL) 3687s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 3687s # else 3687s # return NULL; 3687s # } 3687s # 3687s # /** 3687s # * org_project_other_callable_iface_proxy_new_sync: 3687s # * @connection: A #GDBusConnection. 3687s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3687s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3687s # * @object_path: An object path. 3687s # * @cancellable: (nullable): A #GCancellable or %NULL. 3687s # * @error: Return location for error or %NULL 3687s # * 3687s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-OtherCallableIface.top_of_page">org.project.OtherCallableIface</link>. See g_dbus_proxy_new_sync() for more details. 3687s # * 3687s # * The calling thread is blocked until a reply is received. 3687s # * 3687s # * See org_project_other_callable_iface_proxy_new() for the asynchronous version of this constructor. 3687s # * 3687s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 3687s # */ 3687s # OrgProjectOtherCallableIface * 3687s # org_project_other_callable_iface_proxy_new_sync ( 3687s # GDBusConnection *connection, 3687s # GDBusProxyFlags flags, 3687s # const gchar *name, 3687s # const gchar *object_path, 3687s # GCancellable *cancellable, 3687s # GError **error) 3687s # { 3687s # GInitable *ret; 3687s # 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); 3687s # if (ret != NULL) 3687s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 3687s # else 3687s # return NULL; 3687s # } 3687s # 3687s # 3687s # /** 3687s # * org_project_other_callable_iface_proxy_new_for_bus: 3687s # * @bus_type: A #GBusType. 3687s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3687s # * @name: A bus name (well-known or unique). 3687s # * @object_path: An object path. 3687s # * @cancellable: (nullable): A #GCancellable or %NULL. 3687s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3687s # * @user_data: User data to pass to @callback. 3687s # * 3687s # * Like org_project_other_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3687s # * 3687s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3687s # * You can then call org_project_other_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 3687s # * 3687s # * See org_project_other_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3687s # */ 3687s # void 3687s # org_project_other_callable_iface_proxy_new_for_bus ( 3687s # GBusType bus_type, 3687s # GDBusProxyFlags flags, 3687s # const gchar *name, 3687s # const gchar *object_path, 3687s # GCancellable *cancellable, 3687s # GAsyncReadyCallback callback, 3687s # gpointer user_data) 3687s # { 3687s # 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); 3687s # } 3687s # 3687s # /** 3687s # * org_project_other_callable_iface_proxy_new_for_bus_finish: 3687s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new_for_bus(). 3687s # * @error: Return location for error or %NULL 3687s # * 3687s # * Finishes an operation started with org_project_other_callable_iface_proxy_new_for_bus(). 3687s # * 3687s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 3687s # */ 3687s # OrgProjectOtherCallableIface * 3687s # org_project_other_callable_iface_proxy_new_for_bus_finish ( 3687s # GAsyncResult *res, 3687s # GError **error) 3687s # { 3687s # GObject *ret; 3687s # GObject *source_object; 3687s # source_object = g_async_result_get_source_object (res); 3687s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3687s # g_object_unref (source_object); 3687s # if (ret != NULL) 3687s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 3687s # else 3687s # return NULL; 3687s # } 3687s # 3687s # /** 3687s # * org_project_other_callable_iface_proxy_new_for_bus_sync: 3687s # * @bus_type: A #GBusType. 3687s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3687s # * @name: A bus name (well-known or unique). 3687s # * @object_path: An object path. 3687s # * @cancellable: (nullable): A #GCancellable or %NULL. 3687s # * @error: Return location for error or %NULL 3687s # * 3687s # * Like org_project_other_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3687s # * 3687s # * The calling thread is blocked until a reply is received. 3687s # * 3687s # * See org_project_other_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 3687s # * 3687s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 3687s # */ 3687s # OrgProjectOtherCallableIface * 3687s # org_project_other_callable_iface_proxy_new_for_bus_sync ( 3687s # GBusType bus_type, 3687s # GDBusProxyFlags flags, 3687s # const gchar *name, 3687s # const gchar *object_path, 3687s # GCancellable *cancellable, 3687s # GError **error) 3687s # { 3687s # GInitable *ret; 3687s # 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); 3687s # if (ret != NULL) 3687s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 3687s # else 3687s # return NULL; 3687s # } 3687s # 3687s # 3687s # /* ------------------------------------------------------------------------ */ 3687s # 3687s # /** 3687s # * OrgProjectOtherCallableIfaceSkeleton: 3687s # * 3687s # * The #OrgProjectOtherCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3687s # */ 3687s # 3687s # /** 3687s # * OrgProjectOtherCallableIfaceSkeletonClass: 3687s # * @parent_class: The parent class. 3687s # * 3687s # * Class structure for #OrgProjectOtherCallableIfaceSkeleton. 3687s # */ 3687s # 3687s # struct _OrgProjectOtherCallableIfaceSkeletonPrivate 3687s # { 3687s # GValue *properties; 3687s # GList *changed_properties; 3687s # GSource *changed_properties_idle_source; 3687s # GMainContext *context; 3687s # GMutex lock; 3687s # }; 3687s # 3687s # static void 3687s # _org_project_other_callable_iface_skeleton_handle_method_call ( 3687s # GDBusConnection *connection G_GNUC_UNUSED, 3687s # const gchar *sender G_GNUC_UNUSED, 3687s # const gchar *object_path G_GNUC_UNUSED, 3687s # const gchar *interface_name, 3687s # const gchar *method_name, 3687s # GVariant *parameters, 3687s # GDBusMethodInvocation *invocation, 3687s # gpointer user_data) 3687s # { 3687s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 3687s # _ExtendedGDBusMethodInfo *info; 3687s # GVariantIter iter; 3687s # GVariant *child; 3687s # GValue *paramv; 3687s # gsize num_params; 3687s # guint num_extra; 3687s # gsize n; 3687s # guint signal_id; 3687s # GValue return_value = G_VALUE_INIT; 3687s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3687s # g_assert (info != NULL); 3687s # num_params = g_variant_n_children (parameters); 3687s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3687s # n = 0; 3687s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 3687s # g_value_set_object (¶mv[n++], skeleton); 3687s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3687s # g_value_set_object (¶mv[n++], invocation); 3687s # if (info->pass_fdlist) 3687s # { 3687s # #ifdef G_OS_UNIX 3687s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3687s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3687s # #else 3687s # g_assert_not_reached (); 3687s # #endif 3687s # } 3687s # g_variant_iter_init (&iter, parameters); 3687s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3687s # { 3687s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3687s # if (arg_info->use_gvariant) 3687s # { 3687s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3687s # g_value_set_variant (¶mv[n], child); 3687s # n++; 3687s # } 3687s # else 3687s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3687s # g_variant_unref (child); 3687s # } 3687s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 3687s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3687s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3687s # if (!g_value_get_boolean (&return_value)) 3687s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3687s # g_value_unset (&return_value); 3687s # for (n = 0; n < num_params + num_extra; n++) 3687s # g_value_unset (¶mv[n]); 3687s # g_free (paramv); 3687s # } 3687s # 3687s # static GVariant * 3687s # _org_project_other_callable_iface_skeleton_handle_get_property ( 3687s # GDBusConnection *connection G_GNUC_UNUSED, 3687s # const gchar *sender G_GNUC_UNUSED, 3687s # const gchar *object_path G_GNUC_UNUSED, 3687s # const gchar *interface_name G_GNUC_UNUSED, 3687s # const gchar *property_name, 3687s # GError **error, 3687s # gpointer user_data) 3687s # { 3687s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 3687s # GValue value = G_VALUE_INIT; 3687s # GParamSpec *pspec; 3687s # _ExtendedGDBusPropertyInfo *info; 3687s # GVariant *ret; 3687s # ret = NULL; 3687s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 3687s # g_assert (info != NULL); 3687s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3687s # if (pspec == NULL) 3687s # { 3687s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3687s # } 3687s # else 3687s # { 3687s # g_value_init (&value, pspec->value_type); 3687s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3687s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3687s # g_value_unset (&value); 3687s # } 3687s # return ret; 3687s # } 3687s # 3687s # static gboolean 3687s # _org_project_other_callable_iface_skeleton_handle_set_property ( 3687s # GDBusConnection *connection G_GNUC_UNUSED, 3687s # const gchar *sender G_GNUC_UNUSED, 3687s # const gchar *object_path G_GNUC_UNUSED, 3687s # const gchar *interface_name G_GNUC_UNUSED, 3687s # const gchar *property_name, 3687s # GVariant *variant, 3687s # GError **error, 3687s # gpointer user_data) 3687s # { 3687s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 3687s # GValue value = G_VALUE_INIT; 3687s # GParamSpec *pspec; 3687s # _ExtendedGDBusPropertyInfo *info; 3687s # gboolean ret; 3687s # ret = FALSE; 3687s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 3687s # g_assert (info != NULL); 3687s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3687s # if (pspec == NULL) 3687s # { 3687s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3687s # } 3687s # else 3687s # { 3687s # if (info->use_gvariant) 3687s # g_value_set_variant (&value, variant); 3687s # else 3687s # g_dbus_gvariant_to_gvalue (variant, &value); 3687s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3687s # g_value_unset (&value); 3687s # ret = TRUE; 3687s # } 3687s # return ret; 3687s # } 3687s # 3687s # static const GDBusInterfaceVTable _org_project_other_callable_iface_skeleton_vtable = 3687s # { 3687s # _org_project_other_callable_iface_skeleton_handle_method_call, 3687s # _org_project_other_callable_iface_skeleton_handle_get_property, 3687s # _org_project_other_callable_iface_skeleton_handle_set_property, 3687s # {NULL} 3687s # }; 3687s # 3687s # static GDBusInterfaceInfo * 3687s # org_project_other_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3687s # { 3687s # return org_project_other_callable_iface_interface_info (); 3687s # } 3687s # 3687s # static GDBusInterfaceVTable * 3687s # org_project_other_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3687s # { 3687s # return (GDBusInterfaceVTable *) &_org_project_other_callable_iface_skeleton_vtable; 3687s # } 3687s # 3687s # static GVariant * 3687s # org_project_other_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3687s # { 3687s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (_skeleton); 3687s # 3687s # GVariantBuilder builder; 3687s # guint n; 3687s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3687s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3687s # #else 3687s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3687s # #endif 3687s # if (_org_project_other_callable_iface_interface_info.parent_struct.properties == NULL) 3687s # goto out; 3687s # for (n = 0; _org_project_other_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 3687s # { 3687s # GDBusPropertyInfo *info = _org_project_other_callable_iface_interface_info.parent_struct.properties[n]; 3687s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3687s # { 3687s # GVariant *value; 3687s # 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); 3687s # if (value != NULL) 3687s # { 3687s # g_variant_take_ref (value); 3687s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3687s # g_variant_unref (value); 3687s # } 3687s # } 3687s # } 3687s # out: 3687s # return g_variant_builder_end (&builder); 3687s # } 3687s # 3687s # static void 3687s # org_project_other_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3687s # { 3687s # } 3687s # 3687s # static void org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface); 3687s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3687s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3687s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceSkeleton) 3687s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 3687s # 3687s # #else 3687s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3687s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 3687s # 3687s # #endif 3687s # static void 3687s # org_project_other_callable_iface_skeleton_finalize (GObject *object) 3687s # { 3687s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (object); 3687s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3687s # if (skeleton->priv->changed_properties_idle_source != NULL) 3687s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3687s # g_main_context_unref (skeleton->priv->context); 3687s # g_mutex_clear (&skeleton->priv->lock); 3687s # G_OBJECT_CLASS (org_project_other_callable_iface_skeleton_parent_class)->finalize (object); 3687s # } 3687s # 3687s # static void 3687s # org_project_other_callable_iface_skeleton_init (OrgProjectOtherCallableIfaceSkeleton *skeleton) 3687s # { 3687s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3687s # skeleton->priv = org_project_other_callable_iface_skeleton_get_instance_private (skeleton); 3687s # #else 3687s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, OrgProjectOtherCallableIfaceSkeletonPrivate); 3687s # #endif 3687s # 3687s # g_mutex_init (&skeleton->priv->lock); 3687s # skeleton->priv->context = g_main_context_ref_thread_default (); 3687s # } 3687s # 3687s # static void 3687s # org_project_other_callable_iface_skeleton_class_init (OrgProjectOtherCallableIfaceSkeletonClass *klass) 3687s # { 3687s # GObjectClass *gobject_class; 3687s # GDBusInterfaceSkeletonClass *skeleton_class; 3687s # 3687s # gobject_class = G_OBJECT_CLASS (klass); 3687s # gobject_class->finalize = org_project_other_callable_iface_skeleton_finalize; 3687s # 3687s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3687s # skeleton_class->get_info = org_project_other_callable_iface_skeleton_dbus_interface_get_info; 3687s # skeleton_class->get_properties = org_project_other_callable_iface_skeleton_dbus_interface_get_properties; 3687s # skeleton_class->flush = org_project_other_callable_iface_skeleton_dbus_interface_flush; 3687s # skeleton_class->get_vtable = org_project_other_callable_iface_skeleton_dbus_interface_get_vtable; 3687s # 3687s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3687s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceSkeletonPrivate)); 3687s # #endif 3687s # } 3687s # 3687s # static void 3687s # org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 3687s # { 3687s # } 3687s # 3687s # /** 3687s # * org_project_other_callable_iface_skeleton_new: 3687s # * 3687s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-OtherCallableIface.top_of_page">org.project.OtherCallableIface</link>. 3687s # * 3687s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceSkeleton): The skeleton object. 3687s # */ 3687s # OrgProjectOtherCallableIface * 3687s # org_project_other_callable_iface_skeleton_new (void) 3687s # { 3687s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, NULL)); 3687s # } 3687s # Error: 3689s # Executing: glib/codegen.py.test 3694s # Executing: glib/codegen.py.test 3698s ok 10 __main__.TestCodegen.test_generate_methods_marshaller_single_typed_in_args 3698s # gdbus-codegen: /usr/bin/gdbus-codegen 3698s # tmpdir: /tmp/tmpj0kzs0gk 3698s # /tmp/tmpj0kzs0gk/tmpt55qsfci.xml: 3698s # <node> 3698s # <interface name="org.project.UsefulInterface"> 3698s # <method name="SingleArgMethodB"> 3698s # <arg name="arg_b" type="b"/> 3698s # </method> 3698s # </interface> 3698s # </node> 3698s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpj0kzs0gk/tmpt55qsfci.xml', '--output', '-', '--body'] 3698s # Return code: 0 3698s # Output: 3698s # /* 3698s # * This file is generated by gdbus-codegen, do not modify it. 3698s # * 3698s # * The license of this code is the same as for the D-Bus interface description 3698s # * it was derived from. Note that it links to GLib, so must comply with the 3698s # * LGPL linking clauses. 3698s # */ 3698s # 3698s # #ifdef HAVE_CONFIG_H 3698s # # include "config.h" 3698s # #endif 3698s # 3698s # #include <string.h> 3698s # #ifdef G_OS_UNIX 3698s # # include <gio/gunixfdlist.h> 3698s # #endif 3698s # 3698s # #ifdef G_ENABLE_DEBUG 3698s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3698s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3698s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3698s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3698s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3698s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3698s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3698s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3698s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3698s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3698s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3698s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3698s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3698s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3698s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3698s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3698s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3698s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3698s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3698s # #else /* !G_ENABLE_DEBUG */ 3698s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3698s # * Do not access GValues directly in your code. Instead, use the 3698s # * g_value_get_*() functions 3698s # */ 3698s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3698s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3698s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3698s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3698s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3698s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3698s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3698s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3698s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3698s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3698s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3698s # #endif /* !G_ENABLE_DEBUG */ 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusArgInfo parent_struct; 3698s # gboolean use_gvariant; 3698s # } _ExtendedGDBusArgInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusMethodInfo parent_struct; 3698s # const gchar *signal_name; 3698s # gboolean pass_fdlist; 3698s # } _ExtendedGDBusMethodInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusSignalInfo parent_struct; 3698s # const gchar *signal_name; 3698s # } _ExtendedGDBusSignalInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusPropertyInfo parent_struct; 3698s # const gchar *hyphen_name; 3698s # guint use_gvariant : 1; 3698s # guint emits_changed_signal : 1; 3698s # } _ExtendedGDBusPropertyInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusInterfaceInfo parent_struct; 3698s # const gchar *hyphen_name; 3698s # } _ExtendedGDBusInterfaceInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # const _ExtendedGDBusPropertyInfo *info; 3698s # guint prop_id; 3698s # GValue orig_value; /* the value before the change */ 3698s # } ChangedProperty; 3698s # 3698s # static void 3698s # _changed_property_free (ChangedProperty *data) 3698s # { 3698s # g_value_unset (&data->orig_value); 3698s # g_free (data); 3698s # } 3698s # 3698s # static gboolean 3698s # _g_strv_equal0 (gchar **a, gchar **b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # guint n; 3698s # if (a == NULL && b == NULL) 3698s # { 3698s # ret = TRUE; 3698s # goto out; 3698s # } 3698s # if (a == NULL || b == NULL) 3698s # goto out; 3698s # if (g_strv_length (a) != g_strv_length (b)) 3698s # goto out; 3698s # for (n = 0; a[n] != NULL; n++) 3698s # if (g_strcmp0 (a[n], b[n]) != 0) 3698s # goto out; 3698s # ret = TRUE; 3698s # out: 3698s # return ret; 3698s # } 3698s # 3698s # static gboolean 3698s # _g_variant_equal0 (GVariant *a, GVariant *b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # if (a == NULL && b == NULL) 3698s # { 3698s # ret = TRUE; 3698s # goto out; 3698s # } 3698s # if (a == NULL || b == NULL) 3698s # goto out; 3698s # ret = g_variant_equal (a, b); 3698s # out: 3698s # return ret; 3698s # } 3698s # 3698s # G_GNUC_UNUSED static gboolean 3698s # _g_value_equal (const GValue *a, const GValue *b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3698s # switch (G_VALUE_TYPE (a)) 3698s # { 3698s # case G_TYPE_BOOLEAN: 3698s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3698s # break; 3698s # case G_TYPE_UCHAR: 3698s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3698s # break; 3698s # case G_TYPE_INT: 3698s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3698s # break; 3698s # case G_TYPE_UINT: 3698s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3698s # break; 3698s # case G_TYPE_INT64: 3698s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3698s # break; 3698s # case G_TYPE_UINT64: 3698s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3698s # break; 3698s # case G_TYPE_DOUBLE: 3698s # { 3698s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3698s # gdouble da = g_value_get_double (a); 3698s # gdouble db = g_value_get_double (b); 3698s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3698s # } 3698s # break; 3698s # case G_TYPE_STRING: 3698s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3698s # break; 3698s # case G_TYPE_VARIANT: 3698s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3698s # break; 3698s # default: 3698s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3698s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3698s # else 3698s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3698s # break; 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static void 3698s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN ( 3698s # GClosure *closure, 3698s # GValue *return_value, 3698s # unsigned int n_param_values, 3698s # const GValue *param_values, 3698s # void *invocation_hint G_GNUC_UNUSED, 3698s # void *marshal_data) 3698s # { 3698s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBooleanFunc) 3698s # (void *data1, 3698s # GDBusMethodInvocation *arg_method_invocation, 3698s # gboolean arg_arg_b, 3698s # void *data2); 3698s # _GDbusCodegenMarshalBoolean_ObjectBooleanFunc callback; 3698s # GCClosure *cc = (GCClosure*) closure; 3698s # void *data1, *data2; 3698s # gboolean v_return; 3698s # 3698s # g_return_if_fail (return_value != NULL); 3698s # g_return_if_fail (n_param_values == 3); 3698s # 3698s # if (G_CCLOSURE_SWAP_DATA (closure)) 3698s # { 3698s # data1 = closure->data; 3698s # data2 = g_value_peek_pointer (param_values + 0); 3698s # } 3698s # else 3698s # { 3698s # data1 = g_value_peek_pointer (param_values + 0); 3698s # data2 = closure->data; 3698s # } 3698s # 3698s # callback = (_GDbusCodegenMarshalBoolean_ObjectBooleanFunc) 3698s # (marshal_data ? marshal_data : cc->callback); 3698s # 3698s # v_return = 3698s # callback (data1, 3698s # g_marshal_value_peek_object (param_values + 1), 3698s # g_marshal_value_peek_boolean (param_values + 2), 3698s # data2); 3698s # 3698s # g_value_set_boolean (return_value, v_return); 3698s # } 3698s # 3698s # /* ------------------------------------------------------------------------ 3698s # * Code for interface org.project.UsefulInterface 3698s # * ------------------------------------------------------------------------ 3698s # */ 3698s # 3698s # /** 3698s # * SECTION:OrgProjectUsefulInterface 3698s # * @title: OrgProjectUsefulInterface 3698s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 3698s # * 3698s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface in C. 3698s # */ 3698s # 3698s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 3698s # 3698s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_arg_b = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "arg_b", 3698s # (gchar *) "b", 3698s # NULL 3698s # }, 3698s # FALSE 3698s # }; 3698s # 3698s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_pointers[] = 3698s # { 3698s # &_org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_arg_b.parent_struct, 3698s # NULL 3698s # }; 3698s # 3698s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_b = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "SingleArgMethodB", 3698s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_pointers, 3698s # NULL, 3698s # NULL 3698s # }, 3698s # "handle-single-arg-method-b", 3698s # FALSE 3698s # }; 3698s # 3698s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 3698s # { 3698s # &_org_project_useful_interface_method_info_single_arg_method_b.parent_struct, 3698s # NULL 3698s # }; 3698s # 3698s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "org.project.UsefulInterface", 3698s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 3698s # NULL, 3698s # NULL, 3698s # NULL 3698s # }, 3698s # "org-project-useful-interface", 3698s # }; 3698s # 3698s # 3698s # /** 3698s # * org_project_useful_interface_interface_info: 3698s # * 3698s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface. 3698s # * 3698s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3698s # */ 3698s # GDBusInterfaceInfo * 3698s # org_project_useful_interface_interface_info (void) 3698s # { 3698s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_override_properties: 3698s # * @klass: The class structure for a #GObject derived class. 3698s # * @property_id_begin: The property id to assign to the first overridden property. 3698s # * 3698s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 3698s # * The properties are overridden in the order they are defined. 3698s # * 3698s # * Returns: The last property id. 3698s # */ 3698s # guint 3698s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3698s # { 3698s # return property_id_begin - 1; 3698s # } 3698s # 3698s # 3698s # inline static void 3698s # org_project_useful_interface_method_marshal_single_arg_method_b ( 3698s # GClosure *closure, 3698s # GValue *return_value, 3698s # unsigned int n_param_values, 3698s # const GValue *param_values, 3698s # void *invocation_hint, 3698s # void *marshal_data) 3698s # { 3698s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN (closure, 3698s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3698s # } 3698s # 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterface: 3698s # * 3698s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceIface: 3698s # * @parent_iface: The parent interface. 3698s # * @handle_single_arg_method_b: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-b signal. 3698s # * 3698s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # */ 3698s # 3698s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 3698s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 3698s # 3698s # static void 3698s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 3698s # { 3698s # /* GObject signals for incoming D-Bus method calls: */ 3698s # /** 3698s # * OrgProjectUsefulInterface::handle-single-arg-method-b: 3698s # * @object: A #OrgProjectUsefulInterface. 3698s # * @invocation: A #GDBusMethodInvocation. 3698s # * @arg_arg_b: Argument passed by remote caller. 3698s # * 3698s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodB">SingleArgMethodB()</link> D-Bus method. 3698s # * 3698s # * 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. 3698s # * 3698s # * 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. 3698s # */ 3698s # g_signal_new ("handle-single-arg-method-b", 3698s # G_TYPE_FROM_INTERFACE (iface), 3698s # G_SIGNAL_RUN_LAST, 3698s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_b), 3698s # g_signal_accumulator_true_handled, 3698s # NULL, 3698s # org_project_useful_interface_method_marshal_single_arg_method_b, 3698s # G_TYPE_BOOLEAN, 3698s # 2, 3698s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_BOOLEAN); 3698s # 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_b: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @arg_arg_b: Argument to pass with the method invocation. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodB">SingleArgMethodB()</link> D-Bus method on @proxy. 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_call_single_arg_method_b_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_call_single_arg_method_b_sync() for the synchronous, blocking version of this method. 3698s # */ 3698s # void 3698s # org_project_useful_interface_call_single_arg_method_b ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # gboolean arg_arg_b, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3698s # "SingleArgMethodB", 3698s # g_variant_new ("(b)", 3698s # arg_arg_b), 3698s # G_DBUS_CALL_FLAGS_NONE, 3698s # -1, 3698s # cancellable, 3698s # callback, 3698s # user_data); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_b_finish: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_b(). 3698s # * @error: Return location for error or %NULL. 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_b(). 3698s # * 3698s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3698s # */ 3698s # gboolean 3698s # org_project_useful_interface_call_single_arg_method_b_finish ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GVariant *_ret; 3698s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3698s # if (_ret == NULL) 3698s # goto _out; 3698s # g_variant_get (_ret, 3698s # "()"); 3698s # g_variant_unref (_ret); 3698s # _out: 3698s # return _ret != NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_b_sync: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @arg_arg_b: Argument to pass with the method invocation. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL. 3698s # * 3698s # * Synchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodB">SingleArgMethodB()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_call_single_arg_method_b() for the asynchronous version of this method. 3698s # * 3698s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3698s # */ 3698s # gboolean 3698s # org_project_useful_interface_call_single_arg_method_b_sync ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # gboolean arg_arg_b, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GVariant *_ret; 3698s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3698s # "SingleArgMethodB", 3698s # g_variant_new ("(b)", 3698s # arg_arg_b), 3698s # G_DBUS_CALL_FLAGS_NONE, 3698s # -1, 3698s # cancellable, 3698s # error); 3698s # if (_ret == NULL) 3698s # goto _out; 3698s # g_variant_get (_ret, 3698s # "()"); 3698s # g_variant_unref (_ret); 3698s # _out: 3698s # return _ret != NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_complete_single_arg_method_b: 3698s # * @object: A #OrgProjectUsefulInterface. 3698s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3698s # * 3698s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodB">SingleArgMethodB()</link> 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. 3698s # * 3698s # * This method will free @invocation, you cannot use it afterwards. 3698s # */ 3698s # void 3698s # org_project_useful_interface_complete_single_arg_method_b ( 3698s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 3698s # GDBusMethodInvocation *invocation) 3698s # { 3698s # g_dbus_method_invocation_return_value (invocation, 3698s # g_variant_new ("()")); 3698s # } 3698s # 3698s # /* ------------------------------------------------------------------------ */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceProxy: 3698s # * 3698s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceProxyClass: 3698s # * @parent_class: The parent class. 3698s # * 3698s # * Class structure for #OrgProjectUsefulInterfaceProxy. 3698s # */ 3698s # 3698s # struct _OrgProjectUsefulInterfaceProxyPrivate 3698s # { 3698s # GData *qdata; 3698s # }; 3698s # 3698s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3698s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3698s # 3698s # #else 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3698s # 3698s # #endif 3698s # static void 3698s # org_project_useful_interface_proxy_finalize (GObject *object) 3698s # { 3698s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 3698s # g_datalist_clear (&proxy->priv->qdata); 3698s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3698s # guint prop_id G_GNUC_UNUSED, 3698s # GValue *value G_GNUC_UNUSED, 3698s # GParamSpec *pspec G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3698s # guint prop_id G_GNUC_UNUSED, 3698s # const GValue *value G_GNUC_UNUSED, 3698s # GParamSpec *pspec G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 3698s # const gchar *sender_name G_GNUC_UNUSED, 3698s # const gchar *signal_name, 3698s # GVariant *parameters) 3698s # { 3698s # _ExtendedGDBusSignalInfo *info; 3698s # GVariantIter iter; 3698s # GVariant *child; 3698s # GValue *paramv; 3698s # gsize num_params; 3698s # gsize n; 3698s # guint signal_id; 3698s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 3698s # if (info == NULL) 3698s # return; 3698s # num_params = g_variant_n_children (parameters); 3698s # paramv = g_new0 (GValue, num_params + 1); 3698s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_set_object (¶mv[0], proxy); 3698s # g_variant_iter_init (&iter, parameters); 3698s # n = 1; 3698s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3698s # { 3698s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3698s # if (arg_info->use_gvariant) 3698s # { 3698s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3698s # g_value_set_variant (¶mv[n], child); 3698s # n++; 3698s # } 3698s # else 3698s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3698s # g_variant_unref (child); 3698s # } 3698s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_signal_emitv (paramv, signal_id, 0, NULL); 3698s # for (n = 0; n < num_params + 1; n++) 3698s # g_value_unset (¶mv[n]); 3698s # g_free (paramv); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 3698s # GVariant *changed_properties, 3698s # const gchar *const *invalidated_properties) 3698s # { 3698s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 3698s # guint n; 3698s # const gchar *key; 3698s # GVariantIter *iter; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # g_variant_get (changed_properties, "a{sv}", &iter); 3698s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3698s # { 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 3698s # g_datalist_remove_data (&proxy->priv->qdata, key); 3698s # if (info != NULL) 3698s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3698s # } 3698s # g_variant_iter_free (iter); 3698s # for (n = 0; invalidated_properties[n] != NULL; n++) 3698s # { 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 3698s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3698s # if (info != NULL) 3698s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3698s # } 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 3698s # { 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 3698s # #else 3698s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 3698s # #endif 3698s # 3698s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 3698s # { 3698s # GObjectClass *gobject_class; 3698s # GDBusProxyClass *proxy_class; 3698s # 3698s # gobject_class = G_OBJECT_CLASS (klass); 3698s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 3698s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 3698s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 3698s # 3698s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3698s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 3698s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3698s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 3698s # #endif 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new: 3698s # * @connection: A #GDBusConnection. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new() for more details. 3698s # * 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3698s # */ 3698s # void 3698s # org_project_useful_interface_proxy_new ( 3698s # GDBusConnection *connection, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_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); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_finish: 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_finish ( 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GObject *ret; 3698s # GObject *source_object; 3698s # source_object = g_async_result_get_source_object (res); 3698s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3698s # g_object_unref (source_object); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_sync: 3698s # * @connection: A #GDBusConnection. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new_sync() for more details. 3698s # * 3698s # * The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_sync ( 3698s # GDBusConnection *connection, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GInitable *ret; 3698s # 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); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus: 3698s # * @bus_type: A #GBusType. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: A bus name (well-known or unique). 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3698s # * 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3698s # */ 3698s # void 3698s # org_project_useful_interface_proxy_new_for_bus ( 3698s # GBusType bus_type, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_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); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus_finish: 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_for_bus_finish ( 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GObject *ret; 3698s # GObject *source_object; 3698s # source_object = g_async_result_get_source_object (res); 3698s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3698s # g_object_unref (source_object); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus_sync: 3698s # * @bus_type: A #GBusType. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: A bus name (well-known or unique). 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3698s # * 3698s # * The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_for_bus_sync ( 3698s # GBusType bus_type, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GInitable *ret; 3698s # 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); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # 3698s # /* ------------------------------------------------------------------------ */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceSkeleton: 3698s # * 3698s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceSkeletonClass: 3698s # * @parent_class: The parent class. 3698s # * 3698s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 3698s # */ 3698s # 3698s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 3698s # { 3698s # GValue *properties; 3698s # GList *changed_properties; 3698s # GSource *changed_properties_idle_source; 3698s # GMainContext *context; 3698s # GMutex lock; 3698s # }; 3698s # 3698s # static void 3698s # _org_project_useful_interface_skeleton_handle_method_call ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name, 3698s # const gchar *method_name, 3698s # GVariant *parameters, 3698s # GDBusMethodInvocation *invocation, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # _ExtendedGDBusMethodInfo *info; 3698s # GVariantIter iter; 3698s # GVariant *child; 3698s # GValue *paramv; 3698s # gsize num_params; 3698s # guint num_extra; 3698s # gsize n; 3698s # guint signal_id; 3698s # GValue return_value = G_VALUE_INIT; 3698s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3698s # g_assert (info != NULL); 3698s # num_params = g_variant_n_children (parameters); 3698s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3698s # n = 0; 3698s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_set_object (¶mv[n++], skeleton); 3698s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3698s # g_value_set_object (¶mv[n++], invocation); 3698s # if (info->pass_fdlist) 3698s # { 3698s # #ifdef G_OS_UNIX 3698s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3698s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3698s # #else 3698s # g_assert_not_reached (); 3698s # #endif 3698s # } 3698s # g_variant_iter_init (&iter, parameters); 3698s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3698s # { 3698s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3698s # if (arg_info->use_gvariant) 3698s # { 3698s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3698s # g_value_set_variant (¶mv[n], child); 3698s # n++; 3698s # } 3698s # else 3698s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3698s # g_variant_unref (child); 3698s # } 3698s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3698s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3698s # if (!g_value_get_boolean (&return_value)) 3698s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3698s # g_value_unset (&return_value); 3698s # for (n = 0; n < num_params + num_extra; n++) 3698s # g_value_unset (¶mv[n]); 3698s # g_free (paramv); 3698s # } 3698s # 3698s # static GVariant * 3698s # _org_project_useful_interface_skeleton_handle_get_property ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name G_GNUC_UNUSED, 3698s # const gchar *property_name, 3698s # GError **error, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # GValue value = G_VALUE_INIT; 3698s # GParamSpec *pspec; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # GVariant *ret; 3698s # ret = NULL; 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3698s # g_assert (info != NULL); 3698s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3698s # if (pspec == NULL) 3698s # { 3698s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3698s # } 3698s # else 3698s # { 3698s # g_value_init (&value, pspec->value_type); 3698s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3698s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3698s # g_value_unset (&value); 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static gboolean 3698s # _org_project_useful_interface_skeleton_handle_set_property ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name G_GNUC_UNUSED, 3698s # const gchar *property_name, 3698s # GVariant *variant, 3698s # GError **error, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # GValue value = G_VALUE_INIT; 3698s # GParamSpec *pspec; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # gboolean ret; 3698s # ret = FALSE; 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3698s # g_assert (info != NULL); 3698s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3698s # if (pspec == NULL) 3698s # { 3698s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3698s # } 3698s # else 3698s # { 3698s # if (info->use_gvariant) 3698s # g_value_set_variant (&value, variant); 3698s # else 3698s # g_dbus_gvariant_to_gvalue (variant, &value); 3698s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3698s # g_value_unset (&value); 3698s # ret = TRUE; 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 3698s # { 3698s # _org_project_useful_interface_skeleton_handle_method_call, 3698s # _org_project_useful_interface_skeleton_handle_get_property, 3698s # _org_project_useful_interface_skeleton_handle_set_property, 3698s # {NULL} 3698s # }; 3698s # 3698s # static GDBusInterfaceInfo * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3698s # { 3698s # return org_project_useful_interface_interface_info (); 3698s # } 3698s # 3698s # static GDBusInterfaceVTable * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3698s # { 3698s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 3698s # } 3698s # 3698s # static GVariant * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 3698s # 3698s # GVariantBuilder builder; 3698s # guint n; 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3698s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3698s # #else 3698s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3698s # #endif 3698s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 3698s # goto out; 3698s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 3698s # { 3698s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 3698s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3698s # { 3698s # GVariant *value; 3698s # 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); 3698s # if (value != NULL) 3698s # { 3698s # g_variant_take_ref (value); 3698s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3698s # g_variant_unref (value); 3698s # } 3698s # } 3698s # } 3698s # out: 3698s # return g_variant_builder_end (&builder); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3698s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3698s # 3698s # #else 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3698s # 3698s # #endif 3698s # static void 3698s # org_project_useful_interface_skeleton_finalize (GObject *object) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 3698s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3698s # if (skeleton->priv->changed_properties_idle_source != NULL) 3698s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3698s # g_main_context_unref (skeleton->priv->context); 3698s # g_mutex_clear (&skeleton->priv->lock); 3698s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 3698s # { 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 3698s # #else 3698s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 3698s # #endif 3698s # 3698s # g_mutex_init (&skeleton->priv->lock); 3698s # skeleton->priv->context = g_main_context_ref_thread_default (); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 3698s # { 3698s # GObjectClass *gobject_class; 3698s # GDBusInterfaceSkeletonClass *skeleton_class; 3698s # 3698s # gobject_class = G_OBJECT_CLASS (klass); 3698s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 3698s # 3698s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3698s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 3698s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 3698s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 3698s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3698s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 3698s # #endif 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_skeleton_new: 3698s # * 3698s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_skeleton_new (void) 3698s # { 3698s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 3698s # } 3698s # Error: 3698s # 3698s # /tmp/tmpj0kzs0gk/tmpnrlqu7sd.xml: 3698s # <node> 3698s # <interface name="org.project.UsefulInterface"> 3698s # <method name="SingleArgMethodY"> 3698s # <arg name="arg_y" type="y"/> 3698s # </method> 3698s # </interface> 3698s # </node> 3698s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpj0kzs0gk/tmpnrlqu7sd.xml', '--output', '-', '--body'] 3698s # Return code: 0 3698s # Output: 3698s # /* 3698s # * This file is generated by gdbus-codegen, do not modify it. 3698s # * 3698s # * The license of this code is the same as for the D-Bus interface description 3698s # * it was derived from. Note that it links to GLib, so must comply with the 3698s # * LGPL linking clauses. 3698s # */ 3698s # 3698s # #ifdef HAVE_CONFIG_H 3698s # # include "config.h" 3698s # #endif 3698s # 3698s # #include <string.h> 3698s # #ifdef G_OS_UNIX 3698s # # include <gio/gunixfdlist.h> 3698s # #endif 3698s # 3698s # #ifdef G_ENABLE_DEBUG 3698s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3698s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3698s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3698s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3698s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3698s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3698s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3698s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3698s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3698s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3698s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3698s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3698s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3698s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3698s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3698s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3698s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3698s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3698s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3698s # #else /* !G_ENABLE_DEBUG */ 3698s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3698s # * Do not access GValues directly in your code. Instead, use the 3698s # * g_value_get_*() functions 3698s # */ 3698s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3698s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3698s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3698s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3698s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3698s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3698s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3698s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3698s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3698s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3698s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3698s # #endif /* !G_ENABLE_DEBUG */ 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusArgInfo parent_struct; 3698s # gboolean use_gvariant; 3698s # } _ExtendedGDBusArgInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusMethodInfo parent_struct; 3698s # const gchar *signal_name; 3698s # gboolean pass_fdlist; 3698s # } _ExtendedGDBusMethodInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusSignalInfo parent_struct; 3698s # const gchar *signal_name; 3698s # } _ExtendedGDBusSignalInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusPropertyInfo parent_struct; 3698s # const gchar *hyphen_name; 3698s # guint use_gvariant : 1; 3698s # guint emits_changed_signal : 1; 3698s # } _ExtendedGDBusPropertyInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusInterfaceInfo parent_struct; 3698s # const gchar *hyphen_name; 3698s # } _ExtendedGDBusInterfaceInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # const _ExtendedGDBusPropertyInfo *info; 3698s # guint prop_id; 3698s # GValue orig_value; /* the value before the change */ 3698s # } ChangedProperty; 3698s # 3698s # static void 3698s # _changed_property_free (ChangedProperty *data) 3698s # { 3698s # g_value_unset (&data->orig_value); 3698s # g_free (data); 3698s # } 3698s # 3698s # static gboolean 3698s # _g_strv_equal0 (gchar **a, gchar **b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # guint n; 3698s # if (a == NULL && b == NULL) 3698s # { 3698s # ret = TRUE; 3698s # goto out; 3698s # } 3698s # if (a == NULL || b == NULL) 3698s # goto out; 3698s # if (g_strv_length (a) != g_strv_length (b)) 3698s # goto out; 3698s # for (n = 0; a[n] != NULL; n++) 3698s # if (g_strcmp0 (a[n], b[n]) != 0) 3698s # goto out; 3698s # ret = TRUE; 3698s # out: 3698s # return ret; 3698s # } 3698s # 3698s # static gboolean 3698s # _g_variant_equal0 (GVariant *a, GVariant *b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # if (a == NULL && b == NULL) 3698s # { 3698s # ret = TRUE; 3698s # goto out; 3698s # } 3698s # if (a == NULL || b == NULL) 3698s # goto out; 3698s # ret = g_variant_equal (a, b); 3698s # out: 3698s # return ret; 3698s # } 3698s # 3698s # G_GNUC_UNUSED static gboolean 3698s # _g_value_equal (const GValue *a, const GValue *b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3698s # switch (G_VALUE_TYPE (a)) 3698s # { 3698s # case G_TYPE_BOOLEAN: 3698s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3698s # break; 3698s # case G_TYPE_UCHAR: 3698s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3698s # break; 3698s # case G_TYPE_INT: 3698s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3698s # break; 3698s # case G_TYPE_UINT: 3698s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3698s # break; 3698s # case G_TYPE_INT64: 3698s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3698s # break; 3698s # case G_TYPE_UINT64: 3698s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3698s # break; 3698s # case G_TYPE_DOUBLE: 3698s # { 3698s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3698s # gdouble da = g_value_get_double (a); 3698s # gdouble db = g_value_get_double (b); 3698s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3698s # } 3698s # break; 3698s # case G_TYPE_STRING: 3698s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3698s # break; 3698s # case G_TYPE_VARIANT: 3698s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3698s # break; 3698s # default: 3698s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3698s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3698s # else 3698s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3698s # break; 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static void 3698s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UCHAR ( 3698s # GClosure *closure, 3698s # GValue *return_value, 3698s # unsigned int n_param_values, 3698s # const GValue *param_values, 3698s # void *invocation_hint G_GNUC_UNUSED, 3698s # void *marshal_data) 3698s # { 3698s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUcharFunc) 3698s # (void *data1, 3698s # GDBusMethodInvocation *arg_method_invocation, 3698s # guchar arg_arg_y, 3698s # void *data2); 3698s # _GDbusCodegenMarshalBoolean_ObjectUcharFunc callback; 3698s # GCClosure *cc = (GCClosure*) closure; 3698s # void *data1, *data2; 3698s # gboolean v_return; 3698s # 3698s # g_return_if_fail (return_value != NULL); 3698s # g_return_if_fail (n_param_values == 3); 3698s # 3698s # if (G_CCLOSURE_SWAP_DATA (closure)) 3698s # { 3698s # data1 = closure->data; 3698s # data2 = g_value_peek_pointer (param_values + 0); 3698s # } 3698s # else 3698s # { 3698s # data1 = g_value_peek_pointer (param_values + 0); 3698s # data2 = closure->data; 3698s # } 3698s # 3698s # callback = (_GDbusCodegenMarshalBoolean_ObjectUcharFunc) 3698s # (marshal_data ? marshal_data : cc->callback); 3698s # 3698s # v_return = 3698s # callback (data1, 3698s # g_marshal_value_peek_object (param_values + 1), 3698s # g_marshal_value_peek_uchar (param_values + 2), 3698s # data2); 3698s # 3698s # g_value_set_boolean (return_value, v_return); 3698s # } 3698s # 3698s # /* ------------------------------------------------------------------------ 3698s # * Code for interface org.project.UsefulInterface 3698s # * ------------------------------------------------------------------------ 3698s # */ 3698s # 3698s # /** 3698s # * SECTION:OrgProjectUsefulInterface 3698s # * @title: OrgProjectUsefulInterface 3698s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 3698s # * 3698s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface in C. 3698s # */ 3698s # 3698s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 3698s # 3698s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_arg_y = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "arg_y", 3698s # (gchar *) "y", 3698s # NULL 3698s # }, 3698s # FALSE 3698s # }; 3698s # 3698s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_pointers[] = 3698s # { 3698s # &_org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_arg_y.parent_struct, 3698s # NULL 3698s # }; 3698s # 3698s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_y = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "SingleArgMethodY", 3698s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_pointers, 3698s # NULL, 3698s # NULL 3698s # }, 3698s # "handle-single-arg-method-y", 3698s # FALSE 3698s # }; 3698s # 3698s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 3698s # { 3698s # &_org_project_useful_interface_method_info_single_arg_method_y.parent_struct, 3698s # NULL 3698s # }; 3698s # 3698s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "org.project.UsefulInterface", 3698s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 3698s # NULL, 3698s # NULL, 3698s # NULL 3698s # }, 3698s # "org-project-useful-interface", 3698s # }; 3698s # 3698s # 3698s # /** 3698s # * org_project_useful_interface_interface_info: 3698s # * 3698s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface. 3698s # * 3698s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3698s # */ 3698s # GDBusInterfaceInfo * 3698s # org_project_useful_interface_interface_info (void) 3698s # { 3698s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_override_properties: 3698s # * @klass: The class structure for a #GObject derived class. 3698s # * @property_id_begin: The property id to assign to the first overridden property. 3698s # * 3698s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 3698s # * The properties are overridden in the order they are defined. 3698s # * 3698s # * Returns: The last property id. 3698s # */ 3698s # guint 3698s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3698s # { 3698s # return property_id_begin - 1; 3698s # } 3698s # 3698s # 3698s # inline static void 3698s # org_project_useful_interface_method_marshal_single_arg_method_y ( 3698s # GClosure *closure, 3698s # GValue *return_value, 3698s # unsigned int n_param_values, 3698s # const GValue *param_values, 3698s # void *invocation_hint, 3698s # void *marshal_data) 3698s # { 3698s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UCHAR (closure, 3698s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3698s # } 3698s # 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterface: 3698s # * 3698s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceIface: 3698s # * @parent_iface: The parent interface. 3698s # * @handle_single_arg_method_y: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-y signal. 3698s # * 3698s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # */ 3698s # 3698s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 3698s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 3698s # 3698s # static void 3698s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 3698s # { 3698s # /* GObject signals for incoming D-Bus method calls: */ 3698s # /** 3698s # * OrgProjectUsefulInterface::handle-single-arg-method-y: 3698s # * @object: A #OrgProjectUsefulInterface. 3698s # * @invocation: A #GDBusMethodInvocation. 3698s # * @arg_arg_y: Argument passed by remote caller. 3698s # * 3698s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodY">SingleArgMethodY()</link> D-Bus method. 3698s # * 3698s # * 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. 3698s # * 3698s # * 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. 3698s # */ 3698s # g_signal_new ("handle-single-arg-method-y", 3698s # G_TYPE_FROM_INTERFACE (iface), 3698s # G_SIGNAL_RUN_LAST, 3698s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_y), 3698s # g_signal_accumulator_true_handled, 3698s # NULL, 3698s # org_project_useful_interface_method_marshal_single_arg_method_y, 3698s # G_TYPE_BOOLEAN, 3698s # 2, 3698s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UCHAR); 3698s # 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_y: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @arg_arg_y: Argument to pass with the method invocation. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodY">SingleArgMethodY()</link> D-Bus method on @proxy. 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_call_single_arg_method_y_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_call_single_arg_method_y_sync() for the synchronous, blocking version of this method. 3698s # */ 3698s # void 3698s # org_project_useful_interface_call_single_arg_method_y ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # guchar arg_arg_y, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3698s # "SingleArgMethodY", 3698s # g_variant_new ("(y)", 3698s # arg_arg_y), 3698s # G_DBUS_CALL_FLAGS_NONE, 3698s # -1, 3698s # cancellable, 3698s # callback, 3698s # user_data); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_y_finish: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_y(). 3698s # * @error: Return location for error or %NULL. 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_y(). 3698s # * 3698s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3698s # */ 3698s # gboolean 3698s # org_project_useful_interface_call_single_arg_method_y_finish ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GVariant *_ret; 3698s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3698s # if (_ret == NULL) 3698s # goto _out; 3698s # g_variant_get (_ret, 3698s # "()"); 3698s # g_variant_unref (_ret); 3698s # _out: 3698s # return _ret != NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_y_sync: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @arg_arg_y: Argument to pass with the method invocation. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL. 3698s # * 3698s # * Synchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodY">SingleArgMethodY()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_call_single_arg_method_y() for the asynchronous version of this method. 3698s # * 3698s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3698s # */ 3698s # gboolean 3698s # org_project_useful_interface_call_single_arg_method_y_sync ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # guchar arg_arg_y, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GVariant *_ret; 3698s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3698s # "SingleArgMethodY", 3698s # g_variant_new ("(y)", 3698s # arg_arg_y), 3698s # G_DBUS_CALL_FLAGS_NONE, 3698s # -1, 3698s # cancellable, 3698s # error); 3698s # if (_ret == NULL) 3698s # goto _out; 3698s # g_variant_get (_ret, 3698s # "()"); 3698s # g_variant_unref (_ret); 3698s # _out: 3698s # return _ret != NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_complete_single_arg_method_y: 3698s # * @object: A #OrgProjectUsefulInterface. 3698s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3698s # * 3698s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodY">SingleArgMethodY()</link> 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. 3698s # * 3698s # * This method will free @invocation, you cannot use it afterwards. 3698s # */ 3698s # void 3698s # org_project_useful_interface_complete_single_arg_method_y ( 3698s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 3698s # GDBusMethodInvocation *invocation) 3698s # { 3698s # g_dbus_method_invocation_return_value (invocation, 3698s # g_variant_new ("()")); 3698s # } 3698s # 3698s # /* ------------------------------------------------------------------------ */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceProxy: 3698s # * 3698s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceProxyClass: 3698s # * @parent_class: The parent class. 3698s # * 3698s # * Class structure for #OrgProjectUsefulInterfaceProxy. 3698s # */ 3698s # 3698s # struct _OrgProjectUsefulInterfaceProxyPrivate 3698s # { 3698s # GData *qdata; 3698s # }; 3698s # 3698s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3698s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3698s # 3698s # #else 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3698s # 3698s # #endif 3698s # static void 3698s # org_project_useful_interface_proxy_finalize (GObject *object) 3698s # { 3698s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 3698s # g_datalist_clear (&proxy->priv->qdata); 3698s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3698s # guint prop_id G_GNUC_UNUSED, 3698s # GValue *value G_GNUC_UNUSED, 3698s # GParamSpec *pspec G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3698s # guint prop_id G_GNUC_UNUSED, 3698s # const GValue *value G_GNUC_UNUSED, 3698s # GParamSpec *pspec G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 3698s # const gchar *sender_name G_GNUC_UNUSED, 3698s # const gchar *signal_name, 3698s # GVariant *parameters) 3698s # { 3698s # _ExtendedGDBusSignalInfo *info; 3698s # GVariantIter iter; 3698s # GVariant *child; 3698s # GValue *paramv; 3698s # gsize num_params; 3698s # gsize n; 3698s # guint signal_id; 3698s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 3698s # if (info == NULL) 3698s # return; 3698s # num_params = g_variant_n_children (parameters); 3698s # paramv = g_new0 (GValue, num_params + 1); 3698s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_set_object (¶mv[0], proxy); 3698s # g_variant_iter_init (&iter, parameters); 3698s # n = 1; 3698s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3698s # { 3698s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3698s # if (arg_info->use_gvariant) 3698s # { 3698s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3698s # g_value_set_variant (¶mv[n], child); 3698s # n++; 3698s # } 3698s # else 3698s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3698s # g_variant_unref (child); 3698s # } 3698s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_signal_emitv (paramv, signal_id, 0, NULL); 3698s # for (n = 0; n < num_params + 1; n++) 3698s # g_value_unset (¶mv[n]); 3698s # g_free (paramv); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 3698s # GVariant *changed_properties, 3698s # const gchar *const *invalidated_properties) 3698s # { 3698s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 3698s # guint n; 3698s # const gchar *key; 3698s # GVariantIter *iter; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # g_variant_get (changed_properties, "a{sv}", &iter); 3698s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3698s # { 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 3698s # g_datalist_remove_data (&proxy->priv->qdata, key); 3698s # if (info != NULL) 3698s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3698s # } 3698s # g_variant_iter_free (iter); 3698s # for (n = 0; invalidated_properties[n] != NULL; n++) 3698s # { 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 3698s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3698s # if (info != NULL) 3698s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3698s # } 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 3698s # { 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 3698s # #else 3698s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 3698s # #endif 3698s # 3698s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 3698s # { 3698s # GObjectClass *gobject_class; 3698s # GDBusProxyClass *proxy_class; 3698s # 3698s # gobject_class = G_OBJECT_CLASS (klass); 3698s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 3698s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 3698s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 3698s # 3698s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3698s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 3698s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3698s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 3698s # #endif 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new: 3698s # * @connection: A #GDBusConnection. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new() for more details. 3698s # * 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3698s # */ 3698s # void 3698s # org_project_useful_interface_proxy_new ( 3698s # GDBusConnection *connection, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_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); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_finish: 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_finish ( 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GObject *ret; 3698s # GObject *source_object; 3698s # source_object = g_async_result_get_source_object (res); 3698s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3698s # g_object_unref (source_object); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_sync: 3698s # * @connection: A #GDBusConnection. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new_sync() for more details. 3698s # * 3698s # * The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_sync ( 3698s # GDBusConnection *connection, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GInitable *ret; 3698s # 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); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus: 3698s # * @bus_type: A #GBusType. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: A bus name (well-known or unique). 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3698s # * 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3698s # */ 3698s # void 3698s # org_project_useful_interface_proxy_new_for_bus ( 3698s # GBusType bus_type, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_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); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus_finish: 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_for_bus_finish ( 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GObject *ret; 3698s # GObject *source_object; 3698s # source_object = g_async_result_get_source_object (res); 3698s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3698s # g_object_unref (source_object); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus_sync: 3698s # * @bus_type: A #GBusType. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: A bus name (well-known or unique). 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3698s # * 3698s # * The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_for_bus_sync ( 3698s # GBusType bus_type, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GInitable *ret; 3698s # 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); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # 3698s # /* ------------------------------------------------------------------------ */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceSkeleton: 3698s # * 3698s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceSkeletonClass: 3698s # * @parent_class: The parent class. 3698s # * 3698s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 3698s # */ 3698s # 3698s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 3698s # { 3698s # GValue *properties; 3698s # GList *changed_properties; 3698s # GSource *changed_properties_idle_source; 3698s # GMainContext *context; 3698s # GMutex lock; 3698s # }; 3698s # 3698s # static void 3698s # _org_project_useful_interface_skeleton_handle_method_call ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name, 3698s # const gchar *method_name, 3698s # GVariant *parameters, 3698s # GDBusMethodInvocation *invocation, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # _ExtendedGDBusMethodInfo *info; 3698s # GVariantIter iter; 3698s # GVariant *child; 3698s # GValue *paramv; 3698s # gsize num_params; 3698s # guint num_extra; 3698s # gsize n; 3698s # guint signal_id; 3698s # GValue return_value = G_VALUE_INIT; 3698s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3698s # g_assert (info != NULL); 3698s # num_params = g_variant_n_children (parameters); 3698s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3698s # n = 0; 3698s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_set_object (¶mv[n++], skeleton); 3698s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3698s # g_value_set_object (¶mv[n++], invocation); 3698s # if (info->pass_fdlist) 3698s # { 3698s # #ifdef G_OS_UNIX 3698s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3698s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3698s # #else 3698s # g_assert_not_reached (); 3698s # #endif 3698s # } 3698s # g_variant_iter_init (&iter, parameters); 3698s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3698s # { 3698s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3698s # if (arg_info->use_gvariant) 3698s # { 3698s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3698s # g_value_set_variant (¶mv[n], child); 3698s # n++; 3698s # } 3698s # else 3698s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3698s # g_variant_unref (child); 3698s # } 3698s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3698s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3698s # if (!g_value_get_boolean (&return_value)) 3698s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3698s # g_value_unset (&return_value); 3698s # for (n = 0; n < num_params + num_extra; n++) 3698s # g_value_unset (¶mv[n]); 3698s # g_free (paramv); 3698s # } 3698s # 3698s # static GVariant * 3698s # _org_project_useful_interface_skeleton_handle_get_property ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name G_GNUC_UNUSED, 3698s # const gchar *property_name, 3698s # GError **error, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # GValue value = G_VALUE_INIT; 3698s # GParamSpec *pspec; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # GVariant *ret; 3698s # ret = NULL; 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3698s # g_assert (info != NULL); 3698s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3698s # if (pspec == NULL) 3698s # { 3698s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3698s # } 3698s # else 3698s # { 3698s # g_value_init (&value, pspec->value_type); 3698s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3698s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3698s # g_value_unset (&value); 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static gboolean 3698s # _org_project_useful_interface_skeleton_handle_set_property ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name G_GNUC_UNUSED, 3698s # const gchar *property_name, 3698s # GVariant *variant, 3698s # GError **error, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # GValue value = G_VALUE_INIT; 3698s # GParamSpec *pspec; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # gboolean ret; 3698s # ret = FALSE; 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3698s # g_assert (info != NULL); 3698s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3698s # if (pspec == NULL) 3698s # { 3698s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3698s # } 3698s # else 3698s # { 3698s # if (info->use_gvariant) 3698s # g_value_set_variant (&value, variant); 3698s # else 3698s # g_dbus_gvariant_to_gvalue (variant, &value); 3698s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3698s # g_value_unset (&value); 3698s # ret = TRUE; 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 3698s # { 3698s # _org_project_useful_interface_skeleton_handle_method_call, 3698s # _org_project_useful_interface_skeleton_handle_get_property, 3698s # _org_project_useful_interface_skeleton_handle_set_property, 3698s # {NULL} 3698s # }; 3698s # 3698s # static GDBusInterfaceInfo * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3698s # { 3698s # return org_project_useful_interface_interface_info (); 3698s # } 3698s # 3698s # static GDBusInterfaceVTable * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3698s # { 3698s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 3698s # } 3698s # 3698s # static GVariant * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 3698s # 3698s # GVariantBuilder builder; 3698s # guint n; 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3698s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3698s # #else 3698s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3698s # #endif 3698s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 3698s # goto out; 3698s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 3698s # { 3698s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 3698s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3698s # { 3698s # GVariant *value; 3698s # 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); 3698s # if (value != NULL) 3698s # { 3698s # g_variant_take_ref (value); 3698s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3698s # g_variant_unref (value); 3698s # } 3698s # } 3698s # } 3698s # out: 3698s # return g_variant_builder_end (&builder); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3698s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3698s # 3698s # #else 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3698s # 3698s # #endif 3698s # static void 3698s # org_project_useful_interface_skeleton_finalize (GObject *object) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 3698s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3698s # if (skeleton->priv->changed_properties_idle_source != NULL) 3698s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3698s # g_main_context_unref (skeleton->priv->context); 3698s # g_mutex_clear (&skeleton->priv->lock); 3698s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 3698s # { 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 3698s # #else 3698s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 3698s # #endif 3698s # 3698s # g_mutex_init (&skeleton->priv->lock); 3698s # skeleton->priv->context = g_main_context_ref_thread_default (); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 3698s # { 3698s # GObjectClass *gobject_class; 3698s # GDBusInterfaceSkeletonClass *skeleton_class; 3698s # 3698s # gobject_class = G_OBJECT_CLASS (klass); 3698s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 3698s # 3698s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3698s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 3698s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 3698s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 3698s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3698s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 3698s # #endif 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_skeleton_new: 3698s # * 3698s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_skeleton_new (void) 3698s # { 3698s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 3698s # } 3698s # Error: 3698s # 3698s # /tmp/tmpj0kzs0gk/tmpjydr8518.xml: 3698s # <node> 3698s # <interface name="org.project.UsefulInterface"> 3698s # <method name="SingleArgMethodN"> 3698s # <arg name="arg_n" type="n"/> 3698s # </method> 3698s # </interface> 3698s # </node> 3698s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpj0kzs0gk/tmpjydr8518.xml', '--output', '-', '--body'] 3698s # Return code: 0 3698s # Output: 3698s # /* 3698s # * This file is generated by gdbus-codegen, do not modify it. 3698s # * 3698s # * The license of this code is the same as for the D-Bus interface description 3698s # * it was derived from. Note that it links to GLib, so must comply with the 3698s # * LGPL linking clauses. 3698s # */ 3698s # 3698s # #ifdef HAVE_CONFIG_H 3698s # # include "config.h" 3698s # #endif 3698s # 3698s # #include <string.h> 3698s # #ifdef G_OS_UNIX 3698s # # include <gio/gunixfdlist.h> 3698s # #endif 3698s # 3698s # #ifdef G_ENABLE_DEBUG 3698s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3698s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3698s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3698s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3698s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3698s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3698s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3698s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3698s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3698s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3698s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3698s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3698s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3698s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3698s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3698s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3698s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3698s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3698s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3698s # #else /* !G_ENABLE_DEBUG */ 3698s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3698s # * Do not access GValues directly in your code. Instead, use the 3698s # * g_value_get_*() functions 3698s # */ 3698s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3698s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3698s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3698s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3698s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3698s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3698s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3698s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3698s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3698s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3698s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3698s # #endif /* !G_ENABLE_DEBUG */ 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusArgInfo parent_struct; 3698s # gboolean use_gvariant; 3698s # } _ExtendedGDBusArgInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusMethodInfo parent_struct; 3698s # const gchar *signal_name; 3698s # gboolean pass_fdlist; 3698s # } _ExtendedGDBusMethodInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusSignalInfo parent_struct; 3698s # const gchar *signal_name; 3698s # } _ExtendedGDBusSignalInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusPropertyInfo parent_struct; 3698s # const gchar *hyphen_name; 3698s # guint use_gvariant : 1; 3698s # guint emits_changed_signal : 1; 3698s # } _ExtendedGDBusPropertyInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusInterfaceInfo parent_struct; 3698s # const gchar *hyphen_name; 3698s # } _ExtendedGDBusInterfaceInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # const _ExtendedGDBusPropertyInfo *info; 3698s # guint prop_id; 3698s # GValue orig_value; /* the value before the change */ 3698s # } ChangedProperty; 3698s # 3698s # static void 3698s # _changed_property_free (ChangedProperty *data) 3698s # { 3698s # g_value_unset (&data->orig_value); 3698s # g_free (data); 3698s # } 3698s # 3698s # static gboolean 3698s # _g_strv_equal0 (gchar **a, gchar **b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # guint n; 3698s # if (a == NULL && b == NULL) 3698s # { 3698s # ret = TRUE; 3698s # goto out; 3698s # } 3698s # if (a == NULL || b == NULL) 3698s # goto out; 3698s # if (g_strv_length (a) != g_strv_length (b)) 3698s # goto out; 3698s # for (n = 0; a[n] != NULL; n++) 3698s # if (g_strcmp0 (a[n], b[n]) != 0) 3698s # goto out; 3698s # ret = TRUE; 3698s # out: 3698s # return ret; 3698s # } 3698s # 3698s # static gboolean 3698s # _g_variant_equal0 (GVariant *a, GVariant *b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # if (a == NULL && b == NULL) 3698s # { 3698s # ret = TRUE; 3698s # goto out; 3698s # } 3698s # if (a == NULL || b == NULL) 3698s # goto out; 3698s # ret = g_variant_equal (a, b); 3698s # out: 3698s # return ret; 3698s # } 3698s # 3698s # G_GNUC_UNUSED static gboolean 3698s # _g_value_equal (const GValue *a, const GValue *b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3698s # switch (G_VALUE_TYPE (a)) 3698s # { 3698s # case G_TYPE_BOOLEAN: 3698s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3698s # break; 3698s # case G_TYPE_UCHAR: 3698s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3698s # break; 3698s # case G_TYPE_INT: 3698s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3698s # break; 3698s # case G_TYPE_UINT: 3698s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3698s # break; 3698s # case G_TYPE_INT64: 3698s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3698s # break; 3698s # case G_TYPE_UINT64: 3698s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3698s # break; 3698s # case G_TYPE_DOUBLE: 3698s # { 3698s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3698s # gdouble da = g_value_get_double (a); 3698s # gdouble db = g_value_get_double (b); 3698s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3698s # } 3698s # break; 3698s # case G_TYPE_STRING: 3698s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3698s # break; 3698s # case G_TYPE_VARIANT: 3698s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3698s # break; 3698s # default: 3698s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3698s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3698s # else 3698s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3698s # break; 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static void 3698s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT ( 3698s # GClosure *closure, 3698s # GValue *return_value, 3698s # unsigned int n_param_values, 3698s # const GValue *param_values, 3698s # void *invocation_hint G_GNUC_UNUSED, 3698s # void *marshal_data) 3698s # { 3698s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectIntFunc) 3698s # (void *data1, 3698s # GDBusMethodInvocation *arg_method_invocation, 3698s # gint16 arg_arg_n, 3698s # void *data2); 3698s # _GDbusCodegenMarshalBoolean_ObjectIntFunc callback; 3698s # GCClosure *cc = (GCClosure*) closure; 3698s # void *data1, *data2; 3698s # gboolean v_return; 3698s # 3698s # g_return_if_fail (return_value != NULL); 3698s # g_return_if_fail (n_param_values == 3); 3698s # 3698s # if (G_CCLOSURE_SWAP_DATA (closure)) 3698s # { 3698s # data1 = closure->data; 3698s # data2 = g_value_peek_pointer (param_values + 0); 3698s # } 3698s # else 3698s # { 3698s # data1 = g_value_peek_pointer (param_values + 0); 3698s # data2 = closure->data; 3698s # } 3698s # 3698s # callback = (_GDbusCodegenMarshalBoolean_ObjectIntFunc) 3698s # (marshal_data ? marshal_data : cc->callback); 3698s # 3698s # v_return = 3698s # callback (data1, 3698s # g_marshal_value_peek_object (param_values + 1), 3698s # g_marshal_value_peek_int (param_values + 2), 3698s # data2); 3698s # 3698s # g_value_set_boolean (return_value, v_return); 3698s # } 3698s # 3698s # /* ------------------------------------------------------------------------ 3698s # * Code for interface org.project.UsefulInterface 3698s # * ------------------------------------------------------------------------ 3698s # */ 3698s # 3698s # /** 3698s # * SECTION:OrgProjectUsefulInterface 3698s # * @title: OrgProjectUsefulInterface 3698s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 3698s # * 3698s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface in C. 3698s # */ 3698s # 3698s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 3698s # 3698s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_arg_n = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "arg_n", 3698s # (gchar *) "n", 3698s # NULL 3698s # }, 3698s # FALSE 3698s # }; 3698s # 3698s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_pointers[] = 3698s # { 3698s # &_org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_arg_n.parent_struct, 3698s # NULL 3698s # }; 3698s # 3698s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_n = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "SingleArgMethodN", 3698s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_pointers, 3698s # NULL, 3698s # NULL 3698s # }, 3698s # "handle-single-arg-method-n", 3698s # FALSE 3698s # }; 3698s # 3698s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 3698s # { 3698s # &_org_project_useful_interface_method_info_single_arg_method_n.parent_struct, 3698s # NULL 3698s # }; 3698s # 3698s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "org.project.UsefulInterface", 3698s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 3698s # NULL, 3698s # NULL, 3698s # NULL 3698s # }, 3698s # "org-project-useful-interface", 3698s # }; 3698s # 3698s # 3698s # /** 3698s # * org_project_useful_interface_interface_info: 3698s # * 3698s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface. 3698s # * 3698s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3698s # */ 3698s # GDBusInterfaceInfo * 3698s # org_project_useful_interface_interface_info (void) 3698s # { 3698s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_override_properties: 3698s # * @klass: The class structure for a #GObject derived class. 3698s # * @property_id_begin: The property id to assign to the first overridden property. 3698s # * 3698s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 3698s # * The properties are overridden in the order they are defined. 3698s # * 3698s # * Returns: The last property id. 3698s # */ 3698s # guint 3698s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3698s # { 3698s # return property_id_begin - 1; 3698s # } 3698s # 3698s # 3698s # inline static void 3698s # org_project_useful_interface_method_marshal_single_arg_method_n ( 3698s # GClosure *closure, 3698s # GValue *return_value, 3698s # unsigned int n_param_values, 3698s # const GValue *param_values, 3698s # void *invocation_hint, 3698s # void *marshal_data) 3698s # { 3698s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT (closure, 3698s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3698s # } 3698s # 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterface: 3698s # * 3698s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceIface: 3698s # * @parent_iface: The parent interface. 3698s # * @handle_single_arg_method_n: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-n signal. 3698s # * 3698s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # */ 3698s # 3698s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 3698s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 3698s # 3698s # static void 3698s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 3698s # { 3698s # /* GObject signals for incoming D-Bus method calls: */ 3698s # /** 3698s # * OrgProjectUsefulInterface::handle-single-arg-method-n: 3698s # * @object: A #OrgProjectUsefulInterface. 3698s # * @invocation: A #GDBusMethodInvocation. 3698s # * @arg_arg_n: Argument passed by remote caller. 3698s # * 3698s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodN">SingleArgMethodN()</link> D-Bus method. 3698s # * 3698s # * 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. 3698s # * 3698s # * 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. 3698s # */ 3698s # g_signal_new ("handle-single-arg-method-n", 3698s # G_TYPE_FROM_INTERFACE (iface), 3698s # G_SIGNAL_RUN_LAST, 3698s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_n), 3698s # g_signal_accumulator_true_handled, 3698s # NULL, 3698s # org_project_useful_interface_method_marshal_single_arg_method_n, 3698s # G_TYPE_BOOLEAN, 3698s # 2, 3698s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT); 3698s # 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_n: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @arg_arg_n: Argument to pass with the method invocation. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodN">SingleArgMethodN()</link> D-Bus method on @proxy. 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_call_single_arg_method_n_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_call_single_arg_method_n_sync() for the synchronous, blocking version of this method. 3698s # */ 3698s # void 3698s # org_project_useful_interface_call_single_arg_method_n ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # gint16 arg_arg_n, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3698s # "SingleArgMethodN", 3698s # g_variant_new ("(n)", 3698s # arg_arg_n), 3698s # G_DBUS_CALL_FLAGS_NONE, 3698s # -1, 3698s # cancellable, 3698s # callback, 3698s # user_data); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_n_finish: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_n(). 3698s # * @error: Return location for error or %NULL. 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_n(). 3698s # * 3698s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3698s # */ 3698s # gboolean 3698s # org_project_useful_interface_call_single_arg_method_n_finish ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GVariant *_ret; 3698s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3698s # if (_ret == NULL) 3698s # goto _out; 3698s # g_variant_get (_ret, 3698s # "()"); 3698s # g_variant_unref (_ret); 3698s # _out: 3698s # return _ret != NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_n_sync: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @arg_arg_n: Argument to pass with the method invocation. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL. 3698s # * 3698s # * Synchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodN">SingleArgMethodN()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_call_single_arg_method_n() for the asynchronous version of this method. 3698s # * 3698s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3698s # */ 3698s # gboolean 3698s # org_project_useful_interface_call_single_arg_method_n_sync ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # gint16 arg_arg_n, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GVariant *_ret; 3698s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3698s # "SingleArgMethodN", 3698s # g_variant_new ("(n)", 3698s # arg_arg_n), 3698s # G_DBUS_CALL_FLAGS_NONE, 3698s # -1, 3698s # cancellable, 3698s # error); 3698s # if (_ret == NULL) 3698s # goto _out; 3698s # g_variant_get (_ret, 3698s # "()"); 3698s # g_variant_unref (_ret); 3698s # _out: 3698s # return _ret != NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_complete_single_arg_method_n: 3698s # * @object: A #OrgProjectUsefulInterface. 3698s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3698s # * 3698s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodN">SingleArgMethodN()</link> 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. 3698s # * 3698s # * This method will free @invocation, you cannot use it afterwards. 3698s # */ 3698s # void 3698s # org_project_useful_interface_complete_single_arg_method_n ( 3698s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 3698s # GDBusMethodInvocation *invocation) 3698s # { 3698s # g_dbus_method_invocation_return_value (invocation, 3698s # g_variant_new ("()")); 3698s # } 3698s # 3698s # /* ------------------------------------------------------------------------ */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceProxy: 3698s # * 3698s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceProxyClass: 3698s # * @parent_class: The parent class. 3698s # * 3698s # * Class structure for #OrgProjectUsefulInterfaceProxy. 3698s # */ 3698s # 3698s # struct _OrgProjectUsefulInterfaceProxyPrivate 3698s # { 3698s # GData *qdata; 3698s # }; 3698s # 3698s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3698s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3698s # 3698s # #else 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3698s # 3698s # #endif 3698s # static void 3698s # org_project_useful_interface_proxy_finalize (GObject *object) 3698s # { 3698s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 3698s # g_datalist_clear (&proxy->priv->qdata); 3698s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3698s # guint prop_id G_GNUC_UNUSED, 3698s # GValue *value G_GNUC_UNUSED, 3698s # GParamSpec *pspec G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3698s # guint prop_id G_GNUC_UNUSED, 3698s # const GValue *value G_GNUC_UNUSED, 3698s # GParamSpec *pspec G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 3698s # const gchar *sender_name G_GNUC_UNUSED, 3698s # const gchar *signal_name, 3698s # GVariant *parameters) 3698s # { 3698s # _ExtendedGDBusSignalInfo *info; 3698s # GVariantIter iter; 3698s # GVariant *child; 3698s # GValue *paramv; 3698s # gsize num_params; 3698s # gsize n; 3698s # guint signal_id; 3698s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 3698s # if (info == NULL) 3698s # return; 3698s # num_params = g_variant_n_children (parameters); 3698s # paramv = g_new0 (GValue, num_params + 1); 3698s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_set_object (¶mv[0], proxy); 3698s # g_variant_iter_init (&iter, parameters); 3698s # n = 1; 3698s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3698s # { 3698s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3698s # if (arg_info->use_gvariant) 3698s # { 3698s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3698s # g_value_set_variant (¶mv[n], child); 3698s # n++; 3698s # } 3698s # else 3698s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3698s # g_variant_unref (child); 3698s # } 3698s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_signal_emitv (paramv, signal_id, 0, NULL); 3698s # for (n = 0; n < num_params + 1; n++) 3698s # g_value_unset (¶mv[n]); 3698s # g_free (paramv); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 3698s # GVariant *changed_properties, 3698s # const gchar *const *invalidated_properties) 3698s # { 3698s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 3698s # guint n; 3698s # const gchar *key; 3698s # GVariantIter *iter; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # g_variant_get (changed_properties, "a{sv}", &iter); 3698s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3698s # { 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 3698s # g_datalist_remove_data (&proxy->priv->qdata, key); 3698s # if (info != NULL) 3698s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3698s # } 3698s # g_variant_iter_free (iter); 3698s # for (n = 0; invalidated_properties[n] != NULL; n++) 3698s # { 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 3698s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3698s # if (info != NULL) 3698s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3698s # } 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 3698s # { 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 3698s # #else 3698s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 3698s # #endif 3698s # 3698s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 3698s # { 3698s # GObjectClass *gobject_class; 3698s # GDBusProxyClass *proxy_class; 3698s # 3698s # gobject_class = G_OBJECT_CLASS (klass); 3698s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 3698s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 3698s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 3698s # 3698s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3698s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 3698s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3698s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 3698s # #endif 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new: 3698s # * @connection: A #GDBusConnection. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new() for more details. 3698s # * 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3698s # */ 3698s # void 3698s # org_project_useful_interface_proxy_new ( 3698s # GDBusConnection *connection, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_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); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_finish: 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_finish ( 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GObject *ret; 3698s # GObject *source_object; 3698s # source_object = g_async_result_get_source_object (res); 3698s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3698s # g_object_unref (source_object); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_sync: 3698s # * @connection: A #GDBusConnection. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new_sync() for more details. 3698s # * 3698s # * The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_sync ( 3698s # GDBusConnection *connection, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GInitable *ret; 3698s # 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); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus: 3698s # * @bus_type: A #GBusType. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: A bus name (well-known or unique). 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3698s # * 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3698s # */ 3698s # void 3698s # org_project_useful_interface_proxy_new_for_bus ( 3698s # GBusType bus_type, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_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); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus_finish: 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_for_bus_finish ( 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GObject *ret; 3698s # GObject *source_object; 3698s # source_object = g_async_result_get_source_object (res); 3698s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3698s # g_object_unref (source_object); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus_sync: 3698s # * @bus_type: A #GBusType. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: A bus name (well-known or unique). 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3698s # * 3698s # * The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_for_bus_sync ( 3698s # GBusType bus_type, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GInitable *ret; 3698s # 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); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # 3698s # /* ------------------------------------------------------------------------ */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceSkeleton: 3698s # * 3698s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceSkeletonClass: 3698s # * @parent_class: The parent class. 3698s # * 3698s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 3698s # */ 3698s # 3698s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 3698s # { 3698s # GValue *properties; 3698s # GList *changed_properties; 3698s # GSource *changed_properties_idle_source; 3698s # GMainContext *context; 3698s # GMutex lock; 3698s # }; 3698s # 3698s # static void 3698s # _org_project_useful_interface_skeleton_handle_method_call ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name, 3698s # const gchar *method_name, 3698s # GVariant *parameters, 3698s # GDBusMethodInvocation *invocation, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # _ExtendedGDBusMethodInfo *info; 3698s # GVariantIter iter; 3698s # GVariant *child; 3698s # GValue *paramv; 3698s # gsize num_params; 3698s # guint num_extra; 3698s # gsize n; 3698s # guint signal_id; 3698s # GValue return_value = G_VALUE_INIT; 3698s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3698s # g_assert (info != NULL); 3698s # num_params = g_variant_n_children (parameters); 3698s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3698s # n = 0; 3698s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_set_object (¶mv[n++], skeleton); 3698s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3698s # g_value_set_object (¶mv[n++], invocation); 3698s # if (info->pass_fdlist) 3698s # { 3698s # #ifdef G_OS_UNIX 3698s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3698s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3698s # #else 3698s # g_assert_not_reached (); 3698s # #endif 3698s # } 3698s # g_variant_iter_init (&iter, parameters); 3698s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3698s # { 3698s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3698s # if (arg_info->use_gvariant) 3698s # { 3698s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3698s # g_value_set_variant (¶mv[n], child); 3698s # n++; 3698s # } 3698s # else 3698s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3698s # g_variant_unref (child); 3698s # } 3698s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3698s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3698s # if (!g_value_get_boolean (&return_value)) 3698s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3698s # g_value_unset (&return_value); 3698s # for (n = 0; n < num_params + num_extra; n++) 3698s # g_value_unset (¶mv[n]); 3698s # g_free (paramv); 3698s # } 3698s # 3698s # static GVariant * 3698s # _org_project_useful_interface_skeleton_handle_get_property ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name G_GNUC_UNUSED, 3698s # const gchar *property_name, 3698s # GError **error, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # GValue value = G_VALUE_INIT; 3698s # GParamSpec *pspec; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # GVariant *ret; 3698s # ret = NULL; 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3698s # g_assert (info != NULL); 3698s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3698s # if (pspec == NULL) 3698s # { 3698s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3698s # } 3698s # else 3698s # { 3698s # g_value_init (&value, pspec->value_type); 3698s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3698s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3698s # g_value_unset (&value); 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static gboolean 3698s # _org_project_useful_interface_skeleton_handle_set_property ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name G_GNUC_UNUSED, 3698s # const gchar *property_name, 3698s # GVariant *variant, 3698s # GError **error, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # GValue value = G_VALUE_INIT; 3698s # GParamSpec *pspec; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # gboolean ret; 3698s # ret = FALSE; 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3698s # g_assert (info != NULL); 3698s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3698s # if (pspec == NULL) 3698s # { 3698s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3698s # } 3698s # else 3698s # { 3698s # if (info->use_gvariant) 3698s # g_value_set_variant (&value, variant); 3698s # else 3698s # g_dbus_gvariant_to_gvalue (variant, &value); 3698s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3698s # g_value_unset (&value); 3698s # ret = TRUE; 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 3698s # { 3698s # _org_project_useful_interface_skeleton_handle_method_call, 3698s # _org_project_useful_interface_skeleton_handle_get_property, 3698s # _org_project_useful_interface_skeleton_handle_set_property, 3698s # {NULL} 3698s # }; 3698s # 3698s # static GDBusInterfaceInfo * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3698s # { 3698s # return org_project_useful_interface_interface_info (); 3698s # } 3698s # 3698s # static GDBusInterfaceVTable * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3698s # { 3698s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 3698s # } 3698s # 3698s # static GVariant * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 3698s # 3698s # GVariantBuilder builder; 3698s # guint n; 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3698s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3698s # #else 3698s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3698s # #endif 3698s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 3698s # goto out; 3698s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 3698s # { 3698s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 3698s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3698s # { 3698s # GVariant *value; 3698s # 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); 3698s # if (value != NULL) 3698s # { 3698s # g_variant_take_ref (value); 3698s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3698s # g_variant_unref (value); 3698s # } 3698s # } 3698s # } 3698s # out: 3698s # return g_variant_builder_end (&builder); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3698s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3698s # 3698s # #else 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3698s # 3698s # #endif 3698s # static void 3698s # org_project_useful_interface_skeleton_finalize (GObject *object) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 3698s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3698s # if (skeleton->priv->changed_properties_idle_source != NULL) 3698s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3698s # g_main_context_unref (skeleton->priv->context); 3698s # g_mutex_clear (&skeleton->priv->lock); 3698s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 3698s # { 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 3698s # #else 3698s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 3698s # #endif 3698s # 3698s # g_mutex_init (&skeleton->priv->lock); 3698s # skeleton->priv->context = g_main_context_ref_thread_default (); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 3698s # { 3698s # GObjectClass *gobject_class; 3698s # GDBusInterfaceSkeletonClass *skeleton_class; 3698s # 3698s # gobject_class = G_OBJECT_CLASS (klass); 3698s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 3698s # 3698s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3698s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 3698s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 3698s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 3698s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3698s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 3698s # #endif 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_skeleton_new: 3698s # * 3698s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_skeleton_new (void) 3698s # { 3698s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 3698s # } 3698s # Error: 3698s # 3698s # /tmp/tmpj0kzs0gk/tmp2m1f15n8.xml: 3698s # <node> 3698s # <interface name="org.project.UsefulInterface"> 3698s # <method name="SingleArgMethodQ"> 3698s # <arg name="arg_q" type="q"/> 3698s # </method> 3698s # </interface> 3698s # </node> 3698s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpj0kzs0gk/tmp2m1f15n8.xml', '--output', '-', '--body'] 3698s # Return code: 0 3698s # Output: 3698s # /* 3698s # * This file is generated by gdbus-codegen, do not modify it. 3698s # * 3698s # * The license of this code is the same as for the D-Bus interface description 3698s # * it was derived from. Note that it links to GLib, so must comply with the 3698s # * LGPL linking clauses. 3698s # */ 3698s # 3698s # #ifdef HAVE_CONFIG_H 3698s # # include "config.h" 3698s # #endif 3698s # 3698s # #include <string.h> 3698s # #ifdef G_OS_UNIX 3698s # # include <gio/gunixfdlist.h> 3698s # #endif 3698s # 3698s # #ifdef G_ENABLE_DEBUG 3698s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3698s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3698s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3698s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3698s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3698s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3698s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3698s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3698s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3698s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3698s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3698s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3698s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3698s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3698s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3698s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3698s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3698s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3698s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3698s # #else /* !G_ENABLE_DEBUG */ 3698s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3698s # * Do not access GValues directly in your code. Instead, use the 3698s # * g_value_get_*() functions 3698s # */ 3698s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3698s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3698s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3698s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3698s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3698s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3698s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3698s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3698s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3698s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3698s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3698s # #endif /* !G_ENABLE_DEBUG */ 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusArgInfo parent_struct; 3698s # gboolean use_gvariant; 3698s # } _ExtendedGDBusArgInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusMethodInfo parent_struct; 3698s # const gchar *signal_name; 3698s # gboolean pass_fdlist; 3698s # } _ExtendedGDBusMethodInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusSignalInfo parent_struct; 3698s # const gchar *signal_name; 3698s # } _ExtendedGDBusSignalInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusPropertyInfo parent_struct; 3698s # const gchar *hyphen_name; 3698s # guint use_gvariant : 1; 3698s # guint emits_changed_signal : 1; 3698s # } _ExtendedGDBusPropertyInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusInterfaceInfo parent_struct; 3698s # const gchar *hyphen_name; 3698s # } _ExtendedGDBusInterfaceInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # const _ExtendedGDBusPropertyInfo *info; 3698s # guint prop_id; 3698s # GValue orig_value; /* the value before the change */ 3698s # } ChangedProperty; 3698s # 3698s # static void 3698s # _changed_property_free (ChangedProperty *data) 3698s # { 3698s # g_value_unset (&data->orig_value); 3698s # g_free (data); 3698s # } 3698s # 3698s # static gboolean 3698s # _g_strv_equal0 (gchar **a, gchar **b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # guint n; 3698s # if (a == NULL && b == NULL) 3698s # { 3698s # ret = TRUE; 3698s # goto out; 3698s # } 3698s # if (a == NULL || b == NULL) 3698s # goto out; 3698s # if (g_strv_length (a) != g_strv_length (b)) 3698s # goto out; 3698s # for (n = 0; a[n] != NULL; n++) 3698s # if (g_strcmp0 (a[n], b[n]) != 0) 3698s # goto out; 3698s # ret = TRUE; 3698s # out: 3698s # return ret; 3698s # } 3698s # 3698s # static gboolean 3698s # _g_variant_equal0 (GVariant *a, GVariant *b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # if (a == NULL && b == NULL) 3698s # { 3698s # ret = TRUE; 3698s # goto out; 3698s # } 3698s # if (a == NULL || b == NULL) 3698s # goto out; 3698s # ret = g_variant_equal (a, b); 3698s # out: 3698s # return ret; 3698s # } 3698s # 3698s # G_GNUC_UNUSED static gboolean 3698s # _g_value_equal (const GValue *a, const GValue *b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3698s # switch (G_VALUE_TYPE (a)) 3698s # { 3698s # case G_TYPE_BOOLEAN: 3698s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3698s # break; 3698s # case G_TYPE_UCHAR: 3698s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3698s # break; 3698s # case G_TYPE_INT: 3698s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3698s # break; 3698s # case G_TYPE_UINT: 3698s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3698s # break; 3698s # case G_TYPE_INT64: 3698s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3698s # break; 3698s # case G_TYPE_UINT64: 3698s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3698s # break; 3698s # case G_TYPE_DOUBLE: 3698s # { 3698s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3698s # gdouble da = g_value_get_double (a); 3698s # gdouble db = g_value_get_double (b); 3698s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3698s # } 3698s # break; 3698s # case G_TYPE_STRING: 3698s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3698s # break; 3698s # case G_TYPE_VARIANT: 3698s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3698s # break; 3698s # default: 3698s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3698s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3698s # else 3698s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3698s # break; 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static void 3698s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT ( 3698s # GClosure *closure, 3698s # GValue *return_value, 3698s # unsigned int n_param_values, 3698s # const GValue *param_values, 3698s # void *invocation_hint G_GNUC_UNUSED, 3698s # void *marshal_data) 3698s # { 3698s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUintFunc) 3698s # (void *data1, 3698s # GDBusMethodInvocation *arg_method_invocation, 3698s # guint16 arg_arg_q, 3698s # void *data2); 3698s # _GDbusCodegenMarshalBoolean_ObjectUintFunc callback; 3698s # GCClosure *cc = (GCClosure*) closure; 3698s # void *data1, *data2; 3698s # gboolean v_return; 3698s # 3698s # g_return_if_fail (return_value != NULL); 3698s # g_return_if_fail (n_param_values == 3); 3698s # 3698s # if (G_CCLOSURE_SWAP_DATA (closure)) 3698s # { 3698s # data1 = closure->data; 3698s # data2 = g_value_peek_pointer (param_values + 0); 3698s # } 3698s # else 3698s # { 3698s # data1 = g_value_peek_pointer (param_values + 0); 3698s # data2 = closure->data; 3698s # } 3698s # 3698s # callback = (_GDbusCodegenMarshalBoolean_ObjectUintFunc) 3698s # (marshal_data ? marshal_data : cc->callback); 3698s # 3698s # v_return = 3698s # callback (data1, 3698s # g_marshal_value_peek_object (param_values + 1), 3698s # g_marshal_value_peek_uint (param_values + 2), 3698s # data2); 3698s # 3698s # g_value_set_boolean (return_value, v_return); 3698s # } 3698s # 3698s # /* ------------------------------------------------------------------------ 3698s # * Code for interface org.project.UsefulInterface 3698s # * ------------------------------------------------------------------------ 3698s # */ 3698s # 3698s # /** 3698s # * SECTION:OrgProjectUsefulInterface 3698s # * @title: OrgProjectUsefulInterface 3698s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 3698s # * 3698s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface in C. 3698s # */ 3698s # 3698s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 3698s # 3698s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_arg_q = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "arg_q", 3698s # (gchar *) "q", 3698s # NULL 3698s # }, 3698s # FALSE 3698s # }; 3698s # 3698s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_pointers[] = 3698s # { 3698s # &_org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_arg_q.parent_struct, 3698s # NULL 3698s # }; 3698s # 3698s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_q = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "SingleArgMethodQ", 3698s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_pointers, 3698s # NULL, 3698s # NULL 3698s # }, 3698s # "handle-single-arg-method-q", 3698s # FALSE 3698s # }; 3698s # 3698s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 3698s # { 3698s # &_org_project_useful_interface_method_info_single_arg_method_q.parent_struct, 3698s # NULL 3698s # }; 3698s # 3698s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "org.project.UsefulInterface", 3698s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 3698s # NULL, 3698s # NULL, 3698s # NULL 3698s # }, 3698s # "org-project-useful-interface", 3698s # }; 3698s # 3698s # 3698s # /** 3698s # * org_project_useful_interface_interface_info: 3698s # * 3698s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface. 3698s # * 3698s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3698s # */ 3698s # GDBusInterfaceInfo * 3698s # org_project_useful_interface_interface_info (void) 3698s # { 3698s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_override_properties: 3698s # * @klass: The class structure for a #GObject derived class. 3698s # * @property_id_begin: The property id to assign to the first overridden property. 3698s # * 3698s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 3698s # * The properties are overridden in the order they are defined. 3698s # * 3698s # * Returns: The last property id. 3698s # */ 3698s # guint 3698s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3698s # { 3698s # return property_id_begin - 1; 3698s # } 3698s # 3698s # 3698s # inline static void 3698s # org_project_useful_interface_method_marshal_single_arg_method_q ( 3698s # GClosure *closure, 3698s # GValue *return_value, 3698s # unsigned int n_param_values, 3698s # const GValue *param_values, 3698s # void *invocation_hint, 3698s # void *marshal_data) 3698s # { 3698s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT (closure, 3698s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3698s # } 3698s # 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterface: 3698s # * 3698s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceIface: 3698s # * @parent_iface: The parent interface. 3698s # * @handle_single_arg_method_q: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-q signal. 3698s # * 3698s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # */ 3698s # 3698s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 3698s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 3698s # 3698s # static void 3698s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 3698s # { 3698s # /* GObject signals for incoming D-Bus method calls: */ 3698s # /** 3698s # * OrgProjectUsefulInterface::handle-single-arg-method-q: 3698s # * @object: A #OrgProjectUsefulInterface. 3698s # * @invocation: A #GDBusMethodInvocation. 3698s # * @arg_arg_q: Argument passed by remote caller. 3698s # * 3698s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodQ">SingleArgMethodQ()</link> D-Bus method. 3698s # * 3698s # * 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. 3698s # * 3698s # * 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. 3698s # */ 3698s # g_signal_new ("handle-single-arg-method-q", 3698s # G_TYPE_FROM_INTERFACE (iface), 3698s # G_SIGNAL_RUN_LAST, 3698s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_q), 3698s # g_signal_accumulator_true_handled, 3698s # NULL, 3698s # org_project_useful_interface_method_marshal_single_arg_method_q, 3698s # G_TYPE_BOOLEAN, 3698s # 2, 3698s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT); 3698s # 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_q: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @arg_arg_q: Argument to pass with the method invocation. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodQ">SingleArgMethodQ()</link> D-Bus method on @proxy. 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_call_single_arg_method_q_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_call_single_arg_method_q_sync() for the synchronous, blocking version of this method. 3698s # */ 3698s # void 3698s # org_project_useful_interface_call_single_arg_method_q ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # guint16 arg_arg_q, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3698s # "SingleArgMethodQ", 3698s # g_variant_new ("(q)", 3698s # arg_arg_q), 3698s # G_DBUS_CALL_FLAGS_NONE, 3698s # -1, 3698s # cancellable, 3698s # callback, 3698s # user_data); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_q_finish: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_q(). 3698s # * @error: Return location for error or %NULL. 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_q(). 3698s # * 3698s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3698s # */ 3698s # gboolean 3698s # org_project_useful_interface_call_single_arg_method_q_finish ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GVariant *_ret; 3698s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3698s # if (_ret == NULL) 3698s # goto _out; 3698s # g_variant_get (_ret, 3698s # "()"); 3698s # g_variant_unref (_ret); 3698s # _out: 3698s # return _ret != NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_q_sync: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @arg_arg_q: Argument to pass with the method invocation. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL. 3698s # * 3698s # * Synchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodQ">SingleArgMethodQ()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_call_single_arg_method_q() for the asynchronous version of this method. 3698s # * 3698s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3698s # */ 3698s # gboolean 3698s # org_project_useful_interface_call_single_arg_method_q_sync ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # guint16 arg_arg_q, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GVariant *_ret; 3698s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3698s # "SingleArgMethodQ", 3698s # g_variant_new ("(q)", 3698s # arg_arg_q), 3698s # G_DBUS_CALL_FLAGS_NONE, 3698s # -1, 3698s # cancellable, 3698s # error); 3698s # if (_ret == NULL) 3698s # goto _out; 3698s # g_variant_get (_ret, 3698s # "()"); 3698s # g_variant_unref (_ret); 3698s # _out: 3698s # return _ret != NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_complete_single_arg_method_q: 3698s # * @object: A #OrgProjectUsefulInterface. 3698s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3698s # * 3698s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodQ">SingleArgMethodQ()</link> 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. 3698s # * 3698s # * This method will free @invocation, you cannot use it afterwards. 3698s # */ 3698s # void 3698s # org_project_useful_interface_complete_single_arg_method_q ( 3698s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 3698s # GDBusMethodInvocation *invocation) 3698s # { 3698s # g_dbus_method_invocation_return_value (invocation, 3698s # g_variant_new ("()")); 3698s # } 3698s # 3698s # /* ------------------------------------------------------------------------ */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceProxy: 3698s # * 3698s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceProxyClass: 3698s # * @parent_class: The parent class. 3698s # * 3698s # * Class structure for #OrgProjectUsefulInterfaceProxy. 3698s # */ 3698s # 3698s # struct _OrgProjectUsefulInterfaceProxyPrivate 3698s # { 3698s # GData *qdata; 3698s # }; 3698s # 3698s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3698s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3698s # 3698s # #else 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3698s # 3698s # #endif 3698s # static void 3698s # org_project_useful_interface_proxy_finalize (GObject *object) 3698s # { 3698s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 3698s # g_datalist_clear (&proxy->priv->qdata); 3698s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3698s # guint prop_id G_GNUC_UNUSED, 3698s # GValue *value G_GNUC_UNUSED, 3698s # GParamSpec *pspec G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3698s # guint prop_id G_GNUC_UNUSED, 3698s # const GValue *value G_GNUC_UNUSED, 3698s # GParamSpec *pspec G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 3698s # const gchar *sender_name G_GNUC_UNUSED, 3698s # const gchar *signal_name, 3698s # GVariant *parameters) 3698s # { 3698s # _ExtendedGDBusSignalInfo *info; 3698s # GVariantIter iter; 3698s # GVariant *child; 3698s # GValue *paramv; 3698s # gsize num_params; 3698s # gsize n; 3698s # guint signal_id; 3698s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 3698s # if (info == NULL) 3698s # return; 3698s # num_params = g_variant_n_children (parameters); 3698s # paramv = g_new0 (GValue, num_params + 1); 3698s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_set_object (¶mv[0], proxy); 3698s # g_variant_iter_init (&iter, parameters); 3698s # n = 1; 3698s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3698s # { 3698s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3698s # if (arg_info->use_gvariant) 3698s # { 3698s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3698s # g_value_set_variant (¶mv[n], child); 3698s # n++; 3698s # } 3698s # else 3698s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3698s # g_variant_unref (child); 3698s # } 3698s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_signal_emitv (paramv, signal_id, 0, NULL); 3698s # for (n = 0; n < num_params + 1; n++) 3698s # g_value_unset (¶mv[n]); 3698s # g_free (paramv); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 3698s # GVariant *changed_properties, 3698s # const gchar *const *invalidated_properties) 3698s # { 3698s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 3698s # guint n; 3698s # const gchar *key; 3698s # GVariantIter *iter; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # g_variant_get (changed_properties, "a{sv}", &iter); 3698s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3698s # { 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 3698s # g_datalist_remove_data (&proxy->priv->qdata, key); 3698s # if (info != NULL) 3698s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3698s # } 3698s # g_variant_iter_free (iter); 3698s # for (n = 0; invalidated_properties[n] != NULL; n++) 3698s # { 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 3698s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3698s # if (info != NULL) 3698s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3698s # } 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 3698s # { 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 3698s # #else 3698s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 3698s # #endif 3698s # 3698s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 3698s # { 3698s # GObjectClass *gobject_class; 3698s # GDBusProxyClass *proxy_class; 3698s # 3698s # gobject_class = G_OBJECT_CLASS (klass); 3698s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 3698s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 3698s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 3698s # 3698s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3698s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 3698s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3698s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 3698s # #endif 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new: 3698s # * @connection: A #GDBusConnection. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new() for more details. 3698s # * 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3698s # */ 3698s # void 3698s # org_project_useful_interface_proxy_new ( 3698s # GDBusConnection *connection, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_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); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_finish: 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_finish ( 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GObject *ret; 3698s # GObject *source_object; 3698s # source_object = g_async_result_get_source_object (res); 3698s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3698s # g_object_unref (source_object); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_sync: 3698s # * @connection: A #GDBusConnection. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new_sync() for more details. 3698s # * 3698s # * The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_sync ( 3698s # GDBusConnection *connection, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GInitable *ret; 3698s # 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); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus: 3698s # * @bus_type: A #GBusType. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: A bus name (well-known or unique). 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3698s # * 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3698s # */ 3698s # void 3698s # org_project_useful_interface_proxy_new_for_bus ( 3698s # GBusType bus_type, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_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); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus_finish: 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_for_bus_finish ( 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GObject *ret; 3698s # GObject *source_object; 3698s # source_object = g_async_result_get_source_object (res); 3698s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3698s # g_object_unref (source_object); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus_sync: 3698s # * @bus_type: A #GBusType. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: A bus name (well-known or unique). 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3698s # * 3698s # * The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_for_bus_sync ( 3698s # GBusType bus_type, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GInitable *ret; 3698s # 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); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # 3698s # /* ------------------------------------------------------------------------ */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceSkeleton: 3698s # * 3698s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceSkeletonClass: 3698s # * @parent_class: The parent class. 3698s # * 3698s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 3698s # */ 3698s # 3698s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 3698s # { 3698s # GValue *properties; 3698s # GList *changed_properties; 3698s # GSource *changed_properties_idle_source; 3698s # GMainContext *context; 3698s # GMutex lock; 3698s # }; 3698s # 3698s # static void 3698s # _org_project_useful_interface_skeleton_handle_method_call ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name, 3698s # const gchar *method_name, 3698s # GVariant *parameters, 3698s # GDBusMethodInvocation *invocation, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # _ExtendedGDBusMethodInfo *info; 3698s # GVariantIter iter; 3698s # GVariant *child; 3698s # GValue *paramv; 3698s # gsize num_params; 3698s # guint num_extra; 3698s # gsize n; 3698s # guint signal_id; 3698s # GValue return_value = G_VALUE_INIT; 3698s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3698s # g_assert (info != NULL); 3698s # num_params = g_variant_n_children (parameters); 3698s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3698s # n = 0; 3698s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_set_object (¶mv[n++], skeleton); 3698s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3698s # g_value_set_object (¶mv[n++], invocation); 3698s # if (info->pass_fdlist) 3698s # { 3698s # #ifdef G_OS_UNIX 3698s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3698s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3698s # #else 3698s # g_assert_not_reached (); 3698s # #endif 3698s # } 3698s # g_variant_iter_init (&iter, parameters); 3698s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3698s # { 3698s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3698s # if (arg_info->use_gvariant) 3698s # { 3698s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3698s # g_value_set_variant (¶mv[n], child); 3698s # n++; 3698s # } 3698s # else 3698s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3698s # g_variant_unref (child); 3698s # } 3698s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3698s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3698s # if (!g_value_get_boolean (&return_value)) 3698s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3698s # g_value_unset (&return_value); 3698s # for (n = 0; n < num_params + num_extra; n++) 3698s # g_value_unset (¶mv[n]); 3698s # g_free (paramv); 3698s # } 3698s # 3698s # static GVariant * 3698s # _org_project_useful_interface_skeleton_handle_get_property ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name G_GNUC_UNUSED, 3698s # const gchar *property_name, 3698s # GError **error, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # GValue value = G_VALUE_INIT; 3698s # GParamSpec *pspec; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # GVariant *ret; 3698s # ret = NULL; 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3698s # g_assert (info != NULL); 3698s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3698s # if (pspec == NULL) 3698s # { 3698s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3698s # } 3698s # else 3698s # { 3698s # g_value_init (&value, pspec->value_type); 3698s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3698s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3698s # g_value_unset (&value); 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static gboolean 3698s # _org_project_useful_interface_skeleton_handle_set_property ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name G_GNUC_UNUSED, 3698s # const gchar *property_name, 3698s # GVariant *variant, 3698s # GError **error, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # GValue value = G_VALUE_INIT; 3698s # GParamSpec *pspec; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # gboolean ret; 3698s # ret = FALSE; 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3698s # g_assert (info != NULL); 3698s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3698s # if (pspec == NULL) 3698s # { 3698s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3698s # } 3698s # else 3698s # { 3698s # if (info->use_gvariant) 3698s # g_value_set_variant (&value, variant); 3698s # else 3698s # g_dbus_gvariant_to_gvalue (variant, &value); 3698s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3698s # g_value_unset (&value); 3698s # ret = TRUE; 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 3698s # { 3698s # _org_project_useful_interface_skeleton_handle_method_call, 3698s # _org_project_useful_interface_skeleton_handle_get_property, 3698s # _org_project_useful_interface_skeleton_handle_set_property, 3698s # {NULL} 3698s # }; 3698s # 3698s # static GDBusInterfaceInfo * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3698s # { 3698s # return org_project_useful_interface_interface_info (); 3698s # } 3698s # 3698s # static GDBusInterfaceVTable * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3698s # { 3698s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 3698s # } 3698s # 3698s # static GVariant * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 3698s # 3698s # GVariantBuilder builder; 3698s # guint n; 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3698s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3698s # #else 3698s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3698s # #endif 3698s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 3698s # goto out; 3698s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 3698s # { 3698s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 3698s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3698s # { 3698s # GVariant *value; 3698s # 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); 3698s # if (value != NULL) 3698s # { 3698s # g_variant_take_ref (value); 3698s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3698s # g_variant_unref (value); 3698s # } 3698s # } 3698s # } 3698s # out: 3698s # return g_variant_builder_end (&builder); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3698s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3698s # 3698s # #else 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3698s # 3698s # #endif 3698s # static void 3698s # org_project_useful_interface_skeleton_finalize (GObject *object) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 3698s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3698s # if (skeleton->priv->changed_properties_idle_source != NULL) 3698s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3698s # g_main_context_unref (skeleton->priv->context); 3698s # g_mutex_clear (&skeleton->priv->lock); 3698s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 3698s # { 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 3698s # #else 3698s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 3698s # #endif 3698s # 3698s # g_mutex_init (&skeleton->priv->lock); 3698s # skeleton->priv->context = g_main_context_ref_thread_default (); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 3698s # { 3698s # GObjectClass *gobject_class; 3698s # GDBusInterfaceSkeletonClass *skeleton_class; 3698s # 3698s # gobject_class = G_OBJECT_CLASS (klass); 3698s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 3698s # 3698s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3698s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 3698s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 3698s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 3698s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3698s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 3698s # #endif 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_skeleton_new: 3698s # * 3698s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_skeleton_new (void) 3698s # { 3698s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 3698s # } 3698s # Error: 3698s # 3698s # /tmp/tmpj0kzs0gk/tmp5h5uj9h3.xml: 3698s # <node> 3698s # <interface name="org.project.UsefulInterface"> 3698s # <method name="SingleArgMethodI"> 3698s # <arg name="arg_i" type="i"/> 3698s # </method> 3698s # </interface> 3698s # </node> 3698s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpj0kzs0gk/tmp5h5uj9h3.xml', '--output', '-', '--body'] 3698s # Return code: 0 3698s # Output: 3698s # /* 3698s # * This file is generated by gdbus-codegen, do not modify it. 3698s # * 3698s # * The license of this code is the same as for the D-Bus interface description 3698s # * it was derived from. Note that it links to GLib, so must comply with the 3698s # * LGPL linking clauses. 3698s # */ 3698s # 3698s # #ifdef HAVE_CONFIG_H 3698s # # include "config.h" 3698s # #endif 3698s # 3698s # #include <string.h> 3698s # #ifdef G_OS_UNIX 3698s # # include <gio/gunixfdlist.h> 3698s # #endif 3698s # 3698s # #ifdef G_ENABLE_DEBUG 3698s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3698s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3698s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3698s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3698s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3698s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3698s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3698s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3698s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3698s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3698s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3698s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3698s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3698s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3698s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3698s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3698s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3698s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3698s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3698s # #else /* !G_ENABLE_DEBUG */ 3698s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3698s # * Do not access GValues directly in your code. Instead, use the 3698s # * g_value_get_*() functions 3698s # */ 3698s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3698s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3698s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3698s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3698s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3698s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3698s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3698s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3698s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3698s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3698s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3698s # #endif /* !G_ENABLE_DEBUG */ 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusArgInfo parent_struct; 3698s # gboolean use_gvariant; 3698s # } _ExtendedGDBusArgInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusMethodInfo parent_struct; 3698s # const gchar *signal_name; 3698s # gboolean pass_fdlist; 3698s # } _ExtendedGDBusMethodInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusSignalInfo parent_struct; 3698s # const gchar *signal_name; 3698s # } _ExtendedGDBusSignalInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusPropertyInfo parent_struct; 3698s # const gchar *hyphen_name; 3698s # guint use_gvariant : 1; 3698s # guint emits_changed_signal : 1; 3698s # } _ExtendedGDBusPropertyInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusInterfaceInfo parent_struct; 3698s # const gchar *hyphen_name; 3698s # } _ExtendedGDBusInterfaceInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # const _ExtendedGDBusPropertyInfo *info; 3698s # guint prop_id; 3698s # GValue orig_value; /* the value before the change */ 3698s # } ChangedProperty; 3698s # 3698s # static void 3698s # _changed_property_free (ChangedProperty *data) 3698s # { 3698s # g_value_unset (&data->orig_value); 3698s # g_free (data); 3698s # } 3698s # 3698s # static gboolean 3698s # _g_strv_equal0 (gchar **a, gchar **b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # guint n; 3698s # if (a == NULL && b == NULL) 3698s # { 3698s # ret = TRUE; 3698s # goto out; 3698s # } 3698s # if (a == NULL || b == NULL) 3698s # goto out; 3698s # if (g_strv_length (a) != g_strv_length (b)) 3698s # goto out; 3698s # for (n = 0; a[n] != NULL; n++) 3698s # if (g_strcmp0 (a[n], b[n]) != 0) 3698s # goto out; 3698s # ret = TRUE; 3698s # out: 3698s # return ret; 3698s # } 3698s # 3698s # static gboolean 3698s # _g_variant_equal0 (GVariant *a, GVariant *b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # if (a == NULL && b == NULL) 3698s # { 3698s # ret = TRUE; 3698s # goto out; 3698s # } 3698s # if (a == NULL || b == NULL) 3698s # goto out; 3698s # ret = g_variant_equal (a, b); 3698s # out: 3698s # return ret; 3698s # } 3698s # 3698s # G_GNUC_UNUSED static gboolean 3698s # _g_value_equal (const GValue *a, const GValue *b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3698s # switch (G_VALUE_TYPE (a)) 3698s # { 3698s # case G_TYPE_BOOLEAN: 3698s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3698s # break; 3698s # case G_TYPE_UCHAR: 3698s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3698s # break; 3698s # case G_TYPE_INT: 3698s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3698s # break; 3698s # case G_TYPE_UINT: 3698s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3698s # break; 3698s # case G_TYPE_INT64: 3698s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3698s # break; 3698s # case G_TYPE_UINT64: 3698s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3698s # break; 3698s # case G_TYPE_DOUBLE: 3698s # { 3698s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3698s # gdouble da = g_value_get_double (a); 3698s # gdouble db = g_value_get_double (b); 3698s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3698s # } 3698s # break; 3698s # case G_TYPE_STRING: 3698s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3698s # break; 3698s # case G_TYPE_VARIANT: 3698s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3698s # break; 3698s # default: 3698s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3698s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3698s # else 3698s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3698s # break; 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static void 3698s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT ( 3698s # GClosure *closure, 3698s # GValue *return_value, 3698s # unsigned int n_param_values, 3698s # const GValue *param_values, 3698s # void *invocation_hint G_GNUC_UNUSED, 3698s # void *marshal_data) 3698s # { 3698s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectIntFunc) 3698s # (void *data1, 3698s # GDBusMethodInvocation *arg_method_invocation, 3698s # gint arg_arg_i, 3698s # void *data2); 3698s # _GDbusCodegenMarshalBoolean_ObjectIntFunc callback; 3698s # GCClosure *cc = (GCClosure*) closure; 3698s # void *data1, *data2; 3698s # gboolean v_return; 3698s # 3698s # g_return_if_fail (return_value != NULL); 3698s # g_return_if_fail (n_param_values == 3); 3698s # 3698s # if (G_CCLOSURE_SWAP_DATA (closure)) 3698s # { 3698s # data1 = closure->data; 3698s # data2 = g_value_peek_pointer (param_values + 0); 3698s # } 3698s # else 3698s # { 3698s # data1 = g_value_peek_pointer (param_values + 0); 3698s # data2 = closure->data; 3698s # } 3698s # 3698s # callback = (_GDbusCodegenMarshalBoolean_ObjectIntFunc) 3698s # (marshal_data ? marshal_data : cc->callback); 3698s # 3698s # v_return = 3698s # callback (data1, 3698s # g_marshal_value_peek_object (param_values + 1), 3698s # g_marshal_value_peek_int (param_values + 2), 3698s # data2); 3698s # 3698s # g_value_set_boolean (return_value, v_return); 3698s # } 3698s # 3698s # /* ------------------------------------------------------------------------ 3698s # * Code for interface org.project.UsefulInterface 3698s # * ------------------------------------------------------------------------ 3698s # */ 3698s # 3698s # /** 3698s # * SECTION:OrgProjectUsefulInterface 3698s # * @title: OrgProjectUsefulInterface 3698s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 3698s # * 3698s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface in C. 3698s # */ 3698s # 3698s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 3698s # 3698s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_arg_i = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "arg_i", 3698s # (gchar *) "i", 3698s # NULL 3698s # }, 3698s # FALSE 3698s # }; 3698s # 3698s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_pointers[] = 3698s # { 3698s # &_org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_arg_i.parent_struct, 3698s # NULL 3698s # }; 3698s # 3698s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_i = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "SingleArgMethodI", 3698s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_pointers, 3698s # NULL, 3698s # NULL 3698s # }, 3698s # "handle-single-arg-method-i", 3698s # FALSE 3698s # }; 3698s # 3698s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 3698s # { 3698s # &_org_project_useful_interface_method_info_single_arg_method_i.parent_struct, 3698s # NULL 3698s # }; 3698s # 3698s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "org.project.UsefulInterface", 3698s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 3698s # NULL, 3698s # NULL, 3698s # NULL 3698s # }, 3698s # "org-project-useful-interface", 3698s # }; 3698s # 3698s # 3698s # /** 3698s # * org_project_useful_interface_interface_info: 3698s # * 3698s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface. 3698s # * 3698s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3698s # */ 3698s # GDBusInterfaceInfo * 3698s # org_project_useful_interface_interface_info (void) 3698s # { 3698s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_override_properties: 3698s # * @klass: The class structure for a #GObject derived class. 3698s # * @property_id_begin: The property id to assign to the first overridden property. 3698s # * 3698s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 3698s # * The properties are overridden in the order they are defined. 3698s # * 3698s # * Returns: The last property id. 3698s # */ 3698s # guint 3698s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3698s # { 3698s # return property_id_begin - 1; 3698s # } 3698s # 3698s # 3698s # inline static void 3698s # org_project_useful_interface_method_marshal_single_arg_method_i ( 3698s # GClosure *closure, 3698s # GValue *return_value, 3698s # unsigned int n_param_values, 3698s # const GValue *param_values, 3698s # void *invocation_hint, 3698s # void *marshal_data) 3698s # { 3698s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT (closure, 3698s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3698s # } 3698s # 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterface: 3698s # * 3698s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceIface: 3698s # * @parent_iface: The parent interface. 3698s # * @handle_single_arg_method_i: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-i signal. 3698s # * 3698s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # */ 3698s # 3698s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 3698s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 3698s # 3698s # static void 3698s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 3698s # { 3698s # /* GObject signals for incoming D-Bus method calls: */ 3698s # /** 3698s # * OrgProjectUsefulInterface::handle-single-arg-method-i: 3698s # * @object: A #OrgProjectUsefulInterface. 3698s # * @invocation: A #GDBusMethodInvocation. 3698s # * @arg_arg_i: Argument passed by remote caller. 3698s # * 3698s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodI">SingleArgMethodI()</link> D-Bus method. 3698s # * 3698s # * 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. 3698s # * 3698s # * 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. 3698s # */ 3698s # g_signal_new ("handle-single-arg-method-i", 3698s # G_TYPE_FROM_INTERFACE (iface), 3698s # G_SIGNAL_RUN_LAST, 3698s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_i), 3698s # g_signal_accumulator_true_handled, 3698s # NULL, 3698s # org_project_useful_interface_method_marshal_single_arg_method_i, 3698s # G_TYPE_BOOLEAN, 3698s # 2, 3698s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT); 3698s # 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_i: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @arg_arg_i: Argument to pass with the method invocation. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodI">SingleArgMethodI()</link> D-Bus method on @proxy. 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_call_single_arg_method_i_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_call_single_arg_method_i_sync() for the synchronous, blocking version of this method. 3698s # */ 3698s # void 3698s # org_project_useful_interface_call_single_arg_method_i ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # gint arg_arg_i, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3698s # "SingleArgMethodI", 3698s # g_variant_new ("(i)", 3698s # arg_arg_i), 3698s # G_DBUS_CALL_FLAGS_NONE, 3698s # -1, 3698s # cancellable, 3698s # callback, 3698s # user_data); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_i_finish: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_i(). 3698s # * @error: Return location for error or %NULL. 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_i(). 3698s # * 3698s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3698s # */ 3698s # gboolean 3698s # org_project_useful_interface_call_single_arg_method_i_finish ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GVariant *_ret; 3698s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3698s # if (_ret == NULL) 3698s # goto _out; 3698s # g_variant_get (_ret, 3698s # "()"); 3698s # g_variant_unref (_ret); 3698s # _out: 3698s # return _ret != NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_i_sync: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @arg_arg_i: Argument to pass with the method invocation. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL. 3698s # * 3698s # * Synchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodI">SingleArgMethodI()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_call_single_arg_method_i() for the asynchronous version of this method. 3698s # * 3698s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3698s # */ 3698s # gboolean 3698s # org_project_useful_interface_call_single_arg_method_i_sync ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # gint arg_arg_i, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GVariant *_ret; 3698s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3698s # "SingleArgMethodI", 3698s # g_variant_new ("(i)", 3698s # arg_arg_i), 3698s # G_DBUS_CALL_FLAGS_NONE, 3698s # -1, 3698s # cancellable, 3698s # error); 3698s # if (_ret == NULL) 3698s # goto _out; 3698s # g_variant_get (_ret, 3698s # "()"); 3698s # g_variant_unref (_ret); 3698s # _out: 3698s # return _ret != NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_complete_single_arg_method_i: 3698s # * @object: A #OrgProjectUsefulInterface. 3698s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3698s # * 3698s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodI">SingleArgMethodI()</link> 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. 3698s # * 3698s # * This method will free @invocation, you cannot use it afterwards. 3698s # */ 3698s # void 3698s # org_project_useful_interface_complete_single_arg_method_i ( 3698s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 3698s # GDBusMethodInvocation *invocation) 3698s # { 3698s # g_dbus_method_invocation_return_value (invocation, 3698s # g_variant_new ("()")); 3698s # } 3698s # 3698s # /* ------------------------------------------------------------------------ */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceProxy: 3698s # * 3698s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceProxyClass: 3698s # * @parent_class: The parent class. 3698s # * 3698s # * Class structure for #OrgProjectUsefulInterfaceProxy. 3698s # */ 3698s # 3698s # struct _OrgProjectUsefulInterfaceProxyPrivate 3698s # { 3698s # GData *qdata; 3698s # }; 3698s # 3698s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3698s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3698s # 3698s # #else 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3698s # 3698s # #endif 3698s # static void 3698s # org_project_useful_interface_proxy_finalize (GObject *object) 3698s # { 3698s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 3698s # g_datalist_clear (&proxy->priv->qdata); 3698s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3698s # guint prop_id G_GNUC_UNUSED, 3698s # GValue *value G_GNUC_UNUSED, 3698s # GParamSpec *pspec G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3698s # guint prop_id G_GNUC_UNUSED, 3698s # const GValue *value G_GNUC_UNUSED, 3698s # GParamSpec *pspec G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 3698s # const gchar *sender_name G_GNUC_UNUSED, 3698s # const gchar *signal_name, 3698s # GVariant *parameters) 3698s # { 3698s # _ExtendedGDBusSignalInfo *info; 3698s # GVariantIter iter; 3698s # GVariant *child; 3698s # GValue *paramv; 3698s # gsize num_params; 3698s # gsize n; 3698s # guint signal_id; 3698s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 3698s # if (info == NULL) 3698s # return; 3698s # num_params = g_variant_n_children (parameters); 3698s # paramv = g_new0 (GValue, num_params + 1); 3698s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_set_object (¶mv[0], proxy); 3698s # g_variant_iter_init (&iter, parameters); 3698s # n = 1; 3698s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3698s # { 3698s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3698s # if (arg_info->use_gvariant) 3698s # { 3698s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3698s # g_value_set_variant (¶mv[n], child); 3698s # n++; 3698s # } 3698s # else 3698s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3698s # g_variant_unref (child); 3698s # } 3698s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_signal_emitv (paramv, signal_id, 0, NULL); 3698s # for (n = 0; n < num_params + 1; n++) 3698s # g_value_unset (¶mv[n]); 3698s # g_free (paramv); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 3698s # GVariant *changed_properties, 3698s # const gchar *const *invalidated_properties) 3698s # { 3698s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 3698s # guint n; 3698s # const gchar *key; 3698s # GVariantIter *iter; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # g_variant_get (changed_properties, "a{sv}", &iter); 3698s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3698s # { 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 3698s # g_datalist_remove_data (&proxy->priv->qdata, key); 3698s # if (info != NULL) 3698s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3698s # } 3698s # g_variant_iter_free (iter); 3698s # for (n = 0; invalidated_properties[n] != NULL; n++) 3698s # { 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 3698s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3698s # if (info != NULL) 3698s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3698s # } 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 3698s # { 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 3698s # #else 3698s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 3698s # #endif 3698s # 3698s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 3698s # { 3698s # GObjectClass *gobject_class; 3698s # GDBusProxyClass *proxy_class; 3698s # 3698s # gobject_class = G_OBJECT_CLASS (klass); 3698s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 3698s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 3698s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 3698s # 3698s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3698s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 3698s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3698s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 3698s # #endif 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new: 3698s # * @connection: A #GDBusConnection. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new() for more details. 3698s # * 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3698s # */ 3698s # void 3698s # org_project_useful_interface_proxy_new ( 3698s # GDBusConnection *connection, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_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); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_finish: 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_finish ( 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GObject *ret; 3698s # GObject *source_object; 3698s # source_object = g_async_result_get_source_object (res); 3698s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3698s # g_object_unref (source_object); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_sync: 3698s # * @connection: A #GDBusConnection. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new_sync() for more details. 3698s # * 3698s # * The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_sync ( 3698s # GDBusConnection *connection, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GInitable *ret; 3698s # 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); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus: 3698s # * @bus_type: A #GBusType. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: A bus name (well-known or unique). 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3698s # * 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3698s # */ 3698s # void 3698s # org_project_useful_interface_proxy_new_for_bus ( 3698s # GBusType bus_type, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_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); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus_finish: 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_for_bus_finish ( 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GObject *ret; 3698s # GObject *source_object; 3698s # source_object = g_async_result_get_source_object (res); 3698s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3698s # g_object_unref (source_object); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus_sync: 3698s # * @bus_type: A #GBusType. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: A bus name (well-known or unique). 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3698s # * 3698s # * The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_for_bus_sync ( 3698s # GBusType bus_type, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GInitable *ret; 3698s # 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); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # 3698s # /* ------------------------------------------------------------------------ */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceSkeleton: 3698s # * 3698s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceSkeletonClass: 3698s # * @parent_class: The parent class. 3698s # * 3698s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 3698s # */ 3698s # 3698s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 3698s # { 3698s # GValue *properties; 3698s # GList *changed_properties; 3698s # GSource *changed_properties_idle_source; 3698s # GMainContext *context; 3698s # GMutex lock; 3698s # }; 3698s # 3698s # static void 3698s # _org_project_useful_interface_skeleton_handle_method_call ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name, 3698s # const gchar *method_name, 3698s # GVariant *parameters, 3698s # GDBusMethodInvocation *invocation, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # _ExtendedGDBusMethodInfo *info; 3698s # GVariantIter iter; 3698s # GVariant *child; 3698s # GValue *paramv; 3698s # gsize num_params; 3698s # guint num_extra; 3698s # gsize n; 3698s # guint signal_id; 3698s # GValue return_value = G_VALUE_INIT; 3698s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3698s # g_assert (info != NULL); 3698s # num_params = g_variant_n_children (parameters); 3698s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3698s # n = 0; 3698s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_set_object (¶mv[n++], skeleton); 3698s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3698s # g_value_set_object (¶mv[n++], invocation); 3698s # if (info->pass_fdlist) 3698s # { 3698s # #ifdef G_OS_UNIX 3698s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3698s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3698s # #else 3698s # g_assert_not_reached (); 3698s # #endif 3698s # } 3698s # g_variant_iter_init (&iter, parameters); 3698s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3698s # { 3698s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3698s # if (arg_info->use_gvariant) 3698s # { 3698s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3698s # g_value_set_variant (¶mv[n], child); 3698s # n++; 3698s # } 3698s # else 3698s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3698s # g_variant_unref (child); 3698s # } 3698s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3698s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3698s # if (!g_value_get_boolean (&return_value)) 3698s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3698s # g_value_unset (&return_value); 3698s # for (n = 0; n < num_params + num_extra; n++) 3698s # g_value_unset (¶mv[n]); 3698s # g_free (paramv); 3698s # } 3698s # 3698s # static GVariant * 3698s # _org_project_useful_interface_skeleton_handle_get_property ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name G_GNUC_UNUSED, 3698s # const gchar *property_name, 3698s # GError **error, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # GValue value = G_VALUE_INIT; 3698s # GParamSpec *pspec; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # GVariant *ret; 3698s # ret = NULL; 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3698s # g_assert (info != NULL); 3698s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3698s # if (pspec == NULL) 3698s # { 3698s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3698s # } 3698s # else 3698s # { 3698s # g_value_init (&value, pspec->value_type); 3698s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3698s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3698s # g_value_unset (&value); 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static gboolean 3698s # _org_project_useful_interface_skeleton_handle_set_property ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name G_GNUC_UNUSED, 3698s # const gchar *property_name, 3698s # GVariant *variant, 3698s # GError **error, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # GValue value = G_VALUE_INIT; 3698s # GParamSpec *pspec; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # gboolean ret; 3698s # ret = FALSE; 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3698s # g_assert (info != NULL); 3698s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3698s # if (pspec == NULL) 3698s # { 3698s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3698s # } 3698s # else 3698s # { 3698s # if (info->use_gvariant) 3698s # g_value_set_variant (&value, variant); 3698s # else 3698s # g_dbus_gvariant_to_gvalue (variant, &value); 3698s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3698s # g_value_unset (&value); 3698s # ret = TRUE; 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 3698s # { 3698s # _org_project_useful_interface_skeleton_handle_method_call, 3698s # _org_project_useful_interface_skeleton_handle_get_property, 3698s # _org_project_useful_interface_skeleton_handle_set_property, 3698s # {NULL} 3698s # }; 3698s # 3698s # static GDBusInterfaceInfo * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3698s # { 3698s # return org_project_useful_interface_interface_info (); 3698s # } 3698s # 3698s # static GDBusInterfaceVTable * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3698s # { 3698s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 3698s # } 3698s # 3698s # static GVariant * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 3698s # 3698s # GVariantBuilder builder; 3698s # guint n; 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3698s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3698s # #else 3698s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3698s # #endif 3698s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 3698s # goto out; 3698s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 3698s # { 3698s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 3698s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3698s # { 3698s # GVariant *value; 3698s # 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); 3698s # if (value != NULL) 3698s # { 3698s # g_variant_take_ref (value); 3698s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3698s # g_variant_unref (value); 3698s # } 3698s # } 3698s # } 3698s # out: 3698s # return g_variant_builder_end (&builder); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3698s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3698s # 3698s # #else 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3698s # 3698s # #endif 3698s # static void 3698s # org_project_useful_interface_skeleton_finalize (GObject *object) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 3698s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3698s # if (skeleton->priv->changed_properties_idle_source != NULL) 3698s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3698s # g_main_context_unref (skeleton->priv->context); 3698s # g_mutex_clear (&skeleton->priv->lock); 3698s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 3698s # { 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 3698s # #else 3698s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 3698s # #endif 3698s # 3698s # g_mutex_init (&skeleton->priv->lock); 3698s # skeleton->priv->context = g_main_context_ref_thread_default (); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 3698s # { 3698s # GObjectClass *gobject_class; 3698s # GDBusInterfaceSkeletonClass *skeleton_class; 3698s # 3698s # gobject_class = G_OBJECT_CLASS (klass); 3698s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 3698s # 3698s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3698s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 3698s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 3698s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 3698s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3698s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 3698s # #endif 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_skeleton_new: 3698s # * 3698s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_skeleton_new (void) 3698s # { 3698s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 3698s # } 3698s # Error: 3698s # 3698s # /tmp/tmpj0kzs0gk/tmpii2i7v30.xml: 3698s # <node> 3698s # <interface name="org.project.UsefulInterface"> 3698s # <method name="SingleArgMethodU"> 3698s # <arg name="arg_u" type="u"/> 3698s # </method> 3698s # </interface> 3698s # </node> 3698s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpj0kzs0gk/tmpii2i7v30.xml', '--output', '-', '--body'] 3698s # Return code: 0 3698s # Output: 3698s # /* 3698s # * This file is generated by gdbus-codegen, do not modify it. 3698s # * 3698s # * The license of this code is the same as for the D-Bus interface description 3698s # * it was derived from. Note that it links to GLib, so must comply with the 3698s # * LGPL linking clauses. 3698s # */ 3698s # 3698s # #ifdef HAVE_CONFIG_H 3698s # # include "config.h" 3698s # #endif 3698s # 3698s # #include <string.h> 3698s # #ifdef G_OS_UNIX 3698s # # include <gio/gunixfdlist.h> 3698s # #endif 3698s # 3698s # #ifdef G_ENABLE_DEBUG 3698s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3698s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3698s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3698s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3698s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3698s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3698s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3698s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3698s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3698s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3698s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3698s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3698s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3698s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3698s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3698s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3698s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3698s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3698s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3698s # #else /* !G_ENABLE_DEBUG */ 3698s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3698s # * Do not access GValues directly in your code. Instead, use the 3698s # * g_value_get_*() functions 3698s # */ 3698s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3698s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3698s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3698s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3698s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3698s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3698s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3698s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3698s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3698s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3698s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3698s # #endif /* !G_ENABLE_DEBUG */ 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusArgInfo parent_struct; 3698s # gboolean use_gvariant; 3698s # } _ExtendedGDBusArgInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusMethodInfo parent_struct; 3698s # const gchar *signal_name; 3698s # gboolean pass_fdlist; 3698s # } _ExtendedGDBusMethodInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusSignalInfo parent_struct; 3698s # const gchar *signal_name; 3698s # } _ExtendedGDBusSignalInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusPropertyInfo parent_struct; 3698s # const gchar *hyphen_name; 3698s # guint use_gvariant : 1; 3698s # guint emits_changed_signal : 1; 3698s # } _ExtendedGDBusPropertyInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusInterfaceInfo parent_struct; 3698s # const gchar *hyphen_name; 3698s # } _ExtendedGDBusInterfaceInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # const _ExtendedGDBusPropertyInfo *info; 3698s # guint prop_id; 3698s # GValue orig_value; /* the value before the change */ 3698s # } ChangedProperty; 3698s # 3698s # static void 3698s # _changed_property_free (ChangedProperty *data) 3698s # { 3698s # g_value_unset (&data->orig_value); 3698s # g_free (data); 3698s # } 3698s # 3698s # static gboolean 3698s # _g_strv_equal0 (gchar **a, gchar **b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # guint n; 3698s # if (a == NULL && b == NULL) 3698s # { 3698s # ret = TRUE; 3698s # goto out; 3698s # } 3698s # if (a == NULL || b == NULL) 3698s # goto out; 3698s # if (g_strv_length (a) != g_strv_length (b)) 3698s # goto out; 3698s # for (n = 0; a[n] != NULL; n++) 3698s # if (g_strcmp0 (a[n], b[n]) != 0) 3698s # goto out; 3698s # ret = TRUE; 3698s # out: 3698s # return ret; 3698s # } 3698s # 3698s # static gboolean 3698s # _g_variant_equal0 (GVariant *a, GVariant *b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # if (a == NULL && b == NULL) 3698s # { 3698s # ret = TRUE; 3698s # goto out; 3698s # } 3698s # if (a == NULL || b == NULL) 3698s # goto out; 3698s # ret = g_variant_equal (a, b); 3698s # out: 3698s # return ret; 3698s # } 3698s # 3698s # G_GNUC_UNUSED static gboolean 3698s # _g_value_equal (const GValue *a, const GValue *b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3698s # switch (G_VALUE_TYPE (a)) 3698s # { 3698s # case G_TYPE_BOOLEAN: 3698s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3698s # break; 3698s # case G_TYPE_UCHAR: 3698s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3698s # break; 3698s # case G_TYPE_INT: 3698s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3698s # break; 3698s # case G_TYPE_UINT: 3698s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3698s # break; 3698s # case G_TYPE_INT64: 3698s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3698s # break; 3698s # case G_TYPE_UINT64: 3698s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3698s # break; 3698s # case G_TYPE_DOUBLE: 3698s # { 3698s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3698s # gdouble da = g_value_get_double (a); 3698s # gdouble db = g_value_get_double (b); 3698s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3698s # } 3698s # break; 3698s # case G_TYPE_STRING: 3698s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3698s # break; 3698s # case G_TYPE_VARIANT: 3698s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3698s # break; 3698s # default: 3698s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3698s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3698s # else 3698s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3698s # break; 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static void 3698s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT ( 3698s # GClosure *closure, 3698s # GValue *return_value, 3698s # unsigned int n_param_values, 3698s # const GValue *param_values, 3698s # void *invocation_hint G_GNUC_UNUSED, 3698s # void *marshal_data) 3698s # { 3698s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUintFunc) 3698s # (void *data1, 3698s # GDBusMethodInvocation *arg_method_invocation, 3698s # guint arg_arg_u, 3698s # void *data2); 3698s # _GDbusCodegenMarshalBoolean_ObjectUintFunc callback; 3698s # GCClosure *cc = (GCClosure*) closure; 3698s # void *data1, *data2; 3698s # gboolean v_return; 3698s # 3698s # g_return_if_fail (return_value != NULL); 3698s # g_return_if_fail (n_param_values == 3); 3698s # 3698s # if (G_CCLOSURE_SWAP_DATA (closure)) 3698s # { 3698s # data1 = closure->data; 3698s # data2 = g_value_peek_pointer (param_values + 0); 3698s # } 3698s # else 3698s # { 3698s # data1 = g_value_peek_pointer (param_values + 0); 3698s # data2 = closure->data; 3698s # } 3698s # 3698s # callback = (_GDbusCodegenMarshalBoolean_ObjectUintFunc) 3698s # (marshal_data ? marshal_data : cc->callback); 3698s # 3698s # v_return = 3698s # callback (data1, 3698s # g_marshal_value_peek_object (param_values + 1), 3698s # g_marshal_value_peek_uint (param_values + 2), 3698s # data2); 3698s # 3698s # g_value_set_boolean (return_value, v_return); 3698s # } 3698s # 3698s # /* ------------------------------------------------------------------------ 3698s # * Code for interface org.project.UsefulInterface 3698s # * ------------------------------------------------------------------------ 3698s # */ 3698s # 3698s # /** 3698s # * SECTION:OrgProjectUsefulInterface 3698s # * @title: OrgProjectUsefulInterface 3698s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 3698s # * 3698s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface in C. 3698s # */ 3698s # 3698s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 3698s # 3698s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_arg_u = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "arg_u", 3698s # (gchar *) "u", 3698s # NULL 3698s # }, 3698s # FALSE 3698s # }; 3698s # 3698s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_pointers[] = 3698s # { 3698s # &_org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_arg_u.parent_struct, 3698s # NULL 3698s # }; 3698s # 3698s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_u = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "SingleArgMethodU", 3698s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_pointers, 3698s # NULL, 3698s # NULL 3698s # }, 3698s # "handle-single-arg-method-u", 3698s # FALSE 3698s # }; 3698s # 3698s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 3698s # { 3698s # &_org_project_useful_interface_method_info_single_arg_method_u.parent_struct, 3698s # NULL 3698s # }; 3698s # 3698s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "org.project.UsefulInterface", 3698s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 3698s # NULL, 3698s # NULL, 3698s # NULL 3698s # }, 3698s # "org-project-useful-interface", 3698s # }; 3698s # 3698s # 3698s # /** 3698s # * org_project_useful_interface_interface_info: 3698s # * 3698s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface. 3698s # * 3698s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3698s # */ 3698s # GDBusInterfaceInfo * 3698s # org_project_useful_interface_interface_info (void) 3698s # { 3698s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_override_properties: 3698s # * @klass: The class structure for a #GObject derived class. 3698s # * @property_id_begin: The property id to assign to the first overridden property. 3698s # * 3698s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 3698s # * The properties are overridden in the order they are defined. 3698s # * 3698s # * Returns: The last property id. 3698s # */ 3698s # guint 3698s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3698s # { 3698s # return property_id_begin - 1; 3698s # } 3698s # 3698s # 3698s # inline static void 3698s # org_project_useful_interface_method_marshal_single_arg_method_u ( 3698s # GClosure *closure, 3698s # GValue *return_value, 3698s # unsigned int n_param_values, 3698s # const GValue *param_values, 3698s # void *invocation_hint, 3698s # void *marshal_data) 3698s # { 3698s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT (closure, 3698s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3698s # } 3698s # 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterface: 3698s # * 3698s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceIface: 3698s # * @parent_iface: The parent interface. 3698s # * @handle_single_arg_method_u: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-u signal. 3698s # * 3698s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # */ 3698s # 3698s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 3698s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 3698s # 3698s # static void 3698s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 3698s # { 3698s # /* GObject signals for incoming D-Bus method calls: */ 3698s # /** 3698s # * OrgProjectUsefulInterface::handle-single-arg-method-u: 3698s # * @object: A #OrgProjectUsefulInterface. 3698s # * @invocation: A #GDBusMethodInvocation. 3698s # * @arg_arg_u: Argument passed by remote caller. 3698s # * 3698s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodU">SingleArgMethodU()</link> D-Bus method. 3698s # * 3698s # * 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. 3698s # * 3698s # * 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. 3698s # */ 3698s # g_signal_new ("handle-single-arg-method-u", 3698s # G_TYPE_FROM_INTERFACE (iface), 3698s # G_SIGNAL_RUN_LAST, 3698s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_u), 3698s # g_signal_accumulator_true_handled, 3698s # NULL, 3698s # org_project_useful_interface_method_marshal_single_arg_method_u, 3698s # G_TYPE_BOOLEAN, 3698s # 2, 3698s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT); 3698s # 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_u: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @arg_arg_u: Argument to pass with the method invocation. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodU">SingleArgMethodU()</link> D-Bus method on @proxy. 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_call_single_arg_method_u_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_call_single_arg_method_u_sync() for the synchronous, blocking version of this method. 3698s # */ 3698s # void 3698s # org_project_useful_interface_call_single_arg_method_u ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # guint arg_arg_u, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3698s # "SingleArgMethodU", 3698s # g_variant_new ("(u)", 3698s # arg_arg_u), 3698s # G_DBUS_CALL_FLAGS_NONE, 3698s # -1, 3698s # cancellable, 3698s # callback, 3698s # user_data); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_u_finish: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_u(). 3698s # * @error: Return location for error or %NULL. 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_u(). 3698s # * 3698s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3698s # */ 3698s # gboolean 3698s # org_project_useful_interface_call_single_arg_method_u_finish ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GVariant *_ret; 3698s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3698s # if (_ret == NULL) 3698s # goto _out; 3698s # g_variant_get (_ret, 3698s # "()"); 3698s # g_variant_unref (_ret); 3698s # _out: 3698s # return _ret != NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_u_sync: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @arg_arg_u: Argument to pass with the method invocation. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL. 3698s # * 3698s # * Synchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodU">SingleArgMethodU()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_call_single_arg_method_u() for the asynchronous version of this method. 3698s # * 3698s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3698s # */ 3698s # gboolean 3698s # org_project_useful_interface_call_single_arg_method_u_sync ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # guint arg_arg_u, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GVariant *_ret; 3698s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3698s # "SingleArgMethodU", 3698s # g_variant_new ("(u)", 3698s # arg_arg_u), 3698s # G_DBUS_CALL_FLAGS_NONE, 3698s # -1, 3698s # cancellable, 3698s # error); 3698s # if (_ret == NULL) 3698s # goto _out; 3698s # g_variant_get (_ret, 3698s # "()"); 3698s # g_variant_unref (_ret); 3698s # _out: 3698s # return _ret != NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_complete_single_arg_method_u: 3698s # * @object: A #OrgProjectUsefulInterface. 3698s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3698s # * 3698s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodU">SingleArgMethodU()</link> 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. 3698s # * 3698s # * This method will free @invocation, you cannot use it afterwards. 3698s # */ 3698s # void 3698s # org_project_useful_interface_complete_single_arg_method_u ( 3698s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 3698s # GDBusMethodInvocation *invocation) 3698s # { 3698s # g_dbus_method_invocation_return_value (invocation, 3698s # g_variant_new ("()")); 3698s # } 3698s # 3698s # /* ------------------------------------------------------------------------ */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceProxy: 3698s # * 3698s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceProxyClass: 3698s # * @parent_class: The parent class. 3698s # * 3698s # * Class structure for #OrgProjectUsefulInterfaceProxy. 3698s # */ 3698s # 3698s # struct _OrgProjectUsefulInterfaceProxyPrivate 3698s # { 3698s # GData *qdata; 3698s # }; 3698s # 3698s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3698s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3698s # 3698s # #else 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3698s # 3698s # #endif 3698s # static void 3698s # org_project_useful_interface_proxy_finalize (GObject *object) 3698s # { 3698s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 3698s # g_datalist_clear (&proxy->priv->qdata); 3698s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3698s # guint prop_id G_GNUC_UNUSED, 3698s # GValue *value G_GNUC_UNUSED, 3698s # GParamSpec *pspec G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3698s # guint prop_id G_GNUC_UNUSED, 3698s # const GValue *value G_GNUC_UNUSED, 3698s # GParamSpec *pspec G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 3698s # const gchar *sender_name G_GNUC_UNUSED, 3698s # const gchar *signal_name, 3698s # GVariant *parameters) 3698s # { 3698s # _ExtendedGDBusSignalInfo *info; 3698s # GVariantIter iter; 3698s # GVariant *child; 3698s # GValue *paramv; 3698s # gsize num_params; 3698s # gsize n; 3698s # guint signal_id; 3698s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 3698s # if (info == NULL) 3698s # return; 3698s # num_params = g_variant_n_children (parameters); 3698s # paramv = g_new0 (GValue, num_params + 1); 3698s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_set_object (¶mv[0], proxy); 3698s # g_variant_iter_init (&iter, parameters); 3698s # n = 1; 3698s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3698s # { 3698s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3698s # if (arg_info->use_gvariant) 3698s # { 3698s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3698s # g_value_set_variant (¶mv[n], child); 3698s # n++; 3698s # } 3698s # else 3698s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3698s # g_variant_unref (child); 3698s # } 3698s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_signal_emitv (paramv, signal_id, 0, NULL); 3698s # for (n = 0; n < num_params + 1; n++) 3698s # g_value_unset (¶mv[n]); 3698s # g_free (paramv); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 3698s # GVariant *changed_properties, 3698s # const gchar *const *invalidated_properties) 3698s # { 3698s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 3698s # guint n; 3698s # const gchar *key; 3698s # GVariantIter *iter; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # g_variant_get (changed_properties, "a{sv}", &iter); 3698s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3698s # { 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 3698s # g_datalist_remove_data (&proxy->priv->qdata, key); 3698s # if (info != NULL) 3698s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3698s # } 3698s # g_variant_iter_free (iter); 3698s # for (n = 0; invalidated_properties[n] != NULL; n++) 3698s # { 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 3698s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3698s # if (info != NULL) 3698s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3698s # } 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 3698s # { 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 3698s # #else 3698s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 3698s # #endif 3698s # 3698s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 3698s # { 3698s # GObjectClass *gobject_class; 3698s # GDBusProxyClass *proxy_class; 3698s # 3698s # gobject_class = G_OBJECT_CLASS (klass); 3698s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 3698s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 3698s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 3698s # 3698s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3698s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 3698s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3698s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 3698s # #endif 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new: 3698s # * @connection: A #GDBusConnection. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new() for more details. 3698s # * 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3698s # */ 3698s # void 3698s # org_project_useful_interface_proxy_new ( 3698s # GDBusConnection *connection, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_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); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_finish: 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_finish ( 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GObject *ret; 3698s # GObject *source_object; 3698s # source_object = g_async_result_get_source_object (res); 3698s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3698s # g_object_unref (source_object); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_sync: 3698s # * @connection: A #GDBusConnection. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new_sync() for more details. 3698s # * 3698s # * The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_sync ( 3698s # GDBusConnection *connection, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GInitable *ret; 3698s # 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); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus: 3698s # * @bus_type: A #GBusType. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: A bus name (well-known or unique). 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3698s # * 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3698s # */ 3698s # void 3698s # org_project_useful_interface_proxy_new_for_bus ( 3698s # GBusType bus_type, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_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); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus_finish: 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_for_bus_finish ( 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GObject *ret; 3698s # GObject *source_object; 3698s # source_object = g_async_result_get_source_object (res); 3698s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3698s # g_object_unref (source_object); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus_sync: 3698s # * @bus_type: A #GBusType. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: A bus name (well-known or unique). 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3698s # * 3698s # * The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_for_bus_sync ( 3698s # GBusType bus_type, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GInitable *ret; 3698s # 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); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # 3698s # /* ------------------------------------------------------------------------ */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceSkeleton: 3698s # * 3698s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceSkeletonClass: 3698s # * @parent_class: The parent class. 3698s # * 3698s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 3698s # */ 3698s # 3698s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 3698s # { 3698s # GValue *properties; 3698s # GList *changed_properties; 3698s # GSource *changed_properties_idle_source; 3698s # GMainContext *context; 3698s # GMutex lock; 3698s # }; 3698s # 3698s # static void 3698s # _org_project_useful_interface_skeleton_handle_method_call ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name, 3698s # const gchar *method_name, 3698s # GVariant *parameters, 3698s # GDBusMethodInvocation *invocation, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # _ExtendedGDBusMethodInfo *info; 3698s # GVariantIter iter; 3698s # GVariant *child; 3698s # GValue *paramv; 3698s # gsize num_params; 3698s # guint num_extra; 3698s # gsize n; 3698s # guint signal_id; 3698s # GValue return_value = G_VALUE_INIT; 3698s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3698s # g_assert (info != NULL); 3698s # num_params = g_variant_n_children (parameters); 3698s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3698s # n = 0; 3698s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_set_object (¶mv[n++], skeleton); 3698s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3698s # g_value_set_object (¶mv[n++], invocation); 3698s # if (info->pass_fdlist) 3698s # { 3698s # #ifdef G_OS_UNIX 3698s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3698s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3698s # #else 3698s # g_assert_not_reached (); 3698s # #endif 3698s # } 3698s # g_variant_iter_init (&iter, parameters); 3698s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3698s # { 3698s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3698s # if (arg_info->use_gvariant) 3698s # { 3698s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3698s # g_value_set_variant (¶mv[n], child); 3698s # n++; 3698s # } 3698s # else 3698s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3698s # g_variant_unref (child); 3698s # } 3698s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3698s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3698s # if (!g_value_get_boolean (&return_value)) 3698s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3698s # g_value_unset (&return_value); 3698s # for (n = 0; n < num_params + num_extra; n++) 3698s # g_value_unset (¶mv[n]); 3698s # g_free (paramv); 3698s # } 3698s # 3698s # static GVariant * 3698s # _org_project_useful_interface_skeleton_handle_get_property ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name G_GNUC_UNUSED, 3698s # const gchar *property_name, 3698s # GError **error, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # GValue value = G_VALUE_INIT; 3698s # GParamSpec *pspec; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # GVariant *ret; 3698s # ret = NULL; 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3698s # g_assert (info != NULL); 3698s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3698s # if (pspec == NULL) 3698s # { 3698s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3698s # } 3698s # else 3698s # { 3698s # g_value_init (&value, pspec->value_type); 3698s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3698s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3698s # g_value_unset (&value); 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static gboolean 3698s # _org_project_useful_interface_skeleton_handle_set_property ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name G_GNUC_UNUSED, 3698s # const gchar *property_name, 3698s # GVariant *variant, 3698s # GError **error, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # GValue value = G_VALUE_INIT; 3698s # GParamSpec *pspec; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # gboolean ret; 3698s # ret = FALSE; 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3698s # g_assert (info != NULL); 3698s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3698s # if (pspec == NULL) 3698s # { 3698s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3698s # } 3698s # else 3698s # { 3698s # if (info->use_gvariant) 3698s # g_value_set_variant (&value, variant); 3698s # else 3698s # g_dbus_gvariant_to_gvalue (variant, &value); 3698s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3698s # g_value_unset (&value); 3698s # ret = TRUE; 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 3698s # { 3698s # _org_project_useful_interface_skeleton_handle_method_call, 3698s # _org_project_useful_interface_skeleton_handle_get_property, 3698s # _org_project_useful_interface_skeleton_handle_set_property, 3698s # {NULL} 3698s # }; 3698s # 3698s # static GDBusInterfaceInfo * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3698s # { 3698s # return org_project_useful_interface_interface_info (); 3698s # } 3698s # 3698s # static GDBusInterfaceVTable * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3698s # { 3698s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 3698s # } 3698s # 3698s # static GVariant * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 3698s # 3698s # GVariantBuilder builder; 3698s # guint n; 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3698s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3698s # #else 3698s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3698s # #endif 3698s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 3698s # goto out; 3698s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 3698s # { 3698s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 3698s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3698s # { 3698s # GVariant *value; 3698s # 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); 3698s # if (value != NULL) 3698s # { 3698s # g_variant_take_ref (value); 3698s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3698s # g_variant_unref (value); 3698s # } 3698s # } 3698s # } 3698s # out: 3698s # return g_variant_builder_end (&builder); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3698s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3698s # 3698s # #else 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3698s # 3698s # #endif 3698s # static void 3698s # org_project_useful_interface_skeleton_finalize (GObject *object) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 3698s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3698s # if (skeleton->priv->changed_properties_idle_source != NULL) 3698s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3698s # g_main_context_unref (skeleton->priv->context); 3698s # g_mutex_clear (&skeleton->priv->lock); 3698s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 3698s # { 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 3698s # #else 3698s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 3698s # #endif 3698s # 3698s # g_mutex_init (&skeleton->priv->lock); 3698s # skeleton->priv->context = g_main_context_ref_thread_default (); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 3698s # { 3698s # GObjectClass *gobject_class; 3698s # GDBusInterfaceSkeletonClass *skeleton_class; 3698s # 3698s # gobject_class = G_OBJECT_CLASS (klass); 3698s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 3698s # 3698s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3698s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 3698s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 3698s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 3698s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3698s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 3698s # #endif 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_skeleton_new: 3698s # * 3698s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_skeleton_new (void) 3698s # { 3698s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 3698s # } 3698s # Error: 3698s # 3698s # /tmp/tmpj0kzs0gk/tmp8yycl7ff.xml: 3698s # <node> 3698s # <interface name="org.project.UsefulInterface"> 3698s # <method name="SingleArgMethodX"> 3698s # <arg name="arg_x" type="x"/> 3698s # </method> 3698s # </interface> 3698s # </node> 3698s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpj0kzs0gk/tmp8yycl7ff.xml', '--output', '-', '--body'] 3698s # Return code: 0 3698s # Output: 3698s # /* 3698s # * This file is generated by gdbus-codegen, do not modify it. 3698s # * 3698s # * The license of this code is the same as for the D-Bus interface description 3698s # * it was derived from. Note that it links to GLib, so must comply with the 3698s # * LGPL linking clauses. 3698s # */ 3698s # 3698s # #ifdef HAVE_CONFIG_H 3698s # # include "config.h" 3698s # #endif 3698s # 3698s # #include <string.h> 3698s # #ifdef G_OS_UNIX 3698s # # include <gio/gunixfdlist.h> 3698s # #endif 3698s # 3698s # #ifdef G_ENABLE_DEBUG 3698s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3698s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3698s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3698s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3698s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3698s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3698s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3698s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3698s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3698s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3698s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3698s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3698s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3698s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3698s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3698s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3698s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3698s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3698s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3698s # #else /* !G_ENABLE_DEBUG */ 3698s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3698s # * Do not access GValues directly in your code. Instead, use the 3698s # * g_value_get_*() functions 3698s # */ 3698s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3698s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3698s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3698s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3698s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3698s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3698s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3698s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3698s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3698s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3698s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3698s # #endif /* !G_ENABLE_DEBUG */ 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusArgInfo parent_struct; 3698s # gboolean use_gvariant; 3698s # } _ExtendedGDBusArgInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusMethodInfo parent_struct; 3698s # const gchar *signal_name; 3698s # gboolean pass_fdlist; 3698s # } _ExtendedGDBusMethodInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusSignalInfo parent_struct; 3698s # const gchar *signal_name; 3698s # } _ExtendedGDBusSignalInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusPropertyInfo parent_struct; 3698s # const gchar *hyphen_name; 3698s # guint use_gvariant : 1; 3698s # guint emits_changed_signal : 1; 3698s # } _ExtendedGDBusPropertyInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusInterfaceInfo parent_struct; 3698s # const gchar *hyphen_name; 3698s # } _ExtendedGDBusInterfaceInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # const _ExtendedGDBusPropertyInfo *info; 3698s # guint prop_id; 3698s # GValue orig_value; /* the value before the change */ 3698s # } ChangedProperty; 3698s # 3698s # static void 3698s # _changed_property_free (ChangedProperty *data) 3698s # { 3698s # g_value_unset (&data->orig_value); 3698s # g_free (data); 3698s # } 3698s # 3698s # static gboolean 3698s # _g_strv_equal0 (gchar **a, gchar **b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # guint n; 3698s # if (a == NULL && b == NULL) 3698s # { 3698s # ret = TRUE; 3698s # goto out; 3698s # } 3698s # if (a == NULL || b == NULL) 3698s # goto out; 3698s # if (g_strv_length (a) != g_strv_length (b)) 3698s # goto out; 3698s # for (n = 0; a[n] != NULL; n++) 3698s # if (g_strcmp0 (a[n], b[n]) != 0) 3698s # goto out; 3698s # ret = TRUE; 3698s # out: 3698s # return ret; 3698s # } 3698s # 3698s # static gboolean 3698s # _g_variant_equal0 (GVariant *a, GVariant *b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # if (a == NULL && b == NULL) 3698s # { 3698s # ret = TRUE; 3698s # goto out; 3698s # } 3698s # if (a == NULL || b == NULL) 3698s # goto out; 3698s # ret = g_variant_equal (a, b); 3698s # out: 3698s # return ret; 3698s # } 3698s # 3698s # G_GNUC_UNUSED static gboolean 3698s # _g_value_equal (const GValue *a, const GValue *b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3698s # switch (G_VALUE_TYPE (a)) 3698s # { 3698s # case G_TYPE_BOOLEAN: 3698s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3698s # break; 3698s # case G_TYPE_UCHAR: 3698s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3698s # break; 3698s # case G_TYPE_INT: 3698s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3698s # break; 3698s # case G_TYPE_UINT: 3698s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3698s # break; 3698s # case G_TYPE_INT64: 3698s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3698s # break; 3698s # case G_TYPE_UINT64: 3698s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3698s # break; 3698s # case G_TYPE_DOUBLE: 3698s # { 3698s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3698s # gdouble da = g_value_get_double (a); 3698s # gdouble db = g_value_get_double (b); 3698s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3698s # } 3698s # break; 3698s # case G_TYPE_STRING: 3698s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3698s # break; 3698s # case G_TYPE_VARIANT: 3698s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3698s # break; 3698s # default: 3698s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3698s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3698s # else 3698s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3698s # break; 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static void 3698s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT64 ( 3698s # GClosure *closure, 3698s # GValue *return_value, 3698s # unsigned int n_param_values, 3698s # const GValue *param_values, 3698s # void *invocation_hint G_GNUC_UNUSED, 3698s # void *marshal_data) 3698s # { 3698s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectInt64Func) 3698s # (void *data1, 3698s # GDBusMethodInvocation *arg_method_invocation, 3698s # gint64 arg_arg_x, 3698s # void *data2); 3698s # _GDbusCodegenMarshalBoolean_ObjectInt64Func callback; 3698s # GCClosure *cc = (GCClosure*) closure; 3698s # void *data1, *data2; 3698s # gboolean v_return; 3698s # 3698s # g_return_if_fail (return_value != NULL); 3698s # g_return_if_fail (n_param_values == 3); 3698s # 3698s # if (G_CCLOSURE_SWAP_DATA (closure)) 3698s # { 3698s # data1 = closure->data; 3698s # data2 = g_value_peek_pointer (param_values + 0); 3698s # } 3698s # else 3698s # { 3698s # data1 = g_value_peek_pointer (param_values + 0); 3698s # data2 = closure->data; 3698s # } 3698s # 3698s # callback = (_GDbusCodegenMarshalBoolean_ObjectInt64Func) 3698s # (marshal_data ? marshal_data : cc->callback); 3698s # 3698s # v_return = 3698s # callback (data1, 3698s # g_marshal_value_peek_object (param_values + 1), 3698s # g_marshal_value_peek_int64 (param_values + 2), 3698s # data2); 3698s # 3698s # g_value_set_boolean (return_value, v_return); 3698s # } 3698s # 3698s # /* ------------------------------------------------------------------------ 3698s # * Code for interface org.project.UsefulInterface 3698s # * ------------------------------------------------------------------------ 3698s # */ 3698s # 3698s # /** 3698s # * SECTION:OrgProjectUsefulInterface 3698s # * @title: OrgProjectUsefulInterface 3698s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 3698s # * 3698s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface in C. 3698s # */ 3698s # 3698s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 3698s # 3698s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_arg_x = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "arg_x", 3698s # (gchar *) "x", 3698s # NULL 3698s # }, 3698s # FALSE 3698s # }; 3698s # 3698s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_pointers[] = 3698s # { 3698s # &_org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_arg_x.parent_struct, 3698s # NULL 3698s # }; 3698s # 3698s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_x = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "SingleArgMethodX", 3698s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_pointers, 3698s # NULL, 3698s # NULL 3698s # }, 3698s # "handle-single-arg-method-x", 3698s # FALSE 3698s # }; 3698s # 3698s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 3698s # { 3698s # &_org_project_useful_interface_method_info_single_arg_method_x.parent_struct, 3698s # NULL 3698s # }; 3698s # 3698s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "org.project.UsefulInterface", 3698s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 3698s # NULL, 3698s # NULL, 3698s # NULL 3698s # }, 3698s # "org-project-useful-interface", 3698s # }; 3698s # 3698s # 3698s # /** 3698s # * org_project_useful_interface_interface_info: 3698s # * 3698s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface. 3698s # * 3698s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3698s # */ 3698s # GDBusInterfaceInfo * 3698s # org_project_useful_interface_interface_info (void) 3698s # { 3698s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_override_properties: 3698s # * @klass: The class structure for a #GObject derived class. 3698s # * @property_id_begin: The property id to assign to the first overridden property. 3698s # * 3698s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 3698s # * The properties are overridden in the order they are defined. 3698s # * 3698s # * Returns: The last property id. 3698s # */ 3698s # guint 3698s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3698s # { 3698s # return property_id_begin - 1; 3698s # } 3698s # 3698s # 3698s # inline static void 3698s # org_project_useful_interface_method_marshal_single_arg_method_x ( 3698s # GClosure *closure, 3698s # GValue *return_value, 3698s # unsigned int n_param_values, 3698s # const GValue *param_values, 3698s # void *invocation_hint, 3698s # void *marshal_data) 3698s # { 3698s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT64 (closure, 3698s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3698s # } 3698s # 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterface: 3698s # * 3698s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceIface: 3698s # * @parent_iface: The parent interface. 3698s # * @handle_single_arg_method_x: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-x signal. 3698s # * 3698s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # */ 3698s # 3698s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 3698s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 3698s # 3698s # static void 3698s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 3698s # { 3698s # /* GObject signals for incoming D-Bus method calls: */ 3698s # /** 3698s # * OrgProjectUsefulInterface::handle-single-arg-method-x: 3698s # * @object: A #OrgProjectUsefulInterface. 3698s # * @invocation: A #GDBusMethodInvocation. 3698s # * @arg_arg_x: Argument passed by remote caller. 3698s # * 3698s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodX">SingleArgMethodX()</link> D-Bus method. 3698s # * 3698s # * 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. 3698s # * 3698s # * 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. 3698s # */ 3698s # g_signal_new ("handle-single-arg-method-x", 3698s # G_TYPE_FROM_INTERFACE (iface), 3698s # G_SIGNAL_RUN_LAST, 3698s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_x), 3698s # g_signal_accumulator_true_handled, 3698s # NULL, 3698s # org_project_useful_interface_method_marshal_single_arg_method_x, 3698s # G_TYPE_BOOLEAN, 3698s # 2, 3698s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT64); 3698s # 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_x: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @arg_arg_x: Argument to pass with the method invocation. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodX">SingleArgMethodX()</link> D-Bus method on @proxy. 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_call_single_arg_method_x_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_call_single_arg_method_x_sync() for the synchronous, blocking version of this method. 3698s # */ 3698s # void 3698s # org_project_useful_interface_call_single_arg_method_x ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # gint64 arg_arg_x, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3698s # "SingleArgMethodX", 3698s # g_variant_new ("(x)", 3698s # arg_arg_x), 3698s # G_DBUS_CALL_FLAGS_NONE, 3698s # -1, 3698s # cancellable, 3698s # callback, 3698s # user_data); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_x_finish: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_x(). 3698s # * @error: Return location for error or %NULL. 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_x(). 3698s # * 3698s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3698s # */ 3698s # gboolean 3698s # org_project_useful_interface_call_single_arg_method_x_finish ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GVariant *_ret; 3698s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3698s # if (_ret == NULL) 3698s # goto _out; 3698s # g_variant_get (_ret, 3698s # "()"); 3698s # g_variant_unref (_ret); 3698s # _out: 3698s # return _ret != NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_x_sync: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @arg_arg_x: Argument to pass with the method invocation. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL. 3698s # * 3698s # * Synchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodX">SingleArgMethodX()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_call_single_arg_method_x() for the asynchronous version of this method. 3698s # * 3698s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3698s # */ 3698s # gboolean 3698s # org_project_useful_interface_call_single_arg_method_x_sync ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # gint64 arg_arg_x, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GVariant *_ret; 3698s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3698s # "SingleArgMethodX", 3698s # g_variant_new ("(x)", 3698s # arg_arg_x), 3698s # G_DBUS_CALL_FLAGS_NONE, 3698s # -1, 3698s # cancellable, 3698s # error); 3698s # if (_ret == NULL) 3698s # goto _out; 3698s # g_variant_get (_ret, 3698s # "()"); 3698s # g_variant_unref (_ret); 3698s # _out: 3698s # return _ret != NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_complete_single_arg_method_x: 3698s # * @object: A #OrgProjectUsefulInterface. 3698s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3698s # * 3698s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodX">SingleArgMethodX()</link> 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. 3698s # * 3698s # * This method will free @invocation, you cannot use it afterwards. 3698s # */ 3698s # void 3698s # org_project_useful_interface_complete_single_arg_method_x ( 3698s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 3698s # GDBusMethodInvocation *invocation) 3698s # { 3698s # g_dbus_method_invocation_return_value (invocation, 3698s # g_variant_new ("()")); 3698s # } 3698s # 3698s # /* ------------------------------------------------------------------------ */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceProxy: 3698s # * 3698s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceProxyClass: 3698s # * @parent_class: The parent class. 3698s # * 3698s # * Class structure for #OrgProjectUsefulInterfaceProxy. 3698s # */ 3698s # 3698s # struct _OrgProjectUsefulInterfaceProxyPrivate 3698s # { 3698s # GData *qdata; 3698s # }; 3698s # 3698s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3698s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3698s # 3698s # #else 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3698s # 3698s # #endif 3698s # static void 3698s # org_project_useful_interface_proxy_finalize (GObject *object) 3698s # { 3698s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 3698s # g_datalist_clear (&proxy->priv->qdata); 3698s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3698s # guint prop_id G_GNUC_UNUSED, 3698s # GValue *value G_GNUC_UNUSED, 3698s # GParamSpec *pspec G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3698s # guint prop_id G_GNUC_UNUSED, 3698s # const GValue *value G_GNUC_UNUSED, 3698s # GParamSpec *pspec G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 3698s # const gchar *sender_name G_GNUC_UNUSED, 3698s # const gchar *signal_name, 3698s # GVariant *parameters) 3698s # { 3698s # _ExtendedGDBusSignalInfo *info; 3698s # GVariantIter iter; 3698s # GVariant *child; 3698s # GValue *paramv; 3698s # gsize num_params; 3698s # gsize n; 3698s # guint signal_id; 3698s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 3698s # if (info == NULL) 3698s # return; 3698s # num_params = g_variant_n_children (parameters); 3698s # paramv = g_new0 (GValue, num_params + 1); 3698s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_set_object (¶mv[0], proxy); 3698s # g_variant_iter_init (&iter, parameters); 3698s # n = 1; 3698s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3698s # { 3698s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3698s # if (arg_info->use_gvariant) 3698s # { 3698s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3698s # g_value_set_variant (¶mv[n], child); 3698s # n++; 3698s # } 3698s # else 3698s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3698s # g_variant_unref (child); 3698s # } 3698s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_signal_emitv (paramv, signal_id, 0, NULL); 3698s # for (n = 0; n < num_params + 1; n++) 3698s # g_value_unset (¶mv[n]); 3698s # g_free (paramv); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 3698s # GVariant *changed_properties, 3698s # const gchar *const *invalidated_properties) 3698s # { 3698s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 3698s # guint n; 3698s # const gchar *key; 3698s # GVariantIter *iter; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # g_variant_get (changed_properties, "a{sv}", &iter); 3698s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3698s # { 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 3698s # g_datalist_remove_data (&proxy->priv->qdata, key); 3698s # if (info != NULL) 3698s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3698s # } 3698s # g_variant_iter_free (iter); 3698s # for (n = 0; invalidated_properties[n] != NULL; n++) 3698s # { 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 3698s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3698s # if (info != NULL) 3698s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3698s # } 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 3698s # { 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 3698s # #else 3698s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 3698s # #endif 3698s # 3698s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 3698s # { 3698s # GObjectClass *gobject_class; 3698s # GDBusProxyClass *proxy_class; 3698s # 3698s # gobject_class = G_OBJECT_CLASS (klass); 3698s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 3698s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 3698s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 3698s # 3698s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3698s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 3698s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3698s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 3698s # #endif 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new: 3698s # * @connection: A #GDBusConnection. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new() for more details. 3698s # * 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3698s # */ 3698s # void 3698s # org_project_useful_interface_proxy_new ( 3698s # GDBusConnection *connection, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_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); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_finish: 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_finish ( 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GObject *ret; 3698s # GObject *source_object; 3698s # source_object = g_async_result_get_source_object (res); 3698s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3698s # g_object_unref (source_object); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_sync: 3698s # * @connection: A #GDBusConnection. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new_sync() for more details. 3698s # * 3698s # * The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_sync ( 3698s # GDBusConnection *connection, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GInitable *ret; 3698s # 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); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus: 3698s # * @bus_type: A #GBusType. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: A bus name (well-known or unique). 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3698s # * 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3698s # */ 3698s # void 3698s # org_project_useful_interface_proxy_new_for_bus ( 3698s # GBusType bus_type, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_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); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus_finish: 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_for_bus_finish ( 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GObject *ret; 3698s # GObject *source_object; 3698s # source_object = g_async_result_get_source_object (res); 3698s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3698s # g_object_unref (source_object); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus_sync: 3698s # * @bus_type: A #GBusType. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: A bus name (well-known or unique). 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3698s # * 3698s # * The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_for_bus_sync ( 3698s # GBusType bus_type, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GInitable *ret; 3698s # 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); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # 3698s # /* ------------------------------------------------------------------------ */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceSkeleton: 3698s # * 3698s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceSkeletonClass: 3698s # * @parent_class: The parent class. 3698s # * 3698s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 3698s # */ 3698s # 3698s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 3698s # { 3698s # GValue *properties; 3698s # GList *changed_properties; 3698s # GSource *changed_properties_idle_source; 3698s # GMainContext *context; 3698s # GMutex lock; 3698s # }; 3698s # 3698s # static void 3698s # _org_project_useful_interface_skeleton_handle_method_call ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name, 3698s # const gchar *method_name, 3698s # GVariant *parameters, 3698s # GDBusMethodInvocation *invocation, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # _ExtendedGDBusMethodInfo *info; 3698s # GVariantIter iter; 3698s # GVariant *child; 3698s # GValue *paramv; 3698s # gsize num_params; 3698s # guint num_extra; 3698s # gsize n; 3698s # guint signal_id; 3698s # GValue return_value = G_VALUE_INIT; 3698s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3698s # g_assert (info != NULL); 3698s # num_params = g_variant_n_children (parameters); 3698s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3698s # n = 0; 3698s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_set_object (¶mv[n++], skeleton); 3698s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3698s # g_value_set_object (¶mv[n++], invocation); 3698s # if (info->pass_fdlist) 3698s # { 3698s # #ifdef G_OS_UNIX 3698s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3698s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3698s # #else 3698s # g_assert_not_reached (); 3698s # #endif 3698s # } 3698s # g_variant_iter_init (&iter, parameters); 3698s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3698s # { 3698s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3698s # if (arg_info->use_gvariant) 3698s # { 3698s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3698s # g_value_set_variant (¶mv[n], child); 3698s # n++; 3698s # } 3698s # else 3698s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3698s # g_variant_unref (child); 3698s # } 3698s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3698s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3698s # if (!g_value_get_boolean (&return_value)) 3698s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3698s # g_value_unset (&return_value); 3698s # for (n = 0; n < num_params + num_extra; n++) 3698s # g_value_unset (¶mv[n]); 3698s # g_free (paramv); 3698s # } 3698s # 3698s # static GVariant * 3698s # _org_project_useful_interface_skeleton_handle_get_property ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name G_GNUC_UNUSED, 3698s # const gchar *property_name, 3698s # GError **error, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # GValue value = G_VALUE_INIT; 3698s # GParamSpec *pspec; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # GVariant *ret; 3698s # ret = NULL; 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3698s # g_assert (info != NULL); 3698s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3698s # if (pspec == NULL) 3698s # { 3698s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3698s # } 3698s # else 3698s # { 3698s # g_value_init (&value, pspec->value_type); 3698s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3698s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3698s # g_value_unset (&value); 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static gboolean 3698s # _org_project_useful_interface_skeleton_handle_set_property ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name G_GNUC_UNUSED, 3698s # const gchar *property_name, 3698s # GVariant *variant, 3698s # GError **error, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # GValue value = G_VALUE_INIT; 3698s # GParamSpec *pspec; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # gboolean ret; 3698s # ret = FALSE; 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3698s # g_assert (info != NULL); 3698s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3698s # if (pspec == NULL) 3698s # { 3698s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3698s # } 3698s # else 3698s # { 3698s # if (info->use_gvariant) 3698s # g_value_set_variant (&value, variant); 3698s # else 3698s # g_dbus_gvariant_to_gvalue (variant, &value); 3698s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3698s # g_value_unset (&value); 3698s # ret = TRUE; 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 3698s # { 3698s # _org_project_useful_interface_skeleton_handle_method_call, 3698s # _org_project_useful_interface_skeleton_handle_get_property, 3698s # _org_project_useful_interface_skeleton_handle_set_property, 3698s # {NULL} 3698s # }; 3698s # 3698s # static GDBusInterfaceInfo * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3698s # { 3698s # return org_project_useful_interface_interface_info (); 3698s # } 3698s # 3698s # static GDBusInterfaceVTable * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3698s # { 3698s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 3698s # } 3698s # 3698s # static GVariant * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 3698s # 3698s # GVariantBuilder builder; 3698s # guint n; 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3698s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3698s # #else 3698s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3698s # #endif 3698s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 3698s # goto out; 3698s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 3698s # { 3698s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 3698s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3698s # { 3698s # GVariant *value; 3698s # 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); 3698s # if (value != NULL) 3698s # { 3698s # g_variant_take_ref (value); 3698s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3698s # g_variant_unref (value); 3698s # } 3698s # } 3698s # } 3698s # out: 3698s # return g_variant_builder_end (&builder); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3698s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3698s # 3698s # #else 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3698s # 3698s # #endif 3698s # static void 3698s # org_project_useful_interface_skeleton_finalize (GObject *object) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 3698s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3698s # if (skeleton->priv->changed_properties_idle_source != NULL) 3698s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3698s # g_main_context_unref (skeleton->priv->context); 3698s # g_mutex_clear (&skeleton->priv->lock); 3698s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 3698s # { 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 3698s # #else 3698s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 3698s # #endif 3698s # 3698s # g_mutex_init (&skeleton->priv->lock); 3698s # skeleton->priv->context = g_main_context_ref_thread_default (); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 3698s # { 3698s # GObjectClass *gobject_class; 3698s # GDBusInterfaceSkeletonClass *skeleton_class; 3698s # 3698s # gobject_class = G_OBJECT_CLASS (klass); 3698s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 3698s # 3698s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3698s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 3698s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 3698s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 3698s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3698s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 3698s # #endif 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_skeleton_new: 3698s # * 3698s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_skeleton_new (void) 3698s # { 3698s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 3698s # } 3698s # Error: 3698s # 3698s # /tmp/tmpj0kzs0gk/tmpjagou6d8.xml: 3698s # <node> 3698s # <interface name="org.project.UsefulInterface"> 3698s # <method name="SingleArgMethodT"> 3698s # <arg name="arg_t" type="t"/> 3698s # </method> 3698s # </interface> 3698s # </node> 3698s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpj0kzs0gk/tmpjagou6d8.xml', '--output', '-', '--body'] 3698s # Return code: 0 3698s # Output: 3698s # /* 3698s # * This file is generated by gdbus-codegen, do not modify it. 3698s # * 3698s # * The license of this code is the same as for the D-Bus interface description 3698s # * it was derived from. Note that it links to GLib, so must comply with the 3698s # * LGPL linking clauses. 3698s # */ 3698s # 3698s # #ifdef HAVE_CONFIG_H 3698s # # include "config.h" 3698s # #endif 3698s # 3698s # #include <string.h> 3698s # #ifdef G_OS_UNIX 3698s # # include <gio/gunixfdlist.h> 3698s # #endif 3698s # 3698s # #ifdef G_ENABLE_DEBUG 3698s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3698s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3698s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3698s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3698s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3698s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3698s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3698s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3698s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3698s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3698s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3698s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3698s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3698s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3698s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3698s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3698s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3698s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3698s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3698s # #else /* !G_ENABLE_DEBUG */ 3698s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3698s # * Do not access GValues directly in your code. Instead, use the 3698s # * g_value_get_*() functions 3698s # */ 3698s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3698s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3698s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3698s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3698s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3698s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3698s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3698s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3698s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3698s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3698s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3698s # #endif /* !G_ENABLE_DEBUG */ 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusArgInfo parent_struct; 3698s # gboolean use_gvariant; 3698s # } _ExtendedGDBusArgInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusMethodInfo parent_struct; 3698s # const gchar *signal_name; 3698s # gboolean pass_fdlist; 3698s # } _ExtendedGDBusMethodInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusSignalInfo parent_struct; 3698s # const gchar *signal_name; 3698s # } _ExtendedGDBusSignalInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusPropertyInfo parent_struct; 3698s # const gchar *hyphen_name; 3698s # guint use_gvariant : 1; 3698s # guint emits_changed_signal : 1; 3698s # } _ExtendedGDBusPropertyInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusInterfaceInfo parent_struct; 3698s # const gchar *hyphen_name; 3698s # } _ExtendedGDBusInterfaceInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # const _ExtendedGDBusPropertyInfo *info; 3698s # guint prop_id; 3698s # GValue orig_value; /* the value before the change */ 3698s # } ChangedProperty; 3698s # 3698s # static void 3698s # _changed_property_free (ChangedProperty *data) 3698s # { 3698s # g_value_unset (&data->orig_value); 3698s # g_free (data); 3698s # } 3698s # 3698s # static gboolean 3698s # _g_strv_equal0 (gchar **a, gchar **b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # guint n; 3698s # if (a == NULL && b == NULL) 3698s # { 3698s # ret = TRUE; 3698s # goto out; 3698s # } 3698s # if (a == NULL || b == NULL) 3698s # goto out; 3698s # if (g_strv_length (a) != g_strv_length (b)) 3698s # goto out; 3698s # for (n = 0; a[n] != NULL; n++) 3698s # if (g_strcmp0 (a[n], b[n]) != 0) 3698s # goto out; 3698s # ret = TRUE; 3698s # out: 3698s # return ret; 3698s # } 3698s # 3698s # static gboolean 3698s # _g_variant_equal0 (GVariant *a, GVariant *b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # if (a == NULL && b == NULL) 3698s # { 3698s # ret = TRUE; 3698s # goto out; 3698s # } 3698s # if (a == NULL || b == NULL) 3698s # goto out; 3698s # ret = g_variant_equal (a, b); 3698s # out: 3698s # return ret; 3698s # } 3698s # 3698s # G_GNUC_UNUSED static gboolean 3698s # _g_value_equal (const GValue *a, const GValue *b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3698s # switch (G_VALUE_TYPE (a)) 3698s # { 3698s # case G_TYPE_BOOLEAN: 3698s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3698s # break; 3698s # case G_TYPE_UCHAR: 3698s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3698s # break; 3698s # case G_TYPE_INT: 3698s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3698s # break; 3698s # case G_TYPE_UINT: 3698s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3698s # break; 3698s # case G_TYPE_INT64: 3698s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3698s # break; 3698s # case G_TYPE_UINT64: 3698s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3698s # break; 3698s # case G_TYPE_DOUBLE: 3698s # { 3698s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3698s # gdouble da = g_value_get_double (a); 3698s # gdouble db = g_value_get_double (b); 3698s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3698s # } 3698s # break; 3698s # case G_TYPE_STRING: 3698s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3698s # break; 3698s # case G_TYPE_VARIANT: 3698s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3698s # break; 3698s # default: 3698s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3698s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3698s # else 3698s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3698s # break; 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static void 3698s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT64 ( 3698s # GClosure *closure, 3698s # GValue *return_value, 3698s # unsigned int n_param_values, 3698s # const GValue *param_values, 3698s # void *invocation_hint G_GNUC_UNUSED, 3698s # void *marshal_data) 3698s # { 3698s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUint64Func) 3698s # (void *data1, 3698s # GDBusMethodInvocation *arg_method_invocation, 3698s # guint64 arg_arg_t, 3698s # void *data2); 3698s # _GDbusCodegenMarshalBoolean_ObjectUint64Func callback; 3698s # GCClosure *cc = (GCClosure*) closure; 3698s # void *data1, *data2; 3698s # gboolean v_return; 3698s # 3698s # g_return_if_fail (return_value != NULL); 3698s # g_return_if_fail (n_param_values == 3); 3698s # 3698s # if (G_CCLOSURE_SWAP_DATA (closure)) 3698s # { 3698s # data1 = closure->data; 3698s # data2 = g_value_peek_pointer (param_values + 0); 3698s # } 3698s # else 3698s # { 3698s # data1 = g_value_peek_pointer (param_values + 0); 3698s # data2 = closure->data; 3698s # } 3698s # 3698s # callback = (_GDbusCodegenMarshalBoolean_ObjectUint64Func) 3698s # (marshal_data ? marshal_data : cc->callback); 3698s # 3698s # v_return = 3698s # callback (data1, 3698s # g_marshal_value_peek_object (param_values + 1), 3698s # g_marshal_value_peek_uint64 (param_values + 2), 3698s # data2); 3698s # 3698s # g_value_set_boolean (return_value, v_return); 3698s # } 3698s # 3698s # /* ------------------------------------------------------------------------ 3698s # * Code for interface org.project.UsefulInterface 3698s # * ------------------------------------------------------------------------ 3698s # */ 3698s # 3698s # /** 3698s # * SECTION:OrgProjectUsefulInterface 3698s # * @title: OrgProjectUsefulInterface 3698s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 3698s # * 3698s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface in C. 3698s # */ 3698s # 3698s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 3698s # 3698s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_arg_t = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "arg_t", 3698s # (gchar *) "t", 3698s # NULL 3698s # }, 3698s # FALSE 3698s # }; 3698s # 3698s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_pointers[] = 3698s # { 3698s # &_org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_arg_t.parent_struct, 3698s # NULL 3698s # }; 3698s # 3698s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_t = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "SingleArgMethodT", 3698s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_pointers, 3698s # NULL, 3698s # NULL 3698s # }, 3698s # "handle-single-arg-method-t", 3698s # FALSE 3698s # }; 3698s # 3698s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 3698s # { 3698s # &_org_project_useful_interface_method_info_single_arg_method_t.parent_struct, 3698s # NULL 3698s # }; 3698s # 3698s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "org.project.UsefulInterface", 3698s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 3698s # NULL, 3698s # NULL, 3698s # NULL 3698s # }, 3698s # "org-project-useful-interface", 3698s # }; 3698s # 3698s # 3698s # /** 3698s # * org_project_useful_interface_interface_info: 3698s # * 3698s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface. 3698s # * 3698s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3698s # */ 3698s # GDBusInterfaceInfo * 3698s # org_project_useful_interface_interface_info (void) 3698s # { 3698s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_override_properties: 3698s # * @klass: The class structure for a #GObject derived class. 3698s # * @property_id_begin: The property id to assign to the first overridden property. 3698s # * 3698s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 3698s # * The properties are overridden in the order they are defined. 3698s # * 3698s # * Returns: The last property id. 3698s # */ 3698s # guint 3698s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3698s # { 3698s # return property_id_begin - 1; 3698s # } 3698s # 3698s # 3698s # inline static void 3698s # org_project_useful_interface_method_marshal_single_arg_method_t ( 3698s # GClosure *closure, 3698s # GValue *return_value, 3698s # unsigned int n_param_values, 3698s # const GValue *param_values, 3698s # void *invocation_hint, 3698s # void *marshal_data) 3698s # { 3698s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT64 (closure, 3698s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3698s # } 3698s # 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterface: 3698s # * 3698s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceIface: 3698s # * @parent_iface: The parent interface. 3698s # * @handle_single_arg_method_t: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-t signal. 3698s # * 3698s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # */ 3698s # 3698s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 3698s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 3698s # 3698s # static void 3698s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 3698s # { 3698s # /* GObject signals for incoming D-Bus method calls: */ 3698s # /** 3698s # * OrgProjectUsefulInterface::handle-single-arg-method-t: 3698s # * @object: A #OrgProjectUsefulInterface. 3698s # * @invocation: A #GDBusMethodInvocation. 3698s # * @arg_arg_t: Argument passed by remote caller. 3698s # * 3698s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodT">SingleArgMethodT()</link> D-Bus method. 3698s # * 3698s # * 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. 3698s # * 3698s # * 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. 3698s # */ 3698s # g_signal_new ("handle-single-arg-method-t", 3698s # G_TYPE_FROM_INTERFACE (iface), 3698s # G_SIGNAL_RUN_LAST, 3698s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_t), 3698s # g_signal_accumulator_true_handled, 3698s # NULL, 3698s # org_project_useful_interface_method_marshal_single_arg_method_t, 3698s # G_TYPE_BOOLEAN, 3698s # 2, 3698s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT64); 3698s # 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_t: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @arg_arg_t: Argument to pass with the method invocation. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodT">SingleArgMethodT()</link> D-Bus method on @proxy. 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_call_single_arg_method_t_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_call_single_arg_method_t_sync() for the synchronous, blocking version of this method. 3698s # */ 3698s # void 3698s # org_project_useful_interface_call_single_arg_method_t ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # guint64 arg_arg_t, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3698s # "SingleArgMethodT", 3698s # g_variant_new ("(t)", 3698s # arg_arg_t), 3698s # G_DBUS_CALL_FLAGS_NONE, 3698s # -1, 3698s # cancellable, 3698s # callback, 3698s # user_data); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_t_finish: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_t(). 3698s # * @error: Return location for error or %NULL. 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_t(). 3698s # * 3698s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3698s # */ 3698s # gboolean 3698s # org_project_useful_interface_call_single_arg_method_t_finish ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GVariant *_ret; 3698s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3698s # if (_ret == NULL) 3698s # goto _out; 3698s # g_variant_get (_ret, 3698s # "()"); 3698s # g_variant_unref (_ret); 3698s # _out: 3698s # return _ret != NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_t_sync: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @arg_arg_t: Argument to pass with the method invocation. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL. 3698s # * 3698s # * Synchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodT">SingleArgMethodT()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_call_single_arg_method_t() for the asynchronous version of this method. 3698s # * 3698s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3698s # */ 3698s # gboolean 3698s # org_project_useful_interface_call_single_arg_method_t_sync ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # guint64 arg_arg_t, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GVariant *_ret; 3698s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3698s # "SingleArgMethodT", 3698s # g_variant_new ("(t)", 3698s # arg_arg_t), 3698s # G_DBUS_CALL_FLAGS_NONE, 3698s # -1, 3698s # cancellable, 3698s # error); 3698s # if (_ret == NULL) 3698s # goto _out; 3698s # g_variant_get (_ret, 3698s # "()"); 3698s # g_variant_unref (_ret); 3698s # _out: 3698s # return _ret != NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_complete_single_arg_method_t: 3698s # * @object: A #OrgProjectUsefulInterface. 3698s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3698s # * 3698s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodT">SingleArgMethodT()</link> 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. 3698s # * 3698s # * This method will free @invocation, you cannot use it afterwards. 3698s # */ 3698s # void 3698s # org_project_useful_interface_complete_single_arg_method_t ( 3698s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 3698s # GDBusMethodInvocation *invocation) 3698s # { 3698s # g_dbus_method_invocation_return_value (invocation, 3698s # g_variant_new ("()")); 3698s # } 3698s # 3698s # /* ------------------------------------------------------------------------ */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceProxy: 3698s # * 3698s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceProxyClass: 3698s # * @parent_class: The parent class. 3698s # * 3698s # * Class structure for #OrgProjectUsefulInterfaceProxy. 3698s # */ 3698s # 3698s # struct _OrgProjectUsefulInterfaceProxyPrivate 3698s # { 3698s # GData *qdata; 3698s # }; 3698s # 3698s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3698s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3698s # 3698s # #else 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3698s # 3698s # #endif 3698s # static void 3698s # org_project_useful_interface_proxy_finalize (GObject *object) 3698s # { 3698s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 3698s # g_datalist_clear (&proxy->priv->qdata); 3698s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3698s # guint prop_id G_GNUC_UNUSED, 3698s # GValue *value G_GNUC_UNUSED, 3698s # GParamSpec *pspec G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3698s # guint prop_id G_GNUC_UNUSED, 3698s # const GValue *value G_GNUC_UNUSED, 3698s # GParamSpec *pspec G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 3698s # const gchar *sender_name G_GNUC_UNUSED, 3698s # const gchar *signal_name, 3698s # GVariant *parameters) 3698s # { 3698s # _ExtendedGDBusSignalInfo *info; 3698s # GVariantIter iter; 3698s # GVariant *child; 3698s # GValue *paramv; 3698s # gsize num_params; 3698s # gsize n; 3698s # guint signal_id; 3698s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 3698s # if (info == NULL) 3698s # return; 3698s # num_params = g_variant_n_children (parameters); 3698s # paramv = g_new0 (GValue, num_params + 1); 3698s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_set_object (¶mv[0], proxy); 3698s # g_variant_iter_init (&iter, parameters); 3698s # n = 1; 3698s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3698s # { 3698s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3698s # if (arg_info->use_gvariant) 3698s # { 3698s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3698s # g_value_set_variant (¶mv[n], child); 3698s # n++; 3698s # } 3698s # else 3698s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3698s # g_variant_unref (child); 3698s # } 3698s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_signal_emitv (paramv, signal_id, 0, NULL); 3698s # for (n = 0; n < num_params + 1; n++) 3698s # g_value_unset (¶mv[n]); 3698s # g_free (paramv); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 3698s # GVariant *changed_properties, 3698s # const gchar *const *invalidated_properties) 3698s # { 3698s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 3698s # guint n; 3698s # const gchar *key; 3698s # GVariantIter *iter; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # g_variant_get (changed_properties, "a{sv}", &iter); 3698s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3698s # { 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 3698s # g_datalist_remove_data (&proxy->priv->qdata, key); 3698s # if (info != NULL) 3698s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3698s # } 3698s # g_variant_iter_free (iter); 3698s # for (n = 0; invalidated_properties[n] != NULL; n++) 3698s # { 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 3698s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3698s # if (info != NULL) 3698s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3698s # } 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 3698s # { 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 3698s # #else 3698s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 3698s # #endif 3698s # 3698s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 3698s # { 3698s # GObjectClass *gobject_class; 3698s # GDBusProxyClass *proxy_class; 3698s # 3698s # gobject_class = G_OBJECT_CLASS (klass); 3698s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 3698s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 3698s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 3698s # 3698s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3698s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 3698s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3698s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 3698s # #endif 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new: 3698s # * @connection: A #GDBusConnection. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new() for more details. 3698s # * 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3698s # */ 3698s # void 3698s # org_project_useful_interface_proxy_new ( 3698s # GDBusConnection *connection, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_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); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_finish: 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_finish ( 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GObject *ret; 3698s # GObject *source_object; 3698s # source_object = g_async_result_get_source_object (res); 3698s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3698s # g_object_unref (source_object); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_sync: 3698s # * @connection: A #GDBusConnection. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new_sync() for more details. 3698s # * 3698s # * The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_sync ( 3698s # GDBusConnection *connection, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GInitable *ret; 3698s # 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); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus: 3698s # * @bus_type: A #GBusType. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: A bus name (well-known or unique). 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3698s # * 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3698s # */ 3698s # void 3698s # org_project_useful_interface_proxy_new_for_bus ( 3698s # GBusType bus_type, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_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); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus_finish: 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_for_bus_finish ( 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GObject *ret; 3698s # GObject *source_object; 3698s # source_object = g_async_result_get_source_object (res); 3698s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3698s # g_object_unref (source_object); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus_sync: 3698s # * @bus_type: A #GBusType. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: A bus name (well-known or unique). 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3698s # * 3698s # * The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_for_bus_sync ( 3698s # GBusType bus_type, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GInitable *ret; 3698s # 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); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # 3698s # /* ------------------------------------------------------------------------ */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceSkeleton: 3698s # * 3698s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceSkeletonClass: 3698s # * @parent_class: The parent class. 3698s # * 3698s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 3698s # */ 3698s # 3698s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 3698s # { 3698s # GValue *properties; 3698s # GList *changed_properties; 3698s # GSource *changed_properties_idle_source; 3698s # GMainContext *context; 3698s # GMutex lock; 3698s # }; 3698s # 3698s # static void 3698s # _org_project_useful_interface_skeleton_handle_method_call ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name, 3698s # const gchar *method_name, 3698s # GVariant *parameters, 3698s # GDBusMethodInvocation *invocation, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # _ExtendedGDBusMethodInfo *info; 3698s # GVariantIter iter; 3698s # GVariant *child; 3698s # GValue *paramv; 3698s # gsize num_params; 3698s # guint num_extra; 3698s # gsize n; 3698s # guint signal_id; 3698s # GValue return_value = G_VALUE_INIT; 3698s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3698s # g_assert (info != NULL); 3698s # num_params = g_variant_n_children (parameters); 3698s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3698s # n = 0; 3698s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_set_object (¶mv[n++], skeleton); 3698s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3698s # g_value_set_object (¶mv[n++], invocation); 3698s # if (info->pass_fdlist) 3698s # { 3698s # #ifdef G_OS_UNIX 3698s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3698s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3698s # #else 3698s # g_assert_not_reached (); 3698s # #endif 3698s # } 3698s # g_variant_iter_init (&iter, parameters); 3698s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3698s # { 3698s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3698s # if (arg_info->use_gvariant) 3698s # { 3698s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3698s # g_value_set_variant (¶mv[n], child); 3698s # n++; 3698s # } 3698s # else 3698s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3698s # g_variant_unref (child); 3698s # } 3698s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3698s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3698s # if (!g_value_get_boolean (&return_value)) 3698s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3698s # g_value_unset (&return_value); 3698s # for (n = 0; n < num_params + num_extra; n++) 3698s # g_value_unset (¶mv[n]); 3698s # g_free (paramv); 3698s # } 3698s # 3698s # static GVariant * 3698s # _org_project_useful_interface_skeleton_handle_get_property ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name G_GNUC_UNUSED, 3698s # const gchar *property_name, 3698s # GError **error, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # GValue value = G_VALUE_INIT; 3698s # GParamSpec *pspec; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # GVariant *ret; 3698s # ret = NULL; 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3698s # g_assert (info != NULL); 3698s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3698s # if (pspec == NULL) 3698s # { 3698s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3698s # } 3698s # else 3698s # { 3698s # g_value_init (&value, pspec->value_type); 3698s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3698s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3698s # g_value_unset (&value); 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static gboolean 3698s # _org_project_useful_interface_skeleton_handle_set_property ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name G_GNUC_UNUSED, 3698s # const gchar *property_name, 3698s # GVariant *variant, 3698s # GError **error, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # GValue value = G_VALUE_INIT; 3698s # GParamSpec *pspec; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # gboolean ret; 3698s # ret = FALSE; 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3698s # g_assert (info != NULL); 3698s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3698s # if (pspec == NULL) 3698s # { 3698s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3698s # } 3698s # else 3698s # { 3698s # if (info->use_gvariant) 3698s # g_value_set_variant (&value, variant); 3698s # else 3698s # g_dbus_gvariant_to_gvalue (variant, &value); 3698s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3698s # g_value_unset (&value); 3698s # ret = TRUE; 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 3698s # { 3698s # _org_project_useful_interface_skeleton_handle_method_call, 3698s # _org_project_useful_interface_skeleton_handle_get_property, 3698s # _org_project_useful_interface_skeleton_handle_set_property, 3698s # {NULL} 3698s # }; 3698s # 3698s # static GDBusInterfaceInfo * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3698s # { 3698s # return org_project_useful_interface_interface_info (); 3698s # } 3698s # 3698s # static GDBusInterfaceVTable * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3698s # { 3698s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 3698s # } 3698s # 3698s # static GVariant * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 3698s # 3698s # GVariantBuilder builder; 3698s # guint n; 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3698s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3698s # #else 3698s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3698s # #endif 3698s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 3698s # goto out; 3698s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 3698s # { 3698s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 3698s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3698s # { 3698s # GVariant *value; 3698s # 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); 3698s # if (value != NULL) 3698s # { 3698s # g_variant_take_ref (value); 3698s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3698s # g_variant_unref (value); 3698s # } 3698s # } 3698s # } 3698s # out: 3698s # return g_variant_builder_end (&builder); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3698s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3698s # 3698s # #else 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3698s # 3698s # #endif 3698s # static void 3698s # org_project_useful_interface_skeleton_finalize (GObject *object) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 3698s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3698s # if (skeleton->priv->changed_properties_idle_source != NULL) 3698s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3698s # g_main_context_unref (skeleton->priv->context); 3698s # g_mutex_clear (&skeleton->priv->lock); 3698s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 3698s # { 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 3698s # #else 3698s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 3698s # #endif 3698s # 3698s # g_mutex_init (&skeleton->priv->lock); 3698s # skeleton->priv->context = g_main_context_ref_thread_default (); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 3698s # { 3698s # GObjectClass *gobject_class; 3698s # GDBusInterfaceSkeletonClass *skeleton_class; 3698s # 3698s # gobject_class = G_OBJECT_CLASS (klass); 3698s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 3698s # 3698s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3698s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 3698s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 3698s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 3698s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3698s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 3698s # #endif 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_skeleton_new: 3698s # * 3698s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_skeleton_new (void) 3698s # { 3698s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 3698s # } 3698s # Error: 3698s # 3698s # /tmp/tmpj0kzs0gk/tmp06ma2gln.xml: 3698s # <node> 3698s # <interface name="org.project.UsefulInterface"> 3698s # <method name="SingleArgMethodD"> 3698s # <arg name="arg_d" type="d"/> 3698s # </method> 3698s # </interface> 3698s # </node> 3698s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpj0kzs0gk/tmp06ma2gln.xml', '--output', '-', '--body'] 3698s # Return code: 0 3698s # Output: 3698s # /* 3698s # * This file is generated by gdbus-codegen, do not modify it. 3698s # * 3698s # * The license of this code is the same as for the D-Bus interface description 3698s # * it was derived from. Note that it links to GLib, so must comply with the 3698s # * LGPL linking clauses. 3698s # */ 3698s # 3698s # #ifdef HAVE_CONFIG_H 3698s # # include "config.h" 3698s # #endif 3698s # 3698s # #include <string.h> 3698s # #ifdef G_OS_UNIX 3698s # # include <gio/gunixfdlist.h> 3698s # #endif 3698s # 3698s # #ifdef G_ENABLE_DEBUG 3698s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3698s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3698s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3698s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3698s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3698s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3698s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3698s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3698s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3698s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3698s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3698s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3698s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3698s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3698s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3698s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3698s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3698s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3698s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3698s # #else /* !G_ENABLE_DEBUG */ 3698s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3698s # * Do not access GValues directly in your code. Instead, use the 3698s # * g_value_get_*() functions 3698s # */ 3698s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3698s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3698s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3698s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3698s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3698s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3698s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3698s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3698s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3698s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3698s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3698s # #endif /* !G_ENABLE_DEBUG */ 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusArgInfo parent_struct; 3698s # gboolean use_gvariant; 3698s # } _ExtendedGDBusArgInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusMethodInfo parent_struct; 3698s # const gchar *signal_name; 3698s # gboolean pass_fdlist; 3698s # } _ExtendedGDBusMethodInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusSignalInfo parent_struct; 3698s # const gchar *signal_name; 3698s # } _ExtendedGDBusSignalInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusPropertyInfo parent_struct; 3698s # const gchar *hyphen_name; 3698s # guint use_gvariant : 1; 3698s # guint emits_changed_signal : 1; 3698s # } _ExtendedGDBusPropertyInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusInterfaceInfo parent_struct; 3698s # const gchar *hyphen_name; 3698s # } _ExtendedGDBusInterfaceInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # const _ExtendedGDBusPropertyInfo *info; 3698s # guint prop_id; 3698s # GValue orig_value; /* the value before the change */ 3698s # } ChangedProperty; 3698s # 3698s # static void 3698s # _changed_property_free (ChangedProperty *data) 3698s # { 3698s # g_value_unset (&data->orig_value); 3698s # g_free (data); 3698s # } 3698s # 3698s # static gboolean 3698s # _g_strv_equal0 (gchar **a, gchar **b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # guint n; 3698s # if (a == NULL && b == NULL) 3698s # { 3698s # ret = TRUE; 3698s # goto out; 3698s # } 3698s # if (a == NULL || b == NULL) 3698s # goto out; 3698s # if (g_strv_length (a) != g_strv_length (b)) 3698s # goto out; 3698s # for (n = 0; a[n] != NULL; n++) 3698s # if (g_strcmp0 (a[n], b[n]) != 0) 3698s # goto out; 3698s # ret = TRUE; 3698s # out: 3698s # return ret; 3698s # } 3698s # 3698s # static gboolean 3698s # _g_variant_equal0 (GVariant *a, GVariant *b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # if (a == NULL && b == NULL) 3698s # { 3698s # ret = TRUE; 3698s # goto out; 3698s # } 3698s # if (a == NULL || b == NULL) 3698s # goto out; 3698s # ret = g_variant_equal (a, b); 3698s # out: 3698s # return ret; 3698s # } 3698s # 3698s # G_GNUC_UNUSED static gboolean 3698s # _g_value_equal (const GValue *a, const GValue *b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3698s # switch (G_VALUE_TYPE (a)) 3698s # { 3698s # case G_TYPE_BOOLEAN: 3698s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3698s # break; 3698s # case G_TYPE_UCHAR: 3698s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3698s # break; 3698s # case G_TYPE_INT: 3698s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3698s # break; 3698s # case G_TYPE_UINT: 3698s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3698s # break; 3698s # case G_TYPE_INT64: 3698s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3698s # break; 3698s # case G_TYPE_UINT64: 3698s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3698s # break; 3698s # case G_TYPE_DOUBLE: 3698s # { 3698s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3698s # gdouble da = g_value_get_double (a); 3698s # gdouble db = g_value_get_double (b); 3698s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3698s # } 3698s # break; 3698s # case G_TYPE_STRING: 3698s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3698s # break; 3698s # case G_TYPE_VARIANT: 3698s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3698s # break; 3698s # default: 3698s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3698s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3698s # else 3698s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3698s # break; 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static void 3698s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_DOUBLE ( 3698s # GClosure *closure, 3698s # GValue *return_value, 3698s # unsigned int n_param_values, 3698s # const GValue *param_values, 3698s # void *invocation_hint G_GNUC_UNUSED, 3698s # void *marshal_data) 3698s # { 3698s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectDoubleFunc) 3698s # (void *data1, 3698s # GDBusMethodInvocation *arg_method_invocation, 3698s # gdouble arg_arg_d, 3698s # void *data2); 3698s # _GDbusCodegenMarshalBoolean_ObjectDoubleFunc callback; 3698s # GCClosure *cc = (GCClosure*) closure; 3698s # void *data1, *data2; 3698s # gboolean v_return; 3698s # 3698s # g_return_if_fail (return_value != NULL); 3698s # g_return_if_fail (n_param_values == 3); 3698s # 3698s # if (G_CCLOSURE_SWAP_DATA (closure)) 3698s # { 3698s # data1 = closure->data; 3698s # data2 = g_value_peek_pointer (param_values + 0); 3698s # } 3698s # else 3698s # { 3698s # data1 = g_value_peek_pointer (param_values + 0); 3698s # data2 = closure->data; 3698s # } 3698s # 3698s # callback = (_GDbusCodegenMarshalBoolean_ObjectDoubleFunc) 3698s # (marshal_data ? marshal_data : cc->callback); 3698s # 3698s # v_return = 3698s # callback (data1, 3698s # g_marshal_value_peek_object (param_values + 1), 3698s # g_marshal_value_peek_double (param_values + 2), 3698s # data2); 3698s # 3698s # g_value_set_boolean (return_value, v_return); 3698s # } 3698s # 3698s # /* ------------------------------------------------------------------------ 3698s # * Code for interface org.project.UsefulInterface 3698s # * ------------------------------------------------------------------------ 3698s # */ 3698s # 3698s # /** 3698s # * SECTION:OrgProjectUsefulInterface 3698s # * @title: OrgProjectUsefulInterface 3698s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 3698s # * 3698s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface in C. 3698s # */ 3698s # 3698s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 3698s # 3698s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_arg_d = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "arg_d", 3698s # (gchar *) "d", 3698s # NULL 3698s # }, 3698s # FALSE 3698s # }; 3698s # 3698s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_pointers[] = 3698s # { 3698s # &_org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_arg_d.parent_struct, 3698s # NULL 3698s # }; 3698s # 3698s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_d = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "SingleArgMethodD", 3698s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_pointers, 3698s # NULL, 3698s # NULL 3698s # }, 3698s # "handle-single-arg-method-d", 3698s # FALSE 3698s # }; 3698s # 3698s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 3698s # { 3698s # &_org_project_useful_interface_method_info_single_arg_method_d.parent_struct, 3698s # NULL 3698s # }; 3698s # 3698s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "org.project.UsefulInterface", 3698s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 3698s # NULL, 3698s # NULL, 3698s # NULL 3698s # }, 3698s # "org-project-useful-interface", 3698s # }; 3698s # 3698s # 3698s # /** 3698s # * org_project_useful_interface_interface_info: 3698s # * 3698s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface. 3698s # * 3698s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3698s # */ 3698s # GDBusInterfaceInfo * 3698s # org_project_useful_interface_interface_info (void) 3698s # { 3698s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_override_properties: 3698s # * @klass: The class structure for a #GObject derived class. 3698s # * @property_id_begin: The property id to assign to the first overridden property. 3698s # * 3698s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 3698s # * The properties are overridden in the order they are defined. 3698s # * 3698s # * Returns: The last property id. 3698s # */ 3698s # guint 3698s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3698s # { 3698s # return property_id_begin - 1; 3698s # } 3698s # 3698s # 3698s # inline static void 3698s # org_project_useful_interface_method_marshal_single_arg_method_d ( 3698s # GClosure *closure, 3698s # GValue *return_value, 3698s # unsigned int n_param_values, 3698s # const GValue *param_values, 3698s # void *invocation_hint, 3698s # void *marshal_data) 3698s # { 3698s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_DOUBLE (closure, 3698s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3698s # } 3698s # 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterface: 3698s # * 3698s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceIface: 3698s # * @parent_iface: The parent interface. 3698s # * @handle_single_arg_method_d: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-d signal. 3698s # * 3698s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # */ 3698s # 3698s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 3698s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 3698s # 3698s # static void 3698s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 3698s # { 3698s # /* GObject signals for incoming D-Bus method calls: */ 3698s # /** 3698s # * OrgProjectUsefulInterface::handle-single-arg-method-d: 3698s # * @object: A #OrgProjectUsefulInterface. 3698s # * @invocation: A #GDBusMethodInvocation. 3698s # * @arg_arg_d: Argument passed by remote caller. 3698s # * 3698s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodD">SingleArgMethodD()</link> D-Bus method. 3698s # * 3698s # * 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. 3698s # * 3698s # * 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. 3698s # */ 3698s # g_signal_new ("handle-single-arg-method-d", 3698s # G_TYPE_FROM_INTERFACE (iface), 3698s # G_SIGNAL_RUN_LAST, 3698s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_d), 3698s # g_signal_accumulator_true_handled, 3698s # NULL, 3698s # org_project_useful_interface_method_marshal_single_arg_method_d, 3698s # G_TYPE_BOOLEAN, 3698s # 2, 3698s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_DOUBLE); 3698s # 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_d: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @arg_arg_d: Argument to pass with the method invocation. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodD">SingleArgMethodD()</link> D-Bus method on @proxy. 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_call_single_arg_method_d_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_call_single_arg_method_d_sync() for the synchronous, blocking version of this method. 3698s # */ 3698s # void 3698s # org_project_useful_interface_call_single_arg_method_d ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # gdouble arg_arg_d, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3698s # "SingleArgMethodD", 3698s # g_variant_new ("(d)", 3698s # arg_arg_d), 3698s # G_DBUS_CALL_FLAGS_NONE, 3698s # -1, 3698s # cancellable, 3698s # callback, 3698s # user_data); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_d_finish: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_d(). 3698s # * @error: Return location for error or %NULL. 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_d(). 3698s # * 3698s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3698s # */ 3698s # gboolean 3698s # org_project_useful_interface_call_single_arg_method_d_finish ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GVariant *_ret; 3698s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3698s # if (_ret == NULL) 3698s # goto _out; 3698s # g_variant_get (_ret, 3698s # "()"); 3698s # g_variant_unref (_ret); 3698s # _out: 3698s # return _ret != NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_d_sync: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @arg_arg_d: Argument to pass with the method invocation. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL. 3698s # * 3698s # * Synchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodD">SingleArgMethodD()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_call_single_arg_method_d() for the asynchronous version of this method. 3698s # * 3698s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3698s # */ 3698s # gboolean 3698s # org_project_useful_interface_call_single_arg_method_d_sync ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # gdouble arg_arg_d, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GVariant *_ret; 3698s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3698s # "SingleArgMethodD", 3698s # g_variant_new ("(d)", 3698s # arg_arg_d), 3698s # G_DBUS_CALL_FLAGS_NONE, 3698s # -1, 3698s # cancellable, 3698s # error); 3698s # if (_ret == NULL) 3698s # goto _out; 3698s # g_variant_get (_ret, 3698s # "()"); 3698s # g_variant_unref (_ret); 3698s # _out: 3698s # return _ret != NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_complete_single_arg_method_d: 3698s # * @object: A #OrgProjectUsefulInterface. 3698s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3698s # * 3698s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodD">SingleArgMethodD()</link> 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. 3698s # * 3698s # * This method will free @invocation, you cannot use it afterwards. 3698s # */ 3698s # void 3698s # org_project_useful_interface_complete_single_arg_method_d ( 3698s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 3698s # GDBusMethodInvocation *invocation) 3698s # { 3698s # g_dbus_method_invocation_return_value (invocation, 3698s # g_variant_new ("()")); 3698s # } 3698s # 3698s # /* ------------------------------------------------------------------------ */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceProxy: 3698s # * 3698s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceProxyClass: 3698s # * @parent_class: The parent class. 3698s # * 3698s # * Class structure for #OrgProjectUsefulInterfaceProxy. 3698s # */ 3698s # 3698s # struct _OrgProjectUsefulInterfaceProxyPrivate 3698s # { 3698s # GData *qdata; 3698s # }; 3698s # 3698s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3698s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3698s # 3698s # #else 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3698s # 3698s # #endif 3698s # static void 3698s # org_project_useful_interface_proxy_finalize (GObject *object) 3698s # { 3698s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 3698s # g_datalist_clear (&proxy->priv->qdata); 3698s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3698s # guint prop_id G_GNUC_UNUSED, 3698s # GValue *value G_GNUC_UNUSED, 3698s # GParamSpec *pspec G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3698s # guint prop_id G_GNUC_UNUSED, 3698s # const GValue *value G_GNUC_UNUSED, 3698s # GParamSpec *pspec G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 3698s # const gchar *sender_name G_GNUC_UNUSED, 3698s # const gchar *signal_name, 3698s # GVariant *parameters) 3698s # { 3698s # _ExtendedGDBusSignalInfo *info; 3698s # GVariantIter iter; 3698s # GVariant *child; 3698s # GValue *paramv; 3698s # gsize num_params; 3698s # gsize n; 3698s # guint signal_id; 3698s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 3698s # if (info == NULL) 3698s # return; 3698s # num_params = g_variant_n_children (parameters); 3698s # paramv = g_new0 (GValue, num_params + 1); 3698s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_set_object (¶mv[0], proxy); 3698s # g_variant_iter_init (&iter, parameters); 3698s # n = 1; 3698s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3698s # { 3698s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3698s # if (arg_info->use_gvariant) 3698s # { 3698s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3698s # g_value_set_variant (¶mv[n], child); 3698s # n++; 3698s # } 3698s # else 3698s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3698s # g_variant_unref (child); 3698s # } 3698s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_signal_emitv (paramv, signal_id, 0, NULL); 3698s # for (n = 0; n < num_params + 1; n++) 3698s # g_value_unset (¶mv[n]); 3698s # g_free (paramv); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 3698s # GVariant *changed_properties, 3698s # const gchar *const *invalidated_properties) 3698s # { 3698s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 3698s # guint n; 3698s # const gchar *key; 3698s # GVariantIter *iter; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # g_variant_get (changed_properties, "a{sv}", &iter); 3698s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3698s # { 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 3698s # g_datalist_remove_data (&proxy->priv->qdata, key); 3698s # if (info != NULL) 3698s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3698s # } 3698s # g_variant_iter_free (iter); 3698s # for (n = 0; invalidated_properties[n] != NULL; n++) 3698s # { 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 3698s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3698s # if (info != NULL) 3698s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3698s # } 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 3698s # { 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 3698s # #else 3698s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 3698s # #endif 3698s # 3698s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 3698s # { 3698s # GObjectClass *gobject_class; 3698s # GDBusProxyClass *proxy_class; 3698s # 3698s # gobject_class = G_OBJECT_CLASS (klass); 3698s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 3698s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 3698s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 3698s # 3698s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3698s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 3698s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3698s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 3698s # #endif 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new: 3698s # * @connection: A #GDBusConnection. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new() for more details. 3698s # * 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3698s # */ 3698s # void 3698s # org_project_useful_interface_proxy_new ( 3698s # GDBusConnection *connection, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_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); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_finish: 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_finish ( 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GObject *ret; 3698s # GObject *source_object; 3698s # source_object = g_async_result_get_source_object (res); 3698s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3698s # g_object_unref (source_object); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_sync: 3698s # * @connection: A #GDBusConnection. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new_sync() for more details. 3698s # * 3698s # * The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_sync ( 3698s # GDBusConnection *connection, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GInitable *ret; 3698s # 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); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus: 3698s # * @bus_type: A #GBusType. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: A bus name (well-known or unique). 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3698s # * 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3698s # */ 3698s # void 3698s # org_project_useful_interface_proxy_new_for_bus ( 3698s # GBusType bus_type, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_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); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus_finish: 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_for_bus_finish ( 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GObject *ret; 3698s # GObject *source_object; 3698s # source_object = g_async_result_get_source_object (res); 3698s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3698s # g_object_unref (source_object); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus_sync: 3698s # * @bus_type: A #GBusType. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: A bus name (well-known or unique). 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3698s # * 3698s # * The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_for_bus_sync ( 3698s # GBusType bus_type, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GInitable *ret; 3698s # 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); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # 3698s # /* ------------------------------------------------------------------------ */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceSkeleton: 3698s # * 3698s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceSkeletonClass: 3698s # * @parent_class: The parent class. 3698s # * 3698s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 3698s # */ 3698s # 3698s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 3698s # { 3698s # GValue *properties; 3698s # GList *changed_properties; 3698s # GSource *changed_properties_idle_source; 3698s # GMainContext *context; 3698s # GMutex lock; 3698s # }; 3698s # 3698s # static void 3698s # _org_project_useful_interface_skeleton_handle_method_call ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name, 3698s # const gchar *method_name, 3698s # GVariant *parameters, 3698s # GDBusMethodInvocation *invocation, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # _ExtendedGDBusMethodInfo *info; 3698s # GVariantIter iter; 3698s # GVariant *child; 3698s # GValue *paramv; 3698s # gsize num_params; 3698s # guint num_extra; 3698s # gsize n; 3698s # guint signal_id; 3698s # GValue return_value = G_VALUE_INIT; 3698s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3698s # g_assert (info != NULL); 3698s # num_params = g_variant_n_children (parameters); 3698s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3698s # n = 0; 3698s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_set_object (¶mv[n++], skeleton); 3698s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3698s # g_value_set_object (¶mv[n++], invocation); 3698s # if (info->pass_fdlist) 3698s # { 3698s # #ifdef G_OS_UNIX 3698s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3698s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3698s # #else 3698s # g_assert_not_reached (); 3698s # #endif 3698s # } 3698s # g_variant_iter_init (&iter, parameters); 3698s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3698s # { 3698s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3698s # if (arg_info->use_gvariant) 3698s # { 3698s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3698s # g_value_set_variant (¶mv[n], child); 3698s # n++; 3698s # } 3698s # else 3698s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3698s # g_variant_unref (child); 3698s # } 3698s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3698s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3698s # if (!g_value_get_boolean (&return_value)) 3698s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3698s # g_value_unset (&return_value); 3698s # for (n = 0; n < num_params + num_extra; n++) 3698s # g_value_unset (¶mv[n]); 3698s # g_free (paramv); 3698s # } 3698s # 3698s # static GVariant * 3698s # _org_project_useful_interface_skeleton_handle_get_property ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name G_GNUC_UNUSED, 3698s # const gchar *property_name, 3698s # GError **error, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # GValue value = G_VALUE_INIT; 3698s # GParamSpec *pspec; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # GVariant *ret; 3698s # ret = NULL; 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3698s # g_assert (info != NULL); 3698s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3698s # if (pspec == NULL) 3698s # { 3698s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3698s # } 3698s # else 3698s # { 3698s # g_value_init (&value, pspec->value_type); 3698s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3698s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3698s # g_value_unset (&value); 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static gboolean 3698s # _org_project_useful_interface_skeleton_handle_set_property ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name G_GNUC_UNUSED, 3698s # const gchar *property_name, 3698s # GVariant *variant, 3698s # GError **error, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # GValue value = G_VALUE_INIT; 3698s # GParamSpec *pspec; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # gboolean ret; 3698s # ret = FALSE; 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3698s # g_assert (info != NULL); 3698s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3698s # if (pspec == NULL) 3698s # { 3698s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3698s # } 3698s # else 3698s # { 3698s # if (info->use_gvariant) 3698s # g_value_set_variant (&value, variant); 3698s # else 3698s # g_dbus_gvariant_to_gvalue (variant, &value); 3698s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3698s # g_value_unset (&value); 3698s # ret = TRUE; 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 3698s # { 3698s # _org_project_useful_interface_skeleton_handle_method_call, 3698s # _org_project_useful_interface_skeleton_handle_get_property, 3698s # _org_project_useful_interface_skeleton_handle_set_property, 3698s # {NULL} 3698s # }; 3698s # 3698s # static GDBusInterfaceInfo * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3698s # { 3698s # return org_project_useful_interface_interface_info (); 3698s # } 3698s # 3698s # static GDBusInterfaceVTable * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3698s # { 3698s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 3698s # } 3698s # 3698s # static GVariant * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 3698s # 3698s # GVariantBuilder builder; 3698s # guint n; 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3698s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3698s # #else 3698s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3698s # #endif 3698s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 3698s # goto out; 3698s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 3698s # { 3698s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 3698s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3698s # { 3698s # GVariant *value; 3698s # 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); 3698s # if (value != NULL) 3698s # { 3698s # g_variant_take_ref (value); 3698s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3698s # g_variant_unref (value); 3698s # } 3698s # } 3698s # } 3698s # out: 3698s # return g_variant_builder_end (&builder); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3698s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3698s # 3698s # #else 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3698s # 3698s # #endif 3698s # static void 3698s # org_project_useful_interface_skeleton_finalize (GObject *object) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 3698s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3698s # if (skeleton->priv->changed_properties_idle_source != NULL) 3698s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3698s # g_main_context_unref (skeleton->priv->context); 3698s # g_mutex_clear (&skeleton->priv->lock); 3698s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 3698s # { 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 3698s # #else 3698s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 3698s # #endif 3698s # 3698s # g_mutex_init (&skeleton->priv->lock); 3698s # skeleton->priv->context = g_main_context_ref_thread_default (); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 3698s # { 3698s # GObjectClass *gobject_class; 3698s # GDBusInterfaceSkeletonClass *skeleton_class; 3698s # 3698s # gobject_class = G_OBJECT_CLASS (klass); 3698s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 3698s # 3698s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3698s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 3698s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 3698s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 3698s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3698s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 3698s # #endif 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_skeleton_new: 3698s # * 3698s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_skeleton_new (void) 3698s # { 3698s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 3698s # } 3698s # Error: 3698s # 3698s # /tmp/tmpj0kzs0gk/tmp2d6lb77p.xml: 3698s # <node> 3698s # <interface name="org.project.UsefulInterface"> 3698s # <method name="SingleArgMethodS"> 3698s # <arg name="arg_s" type="s"/> 3698s # </method> 3698s # </interface> 3698s # </node> 3698s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpj0kzs0gk/tmp2d6lb77p.xml', '--output', '-', '--body'] 3698s # Return code: 0 3698s # Output: 3698s # /* 3698s # * This file is generated by gdbus-codegen, do not modify it. 3698s # * 3698s # * The license of this code is the same as for the D-Bus interface description 3698s # * it was derived from. Note that it links to GLib, so must comply with the 3698s # * LGPL linking clauses. 3698s # */ 3698s # 3698s # #ifdef HAVE_CONFIG_H 3698s # # include "config.h" 3698s # #endif 3698s # 3698s # #include <string.h> 3698s # #ifdef G_OS_UNIX 3698s # # include <gio/gunixfdlist.h> 3698s # #endif 3698s # 3698s # #ifdef G_ENABLE_DEBUG 3698s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3698s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3698s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3698s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3698s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3698s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3698s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3698s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3698s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3698s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3698s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3698s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3698s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3698s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3698s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3698s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3698s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3698s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3698s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3698s # #else /* !G_ENABLE_DEBUG */ 3698s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3698s # * Do not access GValues directly in your code. Instead, use the 3698s # * g_value_get_*() functions 3698s # */ 3698s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3698s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3698s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3698s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3698s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3698s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3698s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3698s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3698s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3698s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3698s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3698s # #endif /* !G_ENABLE_DEBUG */ 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusArgInfo parent_struct; 3698s # gboolean use_gvariant; 3698s # } _ExtendedGDBusArgInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusMethodInfo parent_struct; 3698s # const gchar *signal_name; 3698s # gboolean pass_fdlist; 3698s # } _ExtendedGDBusMethodInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusSignalInfo parent_struct; 3698s # const gchar *signal_name; 3698s # } _ExtendedGDBusSignalInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusPropertyInfo parent_struct; 3698s # const gchar *hyphen_name; 3698s # guint use_gvariant : 1; 3698s # guint emits_changed_signal : 1; 3698s # } _ExtendedGDBusPropertyInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusInterfaceInfo parent_struct; 3698s # const gchar *hyphen_name; 3698s # } _ExtendedGDBusInterfaceInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # const _ExtendedGDBusPropertyInfo *info; 3698s # guint prop_id; 3698s # GValue orig_value; /* the value before the change */ 3698s # } ChangedProperty; 3698s # 3698s # static void 3698s # _changed_property_free (ChangedProperty *data) 3698s # { 3698s # g_value_unset (&data->orig_value); 3698s # g_free (data); 3698s # } 3698s # 3698s # static gboolean 3698s # _g_strv_equal0 (gchar **a, gchar **b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # guint n; 3698s # if (a == NULL && b == NULL) 3698s # { 3698s # ret = TRUE; 3698s # goto out; 3698s # } 3698s # if (a == NULL || b == NULL) 3698s # goto out; 3698s # if (g_strv_length (a) != g_strv_length (b)) 3698s # goto out; 3698s # for (n = 0; a[n] != NULL; n++) 3698s # if (g_strcmp0 (a[n], b[n]) != 0) 3698s # goto out; 3698s # ret = TRUE; 3698s # out: 3698s # return ret; 3698s # } 3698s # 3698s # static gboolean 3698s # _g_variant_equal0 (GVariant *a, GVariant *b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # if (a == NULL && b == NULL) 3698s # { 3698s # ret = TRUE; 3698s # goto out; 3698s # } 3698s # if (a == NULL || b == NULL) 3698s # goto out; 3698s # ret = g_variant_equal (a, b); 3698s # out: 3698s # return ret; 3698s # } 3698s # 3698s # G_GNUC_UNUSED static gboolean 3698s # _g_value_equal (const GValue *a, const GValue *b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3698s # switch (G_VALUE_TYPE (a)) 3698s # { 3698s # case G_TYPE_BOOLEAN: 3698s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3698s # break; 3698s # case G_TYPE_UCHAR: 3698s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3698s # break; 3698s # case G_TYPE_INT: 3698s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3698s # break; 3698s # case G_TYPE_UINT: 3698s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3698s # break; 3698s # case G_TYPE_INT64: 3698s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3698s # break; 3698s # case G_TYPE_UINT64: 3698s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3698s # break; 3698s # case G_TYPE_DOUBLE: 3698s # { 3698s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3698s # gdouble da = g_value_get_double (a); 3698s # gdouble db = g_value_get_double (b); 3698s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3698s # } 3698s # break; 3698s # case G_TYPE_STRING: 3698s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3698s # break; 3698s # case G_TYPE_VARIANT: 3698s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3698s # break; 3698s # default: 3698s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3698s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3698s # else 3698s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3698s # break; 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static void 3698s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 3698s # GClosure *closure, 3698s # GValue *return_value, 3698s # unsigned int n_param_values, 3698s # const GValue *param_values, 3698s # void *invocation_hint G_GNUC_UNUSED, 3698s # void *marshal_data) 3698s # { 3698s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 3698s # (void *data1, 3698s # GDBusMethodInvocation *arg_method_invocation, 3698s # const gchar *arg_arg_s, 3698s # void *data2); 3698s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 3698s # GCClosure *cc = (GCClosure*) closure; 3698s # void *data1, *data2; 3698s # gboolean v_return; 3698s # 3698s # g_return_if_fail (return_value != NULL); 3698s # g_return_if_fail (n_param_values == 3); 3698s # 3698s # if (G_CCLOSURE_SWAP_DATA (closure)) 3698s # { 3698s # data1 = closure->data; 3698s # data2 = g_value_peek_pointer (param_values + 0); 3698s # } 3698s # else 3698s # { 3698s # data1 = g_value_peek_pointer (param_values + 0); 3698s # data2 = closure->data; 3698s # } 3698s # 3698s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 3698s # (marshal_data ? marshal_data : cc->callback); 3698s # 3698s # v_return = 3698s # callback (data1, 3698s # g_marshal_value_peek_object (param_values + 1), 3698s # g_marshal_value_peek_string (param_values + 2), 3698s # data2); 3698s # 3698s # g_value_set_boolean (return_value, v_return); 3698s # } 3698s # 3698s # /* ------------------------------------------------------------------------ 3698s # * Code for interface org.project.UsefulInterface 3698s # * ------------------------------------------------------------------------ 3698s # */ 3698s # 3698s # /** 3698s # * SECTION:OrgProjectUsefulInterface 3698s # * @title: OrgProjectUsefulInterface 3698s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 3698s # * 3698s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface in C. 3698s # */ 3698s # 3698s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 3698s # 3698s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_arg_s = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "arg_s", 3698s # (gchar *) "s", 3698s # NULL 3698s # }, 3698s # FALSE 3698s # }; 3698s # 3698s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_pointers[] = 3698s # { 3698s # &_org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_arg_s.parent_struct, 3698s # NULL 3698s # }; 3698s # 3698s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_s = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "SingleArgMethodS", 3698s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_pointers, 3698s # NULL, 3698s # NULL 3698s # }, 3698s # "handle-single-arg-method-s", 3698s # FALSE 3698s # }; 3698s # 3698s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 3698s # { 3698s # &_org_project_useful_interface_method_info_single_arg_method_s.parent_struct, 3698s # NULL 3698s # }; 3698s # 3698s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "org.project.UsefulInterface", 3698s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 3698s # NULL, 3698s # NULL, 3698s # NULL 3698s # }, 3698s # "org-project-useful-interface", 3698s # }; 3698s # 3698s # 3698s # /** 3698s # * org_project_useful_interface_interface_info: 3698s # * 3698s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface. 3698s # * 3698s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3698s # */ 3698s # GDBusInterfaceInfo * 3698s # org_project_useful_interface_interface_info (void) 3698s # { 3698s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_override_properties: 3698s # * @klass: The class structure for a #GObject derived class. 3698s # * @property_id_begin: The property id to assign to the first overridden property. 3698s # * 3698s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 3698s # * The properties are overridden in the order they are defined. 3698s # * 3698s # * Returns: The last property id. 3698s # */ 3698s # guint 3698s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3698s # { 3698s # return property_id_begin - 1; 3698s # } 3698s # 3698s # 3698s # inline static void 3698s # org_project_useful_interface_method_marshal_single_arg_method_s ( 3698s # GClosure *closure, 3698s # GValue *return_value, 3698s # unsigned int n_param_values, 3698s # const GValue *param_values, 3698s # void *invocation_hint, 3698s # void *marshal_data) 3698s # { 3698s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 3698s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3698s # } 3698s # 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterface: 3698s # * 3698s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceIface: 3698s # * @parent_iface: The parent interface. 3698s # * @handle_single_arg_method_s: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-s signal. 3698s # * 3698s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # */ 3698s # 3698s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 3698s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 3698s # 3698s # static void 3698s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 3698s # { 3698s # /* GObject signals for incoming D-Bus method calls: */ 3698s # /** 3698s # * OrgProjectUsefulInterface::handle-single-arg-method-s: 3698s # * @object: A #OrgProjectUsefulInterface. 3698s # * @invocation: A #GDBusMethodInvocation. 3698s # * @arg_arg_s: Argument passed by remote caller. 3698s # * 3698s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodS">SingleArgMethodS()</link> D-Bus method. 3698s # * 3698s # * 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. 3698s # * 3698s # * 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. 3698s # */ 3698s # g_signal_new ("handle-single-arg-method-s", 3698s # G_TYPE_FROM_INTERFACE (iface), 3698s # G_SIGNAL_RUN_LAST, 3698s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_s), 3698s # g_signal_accumulator_true_handled, 3698s # NULL, 3698s # org_project_useful_interface_method_marshal_single_arg_method_s, 3698s # G_TYPE_BOOLEAN, 3698s # 2, 3698s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 3698s # 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_s: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @arg_arg_s: Argument to pass with the method invocation. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodS">SingleArgMethodS()</link> D-Bus method on @proxy. 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_call_single_arg_method_s_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_call_single_arg_method_s_sync() for the synchronous, blocking version of this method. 3698s # */ 3698s # void 3698s # org_project_useful_interface_call_single_arg_method_s ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # const gchar *arg_arg_s, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3698s # "SingleArgMethodS", 3698s # g_variant_new ("(s)", 3698s # arg_arg_s), 3698s # G_DBUS_CALL_FLAGS_NONE, 3698s # -1, 3698s # cancellable, 3698s # callback, 3698s # user_data); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_s_finish: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_s(). 3698s # * @error: Return location for error or %NULL. 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_s(). 3698s # * 3698s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3698s # */ 3698s # gboolean 3698s # org_project_useful_interface_call_single_arg_method_s_finish ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GVariant *_ret; 3698s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3698s # if (_ret == NULL) 3698s # goto _out; 3698s # g_variant_get (_ret, 3698s # "()"); 3698s # g_variant_unref (_ret); 3698s # _out: 3698s # return _ret != NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_s_sync: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @arg_arg_s: Argument to pass with the method invocation. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL. 3698s # * 3698s # * Synchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodS">SingleArgMethodS()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_call_single_arg_method_s() for the asynchronous version of this method. 3698s # * 3698s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3698s # */ 3698s # gboolean 3698s # org_project_useful_interface_call_single_arg_method_s_sync ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # const gchar *arg_arg_s, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GVariant *_ret; 3698s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3698s # "SingleArgMethodS", 3698s # g_variant_new ("(s)", 3698s # arg_arg_s), 3698s # G_DBUS_CALL_FLAGS_NONE, 3698s # -1, 3698s # cancellable, 3698s # error); 3698s # if (_ret == NULL) 3698s # goto _out; 3698s # g_variant_get (_ret, 3698s # "()"); 3698s # g_variant_unref (_ret); 3698s # _out: 3698s # return _ret != NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_complete_single_arg_method_s: 3698s # * @object: A #OrgProjectUsefulInterface. 3698s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3698s # * 3698s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodS">SingleArgMethodS()</link> 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. 3698s # * 3698s # * This method will free @invocation, you cannot use it afterwards. 3698s # */ 3698s # void 3698s # org_project_useful_interface_complete_single_arg_method_s ( 3698s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 3698s # GDBusMethodInvocation *invocation) 3698s # { 3698s # g_dbus_method_invocation_return_value (invocation, 3698s # g_variant_new ("()")); 3698s # } 3698s # 3698s # /* ------------------------------------------------------------------------ */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceProxy: 3698s # * 3698s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceProxyClass: 3698s # * @parent_class: The parent class. 3698s # * 3698s # * Class structure for #OrgProjectUsefulInterfaceProxy. 3698s # */ 3698s # 3698s # struct _OrgProjectUsefulInterfaceProxyPrivate 3698s # { 3698s # GData *qdata; 3698s # }; 3698s # 3698s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3698s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3698s # 3698s # #else 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3698s # 3698s # #endif 3698s # static void 3698s # org_project_useful_interface_proxy_finalize (GObject *object) 3698s # { 3698s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 3698s # g_datalist_clear (&proxy->priv->qdata); 3698s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3698s # guint prop_id G_GNUC_UNUSED, 3698s # GValue *value G_GNUC_UNUSED, 3698s # GParamSpec *pspec G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3698s # guint prop_id G_GNUC_UNUSED, 3698s # const GValue *value G_GNUC_UNUSED, 3698s # GParamSpec *pspec G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 3698s # const gchar *sender_name G_GNUC_UNUSED, 3698s # const gchar *signal_name, 3698s # GVariant *parameters) 3698s # { 3698s # _ExtendedGDBusSignalInfo *info; 3698s # GVariantIter iter; 3698s # GVariant *child; 3698s # GValue *paramv; 3698s # gsize num_params; 3698s # gsize n; 3698s # guint signal_id; 3698s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 3698s # if (info == NULL) 3698s # return; 3698s # num_params = g_variant_n_children (parameters); 3698s # paramv = g_new0 (GValue, num_params + 1); 3698s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_set_object (¶mv[0], proxy); 3698s # g_variant_iter_init (&iter, parameters); 3698s # n = 1; 3698s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3698s # { 3698s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3698s # if (arg_info->use_gvariant) 3698s # { 3698s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3698s # g_value_set_variant (¶mv[n], child); 3698s # n++; 3698s # } 3698s # else 3698s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3698s # g_variant_unref (child); 3698s # } 3698s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_signal_emitv (paramv, signal_id, 0, NULL); 3698s # for (n = 0; n < num_params + 1; n++) 3698s # g_value_unset (¶mv[n]); 3698s # g_free (paramv); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 3698s # GVariant *changed_properties, 3698s # const gchar *const *invalidated_properties) 3698s # { 3698s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 3698s # guint n; 3698s # const gchar *key; 3698s # GVariantIter *iter; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # g_variant_get (changed_properties, "a{sv}", &iter); 3698s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3698s # { 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 3698s # g_datalist_remove_data (&proxy->priv->qdata, key); 3698s # if (info != NULL) 3698s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3698s # } 3698s # g_variant_iter_free (iter); 3698s # for (n = 0; invalidated_properties[n] != NULL; n++) 3698s # { 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 3698s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3698s # if (info != NULL) 3698s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3698s # } 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 3698s # { 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 3698s # #else 3698s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 3698s # #endif 3698s # 3698s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 3698s # { 3698s # GObjectClass *gobject_class; 3698s # GDBusProxyClass *proxy_class; 3698s # 3698s # gobject_class = G_OBJECT_CLASS (klass); 3698s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 3698s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 3698s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 3698s # 3698s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3698s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 3698s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3698s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 3698s # #endif 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new: 3698s # * @connection: A #GDBusConnection. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new() for more details. 3698s # * 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3698s # */ 3698s # void 3698s # org_project_useful_interface_proxy_new ( 3698s # GDBusConnection *connection, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_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); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_finish: 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_finish ( 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GObject *ret; 3698s # GObject *source_object; 3698s # source_object = g_async_result_get_source_object (res); 3698s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3698s # g_object_unref (source_object); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_sync: 3698s # * @connection: A #GDBusConnection. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new_sync() for more details. 3698s # * 3698s # * The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_sync ( 3698s # GDBusConnection *connection, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GInitable *ret; 3698s # 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); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus: 3698s # * @bus_type: A #GBusType. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: A bus name (well-known or unique). 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3698s # * 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3698s # */ 3698s # void 3698s # org_project_useful_interface_proxy_new_for_bus ( 3698s # GBusType bus_type, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_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); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus_finish: 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_for_bus_finish ( 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GObject *ret; 3698s # GObject *source_object; 3698s # source_object = g_async_result_get_source_object (res); 3698s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3698s # g_object_unref (source_object); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus_sync: 3698s # * @bus_type: A #GBusType. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: A bus name (well-known or unique). 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3698s # * 3698s # * The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_for_bus_sync ( 3698s # GBusType bus_type, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GInitable *ret; 3698s # 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); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # 3698s # /* ------------------------------------------------------------------------ */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceSkeleton: 3698s # * 3698s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceSkeletonClass: 3698s # * @parent_class: The parent class. 3698s # * 3698s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 3698s # */ 3698s # 3698s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 3698s # { 3698s # GValue *properties; 3698s # GList *changed_properties; 3698s # GSource *changed_properties_idle_source; 3698s # GMainContext *context; 3698s # GMutex lock; 3698s # }; 3698s # 3698s # static void 3698s # _org_project_useful_interface_skeleton_handle_method_call ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name, 3698s # const gchar *method_name, 3698s # GVariant *parameters, 3698s # GDBusMethodInvocation *invocation, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # _ExtendedGDBusMethodInfo *info; 3698s # GVariantIter iter; 3698s # GVariant *child; 3698s # GValue *paramv; 3698s # gsize num_params; 3698s # guint num_extra; 3698s # gsize n; 3698s # guint signal_id; 3698s # GValue return_value = G_VALUE_INIT; 3698s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3698s # g_assert (info != NULL); 3698s # num_params = g_variant_n_children (parameters); 3698s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3698s # n = 0; 3698s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_set_object (¶mv[n++], skeleton); 3698s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3698s # g_value_set_object (¶mv[n++], invocation); 3698s # if (info->pass_fdlist) 3698s # { 3698s # #ifdef G_OS_UNIX 3698s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3698s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3698s # #else 3698s # g_assert_not_reached (); 3698s # #endif 3698s # } 3698s # g_variant_iter_init (&iter, parameters); 3698s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3698s # { 3698s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3698s # if (arg_info->use_gvariant) 3698s # { 3698s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3698s # g_value_set_variant (¶mv[n], child); 3698s # n++; 3698s # } 3698s # else 3698s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3698s # g_variant_unref (child); 3698s # } 3698s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3698s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3698s # if (!g_value_get_boolean (&return_value)) 3698s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3698s # g_value_unset (&return_value); 3698s # for (n = 0; n < num_params + num_extra; n++) 3698s # g_value_unset (¶mv[n]); 3698s # g_free (paramv); 3698s # } 3698s # 3698s # static GVariant * 3698s # _org_project_useful_interface_skeleton_handle_get_property ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name G_GNUC_UNUSED, 3698s # const gchar *property_name, 3698s # GError **error, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # GValue value = G_VALUE_INIT; 3698s # GParamSpec *pspec; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # GVariant *ret; 3698s # ret = NULL; 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3698s # g_assert (info != NULL); 3698s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3698s # if (pspec == NULL) 3698s # { 3698s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3698s # } 3698s # else 3698s # { 3698s # g_value_init (&value, pspec->value_type); 3698s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3698s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3698s # g_value_unset (&value); 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static gboolean 3698s # _org_project_useful_interface_skeleton_handle_set_property ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name G_GNUC_UNUSED, 3698s # const gchar *property_name, 3698s # GVariant *variant, 3698s # GError **error, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # GValue value = G_VALUE_INIT; 3698s # GParamSpec *pspec; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # gboolean ret; 3698s # ret = FALSE; 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3698s # g_assert (info != NULL); 3698s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3698s # if (pspec == NULL) 3698s # { 3698s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3698s # } 3698s # else 3698s # { 3698s # if (info->use_gvariant) 3698s # g_value_set_variant (&value, variant); 3698s # else 3698s # g_dbus_gvariant_to_gvalue (variant, &value); 3698s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3698s # g_value_unset (&value); 3698s # ret = TRUE; 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 3698s # { 3698s # _org_project_useful_interface_skeleton_handle_method_call, 3698s # _org_project_useful_interface_skeleton_handle_get_property, 3698s # _org_project_useful_interface_skeleton_handle_set_property, 3698s # {NULL} 3698s # }; 3698s # 3698s # static GDBusInterfaceInfo * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3698s # { 3698s # return org_project_useful_interface_interface_info (); 3698s # } 3698s # 3698s # static GDBusInterfaceVTable * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3698s # { 3698s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 3698s # } 3698s # 3698s # static GVariant * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 3698s # 3698s # GVariantBuilder builder; 3698s # guint n; 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3698s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3698s # #else 3698s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3698s # #endif 3698s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 3698s # goto out; 3698s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 3698s # { 3698s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 3698s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3698s # { 3698s # GVariant *value; 3698s # 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); 3698s # if (value != NULL) 3698s # { 3698s # g_variant_take_ref (value); 3698s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3698s # g_variant_unref (value); 3698s # } 3698s # } 3698s # } 3698s # out: 3698s # return g_variant_builder_end (&builder); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3698s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3698s # 3698s # #else 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3698s # 3698s # #endif 3698s # static void 3698s # org_project_useful_interface_skeleton_finalize (GObject *object) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 3698s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3698s # if (skeleton->priv->changed_properties_idle_source != NULL) 3698s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3698s # g_main_context_unref (skeleton->priv->context); 3698s # g_mutex_clear (&skeleton->priv->lock); 3698s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 3698s # { 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 3698s # #else 3698s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 3698s # #endif 3698s # 3698s # g_mutex_init (&skeleton->priv->lock); 3698s # skeleton->priv->context = g_main_context_ref_thread_default (); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 3698s # { 3698s # GObjectClass *gobject_class; 3698s # GDBusInterfaceSkeletonClass *skeleton_class; 3698s # 3698s # gobject_class = G_OBJECT_CLASS (klass); 3698s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 3698s # 3698s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3698s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 3698s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 3698s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 3698s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3698s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 3698s # #endif 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_skeleton_new: 3698s # * 3698s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_skeleton_new (void) 3698s # { 3698s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 3698s # } 3698s # Error: 3698s # 3698s # /tmp/tmpj0kzs0gk/tmpf3ebm_ga.xml: 3698s # <node> 3698s # <interface name="org.project.UsefulInterface"> 3698s # <method name="SingleArgMethodO"> 3698s # <arg name="arg_o" type="o"/> 3698s # </method> 3698s # </interface> 3698s # </node> 3698s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpj0kzs0gk/tmpf3ebm_ga.xml', '--output', '-', '--body'] 3698s # Return code: 0 3698s # Output: 3698s # /* 3698s # * This file is generated by gdbus-codegen, do not modify it. 3698s # * 3698s # * The license of this code is the same as for the D-Bus interface description 3698s # * it was derived from. Note that it links to GLib, so must comply with the 3698s # * LGPL linking clauses. 3698s # */ 3698s # 3698s # #ifdef HAVE_CONFIG_H 3698s # # include "config.h" 3698s # #endif 3698s # 3698s # #include <string.h> 3698s # #ifdef G_OS_UNIX 3698s # # include <gio/gunixfdlist.h> 3698s # #endif 3698s # 3698s # #ifdef G_ENABLE_DEBUG 3698s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3698s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3698s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3698s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3698s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3698s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3698s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3698s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3698s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3698s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3698s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3698s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3698s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3698s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3698s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3698s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3698s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3698s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3698s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3698s # #else /* !G_ENABLE_DEBUG */ 3698s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3698s # * Do not access GValues directly in your code. Instead, use the 3698s # * g_value_get_*() functions 3698s # */ 3698s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3698s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3698s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3698s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3698s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3698s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3698s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3698s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3698s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3698s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3698s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3698s # #endif /* !G_ENABLE_DEBUG */ 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusArgInfo parent_struct; 3698s # gboolean use_gvariant; 3698s # } _ExtendedGDBusArgInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusMethodInfo parent_struct; 3698s # const gchar *signal_name; 3698s # gboolean pass_fdlist; 3698s # } _ExtendedGDBusMethodInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusSignalInfo parent_struct; 3698s # const gchar *signal_name; 3698s # } _ExtendedGDBusSignalInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusPropertyInfo parent_struct; 3698s # const gchar *hyphen_name; 3698s # guint use_gvariant : 1; 3698s # guint emits_changed_signal : 1; 3698s # } _ExtendedGDBusPropertyInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusInterfaceInfo parent_struct; 3698s # const gchar *hyphen_name; 3698s # } _ExtendedGDBusInterfaceInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # const _ExtendedGDBusPropertyInfo *info; 3698s # guint prop_id; 3698s # GValue orig_value; /* the value before the change */ 3698s # } ChangedProperty; 3698s # 3698s # static void 3698s # _changed_property_free (ChangedProperty *data) 3698s # { 3698s # g_value_unset (&data->orig_value); 3698s # g_free (data); 3698s # } 3698s # 3698s # static gboolean 3698s # _g_strv_equal0 (gchar **a, gchar **b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # guint n; 3698s # if (a == NULL && b == NULL) 3698s # { 3698s # ret = TRUE; 3698s # goto out; 3698s # } 3698s # if (a == NULL || b == NULL) 3698s # goto out; 3698s # if (g_strv_length (a) != g_strv_length (b)) 3698s # goto out; 3698s # for (n = 0; a[n] != NULL; n++) 3698s # if (g_strcmp0 (a[n], b[n]) != 0) 3698s # goto out; 3698s # ret = TRUE; 3698s # out: 3698s # return ret; 3698s # } 3698s # 3698s # static gboolean 3698s # _g_variant_equal0 (GVariant *a, GVariant *b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # if (a == NULL && b == NULL) 3698s # { 3698s # ret = TRUE; 3698s # goto out; 3698s # } 3698s # if (a == NULL || b == NULL) 3698s # goto out; 3698s # ret = g_variant_equal (a, b); 3698s # out: 3698s # return ret; 3698s # } 3698s # 3698s # G_GNUC_UNUSED static gboolean 3698s # _g_value_equal (const GValue *a, const GValue *b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3698s # switch (G_VALUE_TYPE (a)) 3698s # { 3698s # case G_TYPE_BOOLEAN: 3698s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3698s # break; 3698s # case G_TYPE_UCHAR: 3698s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3698s # break; 3698s # case G_TYPE_INT: 3698s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3698s # break; 3698s # case G_TYPE_UINT: 3698s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3698s # break; 3698s # case G_TYPE_INT64: 3698s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3698s # break; 3698s # case G_TYPE_UINT64: 3698s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3698s # break; 3698s # case G_TYPE_DOUBLE: 3698s # { 3698s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3698s # gdouble da = g_value_get_double (a); 3698s # gdouble db = g_value_get_double (b); 3698s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3698s # } 3698s # break; 3698s # case G_TYPE_STRING: 3698s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3698s # break; 3698s # case G_TYPE_VARIANT: 3698s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3698s # break; 3698s # default: 3698s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3698s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3698s # else 3698s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3698s # break; 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static void 3698s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 3698s # GClosure *closure, 3698s # GValue *return_value, 3698s # unsigned int n_param_values, 3698s # const GValue *param_values, 3698s # void *invocation_hint G_GNUC_UNUSED, 3698s # void *marshal_data) 3698s # { 3698s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 3698s # (void *data1, 3698s # GDBusMethodInvocation *arg_method_invocation, 3698s # const gchar *arg_arg_o, 3698s # void *data2); 3698s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 3698s # GCClosure *cc = (GCClosure*) closure; 3698s # void *data1, *data2; 3698s # gboolean v_return; 3698s # 3698s # g_return_if_fail (return_value != NULL); 3698s # g_return_if_fail (n_param_values == 3); 3698s # 3698s # if (G_CCLOSURE_SWAP_DATA (closure)) 3698s # { 3698s # data1 = closure->data; 3698s # data2 = g_value_peek_pointer (param_values + 0); 3698s # } 3698s # else 3698s # { 3698s # data1 = g_value_peek_pointer (param_values + 0); 3698s # data2 = closure->data; 3698s # } 3698s # 3698s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 3698s # (marshal_data ? marshal_data : cc->callback); 3698s # 3698s # v_return = 3698s # callback (data1, 3698s # g_marshal_value_peek_object (param_values + 1), 3698s # g_marshal_value_peek_string (param_values + 2), 3698s # data2); 3698s # 3698s # g_value_set_boolean (return_value, v_return); 3698s # } 3698s # 3698s # /* ------------------------------------------------------------------------ 3698s # * Code for interface org.project.UsefulInterface 3698s # * ------------------------------------------------------------------------ 3698s # */ 3698s # 3698s # /** 3698s # * SECTION:OrgProjectUsefulInterface 3698s # * @title: OrgProjectUsefulInterface 3698s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 3698s # * 3698s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface in C. 3698s # */ 3698s # 3698s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 3698s # 3698s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_arg_o = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "arg_o", 3698s # (gchar *) "o", 3698s # NULL 3698s # }, 3698s # FALSE 3698s # }; 3698s # 3698s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_pointers[] = 3698s # { 3698s # &_org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_arg_o.parent_struct, 3698s # NULL 3698s # }; 3698s # 3698s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_o = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "SingleArgMethodO", 3698s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_pointers, 3698s # NULL, 3698s # NULL 3698s # }, 3698s # "handle-single-arg-method-o", 3698s # FALSE 3698s # }; 3698s # 3698s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 3698s # { 3698s # &_org_project_useful_interface_method_info_single_arg_method_o.parent_struct, 3698s # NULL 3698s # }; 3698s # 3698s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "org.project.UsefulInterface", 3698s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 3698s # NULL, 3698s # NULL, 3698s # NULL 3698s # }, 3698s # "org-project-useful-interface", 3698s # }; 3698s # 3698s # 3698s # /** 3698s # * org_project_useful_interface_interface_info: 3698s # * 3698s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface. 3698s # * 3698s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3698s # */ 3698s # GDBusInterfaceInfo * 3698s # org_project_useful_interface_interface_info (void) 3698s # { 3698s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_override_properties: 3698s # * @klass: The class structure for a #GObject derived class. 3698s # * @property_id_begin: The property id to assign to the first overridden property. 3698s # * 3698s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 3698s # * The properties are overridden in the order they are defined. 3698s # * 3698s # * Returns: The last property id. 3698s # */ 3698s # guint 3698s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3698s # { 3698s # return property_id_begin - 1; 3698s # } 3698s # 3698s # 3698s # inline static void 3698s # org_project_useful_interface_method_marshal_single_arg_method_o ( 3698s # GClosure *closure, 3698s # GValue *return_value, 3698s # unsigned int n_param_values, 3698s # const GValue *param_values, 3698s # void *invocation_hint, 3698s # void *marshal_data) 3698s # { 3698s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 3698s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3698s # } 3698s # 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterface: 3698s # * 3698s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceIface: 3698s # * @parent_iface: The parent interface. 3698s # * @handle_single_arg_method_o: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-o signal. 3698s # * 3698s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # */ 3698s # 3698s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 3698s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 3698s # 3698s # static void 3698s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 3698s # { 3698s # /* GObject signals for incoming D-Bus method calls: */ 3698s # /** 3698s # * OrgProjectUsefulInterface::handle-single-arg-method-o: 3698s # * @object: A #OrgProjectUsefulInterface. 3698s # * @invocation: A #GDBusMethodInvocation. 3698s # * @arg_arg_o: Argument passed by remote caller. 3698s # * 3698s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodO">SingleArgMethodO()</link> D-Bus method. 3698s # * 3698s # * 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. 3698s # * 3698s # * 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. 3698s # */ 3698s # g_signal_new ("handle-single-arg-method-o", 3698s # G_TYPE_FROM_INTERFACE (iface), 3698s # G_SIGNAL_RUN_LAST, 3698s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_o), 3698s # g_signal_accumulator_true_handled, 3698s # NULL, 3698s # org_project_useful_interface_method_marshal_single_arg_method_o, 3698s # G_TYPE_BOOLEAN, 3698s # 2, 3698s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 3698s # 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_o: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @arg_arg_o: Argument to pass with the method invocation. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodO">SingleArgMethodO()</link> D-Bus method on @proxy. 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_call_single_arg_method_o_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_call_single_arg_method_o_sync() for the synchronous, blocking version of this method. 3698s # */ 3698s # void 3698s # org_project_useful_interface_call_single_arg_method_o ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # const gchar *arg_arg_o, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3698s # "SingleArgMethodO", 3698s # g_variant_new ("(o)", 3698s # arg_arg_o), 3698s # G_DBUS_CALL_FLAGS_NONE, 3698s # -1, 3698s # cancellable, 3698s # callback, 3698s # user_data); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_o_finish: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_o(). 3698s # * @error: Return location for error or %NULL. 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_o(). 3698s # * 3698s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3698s # */ 3698s # gboolean 3698s # org_project_useful_interface_call_single_arg_method_o_finish ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GVariant *_ret; 3698s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3698s # if (_ret == NULL) 3698s # goto _out; 3698s # g_variant_get (_ret, 3698s # "()"); 3698s # g_variant_unref (_ret); 3698s # _out: 3698s # return _ret != NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_o_sync: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @arg_arg_o: Argument to pass with the method invocation. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL. 3698s # * 3698s # * Synchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodO">SingleArgMethodO()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_call_single_arg_method_o() for the asynchronous version of this method. 3698s # * 3698s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3698s # */ 3698s # gboolean 3698s # org_project_useful_interface_call_single_arg_method_o_sync ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # const gchar *arg_arg_o, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GVariant *_ret; 3698s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3698s # "SingleArgMethodO", 3698s # g_variant_new ("(o)", 3698s # arg_arg_o), 3698s # G_DBUS_CALL_FLAGS_NONE, 3698s # -1, 3698s # cancellable, 3698s # error); 3698s # if (_ret == NULL) 3698s # goto _out; 3698s # g_variant_get (_ret, 3698s # "()"); 3698s # g_variant_unref (_ret); 3698s # _out: 3698s # return _ret != NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_complete_single_arg_method_o: 3698s # * @object: A #OrgProjectUsefulInterface. 3698s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3698s # * 3698s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodO">SingleArgMethodO()</link> 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. 3698s # * 3698s # * This method will free @invocation, you cannot use it afterwards. 3698s # */ 3698s # void 3698s # org_project_useful_interface_complete_single_arg_method_o ( 3698s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 3698s # GDBusMethodInvocation *invocation) 3698s # { 3698s # g_dbus_method_invocation_return_value (invocation, 3698s # g_variant_new ("()")); 3698s # } 3698s # 3698s # /* ------------------------------------------------------------------------ */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceProxy: 3698s # * 3698s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceProxyClass: 3698s # * @parent_class: The parent class. 3698s # * 3698s # * Class structure for #OrgProjectUsefulInterfaceProxy. 3698s # */ 3698s # 3698s # struct _OrgProjectUsefulInterfaceProxyPrivate 3698s # { 3698s # GData *qdata; 3698s # }; 3698s # 3698s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3698s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3698s # 3698s # #else 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3698s # 3698s # #endif 3698s # static void 3698s # org_project_useful_interface_proxy_finalize (GObject *object) 3698s # { 3698s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 3698s # g_datalist_clear (&proxy->priv->qdata); 3698s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3698s # guint prop_id G_GNUC_UNUSED, 3698s # GValue *value G_GNUC_UNUSED, 3698s # GParamSpec *pspec G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3698s # guint prop_id G_GNUC_UNUSED, 3698s # const GValue *value G_GNUC_UNUSED, 3698s # GParamSpec *pspec G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 3698s # const gchar *sender_name G_GNUC_UNUSED, 3698s # const gchar *signal_name, 3698s # GVariant *parameters) 3698s # { 3698s # _ExtendedGDBusSignalInfo *info; 3698s # GVariantIter iter; 3698s # GVariant *child; 3698s # GValue *paramv; 3698s # gsize num_params; 3698s # gsize n; 3698s # guint signal_id; 3698s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 3698s # if (info == NULL) 3698s # return; 3698s # num_params = g_variant_n_children (parameters); 3698s # paramv = g_new0 (GValue, num_params + 1); 3698s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_set_object (¶mv[0], proxy); 3698s # g_variant_iter_init (&iter, parameters); 3698s # n = 1; 3698s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3698s # { 3698s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3698s # if (arg_info->use_gvariant) 3698s # { 3698s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3698s # g_value_set_variant (¶mv[n], child); 3698s # n++; 3698s # } 3698s # else 3698s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3698s # g_variant_unref (child); 3698s # } 3698s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_signal_emitv (paramv, signal_id, 0, NULL); 3698s # for (n = 0; n < num_params + 1; n++) 3698s # g_value_unset (¶mv[n]); 3698s # g_free (paramv); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 3698s # GVariant *changed_properties, 3698s # const gchar *const *invalidated_properties) 3698s # { 3698s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 3698s # guint n; 3698s # const gchar *key; 3698s # GVariantIter *iter; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # g_variant_get (changed_properties, "a{sv}", &iter); 3698s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3698s # { 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 3698s # g_datalist_remove_data (&proxy->priv->qdata, key); 3698s # if (info != NULL) 3698s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3698s # } 3698s # g_variant_iter_free (iter); 3698s # for (n = 0; invalidated_properties[n] != NULL; n++) 3698s # { 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 3698s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3698s # if (info != NULL) 3698s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3698s # } 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 3698s # { 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 3698s # #else 3698s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 3698s # #endif 3698s # 3698s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 3698s # { 3698s # GObjectClass *gobject_class; 3698s # GDBusProxyClass *proxy_class; 3698s # 3698s # gobject_class = G_OBJECT_CLASS (klass); 3698s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 3698s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 3698s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 3698s # 3698s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3698s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 3698s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3698s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 3698s # #endif 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new: 3698s # * @connection: A #GDBusConnection. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new() for more details. 3698s # * 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3698s # */ 3698s # void 3698s # org_project_useful_interface_proxy_new ( 3698s # GDBusConnection *connection, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_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); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_finish: 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_finish ( 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GObject *ret; 3698s # GObject *source_object; 3698s # source_object = g_async_result_get_source_object (res); 3698s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3698s # g_object_unref (source_object); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_sync: 3698s # * @connection: A #GDBusConnection. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new_sync() for more details. 3698s # * 3698s # * The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_sync ( 3698s # GDBusConnection *connection, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GInitable *ret; 3698s # 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); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus: 3698s # * @bus_type: A #GBusType. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: A bus name (well-known or unique). 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3698s # * 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3698s # */ 3698s # void 3698s # org_project_useful_interface_proxy_new_for_bus ( 3698s # GBusType bus_type, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_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); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus_finish: 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_for_bus_finish ( 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GObject *ret; 3698s # GObject *source_object; 3698s # source_object = g_async_result_get_source_object (res); 3698s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3698s # g_object_unref (source_object); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus_sync: 3698s # * @bus_type: A #GBusType. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: A bus name (well-known or unique). 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3698s # * 3698s # * The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_for_bus_sync ( 3698s # GBusType bus_type, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GInitable *ret; 3698s # 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); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # 3698s # /* ------------------------------------------------------------------------ */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceSkeleton: 3698s # * 3698s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceSkeletonClass: 3698s # * @parent_class: The parent class. 3698s # * 3698s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 3698s # */ 3698s # 3698s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 3698s # { 3698s # GValue *properties; 3698s # GList *changed_properties; 3698s # GSource *changed_properties_idle_source; 3698s # GMainContext *context; 3698s # GMutex lock; 3698s # }; 3698s # 3698s # static void 3698s # _org_project_useful_interface_skeleton_handle_method_call ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name, 3698s # const gchar *method_name, 3698s # GVariant *parameters, 3698s # GDBusMethodInvocation *invocation, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # _ExtendedGDBusMethodInfo *info; 3698s # GVariantIter iter; 3698s # GVariant *child; 3698s # GValue *paramv; 3698s # gsize num_params; 3698s # guint num_extra; 3698s # gsize n; 3698s # guint signal_id; 3698s # GValue return_value = G_VALUE_INIT; 3698s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3698s # g_assert (info != NULL); 3698s # num_params = g_variant_n_children (parameters); 3698s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3698s # n = 0; 3698s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_set_object (¶mv[n++], skeleton); 3698s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3698s # g_value_set_object (¶mv[n++], invocation); 3698s # if (info->pass_fdlist) 3698s # { 3698s # #ifdef G_OS_UNIX 3698s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3698s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3698s # #else 3698s # g_assert_not_reached (); 3698s # #endif 3698s # } 3698s # g_variant_iter_init (&iter, parameters); 3698s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3698s # { 3698s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3698s # if (arg_info->use_gvariant) 3698s # { 3698s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3698s # g_value_set_variant (¶mv[n], child); 3698s # n++; 3698s # } 3698s # else 3698s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3698s # g_variant_unref (child); 3698s # } 3698s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3698s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3698s # if (!g_value_get_boolean (&return_value)) 3698s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3698s # g_value_unset (&return_value); 3698s # for (n = 0; n < num_params + num_extra; n++) 3698s # g_value_unset (¶mv[n]); 3698s # g_free (paramv); 3698s # } 3698s # 3698s # static GVariant * 3698s # _org_project_useful_interface_skeleton_handle_get_property ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name G_GNUC_UNUSED, 3698s # const gchar *property_name, 3698s # GError **error, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # GValue value = G_VALUE_INIT; 3698s # GParamSpec *pspec; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # GVariant *ret; 3698s # ret = NULL; 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3698s # g_assert (info != NULL); 3698s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3698s # if (pspec == NULL) 3698s # { 3698s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3698s # } 3698s # else 3698s # { 3698s # g_value_init (&value, pspec->value_type); 3698s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3698s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3698s # g_value_unset (&value); 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static gboolean 3698s # _org_project_useful_interface_skeleton_handle_set_property ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name G_GNUC_UNUSED, 3698s # const gchar *property_name, 3698s # GVariant *variant, 3698s # GError **error, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # GValue value = G_VALUE_INIT; 3698s # GParamSpec *pspec; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # gboolean ret; 3698s # ret = FALSE; 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3698s # g_assert (info != NULL); 3698s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3698s # if (pspec == NULL) 3698s # { 3698s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3698s # } 3698s # else 3698s # { 3698s # if (info->use_gvariant) 3698s # g_value_set_variant (&value, variant); 3698s # else 3698s # g_dbus_gvariant_to_gvalue (variant, &value); 3698s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3698s # g_value_unset (&value); 3698s # ret = TRUE; 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 3698s # { 3698s # _org_project_useful_interface_skeleton_handle_method_call, 3698s # _org_project_useful_interface_skeleton_handle_get_property, 3698s # _org_project_useful_interface_skeleton_handle_set_property, 3698s # {NULL} 3698s # }; 3698s # 3698s # static GDBusInterfaceInfo * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3698s # { 3698s # return org_project_useful_interface_interface_info (); 3698s # } 3698s # 3698s # static GDBusInterfaceVTable * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3698s # { 3698s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 3698s # } 3698s # 3698s # static GVariant * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 3698s # 3698s # GVariantBuilder builder; 3698s # guint n; 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3698s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3698s # #else 3698s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3698s # #endif 3698s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 3698s # goto out; 3698s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 3698s # { 3698s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 3698s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3698s # { 3698s # GVariant *value; 3698s # 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); 3698s # if (value != NULL) 3698s # { 3698s # g_variant_take_ref (value); 3698s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3698s # g_variant_unref (value); 3698s # } 3698s # } 3698s # } 3698s # out: 3698s # return g_variant_builder_end (&builder); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3698s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3698s # 3698s # #else 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3698s # 3698s # #endif 3698s # static void 3698s # org_project_useful_interface_skeleton_finalize (GObject *object) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 3698s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3698s # if (skeleton->priv->changed_properties_idle_source != NULL) 3698s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3698s # g_main_context_unref (skeleton->priv->context); 3698s # g_mutex_clear (&skeleton->priv->lock); 3698s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 3698s # { 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 3698s # #else 3698s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 3698s # #endif 3698s # 3698s # g_mutex_init (&skeleton->priv->lock); 3698s # skeleton->priv->context = g_main_context_ref_thread_default (); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 3698s # { 3698s # GObjectClass *gobject_class; 3698s # GDBusInterfaceSkeletonClass *skeleton_class; 3698s # 3698s # gobject_class = G_OBJECT_CLASS (klass); 3698s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 3698s # 3698s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3698s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 3698s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 3698s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 3698s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3698s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 3698s # #endif 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_skeleton_new: 3698s # * 3698s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_skeleton_new (void) 3698s # { 3698s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 3698s # } 3698s # Error: 3698s # 3698s # /tmp/tmpj0kzs0gk/tmpqownildh.xml: 3698s # <node> 3698s # <interface name="org.project.UsefulInterface"> 3698s # <method name="SingleArgMethodG"> 3698s # <arg name="arg_g" type="g"/> 3698s # </method> 3698s # </interface> 3698s # </node> 3698s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpj0kzs0gk/tmpqownildh.xml', '--output', '-', '--body'] 3698s # Return code: 0 3698s # Output: 3698s # /* 3698s # * This file is generated by gdbus-codegen, do not modify it. 3698s # * 3698s # * The license of this code is the same as for the D-Bus interface description 3698s # * it was derived from. Note that it links to GLib, so must comply with the 3698s # * LGPL linking clauses. 3698s # */ 3698s # 3698s # #ifdef HAVE_CONFIG_H 3698s # # include "config.h" 3698s # #endif 3698s # 3698s # #include <string.h> 3698s # #ifdef G_OS_UNIX 3698s # # include <gio/gunixfdlist.h> 3698s # #endif 3698s # 3698s # #ifdef G_ENABLE_DEBUG 3698s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3698s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3698s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3698s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3698s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3698s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3698s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3698s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3698s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3698s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3698s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3698s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3698s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3698s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3698s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3698s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3698s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3698s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3698s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3698s # #else /* !G_ENABLE_DEBUG */ 3698s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3698s # * Do not access GValues directly in your code. Instead, use the 3698s # * g_value_get_*() functions 3698s # */ 3698s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3698s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3698s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3698s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3698s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3698s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3698s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3698s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3698s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3698s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3698s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3698s # #endif /* !G_ENABLE_DEBUG */ 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusArgInfo parent_struct; 3698s # gboolean use_gvariant; 3698s # } _ExtendedGDBusArgInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusMethodInfo parent_struct; 3698s # const gchar *signal_name; 3698s # gboolean pass_fdlist; 3698s # } _ExtendedGDBusMethodInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusSignalInfo parent_struct; 3698s # const gchar *signal_name; 3698s # } _ExtendedGDBusSignalInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusPropertyInfo parent_struct; 3698s # const gchar *hyphen_name; 3698s # guint use_gvariant : 1; 3698s # guint emits_changed_signal : 1; 3698s # } _ExtendedGDBusPropertyInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusInterfaceInfo parent_struct; 3698s # const gchar *hyphen_name; 3698s # } _ExtendedGDBusInterfaceInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # const _ExtendedGDBusPropertyInfo *info; 3698s # guint prop_id; 3698s # GValue orig_value; /* the value before the change */ 3698s # } ChangedProperty; 3698s # 3698s # static void 3698s # _changed_property_free (ChangedProperty *data) 3698s # { 3698s # g_value_unset (&data->orig_value); 3698s # g_free (data); 3698s # } 3698s # 3698s # static gboolean 3698s # _g_strv_equal0 (gchar **a, gchar **b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # guint n; 3698s # if (a == NULL && b == NULL) 3698s # { 3698s # ret = TRUE; 3698s # goto out; 3698s # } 3698s # if (a == NULL || b == NULL) 3698s # goto out; 3698s # if (g_strv_length (a) != g_strv_length (b)) 3698s # goto out; 3698s # for (n = 0; a[n] != NULL; n++) 3698s # if (g_strcmp0 (a[n], b[n]) != 0) 3698s # goto out; 3698s # ret = TRUE; 3698s # out: 3698s # return ret; 3698s # } 3698s # 3698s # static gboolean 3698s # _g_variant_equal0 (GVariant *a, GVariant *b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # if (a == NULL && b == NULL) 3698s # { 3698s # ret = TRUE; 3698s # goto out; 3698s # } 3698s # if (a == NULL || b == NULL) 3698s # goto out; 3698s # ret = g_variant_equal (a, b); 3698s # out: 3698s # return ret; 3698s # } 3698s # 3698s # G_GNUC_UNUSED static gboolean 3698s # _g_value_equal (const GValue *a, const GValue *b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3698s # switch (G_VALUE_TYPE (a)) 3698s # { 3698s # case G_TYPE_BOOLEAN: 3698s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3698s # break; 3698s # case G_TYPE_UCHAR: 3698s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3698s # break; 3698s # case G_TYPE_INT: 3698s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3698s # break; 3698s # case G_TYPE_UINT: 3698s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3698s # break; 3698s # case G_TYPE_INT64: 3698s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3698s # break; 3698s # case G_TYPE_UINT64: 3698s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3698s # break; 3698s # case G_TYPE_DOUBLE: 3698s # { 3698s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3698s # gdouble da = g_value_get_double (a); 3698s # gdouble db = g_value_get_double (b); 3698s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3698s # } 3698s # break; 3698s # case G_TYPE_STRING: 3698s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3698s # break; 3698s # case G_TYPE_VARIANT: 3698s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3698s # break; 3698s # default: 3698s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3698s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3698s # else 3698s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3698s # break; 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static void 3698s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 3698s # GClosure *closure, 3698s # GValue *return_value, 3698s # unsigned int n_param_values, 3698s # const GValue *param_values, 3698s # void *invocation_hint G_GNUC_UNUSED, 3698s # void *marshal_data) 3698s # { 3698s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 3698s # (void *data1, 3698s # GDBusMethodInvocation *arg_method_invocation, 3698s # const gchar *arg_arg_g, 3698s # void *data2); 3698s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 3698s # GCClosure *cc = (GCClosure*) closure; 3698s # void *data1, *data2; 3698s # gboolean v_return; 3698s # 3698s # g_return_if_fail (return_value != NULL); 3698s # g_return_if_fail (n_param_values == 3); 3698s # 3698s # if (G_CCLOSURE_SWAP_DATA (closure)) 3698s # { 3698s # data1 = closure->data; 3698s # data2 = g_value_peek_pointer (param_values + 0); 3698s # } 3698s # else 3698s # { 3698s # data1 = g_value_peek_pointer (param_values + 0); 3698s # data2 = closure->data; 3698s # } 3698s # 3698s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 3698s # (marshal_data ? marshal_data : cc->callback); 3698s # 3698s # v_return = 3698s # callback (data1, 3698s # g_marshal_value_peek_object (param_values + 1), 3698s # g_marshal_value_peek_string (param_values + 2), 3698s # data2); 3698s # 3698s # g_value_set_boolean (return_value, v_return); 3698s # } 3698s # 3698s # /* ------------------------------------------------------------------------ 3698s # * Code for interface org.project.UsefulInterface 3698s # * ------------------------------------------------------------------------ 3698s # */ 3698s # 3698s # /** 3698s # * SECTION:OrgProjectUsefulInterface 3698s # * @title: OrgProjectUsefulInterface 3698s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 3698s # * 3698s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface in C. 3698s # */ 3698s # 3698s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 3698s # 3698s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_arg_g = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "arg_g", 3698s # (gchar *) "g", 3698s # NULL 3698s # }, 3698s # FALSE 3698s # }; 3698s # 3698s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_pointers[] = 3698s # { 3698s # &_org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_arg_g.parent_struct, 3698s # NULL 3698s # }; 3698s # 3698s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_g = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "SingleArgMethodG", 3698s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_pointers, 3698s # NULL, 3698s # NULL 3698s # }, 3698s # "handle-single-arg-method-g", 3698s # FALSE 3698s # }; 3698s # 3698s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 3698s # { 3698s # &_org_project_useful_interface_method_info_single_arg_method_g.parent_struct, 3698s # NULL 3698s # }; 3698s # 3698s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "org.project.UsefulInterface", 3698s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 3698s # NULL, 3698s # NULL, 3698s # NULL 3698s # }, 3698s # "org-project-useful-interface", 3698s # }; 3698s # 3698s # 3698s # /** 3698s # * org_project_useful_interface_interface_info: 3698s # * 3698s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface. 3698s # * 3698s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3698s # */ 3698s # GDBusInterfaceInfo * 3698s # org_project_useful_interface_interface_info (void) 3698s # { 3698s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_override_properties: 3698s # * @klass: The class structure for a #GObject derived class. 3698s # * @property_id_begin: The property id to assign to the first overridden property. 3698s # * 3698s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 3698s # * The properties are overridden in the order they are defined. 3698s # * 3698s # * Returns: The last property id. 3698s # */ 3698s # guint 3698s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3698s # { 3698s # return property_id_begin - 1; 3698s # } 3698s # 3698s # 3698s # inline static void 3698s # org_project_useful_interface_method_marshal_single_arg_method_g ( 3698s # GClosure *closure, 3698s # GValue *return_value, 3698s # unsigned int n_param_values, 3698s # const GValue *param_values, 3698s # void *invocation_hint, 3698s # void *marshal_data) 3698s # { 3698s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 3698s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3698s # } 3698s # 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterface: 3698s # * 3698s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceIface: 3698s # * @parent_iface: The parent interface. 3698s # * @handle_single_arg_method_g: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-g signal. 3698s # * 3698s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # */ 3698s # 3698s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 3698s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 3698s # 3698s # static void 3698s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 3698s # { 3698s # /* GObject signals for incoming D-Bus method calls: */ 3698s # /** 3698s # * OrgProjectUsefulInterface::handle-single-arg-method-g: 3698s # * @object: A #OrgProjectUsefulInterface. 3698s # * @invocation: A #GDBusMethodInvocation. 3698s # * @arg_arg_g: Argument passed by remote caller. 3698s # * 3698s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodG">SingleArgMethodG()</link> D-Bus method. 3698s # * 3698s # * 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. 3698s # * 3698s # * 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. 3698s # */ 3698s # g_signal_new ("handle-single-arg-method-g", 3698s # G_TYPE_FROM_INTERFACE (iface), 3698s # G_SIGNAL_RUN_LAST, 3698s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_g), 3698s # g_signal_accumulator_true_handled, 3698s # NULL, 3698s # org_project_useful_interface_method_marshal_single_arg_method_g, 3698s # G_TYPE_BOOLEAN, 3698s # 2, 3698s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 3698s # 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_g: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @arg_arg_g: Argument to pass with the method invocation. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodG">SingleArgMethodG()</link> D-Bus method on @proxy. 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_call_single_arg_method_g_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_call_single_arg_method_g_sync() for the synchronous, blocking version of this method. 3698s # */ 3698s # void 3698s # org_project_useful_interface_call_single_arg_method_g ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # const gchar *arg_arg_g, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3698s # "SingleArgMethodG", 3698s # g_variant_new ("(g)", 3698s # arg_arg_g), 3698s # G_DBUS_CALL_FLAGS_NONE, 3698s # -1, 3698s # cancellable, 3698s # callback, 3698s # user_data); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_g_finish: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_g(). 3698s # * @error: Return location for error or %NULL. 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_g(). 3698s # * 3698s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3698s # */ 3698s # gboolean 3698s # org_project_useful_interface_call_single_arg_method_g_finish ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GVariant *_ret; 3698s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3698s # if (_ret == NULL) 3698s # goto _out; 3698s # g_variant_get (_ret, 3698s # "()"); 3698s # g_variant_unref (_ret); 3698s # _out: 3698s # return _ret != NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_g_sync: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @arg_arg_g: Argument to pass with the method invocation. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL. 3698s # * 3698s # * Synchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodG">SingleArgMethodG()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_call_single_arg_method_g() for the asynchronous version of this method. 3698s # * 3698s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3698s # */ 3698s # gboolean 3698s # org_project_useful_interface_call_single_arg_method_g_sync ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # const gchar *arg_arg_g, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GVariant *_ret; 3698s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3698s # "SingleArgMethodG", 3698s # g_variant_new ("(g)", 3698s # arg_arg_g), 3698s # G_DBUS_CALL_FLAGS_NONE, 3698s # -1, 3698s # cancellable, 3698s # error); 3698s # if (_ret == NULL) 3698s # goto _out; 3698s # g_variant_get (_ret, 3698s # "()"); 3698s # g_variant_unref (_ret); 3698s # _out: 3698s # return _ret != NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_complete_single_arg_method_g: 3698s # * @object: A #OrgProjectUsefulInterface. 3698s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3698s # * 3698s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodG">SingleArgMethodG()</link> 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. 3698s # * 3698s # * This method will free @invocation, you cannot use it afterwards. 3698s # */ 3698s # void 3698s # org_project_useful_interface_complete_single_arg_method_g ( 3698s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 3698s # GDBusMethodInvocation *invocation) 3698s # { 3698s # g_dbus_method_invocation_return_value (invocation, 3698s # g_variant_new ("()")); 3698s # } 3698s # 3698s # /* ------------------------------------------------------------------------ */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceProxy: 3698s # * 3698s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceProxyClass: 3698s # * @parent_class: The parent class. 3698s # * 3698s # * Class structure for #OrgProjectUsefulInterfaceProxy. 3698s # */ 3698s # 3698s # struct _OrgProjectUsefulInterfaceProxyPrivate 3698s # { 3698s # GData *qdata; 3698s # }; 3698s # 3698s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3698s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3698s # 3698s # #else 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3698s # 3698s # #endif 3698s # static void 3698s # org_project_useful_interface_proxy_finalize (GObject *object) 3698s # { 3698s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 3698s # g_datalist_clear (&proxy->priv->qdata); 3698s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3698s # guint prop_id G_GNUC_UNUSED, 3698s # GValue *value G_GNUC_UNUSED, 3698s # GParamSpec *pspec G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3698s # guint prop_id G_GNUC_UNUSED, 3698s # const GValue *value G_GNUC_UNUSED, 3698s # GParamSpec *pspec G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 3698s # const gchar *sender_name G_GNUC_UNUSED, 3698s # const gchar *signal_name, 3698s # GVariant *parameters) 3698s # { 3698s # _ExtendedGDBusSignalInfo *info; 3698s # GVariantIter iter; 3698s # GVariant *child; 3698s # GValue *paramv; 3698s # gsize num_params; 3698s # gsize n; 3698s # guint signal_id; 3698s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 3698s # if (info == NULL) 3698s # return; 3698s # num_params = g_variant_n_children (parameters); 3698s # paramv = g_new0 (GValue, num_params + 1); 3698s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_set_object (¶mv[0], proxy); 3698s # g_variant_iter_init (&iter, parameters); 3698s # n = 1; 3698s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3698s # { 3698s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3698s # if (arg_info->use_gvariant) 3698s # { 3698s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3698s # g_value_set_variant (¶mv[n], child); 3698s # n++; 3698s # } 3698s # else 3698s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3698s # g_variant_unref (child); 3698s # } 3698s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_signal_emitv (paramv, signal_id, 0, NULL); 3698s # for (n = 0; n < num_params + 1; n++) 3698s # g_value_unset (¶mv[n]); 3698s # g_free (paramv); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 3698s # GVariant *changed_properties, 3698s # const gchar *const *invalidated_properties) 3698s # { 3698s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 3698s # guint n; 3698s # const gchar *key; 3698s # GVariantIter *iter; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # g_variant_get (changed_properties, "a{sv}", &iter); 3698s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3698s # { 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 3698s # g_datalist_remove_data (&proxy->priv->qdata, key); 3698s # if (info != NULL) 3698s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3698s # } 3698s # g_variant_iter_free (iter); 3698s # for (n = 0; invalidated_properties[n] != NULL; n++) 3698s # { 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 3698s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3698s # if (info != NULL) 3698s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3698s # } 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 3698s # { 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 3698s # #else 3698s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 3698s # #endif 3698s # 3698s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 3698s # { 3698s # GObjectClass *gobject_class; 3698s # GDBusProxyClass *proxy_class; 3698s # 3698s # gobject_class = G_OBJECT_CLASS (klass); 3698s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 3698s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 3698s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 3698s # 3698s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3698s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 3698s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3698s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 3698s # #endif 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new: 3698s # * @connection: A #GDBusConnection. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new() for more details. 3698s # * 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3698s # */ 3698s # void 3698s # org_project_useful_interface_proxy_new ( 3698s # GDBusConnection *connection, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_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); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_finish: 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_finish ( 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GObject *ret; 3698s # GObject *source_object; 3698s # source_object = g_async_result_get_source_object (res); 3698s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3698s # g_object_unref (source_object); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_sync: 3698s # * @connection: A #GDBusConnection. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new_sync() for more details. 3698s # * 3698s # * The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_sync ( 3698s # GDBusConnection *connection, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GInitable *ret; 3698s # 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); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus: 3698s # * @bus_type: A #GBusType. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: A bus name (well-known or unique). 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3698s # * 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3698s # */ 3698s # void 3698s # org_project_useful_interface_proxy_new_for_bus ( 3698s # GBusType bus_type, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_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); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus_finish: 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_for_bus_finish ( 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GObject *ret; 3698s # GObject *source_object; 3698s # source_object = g_async_result_get_source_object (res); 3698s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3698s # g_object_unref (source_object); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus_sync: 3698s # * @bus_type: A #GBusType. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: A bus name (well-known or unique). 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3698s # * 3698s # * The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_for_bus_sync ( 3698s # GBusType bus_type, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GInitable *ret; 3698s # 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); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # 3698s # /* ------------------------------------------------------------------------ */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceSkeleton: 3698s # * 3698s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceSkeletonClass: 3698s # * @parent_class: The parent class. 3698s # * 3698s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 3698s # */ 3698s # 3698s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 3698s # { 3698s # GValue *properties; 3698s # GList *changed_properties; 3698s # GSource *changed_properties_idle_source; 3698s # GMainContext *context; 3698s # GMutex lock; 3698s # }; 3698s # 3698s # static void 3698s # _org_project_useful_interface_skeleton_handle_method_call ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name, 3698s # const gchar *method_name, 3698s # GVariant *parameters, 3698s # GDBusMethodInvocation *invocation, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # _ExtendedGDBusMethodInfo *info; 3698s # GVariantIter iter; 3698s # GVariant *child; 3698s # GValue *paramv; 3698s # gsize num_params; 3698s # guint num_extra; 3698s # gsize n; 3698s # guint signal_id; 3698s # GValue return_value = G_VALUE_INIT; 3698s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3698s # g_assert (info != NULL); 3698s # num_params = g_variant_n_children (parameters); 3698s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3698s # n = 0; 3698s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_set_object (¶mv[n++], skeleton); 3698s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3698s # g_value_set_object (¶mv[n++], invocation); 3698s # if (info->pass_fdlist) 3698s # { 3698s # #ifdef G_OS_UNIX 3698s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3698s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3698s # #else 3698s # g_assert_not_reached (); 3698s # #endif 3698s # } 3698s # g_variant_iter_init (&iter, parameters); 3698s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3698s # { 3698s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3698s # if (arg_info->use_gvariant) 3698s # { 3698s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3698s # g_value_set_variant (¶mv[n], child); 3698s # n++; 3698s # } 3698s # else 3698s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3698s # g_variant_unref (child); 3698s # } 3698s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3698s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3698s # if (!g_value_get_boolean (&return_value)) 3698s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3698s # g_value_unset (&return_value); 3698s # for (n = 0; n < num_params + num_extra; n++) 3698s # g_value_unset (¶mv[n]); 3698s # g_free (paramv); 3698s # } 3698s # 3698s # static GVariant * 3698s # _org_project_useful_interface_skeleton_handle_get_property ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name G_GNUC_UNUSED, 3698s # const gchar *property_name, 3698s # GError **error, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # GValue value = G_VALUE_INIT; 3698s # GParamSpec *pspec; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # GVariant *ret; 3698s # ret = NULL; 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3698s # g_assert (info != NULL); 3698s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3698s # if (pspec == NULL) 3698s # { 3698s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3698s # } 3698s # else 3698s # { 3698s # g_value_init (&value, pspec->value_type); 3698s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3698s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3698s # g_value_unset (&value); 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static gboolean 3698s # _org_project_useful_interface_skeleton_handle_set_property ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name G_GNUC_UNUSED, 3698s # const gchar *property_name, 3698s # GVariant *variant, 3698s # GError **error, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # GValue value = G_VALUE_INIT; 3698s # GParamSpec *pspec; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # gboolean ret; 3698s # ret = FALSE; 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3698s # g_assert (info != NULL); 3698s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3698s # if (pspec == NULL) 3698s # { 3698s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3698s # } 3698s # else 3698s # { 3698s # if (info->use_gvariant) 3698s # g_value_set_variant (&value, variant); 3698s # else 3698s # g_dbus_gvariant_to_gvalue (variant, &value); 3698s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3698s # g_value_unset (&value); 3698s # ret = TRUE; 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 3698s # { 3698s # _org_project_useful_interface_skeleton_handle_method_call, 3698s # _org_project_useful_interface_skeleton_handle_get_property, 3698s # _org_project_useful_interface_skeleton_handle_set_property, 3698s # {NULL} 3698s # }; 3698s # 3698s # static GDBusInterfaceInfo * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3698s # { 3698s # return org_project_useful_interface_interface_info (); 3698s # } 3698s # 3698s # static GDBusInterfaceVTable * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3698s # { 3698s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 3698s # } 3698s # 3698s # static GVariant * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 3698s # 3698s # GVariantBuilder builder; 3698s # guint n; 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3698s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3698s # #else 3698s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3698s # #endif 3698s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 3698s # goto out; 3698s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 3698s # { 3698s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 3698s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3698s # { 3698s # GVariant *value; 3698s # 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); 3698s # if (value != NULL) 3698s # { 3698s # g_variant_take_ref (value); 3698s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3698s # g_variant_unref (value); 3698s # } 3698s # } 3698s # } 3698s # out: 3698s # return g_variant_builder_end (&builder); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3698s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3698s # 3698s # #else 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3698s # 3698s # #endif 3698s # static void 3698s # org_project_useful_interface_skeleton_finalize (GObject *object) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 3698s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3698s # if (skeleton->priv->changed_properties_idle_source != NULL) 3698s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3698s # g_main_context_unref (skeleton->priv->context); 3698s # g_mutex_clear (&skeleton->priv->lock); 3698s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 3698s # { 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 3698s # #else 3698s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 3698s # #endif 3698s # 3698s # g_mutex_init (&skeleton->priv->lock); 3698s # skeleton->priv->context = g_main_context_ref_thread_default (); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 3698s # { 3698s # GObjectClass *gobject_class; 3698s # GDBusInterfaceSkeletonClass *skeleton_class; 3698s # 3698s # gobject_class = G_OBJECT_CLASS (klass); 3698s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 3698s # 3698s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3698s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 3698s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 3698s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 3698s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3698s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 3698s # #endif 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_skeleton_new: 3698s # * 3698s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_skeleton_new (void) 3698s # { 3698s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 3698s # } 3698s # Error: 3698s # 3698s # /tmp/tmpj0kzs0gk/tmphkeurok7.xml: 3698s # <node> 3698s # <interface name="org.project.UsefulInterface"> 3698s # <method name="SingleArgMethodH"> 3698s # <arg name="arg_h" type="h"/> 3698s # </method> 3698s # </interface> 3698s # </node> 3698s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpj0kzs0gk/tmphkeurok7.xml', '--output', '-', '--body'] 3698s # Return code: 0 3698s # Output: 3698s # /* 3698s # * This file is generated by gdbus-codegen, do not modify it. 3698s # * 3698s # * The license of this code is the same as for the D-Bus interface description 3698s # * it was derived from. Note that it links to GLib, so must comply with the 3698s # * LGPL linking clauses. 3698s # */ 3698s # 3698s # #ifdef HAVE_CONFIG_H 3698s # # include "config.h" 3698s # #endif 3698s # 3698s # #include <string.h> 3698s # #ifdef G_OS_UNIX 3698s # # include <gio/gunixfdlist.h> 3698s # #endif 3698s # 3698s # #ifdef G_ENABLE_DEBUG 3698s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3698s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3698s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3698s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3698s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3698s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3698s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3698s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3698s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3698s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3698s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3698s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3698s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3698s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3698s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3698s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3698s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3698s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3698s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3698s # #else /* !G_ENABLE_DEBUG */ 3698s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3698s # * Do not access GValues directly in your code. Instead, use the 3698s # * g_value_get_*() functions 3698s # */ 3698s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3698s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3698s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3698s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3698s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3698s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3698s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3698s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3698s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3698s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3698s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3698s # #endif /* !G_ENABLE_DEBUG */ 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusArgInfo parent_struct; 3698s # gboolean use_gvariant; 3698s # } _ExtendedGDBusArgInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusMethodInfo parent_struct; 3698s # const gchar *signal_name; 3698s # gboolean pass_fdlist; 3698s # } _ExtendedGDBusMethodInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusSignalInfo parent_struct; 3698s # const gchar *signal_name; 3698s # } _ExtendedGDBusSignalInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusPropertyInfo parent_struct; 3698s # const gchar *hyphen_name; 3698s # guint use_gvariant : 1; 3698s # guint emits_changed_signal : 1; 3698s # } _ExtendedGDBusPropertyInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusInterfaceInfo parent_struct; 3698s # const gchar *hyphen_name; 3698s # } _ExtendedGDBusInterfaceInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # const _ExtendedGDBusPropertyInfo *info; 3698s # guint prop_id; 3698s # GValue orig_value; /* the value before the change */ 3698s # } ChangedProperty; 3698s # 3698s # static void 3698s # _changed_property_free (ChangedProperty *data) 3698s # { 3698s # g_value_unset (&data->orig_value); 3698s # g_free (data); 3698s # } 3698s # 3698s # static gboolean 3698s # _g_strv_equal0 (gchar **a, gchar **b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # guint n; 3698s # if (a == NULL && b == NULL) 3698s # { 3698s # ret = TRUE; 3698s # goto out; 3698s # } 3698s # if (a == NULL || b == NULL) 3698s # goto out; 3698s # if (g_strv_length (a) != g_strv_length (b)) 3698s # goto out; 3698s # for (n = 0; a[n] != NULL; n++) 3698s # if (g_strcmp0 (a[n], b[n]) != 0) 3698s # goto out; 3698s # ret = TRUE; 3698s # out: 3698s # return ret; 3698s # } 3698s # 3698s # static gboolean 3698s # _g_variant_equal0 (GVariant *a, GVariant *b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # if (a == NULL && b == NULL) 3698s # { 3698s # ret = TRUE; 3698s # goto out; 3698s # } 3698s # if (a == NULL || b == NULL) 3698s # goto out; 3698s # ret = g_variant_equal (a, b); 3698s # out: 3698s # return ret; 3698s # } 3698s # 3698s # G_GNUC_UNUSED static gboolean 3698s # _g_value_equal (const GValue *a, const GValue *b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3698s # switch (G_VALUE_TYPE (a)) 3698s # { 3698s # case G_TYPE_BOOLEAN: 3698s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3698s # break; 3698s # case G_TYPE_UCHAR: 3698s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3698s # break; 3698s # case G_TYPE_INT: 3698s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3698s # break; 3698s # case G_TYPE_UINT: 3698s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3698s # break; 3698s # case G_TYPE_INT64: 3698s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3698s # break; 3698s # case G_TYPE_UINT64: 3698s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3698s # break; 3698s # case G_TYPE_DOUBLE: 3698s # { 3698s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3698s # gdouble da = g_value_get_double (a); 3698s # gdouble db = g_value_get_double (b); 3698s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3698s # } 3698s # break; 3698s # case G_TYPE_STRING: 3698s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3698s # break; 3698s # case G_TYPE_VARIANT: 3698s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3698s # break; 3698s # default: 3698s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3698s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3698s # else 3698s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3698s # break; 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static void 3698s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT ( 3698s # GClosure *closure, 3698s # GValue *return_value, 3698s # unsigned int n_param_values, 3698s # const GValue *param_values, 3698s # void *invocation_hint G_GNUC_UNUSED, 3698s # void *marshal_data) 3698s # { 3698s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 3698s # (void *data1, 3698s # GDBusMethodInvocation *arg_method_invocation, 3698s # GVariant *arg_arg_h, 3698s # void *data2); 3698s # _GDbusCodegenMarshalBoolean_ObjectVariantFunc callback; 3698s # GCClosure *cc = (GCClosure*) closure; 3698s # void *data1, *data2; 3698s # gboolean v_return; 3698s # 3698s # g_return_if_fail (return_value != NULL); 3698s # g_return_if_fail (n_param_values == 3); 3698s # 3698s # if (G_CCLOSURE_SWAP_DATA (closure)) 3698s # { 3698s # data1 = closure->data; 3698s # data2 = g_value_peek_pointer (param_values + 0); 3698s # } 3698s # else 3698s # { 3698s # data1 = g_value_peek_pointer (param_values + 0); 3698s # data2 = closure->data; 3698s # } 3698s # 3698s # callback = (_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 3698s # (marshal_data ? marshal_data : cc->callback); 3698s # 3698s # v_return = 3698s # callback (data1, 3698s # g_marshal_value_peek_object (param_values + 1), 3698s # g_marshal_value_peek_variant (param_values + 2), 3698s # data2); 3698s # 3698s # g_value_set_boolean (return_value, v_return); 3698s # } 3698s # 3698s # /* ------------------------------------------------------------------------ 3698s # * Code for interface org.project.UsefulInterface 3698s # * ------------------------------------------------------------------------ 3698s # */ 3698s # 3698s # /** 3698s # * SECTION:OrgProjectUsefulInterface 3698s # * @title: OrgProjectUsefulInterface 3698s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 3698s # * 3698s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface in C. 3698s # */ 3698s # 3698s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 3698s # 3698s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_arg_h = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "arg_h", 3698s # (gchar *) "h", 3698s # NULL 3698s # }, 3698s # FALSE 3698s # }; 3698s # 3698s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_pointers[] = 3698s # { 3698s # &_org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_arg_h.parent_struct, 3698s # NULL 3698s # }; 3698s # 3698s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_h = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "SingleArgMethodH", 3698s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_pointers, 3698s # NULL, 3698s # NULL 3698s # }, 3698s # "handle-single-arg-method-h", 3698s # FALSE 3698s # }; 3698s # 3698s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 3698s # { 3698s # &_org_project_useful_interface_method_info_single_arg_method_h.parent_struct, 3698s # NULL 3698s # }; 3698s # 3698s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "org.project.UsefulInterface", 3698s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 3698s # NULL, 3698s # NULL, 3698s # NULL 3698s # }, 3698s # "org-project-useful-interface", 3698s # }; 3698s # 3698s # 3698s # /** 3698s # * org_project_useful_interface_interface_info: 3698s # * 3698s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface. 3698s # * 3698s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3698s # */ 3698s # GDBusInterfaceInfo * 3698s # org_project_useful_interface_interface_info (void) 3698s # { 3698s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_override_properties: 3698s # * @klass: The class structure for a #GObject derived class. 3698s # * @property_id_begin: The property id to assign to the first overridden property. 3698s # * 3698s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 3698s # * The properties are overridden in the order they are defined. 3698s # * 3698s # * Returns: The last property id. 3698s # */ 3698s # guint 3698s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3698s # { 3698s # return property_id_begin - 1; 3698s # } 3698s # 3698s # 3698s # inline static void 3698s # org_project_useful_interface_method_marshal_single_arg_method_h ( 3698s # GClosure *closure, 3698s # GValue *return_value, 3698s # unsigned int n_param_values, 3698s # const GValue *param_values, 3698s # void *invocation_hint, 3698s # void *marshal_data) 3698s # { 3698s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT (closure, 3698s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3698s # } 3698s # 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterface: 3698s # * 3698s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceIface: 3698s # * @parent_iface: The parent interface. 3698s # * @handle_single_arg_method_h: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-h signal. 3698s # * 3698s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # */ 3698s # 3698s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 3698s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 3698s # 3698s # static void 3698s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 3698s # { 3698s # /* GObject signals for incoming D-Bus method calls: */ 3698s # /** 3698s # * OrgProjectUsefulInterface::handle-single-arg-method-h: 3698s # * @object: A #OrgProjectUsefulInterface. 3698s # * @invocation: A #GDBusMethodInvocation. 3698s # * @arg_arg_h: Argument passed by remote caller. 3698s # * 3698s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodH">SingleArgMethodH()</link> D-Bus method. 3698s # * 3698s # * 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. 3698s # * 3698s # * 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. 3698s # */ 3698s # g_signal_new ("handle-single-arg-method-h", 3698s # G_TYPE_FROM_INTERFACE (iface), 3698s # G_SIGNAL_RUN_LAST, 3698s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_h), 3698s # g_signal_accumulator_true_handled, 3698s # NULL, 3698s # org_project_useful_interface_method_marshal_single_arg_method_h, 3698s # G_TYPE_BOOLEAN, 3698s # 2, 3698s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT); 3698s # 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_h: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @arg_arg_h: Argument to pass with the method invocation. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodH">SingleArgMethodH()</link> D-Bus method on @proxy. 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_call_single_arg_method_h_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_call_single_arg_method_h_sync() for the synchronous, blocking version of this method. 3698s # */ 3698s # void 3698s # org_project_useful_interface_call_single_arg_method_h ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # GVariant *arg_arg_h, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3698s # "SingleArgMethodH", 3698s # g_variant_new ("(@h)", 3698s # arg_arg_h), 3698s # G_DBUS_CALL_FLAGS_NONE, 3698s # -1, 3698s # cancellable, 3698s # callback, 3698s # user_data); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_h_finish: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_h(). 3698s # * @error: Return location for error or %NULL. 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_h(). 3698s # * 3698s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3698s # */ 3698s # gboolean 3698s # org_project_useful_interface_call_single_arg_method_h_finish ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GVariant *_ret; 3698s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3698s # if (_ret == NULL) 3698s # goto _out; 3698s # g_variant_get (_ret, 3698s # "()"); 3698s # g_variant_unref (_ret); 3698s # _out: 3698s # return _ret != NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_h_sync: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @arg_arg_h: Argument to pass with the method invocation. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL. 3698s # * 3698s # * Synchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodH">SingleArgMethodH()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_call_single_arg_method_h() for the asynchronous version of this method. 3698s # * 3698s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3698s # */ 3698s # gboolean 3698s # org_project_useful_interface_call_single_arg_method_h_sync ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # GVariant *arg_arg_h, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GVariant *_ret; 3698s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3698s # "SingleArgMethodH", 3698s # g_variant_new ("(@h)", 3698s # arg_arg_h), 3698s # G_DBUS_CALL_FLAGS_NONE, 3698s # -1, 3698s # cancellable, 3698s # error); 3698s # if (_ret == NULL) 3698s # goto _out; 3698s # g_variant_get (_ret, 3698s # "()"); 3698s # g_variant_unref (_ret); 3698s # _out: 3698s # return _ret != NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_complete_single_arg_method_h: 3698s # * @object: A #OrgProjectUsefulInterface. 3698s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3698s # * 3698s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodH">SingleArgMethodH()</link> 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. 3698s # * 3698s # * This method will free @invocation, you cannot use it afterwards. 3698s # */ 3698s # void 3698s # org_project_useful_interface_complete_single_arg_method_h ( 3698s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 3698s # GDBusMethodInvocation *invocation) 3698s # { 3698s # g_dbus_method_invocation_return_value (invocation, 3698s # g_variant_new ("()")); 3698s # } 3698s # 3698s # /* ------------------------------------------------------------------------ */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceProxy: 3698s # * 3698s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceProxyClass: 3698s # * @parent_class: The parent class. 3698s # * 3698s # * Class structure for #OrgProjectUsefulInterfaceProxy. 3698s # */ 3698s # 3698s # struct _OrgProjectUsefulInterfaceProxyPrivate 3698s # { 3698s # GData *qdata; 3698s # }; 3698s # 3698s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3698s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3698s # 3698s # #else 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3698s # 3698s # #endif 3698s # static void 3698s # org_project_useful_interface_proxy_finalize (GObject *object) 3698s # { 3698s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 3698s # g_datalist_clear (&proxy->priv->qdata); 3698s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3698s # guint prop_id G_GNUC_UNUSED, 3698s # GValue *value G_GNUC_UNUSED, 3698s # GParamSpec *pspec G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3698s # guint prop_id G_GNUC_UNUSED, 3698s # const GValue *value G_GNUC_UNUSED, 3698s # GParamSpec *pspec G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 3698s # const gchar *sender_name G_GNUC_UNUSED, 3698s # const gchar *signal_name, 3698s # GVariant *parameters) 3698s # { 3698s # _ExtendedGDBusSignalInfo *info; 3698s # GVariantIter iter; 3698s # GVariant *child; 3698s # GValue *paramv; 3698s # gsize num_params; 3698s # gsize n; 3698s # guint signal_id; 3698s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 3698s # if (info == NULL) 3698s # return; 3698s # num_params = g_variant_n_children (parameters); 3698s # paramv = g_new0 (GValue, num_params + 1); 3698s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_set_object (¶mv[0], proxy); 3698s # g_variant_iter_init (&iter, parameters); 3698s # n = 1; 3698s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3698s # { 3698s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3698s # if (arg_info->use_gvariant) 3698s # { 3698s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3698s # g_value_set_variant (¶mv[n], child); 3698s # n++; 3698s # } 3698s # else 3698s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3698s # g_variant_unref (child); 3698s # } 3698s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_signal_emitv (paramv, signal_id, 0, NULL); 3698s # for (n = 0; n < num_params + 1; n++) 3698s # g_value_unset (¶mv[n]); 3698s # g_free (paramv); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 3698s # GVariant *changed_properties, 3698s # const gchar *const *invalidated_properties) 3698s # { 3698s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 3698s # guint n; 3698s # const gchar *key; 3698s # GVariantIter *iter; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # g_variant_get (changed_properties, "a{sv}", &iter); 3698s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3698s # { 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 3698s # g_datalist_remove_data (&proxy->priv->qdata, key); 3698s # if (info != NULL) 3698s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3698s # } 3698s # g_variant_iter_free (iter); 3698s # for (n = 0; invalidated_properties[n] != NULL; n++) 3698s # { 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 3698s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3698s # if (info != NULL) 3698s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3698s # } 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 3698s # { 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 3698s # #else 3698s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 3698s # #endif 3698s # 3698s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 3698s # { 3698s # GObjectClass *gobject_class; 3698s # GDBusProxyClass *proxy_class; 3698s # 3698s # gobject_class = G_OBJECT_CLASS (klass); 3698s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 3698s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 3698s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 3698s # 3698s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3698s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 3698s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3698s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 3698s # #endif 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new: 3698s # * @connection: A #GDBusConnection. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new() for more details. 3698s # * 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3698s # */ 3698s # void 3698s # org_project_useful_interface_proxy_new ( 3698s # GDBusConnection *connection, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_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); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_finish: 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_finish ( 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GObject *ret; 3698s # GObject *source_object; 3698s # source_object = g_async_result_get_source_object (res); 3698s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3698s # g_object_unref (source_object); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_sync: 3698s # * @connection: A #GDBusConnection. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new_sync() for more details. 3698s # * 3698s # * The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_sync ( 3698s # GDBusConnection *connection, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GInitable *ret; 3698s # 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); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus: 3698s # * @bus_type: A #GBusType. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: A bus name (well-known or unique). 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3698s # * 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3698s # */ 3698s # void 3698s # org_project_useful_interface_proxy_new_for_bus ( 3698s # GBusType bus_type, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_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); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus_finish: 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_for_bus_finish ( 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GObject *ret; 3698s # GObject *source_object; 3698s # source_object = g_async_result_get_source_object (res); 3698s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3698s # g_object_unref (source_object); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus_sync: 3698s # * @bus_type: A #GBusType. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: A bus name (well-known or unique). 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3698s # * 3698s # * The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_for_bus_sync ( 3698s # GBusType bus_type, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GInitable *ret; 3698s # 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); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # 3698s # /* ------------------------------------------------------------------------ */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceSkeleton: 3698s # * 3698s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceSkeletonClass: 3698s # * @parent_class: The parent class. 3698s # * 3698s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 3698s # */ 3698s # 3698s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 3698s # { 3698s # GValue *properties; 3698s # GList *changed_properties; 3698s # GSource *changed_properties_idle_source; 3698s # GMainContext *context; 3698s # GMutex lock; 3698s # }; 3698s # 3698s # static void 3698s # _org_project_useful_interface_skeleton_handle_method_call ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name, 3698s # const gchar *method_name, 3698s # GVariant *parameters, 3698s # GDBusMethodInvocation *invocation, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # _ExtendedGDBusMethodInfo *info; 3698s # GVariantIter iter; 3698s # GVariant *child; 3698s # GValue *paramv; 3698s # gsize num_params; 3698s # guint num_extra; 3698s # gsize n; 3698s # guint signal_id; 3698s # GValue return_value = G_VALUE_INIT; 3698s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3698s # g_assert (info != NULL); 3698s # num_params = g_variant_n_children (parameters); 3698s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3698s # n = 0; 3698s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_set_object (¶mv[n++], skeleton); 3698s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3698s # g_value_set_object (¶mv[n++], invocation); 3698s # if (info->pass_fdlist) 3698s # { 3698s # #ifdef G_OS_UNIX 3698s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3698s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3698s # #else 3698s # g_assert_not_reached (); 3698s # #endif 3698s # } 3698s # g_variant_iter_init (&iter, parameters); 3698s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3698s # { 3698s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3698s # if (arg_info->use_gvariant) 3698s # { 3698s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3698s # g_value_set_variant (¶mv[n], child); 3698s # n++; 3698s # } 3698s # else 3698s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3698s # g_variant_unref (child); 3698s # } 3698s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3698s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3698s # if (!g_value_get_boolean (&return_value)) 3698s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3698s # g_value_unset (&return_value); 3698s # for (n = 0; n < num_params + num_extra; n++) 3698s # g_value_unset (¶mv[n]); 3698s # g_free (paramv); 3698s # } 3698s # 3698s # static GVariant * 3698s # _org_project_useful_interface_skeleton_handle_get_property ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name G_GNUC_UNUSED, 3698s # const gchar *property_name, 3698s # GError **error, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # GValue value = G_VALUE_INIT; 3698s # GParamSpec *pspec; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # GVariant *ret; 3698s # ret = NULL; 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3698s # g_assert (info != NULL); 3698s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3698s # if (pspec == NULL) 3698s # { 3698s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3698s # } 3698s # else 3698s # { 3698s # g_value_init (&value, pspec->value_type); 3698s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3698s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3698s # g_value_unset (&value); 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static gboolean 3698s # _org_project_useful_interface_skeleton_handle_set_property ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name G_GNUC_UNUSED, 3698s # const gchar *property_name, 3698s # GVariant *variant, 3698s # GError **error, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # GValue value = G_VALUE_INIT; 3698s # GParamSpec *pspec; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # gboolean ret; 3698s # ret = FALSE; 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3698s # g_assert (info != NULL); 3698s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3698s # if (pspec == NULL) 3698s # { 3698s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3698s # } 3698s # else 3698s # { 3698s # if (info->use_gvariant) 3698s # g_value_set_variant (&value, variant); 3698s # else 3698s # g_dbus_gvariant_to_gvalue (variant, &value); 3698s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3698s # g_value_unset (&value); 3698s # ret = TRUE; 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 3698s # { 3698s # _org_project_useful_interface_skeleton_handle_method_call, 3698s # _org_project_useful_interface_skeleton_handle_get_property, 3698s # _org_project_useful_interface_skeleton_handle_set_property, 3698s # {NULL} 3698s # }; 3698s # 3698s # static GDBusInterfaceInfo * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3698s # { 3698s # return org_project_useful_interface_interface_info (); 3698s # } 3698s # 3698s # static GDBusInterfaceVTable * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3698s # { 3698s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 3698s # } 3698s # 3698s # static GVariant * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 3698s # 3698s # GVariantBuilder builder; 3698s # guint n; 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3698s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3698s # #else 3698s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3698s # #endif 3698s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 3698s # goto out; 3698s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 3698s # { 3698s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 3698s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3698s # { 3698s # GVariant *value; 3698s # 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); 3698s # if (value != NULL) 3698s # { 3698s # g_variant_take_ref (value); 3698s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3698s # g_variant_unref (value); 3698s # } 3698s # } 3698s # } 3698s # out: 3698s # return g_variant_builder_end (&builder); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3698s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3698s # 3698s # #else 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3698s # 3698s # #endif 3698s # static void 3698s # org_project_useful_interface_skeleton_finalize (GObject *object) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 3698s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3698s # if (skeleton->priv->changed_properties_idle_source != NULL) 3698s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3698s # g_main_context_unref (skeleton->priv->context); 3698s # g_mutex_clear (&skeleton->priv->lock); 3698s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 3698s # { 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 3698s # #else 3698s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 3698s # #endif 3698s # 3698s # g_mutex_init (&skeleton->priv->lock); 3698s # skeleton->priv->context = g_main_context_ref_thread_default (); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 3698s # { 3698s # GObjectClass *gobject_class; 3698s # GDBusInterfaceSkeletonClass *skeleton_class; 3698s # 3698s # gobject_class = G_OBJECT_CLASS (klass); 3698s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 3698s # 3698s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3698s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 3698s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 3698s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 3698s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3698s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 3698s # #endif 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_skeleton_new: 3698s # * 3698s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_skeleton_new (void) 3698s # { 3698s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 3698s # } 3698s # Error: 3698s # 3698s # /tmp/tmpj0kzs0gk/tmpdhhjyhvx.xml: 3698s # <node> 3698s # <interface name="org.project.UsefulInterface"> 3698s # <method name="SingleArgMethodAy"> 3698s # <arg name="arg_ay" type="ay"/> 3698s # </method> 3698s # </interface> 3698s # </node> 3698s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpj0kzs0gk/tmpdhhjyhvx.xml', '--output', '-', '--body'] 3698s # Return code: 0 3698s # Output: 3698s # /* 3698s # * This file is generated by gdbus-codegen, do not modify it. 3698s # * 3698s # * The license of this code is the same as for the D-Bus interface description 3698s # * it was derived from. Note that it links to GLib, so must comply with the 3698s # * LGPL linking clauses. 3698s # */ 3698s # 3698s # #ifdef HAVE_CONFIG_H 3698s # # include "config.h" 3698s # #endif 3698s # 3698s # #include <string.h> 3698s # #ifdef G_OS_UNIX 3698s # # include <gio/gunixfdlist.h> 3698s # #endif 3698s # 3698s # #ifdef G_ENABLE_DEBUG 3698s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3698s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3698s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3698s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3698s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3698s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3698s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3698s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3698s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3698s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3698s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3698s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3698s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3698s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3698s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3698s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3698s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3698s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3698s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3698s # #else /* !G_ENABLE_DEBUG */ 3698s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3698s # * Do not access GValues directly in your code. Instead, use the 3698s # * g_value_get_*() functions 3698s # */ 3698s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3698s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3698s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3698s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3698s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3698s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3698s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3698s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3698s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3698s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3698s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3698s # #endif /* !G_ENABLE_DEBUG */ 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusArgInfo parent_struct; 3698s # gboolean use_gvariant; 3698s # } _ExtendedGDBusArgInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusMethodInfo parent_struct; 3698s # const gchar *signal_name; 3698s # gboolean pass_fdlist; 3698s # } _ExtendedGDBusMethodInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusSignalInfo parent_struct; 3698s # const gchar *signal_name; 3698s # } _ExtendedGDBusSignalInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusPropertyInfo parent_struct; 3698s # const gchar *hyphen_name; 3698s # guint use_gvariant : 1; 3698s # guint emits_changed_signal : 1; 3698s # } _ExtendedGDBusPropertyInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusInterfaceInfo parent_struct; 3698s # const gchar *hyphen_name; 3698s # } _ExtendedGDBusInterfaceInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # const _ExtendedGDBusPropertyInfo *info; 3698s # guint prop_id; 3698s # GValue orig_value; /* the value before the change */ 3698s # } ChangedProperty; 3698s # 3698s # static void 3698s # _changed_property_free (ChangedProperty *data) 3698s # { 3698s # g_value_unset (&data->orig_value); 3698s # g_free (data); 3698s # } 3698s # 3698s # static gboolean 3698s # _g_strv_equal0 (gchar **a, gchar **b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # guint n; 3698s # if (a == NULL && b == NULL) 3698s # { 3698s # ret = TRUE; 3698s # goto out; 3698s # } 3698s # if (a == NULL || b == NULL) 3698s # goto out; 3698s # if (g_strv_length (a) != g_strv_length (b)) 3698s # goto out; 3698s # for (n = 0; a[n] != NULL; n++) 3698s # if (g_strcmp0 (a[n], b[n]) != 0) 3698s # goto out; 3698s # ret = TRUE; 3698s # out: 3698s # return ret; 3698s # } 3698s # 3698s # static gboolean 3698s # _g_variant_equal0 (GVariant *a, GVariant *b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # if (a == NULL && b == NULL) 3698s # { 3698s # ret = TRUE; 3698s # goto out; 3698s # } 3698s # if (a == NULL || b == NULL) 3698s # goto out; 3698s # ret = g_variant_equal (a, b); 3698s # out: 3698s # return ret; 3698s # } 3698s # 3698s # G_GNUC_UNUSED static gboolean 3698s # _g_value_equal (const GValue *a, const GValue *b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3698s # switch (G_VALUE_TYPE (a)) 3698s # { 3698s # case G_TYPE_BOOLEAN: 3698s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3698s # break; 3698s # case G_TYPE_UCHAR: 3698s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3698s # break; 3698s # case G_TYPE_INT: 3698s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3698s # break; 3698s # case G_TYPE_UINT: 3698s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3698s # break; 3698s # case G_TYPE_INT64: 3698s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3698s # break; 3698s # case G_TYPE_UINT64: 3698s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3698s # break; 3698s # case G_TYPE_DOUBLE: 3698s # { 3698s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3698s # gdouble da = g_value_get_double (a); 3698s # gdouble db = g_value_get_double (b); 3698s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3698s # } 3698s # break; 3698s # case G_TYPE_STRING: 3698s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3698s # break; 3698s # case G_TYPE_VARIANT: 3698s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3698s # break; 3698s # default: 3698s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3698s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3698s # else 3698s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3698s # break; 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static void 3698s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 3698s # GClosure *closure, 3698s # GValue *return_value, 3698s # unsigned int n_param_values, 3698s # const GValue *param_values, 3698s # void *invocation_hint G_GNUC_UNUSED, 3698s # void *marshal_data) 3698s # { 3698s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 3698s # (void *data1, 3698s # GDBusMethodInvocation *arg_method_invocation, 3698s # const gchar *arg_arg_ay, 3698s # void *data2); 3698s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 3698s # GCClosure *cc = (GCClosure*) closure; 3698s # void *data1, *data2; 3698s # gboolean v_return; 3698s # 3698s # g_return_if_fail (return_value != NULL); 3698s # g_return_if_fail (n_param_values == 3); 3698s # 3698s # if (G_CCLOSURE_SWAP_DATA (closure)) 3698s # { 3698s # data1 = closure->data; 3698s # data2 = g_value_peek_pointer (param_values + 0); 3698s # } 3698s # else 3698s # { 3698s # data1 = g_value_peek_pointer (param_values + 0); 3698s # data2 = closure->data; 3698s # } 3698s # 3698s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 3698s # (marshal_data ? marshal_data : cc->callback); 3698s # 3698s # v_return = 3698s # callback (data1, 3698s # g_marshal_value_peek_object (param_values + 1), 3698s # g_marshal_value_peek_string (param_values + 2), 3698s # data2); 3698s # 3698s # g_value_set_boolean (return_value, v_return); 3698s # } 3698s # 3698s # /* ------------------------------------------------------------------------ 3698s # * Code for interface org.project.UsefulInterface 3698s # * ------------------------------------------------------------------------ 3698s # */ 3698s # 3698s # /** 3698s # * SECTION:OrgProjectUsefulInterface 3698s # * @title: OrgProjectUsefulInterface 3698s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 3698s # * 3698s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface in C. 3698s # */ 3698s # 3698s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 3698s # 3698s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_arg_ay = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "arg_ay", 3698s # (gchar *) "ay", 3698s # NULL 3698s # }, 3698s # FALSE 3698s # }; 3698s # 3698s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_pointers[] = 3698s # { 3698s # &_org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_arg_ay.parent_struct, 3698s # NULL 3698s # }; 3698s # 3698s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ay = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "SingleArgMethodAy", 3698s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_pointers, 3698s # NULL, 3698s # NULL 3698s # }, 3698s # "handle-single-arg-method-ay", 3698s # FALSE 3698s # }; 3698s # 3698s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 3698s # { 3698s # &_org_project_useful_interface_method_info_single_arg_method_ay.parent_struct, 3698s # NULL 3698s # }; 3698s # 3698s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "org.project.UsefulInterface", 3698s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 3698s # NULL, 3698s # NULL, 3698s # NULL 3698s # }, 3698s # "org-project-useful-interface", 3698s # }; 3698s # 3698s # 3698s # /** 3698s # * org_project_useful_interface_interface_info: 3698s # * 3698s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface. 3698s # * 3698s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3698s # */ 3698s # GDBusInterfaceInfo * 3698s # org_project_useful_interface_interface_info (void) 3698s # { 3698s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_override_properties: 3698s # * @klass: The class structure for a #GObject derived class. 3698s # * @property_id_begin: The property id to assign to the first overridden property. 3698s # * 3698s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 3698s # * The properties are overridden in the order they are defined. 3698s # * 3698s # * Returns: The last property id. 3698s # */ 3698s # guint 3698s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3698s # { 3698s # return property_id_begin - 1; 3698s # } 3698s # 3698s # 3698s # inline static void 3698s # org_project_useful_interface_method_marshal_single_arg_method_ay ( 3698s # GClosure *closure, 3698s # GValue *return_value, 3698s # unsigned int n_param_values, 3698s # const GValue *param_values, 3698s # void *invocation_hint, 3698s # void *marshal_data) 3698s # { 3698s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 3698s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3698s # } 3698s # 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterface: 3698s # * 3698s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceIface: 3698s # * @parent_iface: The parent interface. 3698s # * @handle_single_arg_method_ay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ay signal. 3698s # * 3698s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # */ 3698s # 3698s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 3698s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 3698s # 3698s # static void 3698s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 3698s # { 3698s # /* GObject signals for incoming D-Bus method calls: */ 3698s # /** 3698s # * OrgProjectUsefulInterface::handle-single-arg-method-ay: 3698s # * @object: A #OrgProjectUsefulInterface. 3698s # * @invocation: A #GDBusMethodInvocation. 3698s # * @arg_arg_ay: Argument passed by remote caller. 3698s # * 3698s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodAy">SingleArgMethodAy()</link> D-Bus method. 3698s # * 3698s # * 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. 3698s # * 3698s # * 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. 3698s # */ 3698s # g_signal_new ("handle-single-arg-method-ay", 3698s # G_TYPE_FROM_INTERFACE (iface), 3698s # G_SIGNAL_RUN_LAST, 3698s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ay), 3698s # g_signal_accumulator_true_handled, 3698s # NULL, 3698s # org_project_useful_interface_method_marshal_single_arg_method_ay, 3698s # G_TYPE_BOOLEAN, 3698s # 2, 3698s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 3698s # 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_ay: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @arg_arg_ay: Argument to pass with the method invocation. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodAy">SingleArgMethodAy()</link> D-Bus method on @proxy. 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_call_single_arg_method_ay_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_call_single_arg_method_ay_sync() for the synchronous, blocking version of this method. 3698s # */ 3698s # void 3698s # org_project_useful_interface_call_single_arg_method_ay ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # const gchar *arg_arg_ay, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3698s # "SingleArgMethodAy", 3698s # g_variant_new ("(^ay)", 3698s # arg_arg_ay), 3698s # G_DBUS_CALL_FLAGS_NONE, 3698s # -1, 3698s # cancellable, 3698s # callback, 3698s # user_data); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_ay_finish: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ay(). 3698s # * @error: Return location for error or %NULL. 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ay(). 3698s # * 3698s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3698s # */ 3698s # gboolean 3698s # org_project_useful_interface_call_single_arg_method_ay_finish ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GVariant *_ret; 3698s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3698s # if (_ret == NULL) 3698s # goto _out; 3698s # g_variant_get (_ret, 3698s # "()"); 3698s # g_variant_unref (_ret); 3698s # _out: 3698s # return _ret != NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_ay_sync: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @arg_arg_ay: Argument to pass with the method invocation. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL. 3698s # * 3698s # * Synchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodAy">SingleArgMethodAy()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_call_single_arg_method_ay() for the asynchronous version of this method. 3698s # * 3698s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3698s # */ 3698s # gboolean 3698s # org_project_useful_interface_call_single_arg_method_ay_sync ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # const gchar *arg_arg_ay, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GVariant *_ret; 3698s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3698s # "SingleArgMethodAy", 3698s # g_variant_new ("(^ay)", 3698s # arg_arg_ay), 3698s # G_DBUS_CALL_FLAGS_NONE, 3698s # -1, 3698s # cancellable, 3698s # error); 3698s # if (_ret == NULL) 3698s # goto _out; 3698s # g_variant_get (_ret, 3698s # "()"); 3698s # g_variant_unref (_ret); 3698s # _out: 3698s # return _ret != NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_complete_single_arg_method_ay: 3698s # * @object: A #OrgProjectUsefulInterface. 3698s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3698s # * 3698s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodAy">SingleArgMethodAy()</link> 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. 3698s # * 3698s # * This method will free @invocation, you cannot use it afterwards. 3698s # */ 3698s # void 3698s # org_project_useful_interface_complete_single_arg_method_ay ( 3698s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 3698s # GDBusMethodInvocation *invocation) 3698s # { 3698s # g_dbus_method_invocation_return_value (invocation, 3698s # g_variant_new ("()")); 3698s # } 3698s # 3698s # /* ------------------------------------------------------------------------ */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceProxy: 3698s # * 3698s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceProxyClass: 3698s # * @parent_class: The parent class. 3698s # * 3698s # * Class structure for #OrgProjectUsefulInterfaceProxy. 3698s # */ 3698s # 3698s # struct _OrgProjectUsefulInterfaceProxyPrivate 3698s # { 3698s # GData *qdata; 3698s # }; 3698s # 3698s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3698s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3698s # 3698s # #else 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3698s # 3698s # #endif 3698s # static void 3698s # org_project_useful_interface_proxy_finalize (GObject *object) 3698s # { 3698s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 3698s # g_datalist_clear (&proxy->priv->qdata); 3698s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3698s # guint prop_id G_GNUC_UNUSED, 3698s # GValue *value G_GNUC_UNUSED, 3698s # GParamSpec *pspec G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3698s # guint prop_id G_GNUC_UNUSED, 3698s # const GValue *value G_GNUC_UNUSED, 3698s # GParamSpec *pspec G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 3698s # const gchar *sender_name G_GNUC_UNUSED, 3698s # const gchar *signal_name, 3698s # GVariant *parameters) 3698s # { 3698s # _ExtendedGDBusSignalInfo *info; 3698s # GVariantIter iter; 3698s # GVariant *child; 3698s # GValue *paramv; 3698s # gsize num_params; 3698s # gsize n; 3698s # guint signal_id; 3698s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 3698s # if (info == NULL) 3698s # return; 3698s # num_params = g_variant_n_children (parameters); 3698s # paramv = g_new0 (GValue, num_params + 1); 3698s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_set_object (¶mv[0], proxy); 3698s # g_variant_iter_init (&iter, parameters); 3698s # n = 1; 3698s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3698s # { 3698s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3698s # if (arg_info->use_gvariant) 3698s # { 3698s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3698s # g_value_set_variant (¶mv[n], child); 3698s # n++; 3698s # } 3698s # else 3698s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3698s # g_variant_unref (child); 3698s # } 3698s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_signal_emitv (paramv, signal_id, 0, NULL); 3698s # for (n = 0; n < num_params + 1; n++) 3698s # g_value_unset (¶mv[n]); 3698s # g_free (paramv); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 3698s # GVariant *changed_properties, 3698s # const gchar *const *invalidated_properties) 3698s # { 3698s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 3698s # guint n; 3698s # const gchar *key; 3698s # GVariantIter *iter; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # g_variant_get (changed_properties, "a{sv}", &iter); 3698s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3698s # { 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 3698s # g_datalist_remove_data (&proxy->priv->qdata, key); 3698s # if (info != NULL) 3698s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3698s # } 3698s # g_variant_iter_free (iter); 3698s # for (n = 0; invalidated_properties[n] != NULL; n++) 3698s # { 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 3698s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3698s # if (info != NULL) 3698s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3698s # } 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 3698s # { 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 3698s # #else 3698s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 3698s # #endif 3698s # 3698s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 3698s # { 3698s # GObjectClass *gobject_class; 3698s # GDBusProxyClass *proxy_class; 3698s # 3698s # gobject_class = G_OBJECT_CLASS (klass); 3698s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 3698s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 3698s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 3698s # 3698s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3698s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 3698s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3698s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 3698s # #endif 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new: 3698s # * @connection: A #GDBusConnection. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new() for more details. 3698s # * 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3698s # */ 3698s # void 3698s # org_project_useful_interface_proxy_new ( 3698s # GDBusConnection *connection, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_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); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_finish: 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_finish ( 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GObject *ret; 3698s # GObject *source_object; 3698s # source_object = g_async_result_get_source_object (res); 3698s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3698s # g_object_unref (source_object); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_sync: 3698s # * @connection: A #GDBusConnection. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new_sync() for more details. 3698s # * 3698s # * The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_sync ( 3698s # GDBusConnection *connection, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GInitable *ret; 3698s # 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); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus: 3698s # * @bus_type: A #GBusType. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: A bus name (well-known or unique). 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3698s # * 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3698s # */ 3698s # void 3698s # org_project_useful_interface_proxy_new_for_bus ( 3698s # GBusType bus_type, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_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); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus_finish: 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_for_bus_finish ( 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GObject *ret; 3698s # GObject *source_object; 3698s # source_object = g_async_result_get_source_object (res); 3698s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3698s # g_object_unref (source_object); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus_sync: 3698s # * @bus_type: A #GBusType. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: A bus name (well-known or unique). 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3698s # * 3698s # * The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_for_bus_sync ( 3698s # GBusType bus_type, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GInitable *ret; 3698s # 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); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # 3698s # /* ------------------------------------------------------------------------ */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceSkeleton: 3698s # * 3698s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceSkeletonClass: 3698s # * @parent_class: The parent class. 3698s # * 3698s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 3698s # */ 3698s # 3698s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 3698s # { 3698s # GValue *properties; 3698s # GList *changed_properties; 3698s # GSource *changed_properties_idle_source; 3698s # GMainContext *context; 3698s # GMutex lock; 3698s # }; 3698s # 3698s # static void 3698s # _org_project_useful_interface_skeleton_handle_method_call ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name, 3698s # const gchar *method_name, 3698s # GVariant *parameters, 3698s # GDBusMethodInvocation *invocation, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # _ExtendedGDBusMethodInfo *info; 3698s # GVariantIter iter; 3698s # GVariant *child; 3698s # GValue *paramv; 3698s # gsize num_params; 3698s # guint num_extra; 3698s # gsize n; 3698s # guint signal_id; 3698s # GValue return_value = G_VALUE_INIT; 3698s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3698s # g_assert (info != NULL); 3698s # num_params = g_variant_n_children (parameters); 3698s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3698s # n = 0; 3698s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_set_object (¶mv[n++], skeleton); 3698s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3698s # g_value_set_object (¶mv[n++], invocation); 3698s # if (info->pass_fdlist) 3698s # { 3698s # #ifdef G_OS_UNIX 3698s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3698s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3698s # #else 3698s # g_assert_not_reached (); 3698s # #endif 3698s # } 3698s # g_variant_iter_init (&iter, parameters); 3698s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3698s # { 3698s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3698s # if (arg_info->use_gvariant) 3698s # { 3698s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3698s # g_value_set_variant (¶mv[n], child); 3698s # n++; 3698s # } 3698s # else 3698s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3698s # g_variant_unref (child); 3698s # } 3698s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3698s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3698s # if (!g_value_get_boolean (&return_value)) 3698s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3698s # g_value_unset (&return_value); 3698s # for (n = 0; n < num_params + num_extra; n++) 3698s # g_value_unset (¶mv[n]); 3698s # g_free (paramv); 3698s # } 3698s # 3698s # static GVariant * 3698s # _org_project_useful_interface_skeleton_handle_get_property ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name G_GNUC_UNUSED, 3698s # const gchar *property_name, 3698s # GError **error, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # GValue value = G_VALUE_INIT; 3698s # GParamSpec *pspec; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # GVariant *ret; 3698s # ret = NULL; 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3698s # g_assert (info != NULL); 3698s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3698s # if (pspec == NULL) 3698s # { 3698s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3698s # } 3698s # else 3698s # { 3698s # g_value_init (&value, pspec->value_type); 3698s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3698s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3698s # g_value_unset (&value); 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static gboolean 3698s # _org_project_useful_interface_skeleton_handle_set_property ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name G_GNUC_UNUSED, 3698s # const gchar *property_name, 3698s # GVariant *variant, 3698s # GError **error, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # GValue value = G_VALUE_INIT; 3698s # GParamSpec *pspec; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # gboolean ret; 3698s # ret = FALSE; 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3698s # g_assert (info != NULL); 3698s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3698s # if (pspec == NULL) 3698s # { 3698s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3698s # } 3698s # else 3698s # { 3698s # if (info->use_gvariant) 3698s # g_value_set_variant (&value, variant); 3698s # else 3698s # g_dbus_gvariant_to_gvalue (variant, &value); 3698s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3698s # g_value_unset (&value); 3698s # ret = TRUE; 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 3698s # { 3698s # _org_project_useful_interface_skeleton_handle_method_call, 3698s # _org_project_useful_interface_skeleton_handle_get_property, 3698s # _org_project_useful_interface_skeleton_handle_set_property, 3698s # {NULL} 3698s # }; 3698s # 3698s # static GDBusInterfaceInfo * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3698s # { 3698s # return org_project_useful_interface_interface_info (); 3698s # } 3698s # 3698s # static GDBusInterfaceVTable * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3698s # { 3698s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 3698s # } 3698s # 3698s # static GVariant * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 3698s # 3698s # GVariantBuilder builder; 3698s # guint n; 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3698s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3698s # #else 3698s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3698s # #endif 3698s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 3698s # goto out; 3698s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 3698s # { 3698s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 3698s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3698s # { 3698s # GVariant *value; 3698s # 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); 3698s # if (value != NULL) 3698s # { 3698s # g_variant_take_ref (value); 3698s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3698s # g_variant_unref (value); 3698s # } 3698s # } 3698s # } 3698s # out: 3698s # return g_variant_builder_end (&builder); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3698s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3698s # 3698s # #else 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3698s # 3698s # #endif 3698s # static void 3698s # org_project_useful_interface_skeleton_finalize (GObject *object) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 3698s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3698s # if (skeleton->priv->changed_properties_idle_source != NULL) 3698s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3698s # g_main_context_unref (skeleton->priv->context); 3698s # g_mutex_clear (&skeleton->priv->lock); 3698s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 3698s # { 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 3698s # #else 3698s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 3698s # #endif 3698s # 3698s # g_mutex_init (&skeleton->priv->lock); 3698s # skeleton->priv->context = g_main_context_ref_thread_default (); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 3698s # { 3698s # GObjectClass *gobject_class; 3698s # GDBusInterfaceSkeletonClass *skeleton_class; 3698s # 3698s # gobject_class = G_OBJECT_CLASS (klass); 3698s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 3698s # 3698s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3698s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 3698s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 3698s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 3698s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3698s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 3698s # #endif 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_skeleton_new: 3698s # * 3698s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_skeleton_new (void) 3698s # { 3698s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 3698s # } 3698s # Error: 3698s # 3698s # /tmp/tmpj0kzs0gk/tmpjs1hp12f.xml: 3698s # <node> 3698s # <interface name="org.project.UsefulInterface"> 3698s # <method name="SingleArgMethodAs"> 3698s # <arg name="arg_as" type="as"/> 3698s # </method> 3698s # </interface> 3698s # </node> 3698s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpj0kzs0gk/tmpjs1hp12f.xml', '--output', '-', '--body'] 3698s # Return code: 0 3698s # Output: 3698s # /* 3698s # * This file is generated by gdbus-codegen, do not modify it. 3698s # * 3698s # * The license of this code is the same as for the D-Bus interface description 3698s # * it was derived from. Note that it links to GLib, so must comply with the 3698s # * LGPL linking clauses. 3698s # */ 3698s # 3698s # #ifdef HAVE_CONFIG_H 3698s # # include "config.h" 3698s # #endif 3698s # 3698s # #include <string.h> 3698s # #ifdef G_OS_UNIX 3698s # # include <gio/gunixfdlist.h> 3698s # #endif 3698s # 3698s # #ifdef G_ENABLE_DEBUG 3698s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3698s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3698s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3698s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3698s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3698s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3698s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3698s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3698s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3698s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3698s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3698s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3698s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3698s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3698s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3698s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3698s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3698s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3698s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3698s # #else /* !G_ENABLE_DEBUG */ 3698s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3698s # * Do not access GValues directly in your code. Instead, use the 3698s # * g_value_get_*() functions 3698s # */ 3698s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3698s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3698s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3698s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3698s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3698s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3698s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3698s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3698s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3698s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3698s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3698s # #endif /* !G_ENABLE_DEBUG */ 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusArgInfo parent_struct; 3698s # gboolean use_gvariant; 3698s # } _ExtendedGDBusArgInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusMethodInfo parent_struct; 3698s # const gchar *signal_name; 3698s # gboolean pass_fdlist; 3698s # } _ExtendedGDBusMethodInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusSignalInfo parent_struct; 3698s # const gchar *signal_name; 3698s # } _ExtendedGDBusSignalInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusPropertyInfo parent_struct; 3698s # const gchar *hyphen_name; 3698s # guint use_gvariant : 1; 3698s # guint emits_changed_signal : 1; 3698s # } _ExtendedGDBusPropertyInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusInterfaceInfo parent_struct; 3698s # const gchar *hyphen_name; 3698s # } _ExtendedGDBusInterfaceInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # const _ExtendedGDBusPropertyInfo *info; 3698s # guint prop_id; 3698s # GValue orig_value; /* the value before the change */ 3698s # } ChangedProperty; 3698s # 3698s # static void 3698s # _changed_property_free (ChangedProperty *data) 3698s # { 3698s # g_value_unset (&data->orig_value); 3698s # g_free (data); 3698s # } 3698s # 3698s # static gboolean 3698s # _g_strv_equal0 (gchar **a, gchar **b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # guint n; 3698s # if (a == NULL && b == NULL) 3698s # { 3698s # ret = TRUE; 3698s # goto out; 3698s # } 3698s # if (a == NULL || b == NULL) 3698s # goto out; 3698s # if (g_strv_length (a) != g_strv_length (b)) 3698s # goto out; 3698s # for (n = 0; a[n] != NULL; n++) 3698s # if (g_strcmp0 (a[n], b[n]) != 0) 3698s # goto out; 3698s # ret = TRUE; 3698s # out: 3698s # return ret; 3698s # } 3698s # 3698s # static gboolean 3698s # _g_variant_equal0 (GVariant *a, GVariant *b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # if (a == NULL && b == NULL) 3698s # { 3698s # ret = TRUE; 3698s # goto out; 3698s # } 3698s # if (a == NULL || b == NULL) 3698s # goto out; 3698s # ret = g_variant_equal (a, b); 3698s # out: 3698s # return ret; 3698s # } 3698s # 3698s # G_GNUC_UNUSED static gboolean 3698s # _g_value_equal (const GValue *a, const GValue *b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3698s # switch (G_VALUE_TYPE (a)) 3698s # { 3698s # case G_TYPE_BOOLEAN: 3698s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3698s # break; 3698s # case G_TYPE_UCHAR: 3698s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3698s # break; 3698s # case G_TYPE_INT: 3698s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3698s # break; 3698s # case G_TYPE_UINT: 3698s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3698s # break; 3698s # case G_TYPE_INT64: 3698s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3698s # break; 3698s # case G_TYPE_UINT64: 3698s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3698s # break; 3698s # case G_TYPE_DOUBLE: 3698s # { 3698s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3698s # gdouble da = g_value_get_double (a); 3698s # gdouble db = g_value_get_double (b); 3698s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3698s # } 3698s # break; 3698s # case G_TYPE_STRING: 3698s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3698s # break; 3698s # case G_TYPE_VARIANT: 3698s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3698s # break; 3698s # default: 3698s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3698s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3698s # else 3698s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3698s # break; 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static void 3698s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 3698s # GClosure *closure, 3698s # GValue *return_value, 3698s # unsigned int n_param_values, 3698s # const GValue *param_values, 3698s # void *invocation_hint G_GNUC_UNUSED, 3698s # void *marshal_data) 3698s # { 3698s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 3698s # (void *data1, 3698s # GDBusMethodInvocation *arg_method_invocation, 3698s # const gchar *const *arg_arg_as, 3698s # void *data2); 3698s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 3698s # GCClosure *cc = (GCClosure*) closure; 3698s # void *data1, *data2; 3698s # gboolean v_return; 3698s # 3698s # g_return_if_fail (return_value != NULL); 3698s # g_return_if_fail (n_param_values == 3); 3698s # 3698s # if (G_CCLOSURE_SWAP_DATA (closure)) 3698s # { 3698s # data1 = closure->data; 3698s # data2 = g_value_peek_pointer (param_values + 0); 3698s # } 3698s # else 3698s # { 3698s # data1 = g_value_peek_pointer (param_values + 0); 3698s # data2 = closure->data; 3698s # } 3698s # 3698s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 3698s # (marshal_data ? marshal_data : cc->callback); 3698s # 3698s # v_return = 3698s # callback (data1, 3698s # g_marshal_value_peek_object (param_values + 1), 3698s # g_marshal_value_peek_boxed (param_values + 2), 3698s # data2); 3698s # 3698s # g_value_set_boolean (return_value, v_return); 3698s # } 3698s # 3698s # /* ------------------------------------------------------------------------ 3698s # * Code for interface org.project.UsefulInterface 3698s # * ------------------------------------------------------------------------ 3698s # */ 3698s # 3698s # /** 3698s # * SECTION:OrgProjectUsefulInterface 3698s # * @title: OrgProjectUsefulInterface 3698s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 3698s # * 3698s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface in C. 3698s # */ 3698s # 3698s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 3698s # 3698s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_arg_as = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "arg_as", 3698s # (gchar *) "as", 3698s # NULL 3698s # }, 3698s # FALSE 3698s # }; 3698s # 3698s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_pointers[] = 3698s # { 3698s # &_org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_arg_as.parent_struct, 3698s # NULL 3698s # }; 3698s # 3698s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_as = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "SingleArgMethodAs", 3698s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_pointers, 3698s # NULL, 3698s # NULL 3698s # }, 3698s # "handle-single-arg-method-as", 3698s # FALSE 3698s # }; 3698s # 3698s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 3698s # { 3698s # &_org_project_useful_interface_method_info_single_arg_method_as.parent_struct, 3698s # NULL 3698s # }; 3698s # 3698s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "org.project.UsefulInterface", 3698s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 3698s # NULL, 3698s # NULL, 3698s # NULL 3698s # }, 3698s # "org-project-useful-interface", 3698s # }; 3698s # 3698s # 3698s # /** 3698s # * org_project_useful_interface_interface_info: 3698s # * 3698s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface. 3698s # * 3698s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3698s # */ 3698s # GDBusInterfaceInfo * 3698s # org_project_useful_interface_interface_info (void) 3698s # { 3698s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_override_properties: 3698s # * @klass: The class structure for a #GObject derived class. 3698s # * @property_id_begin: The property id to assign to the first overridden property. 3698s # * 3698s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 3698s # * The properties are overridden in the order they are defined. 3698s # * 3698s # * Returns: The last property id. 3698s # */ 3698s # guint 3698s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3698s # { 3698s # return property_id_begin - 1; 3698s # } 3698s # 3698s # 3698s # inline static void 3698s # org_project_useful_interface_method_marshal_single_arg_method_as ( 3698s # GClosure *closure, 3698s # GValue *return_value, 3698s # unsigned int n_param_values, 3698s # const GValue *param_values, 3698s # void *invocation_hint, 3698s # void *marshal_data) 3698s # { 3698s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 3698s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3698s # } 3698s # 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterface: 3698s # * 3698s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceIface: 3698s # * @parent_iface: The parent interface. 3698s # * @handle_single_arg_method_as: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-as signal. 3698s # * 3698s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # */ 3698s # 3698s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 3698s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 3698s # 3698s # static void 3698s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 3698s # { 3698s # /* GObject signals for incoming D-Bus method calls: */ 3698s # /** 3698s # * OrgProjectUsefulInterface::handle-single-arg-method-as: 3698s # * @object: A #OrgProjectUsefulInterface. 3698s # * @invocation: A #GDBusMethodInvocation. 3698s # * @arg_arg_as: Argument passed by remote caller. 3698s # * 3698s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodAs">SingleArgMethodAs()</link> D-Bus method. 3698s # * 3698s # * 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. 3698s # * 3698s # * 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. 3698s # */ 3698s # g_signal_new ("handle-single-arg-method-as", 3698s # G_TYPE_FROM_INTERFACE (iface), 3698s # G_SIGNAL_RUN_LAST, 3698s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_as), 3698s # g_signal_accumulator_true_handled, 3698s # NULL, 3698s # org_project_useful_interface_method_marshal_single_arg_method_as, 3698s # G_TYPE_BOOLEAN, 3698s # 2, 3698s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 3698s # 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_as: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @arg_arg_as: Argument to pass with the method invocation. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodAs">SingleArgMethodAs()</link> D-Bus method on @proxy. 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_call_single_arg_method_as_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_call_single_arg_method_as_sync() for the synchronous, blocking version of this method. 3698s # */ 3698s # void 3698s # org_project_useful_interface_call_single_arg_method_as ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # const gchar *const *arg_arg_as, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3698s # "SingleArgMethodAs", 3698s # g_variant_new ("(^as)", 3698s # arg_arg_as), 3698s # G_DBUS_CALL_FLAGS_NONE, 3698s # -1, 3698s # cancellable, 3698s # callback, 3698s # user_data); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_as_finish: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_as(). 3698s # * @error: Return location for error or %NULL. 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_as(). 3698s # * 3698s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3698s # */ 3698s # gboolean 3698s # org_project_useful_interface_call_single_arg_method_as_finish ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GVariant *_ret; 3698s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3698s # if (_ret == NULL) 3698s # goto _out; 3698s # g_variant_get (_ret, 3698s # "()"); 3698s # g_variant_unref (_ret); 3698s # _out: 3698s # return _ret != NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_as_sync: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @arg_arg_as: Argument to pass with the method invocation. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL. 3698s # * 3698s # * Synchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodAs">SingleArgMethodAs()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_call_single_arg_method_as() for the asynchronous version of this method. 3698s # * 3698s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3698s # */ 3698s # gboolean 3698s # org_project_useful_interface_call_single_arg_method_as_sync ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # const gchar *const *arg_arg_as, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GVariant *_ret; 3698s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3698s # "SingleArgMethodAs", 3698s # g_variant_new ("(^as)", 3698s # arg_arg_as), 3698s # G_DBUS_CALL_FLAGS_NONE, 3698s # -1, 3698s # cancellable, 3698s # error); 3698s # if (_ret == NULL) 3698s # goto _out; 3698s # g_variant_get (_ret, 3698s # "()"); 3698s # g_variant_unref (_ret); 3698s # _out: 3698s # return _ret != NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_complete_single_arg_method_as: 3698s # * @object: A #OrgProjectUsefulInterface. 3698s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3698s # * 3698s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodAs">SingleArgMethodAs()</link> 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. 3698s # * 3698s # * This method will free @invocation, you cannot use it afterwards. 3698s # */ 3698s # void 3698s # org_project_useful_interface_complete_single_arg_method_as ( 3698s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 3698s # GDBusMethodInvocation *invocation) 3698s # { 3698s # g_dbus_method_invocation_return_value (invocation, 3698s # g_variant_new ("()")); 3698s # } 3698s # 3698s # /* ------------------------------------------------------------------------ */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceProxy: 3698s # * 3698s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceProxyClass: 3698s # * @parent_class: The parent class. 3698s # * 3698s # * Class structure for #OrgProjectUsefulInterfaceProxy. 3698s # */ 3698s # 3698s # struct _OrgProjectUsefulInterfaceProxyPrivate 3698s # { 3698s # GData *qdata; 3698s # }; 3698s # 3698s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3698s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3698s # 3698s # #else 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3698s # 3698s # #endif 3698s # static void 3698s # org_project_useful_interface_proxy_finalize (GObject *object) 3698s # { 3698s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 3698s # g_datalist_clear (&proxy->priv->qdata); 3698s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3698s # guint prop_id G_GNUC_UNUSED, 3698s # GValue *value G_GNUC_UNUSED, 3698s # GParamSpec *pspec G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3698s # guint prop_id G_GNUC_UNUSED, 3698s # const GValue *value G_GNUC_UNUSED, 3698s # GParamSpec *pspec G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 3698s # const gchar *sender_name G_GNUC_UNUSED, 3698s # const gchar *signal_name, 3698s # GVariant *parameters) 3698s # { 3698s # _ExtendedGDBusSignalInfo *info; 3698s # GVariantIter iter; 3698s # GVariant *child; 3698s # GValue *paramv; 3698s # gsize num_params; 3698s # gsize n; 3698s # guint signal_id; 3698s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 3698s # if (info == NULL) 3698s # return; 3698s # num_params = g_variant_n_children (parameters); 3698s # paramv = g_new0 (GValue, num_params + 1); 3698s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_set_object (¶mv[0], proxy); 3698s # g_variant_iter_init (&iter, parameters); 3698s # n = 1; 3698s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3698s # { 3698s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3698s # if (arg_info->use_gvariant) 3698s # { 3698s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3698s # g_value_set_variant (¶mv[n], child); 3698s # n++; 3698s # } 3698s # else 3698s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3698s # g_variant_unref (child); 3698s # } 3698s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_signal_emitv (paramv, signal_id, 0, NULL); 3698s # for (n = 0; n < num_params + 1; n++) 3698s # g_value_unset (¶mv[n]); 3698s # g_free (paramv); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 3698s # GVariant *changed_properties, 3698s # const gchar *const *invalidated_properties) 3698s # { 3698s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 3698s # guint n; 3698s # const gchar *key; 3698s # GVariantIter *iter; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # g_variant_get (changed_properties, "a{sv}", &iter); 3698s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3698s # { 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 3698s # g_datalist_remove_data (&proxy->priv->qdata, key); 3698s # if (info != NULL) 3698s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3698s # } 3698s # g_variant_iter_free (iter); 3698s # for (n = 0; invalidated_properties[n] != NULL; n++) 3698s # { 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 3698s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3698s # if (info != NULL) 3698s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3698s # } 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 3698s # { 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 3698s # #else 3698s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 3698s # #endif 3698s # 3698s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 3698s # { 3698s # GObjectClass *gobject_class; 3698s # GDBusProxyClass *proxy_class; 3698s # 3698s # gobject_class = G_OBJECT_CLASS (klass); 3698s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 3698s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 3698s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 3698s # 3698s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3698s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 3698s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3698s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 3698s # #endif 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new: 3698s # * @connection: A #GDBusConnection. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new() for more details. 3698s # * 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3698s # */ 3698s # void 3698s # org_project_useful_interface_proxy_new ( 3698s # GDBusConnection *connection, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_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); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_finish: 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_finish ( 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GObject *ret; 3698s # GObject *source_object; 3698s # source_object = g_async_result_get_source_object (res); 3698s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3698s # g_object_unref (source_object); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_sync: 3698s # * @connection: A #GDBusConnection. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new_sync() for more details. 3698s # * 3698s # * The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_sync ( 3698s # GDBusConnection *connection, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GInitable *ret; 3698s # 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); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus: 3698s # * @bus_type: A #GBusType. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: A bus name (well-known or unique). 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3698s # * 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3698s # */ 3698s # void 3698s # org_project_useful_interface_proxy_new_for_bus ( 3698s # GBusType bus_type, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_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); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus_finish: 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_for_bus_finish ( 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GObject *ret; 3698s # GObject *source_object; 3698s # source_object = g_async_result_get_source_object (res); 3698s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3698s # g_object_unref (source_object); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus_sync: 3698s # * @bus_type: A #GBusType. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: A bus name (well-known or unique). 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3698s # * 3698s # * The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_for_bus_sync ( 3698s # GBusType bus_type, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GInitable *ret; 3698s # 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); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # 3698s # /* ------------------------------------------------------------------------ */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceSkeleton: 3698s # * 3698s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceSkeletonClass: 3698s # * @parent_class: The parent class. 3698s # * 3698s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 3698s # */ 3698s # 3698s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 3698s # { 3698s # GValue *properties; 3698s # GList *changed_properties; 3698s # GSource *changed_properties_idle_source; 3698s # GMainContext *context; 3698s # GMutex lock; 3698s # }; 3698s # 3698s # static void 3698s # _org_project_useful_interface_skeleton_handle_method_call ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name, 3698s # const gchar *method_name, 3698s # GVariant *parameters, 3698s # GDBusMethodInvocation *invocation, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # _ExtendedGDBusMethodInfo *info; 3698s # GVariantIter iter; 3698s # GVariant *child; 3698s # GValue *paramv; 3698s # gsize num_params; 3698s # guint num_extra; 3698s # gsize n; 3698s # guint signal_id; 3698s # GValue return_value = G_VALUE_INIT; 3698s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3698s # g_assert (info != NULL); 3698s # num_params = g_variant_n_children (parameters); 3698s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3698s # n = 0; 3698s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_set_object (¶mv[n++], skeleton); 3698s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3698s # g_value_set_object (¶mv[n++], invocation); 3698s # if (info->pass_fdlist) 3698s # { 3698s # #ifdef G_OS_UNIX 3698s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3698s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3698s # #else 3698s # g_assert_not_reached (); 3698s # #endif 3698s # } 3698s # g_variant_iter_init (&iter, parameters); 3698s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3698s # { 3698s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3698s # if (arg_info->use_gvariant) 3698s # { 3698s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3698s # g_value_set_variant (¶mv[n], child); 3698s # n++; 3698s # } 3698s # else 3698s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3698s # g_variant_unref (child); 3698s # } 3698s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3698s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3698s # if (!g_value_get_boolean (&return_value)) 3698s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3698s # g_value_unset (&return_value); 3698s # for (n = 0; n < num_params + num_extra; n++) 3698s # g_value_unset (¶mv[n]); 3698s # g_free (paramv); 3698s # } 3698s # 3698s # static GVariant * 3698s # _org_project_useful_interface_skeleton_handle_get_property ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name G_GNUC_UNUSED, 3698s # const gchar *property_name, 3698s # GError **error, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # GValue value = G_VALUE_INIT; 3698s # GParamSpec *pspec; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # GVariant *ret; 3698s # ret = NULL; 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3698s # g_assert (info != NULL); 3698s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3698s # if (pspec == NULL) 3698s # { 3698s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3698s # } 3698s # else 3698s # { 3698s # g_value_init (&value, pspec->value_type); 3698s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3698s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3698s # g_value_unset (&value); 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static gboolean 3698s # _org_project_useful_interface_skeleton_handle_set_property ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name G_GNUC_UNUSED, 3698s # const gchar *property_name, 3698s # GVariant *variant, 3698s # GError **error, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # GValue value = G_VALUE_INIT; 3698s # GParamSpec *pspec; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # gboolean ret; 3698s # ret = FALSE; 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3698s # g_assert (info != NULL); 3698s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3698s # if (pspec == NULL) 3698s # { 3698s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3698s # } 3698s # else 3698s # { 3698s # if (info->use_gvariant) 3698s # g_value_set_variant (&value, variant); 3698s # else 3698s # g_dbus_gvariant_to_gvalue (variant, &value); 3698s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3698s # g_value_unset (&value); 3698s # ret = TRUE; 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 3698s # { 3698s # _org_project_useful_interface_skeleton_handle_method_call, 3698s # _org_project_useful_interface_skeleton_handle_get_property, 3698s # _org_project_useful_interface_skeleton_handle_set_property, 3698s # {NULL} 3698s # }; 3698s # 3698s # static GDBusInterfaceInfo * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3698s # { 3698s # return org_project_useful_interface_interface_info (); 3698s # } 3698s # 3698s # static GDBusInterfaceVTable * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3698s # { 3698s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 3698s # } 3698s # 3698s # static GVariant * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 3698s # 3698s # GVariantBuilder builder; 3698s # guint n; 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3698s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3698s # #else 3698s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3698s # #endif 3698s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 3698s # goto out; 3698s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 3698s # { 3698s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 3698s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3698s # { 3698s # GVariant *value; 3698s # 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); 3698s # if (value != NULL) 3698s # { 3698s # g_variant_take_ref (value); 3698s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3698s # g_variant_unref (value); 3698s # } 3698s # } 3698s # } 3698s # out: 3698s # return g_variant_builder_end (&builder); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3698s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3698s # 3698s # #else 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3698s # 3698s # #endif 3698s # static void 3698s # org_project_useful_interface_skeleton_finalize (GObject *object) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 3698s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3698s # if (skeleton->priv->changed_properties_idle_source != NULL) 3698s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3698s # g_main_context_unref (skeleton->priv->context); 3698s # g_mutex_clear (&skeleton->priv->lock); 3698s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 3698s # { 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 3698s # #else 3698s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 3698s # #endif 3698s # 3698s # g_mutex_init (&skeleton->priv->lock); 3698s # skeleton->priv->context = g_main_context_ref_thread_default (); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 3698s # { 3698s # GObjectClass *gobject_class; 3698s # GDBusInterfaceSkeletonClass *skeleton_class; 3698s # 3698s # gobject_class = G_OBJECT_CLASS (klass); 3698s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 3698s # 3698s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3698s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 3698s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 3698s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 3698s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3698s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 3698s # #endif 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_skeleton_new: 3698s # * 3698s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_skeleton_new (void) 3698s # { 3698s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 3698s # } 3698s # Error: 3698s # 3698s # /tmp/tmpj0kzs0gk/tmp3grifocz.xml: 3698s # <node> 3698s # <interface name="org.project.UsefulInterface"> 3698s # <method name="SingleArgMethodAo"> 3698s # <arg name="arg_ao" type="ao"/> 3698s # </method> 3698s # </interface> 3698s # </node> 3698s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpj0kzs0gk/tmp3grifocz.xml', '--output', '-', '--body'] 3698s # Return code: 0 3698s # Output: 3698s # /* 3698s # * This file is generated by gdbus-codegen, do not modify it. 3698s # * 3698s # * The license of this code is the same as for the D-Bus interface description 3698s # * it was derived from. Note that it links to GLib, so must comply with the 3698s # * LGPL linking clauses. 3698s # */ 3698s # 3698s # #ifdef HAVE_CONFIG_H 3698s # # include "config.h" 3698s # #endif 3698s # 3698s # #include <string.h> 3698s # #ifdef G_OS_UNIX 3698s # # include <gio/gunixfdlist.h> 3698s # #endif 3698s # 3698s # #ifdef G_ENABLE_DEBUG 3698s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3698s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3698s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3698s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3698s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3698s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3698s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3698s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3698s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3698s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3698s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3698s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3698s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3698s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3698s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3698s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3698s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3698s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3698s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3698s # #else /* !G_ENABLE_DEBUG */ 3698s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3698s # * Do not access GValues directly in your code. Instead, use the 3698s # * g_value_get_*() functions 3698s # */ 3698s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3698s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3698s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3698s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3698s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3698s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3698s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3698s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3698s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3698s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3698s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3698s # #endif /* !G_ENABLE_DEBUG */ 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusArgInfo parent_struct; 3698s # gboolean use_gvariant; 3698s # } _ExtendedGDBusArgInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusMethodInfo parent_struct; 3698s # const gchar *signal_name; 3698s # gboolean pass_fdlist; 3698s # } _ExtendedGDBusMethodInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusSignalInfo parent_struct; 3698s # const gchar *signal_name; 3698s # } _ExtendedGDBusSignalInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusPropertyInfo parent_struct; 3698s # const gchar *hyphen_name; 3698s # guint use_gvariant : 1; 3698s # guint emits_changed_signal : 1; 3698s # } _ExtendedGDBusPropertyInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusInterfaceInfo parent_struct; 3698s # const gchar *hyphen_name; 3698s # } _ExtendedGDBusInterfaceInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # const _ExtendedGDBusPropertyInfo *info; 3698s # guint prop_id; 3698s # GValue orig_value; /* the value before the change */ 3698s # } ChangedProperty; 3698s # 3698s # static void 3698s # _changed_property_free (ChangedProperty *data) 3698s # { 3698s # g_value_unset (&data->orig_value); 3698s # g_free (data); 3698s # } 3698s # 3698s # static gboolean 3698s # _g_strv_equal0 (gchar **a, gchar **b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # guint n; 3698s # if (a == NULL && b == NULL) 3698s # { 3698s # ret = TRUE; 3698s # goto out; 3698s # } 3698s # if (a == NULL || b == NULL) 3698s # goto out; 3698s # if (g_strv_length (a) != g_strv_length (b)) 3698s # goto out; 3698s # for (n = 0; a[n] != NULL; n++) 3698s # if (g_strcmp0 (a[n], b[n]) != 0) 3698s # goto out; 3698s # ret = TRUE; 3698s # out: 3698s # return ret; 3698s # } 3698s # 3698s # static gboolean 3698s # _g_variant_equal0 (GVariant *a, GVariant *b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # if (a == NULL && b == NULL) 3698s # { 3698s # ret = TRUE; 3698s # goto out; 3698s # } 3698s # if (a == NULL || b == NULL) 3698s # goto out; 3698s # ret = g_variant_equal (a, b); 3698s # out: 3698s # return ret; 3698s # } 3698s # 3698s # G_GNUC_UNUSED static gboolean 3698s # _g_value_equal (const GValue *a, const GValue *b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3698s # switch (G_VALUE_TYPE (a)) 3698s # { 3698s # case G_TYPE_BOOLEAN: 3698s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3698s # break; 3698s # case G_TYPE_UCHAR: 3698s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3698s # break; 3698s # case G_TYPE_INT: 3698s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3698s # break; 3698s # case G_TYPE_UINT: 3698s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3698s # break; 3698s # case G_TYPE_INT64: 3698s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3698s # break; 3698s # case G_TYPE_UINT64: 3698s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3698s # break; 3698s # case G_TYPE_DOUBLE: 3698s # { 3698s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3698s # gdouble da = g_value_get_double (a); 3698s # gdouble db = g_value_get_double (b); 3698s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3698s # } 3698s # break; 3698s # case G_TYPE_STRING: 3698s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3698s # break; 3698s # case G_TYPE_VARIANT: 3698s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3698s # break; 3698s # default: 3698s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3698s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3698s # else 3698s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3698s # break; 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static void 3698s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 3698s # GClosure *closure, 3698s # GValue *return_value, 3698s # unsigned int n_param_values, 3698s # const GValue *param_values, 3698s # void *invocation_hint G_GNUC_UNUSED, 3698s # void *marshal_data) 3698s # { 3698s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 3698s # (void *data1, 3698s # GDBusMethodInvocation *arg_method_invocation, 3698s # const gchar *const *arg_arg_ao, 3698s # void *data2); 3698s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 3698s # GCClosure *cc = (GCClosure*) closure; 3698s # void *data1, *data2; 3698s # gboolean v_return; 3698s # 3698s # g_return_if_fail (return_value != NULL); 3698s # g_return_if_fail (n_param_values == 3); 3698s # 3698s # if (G_CCLOSURE_SWAP_DATA (closure)) 3698s # { 3698s # data1 = closure->data; 3698s # data2 = g_value_peek_pointer (param_values + 0); 3698s # } 3698s # else 3698s # { 3698s # data1 = g_value_peek_pointer (param_values + 0); 3698s # data2 = closure->data; 3698s # } 3698s # 3698s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 3698s # (marshal_data ? marshal_data : cc->callback); 3698s # 3698s # v_return = 3698s # callback (data1, 3698s # g_marshal_value_peek_object (param_values + 1), 3698s # g_marshal_value_peek_boxed (param_values + 2), 3698s # data2); 3698s # 3698s # g_value_set_boolean (return_value, v_return); 3698s # } 3698s # 3698s # /* ------------------------------------------------------------------------ 3698s # * Code for interface org.project.UsefulInterface 3698s # * ------------------------------------------------------------------------ 3698s # */ 3698s # 3698s # /** 3698s # * SECTION:OrgProjectUsefulInterface 3698s # * @title: OrgProjectUsefulInterface 3698s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 3698s # * 3698s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface in C. 3698s # */ 3698s # 3698s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 3698s # 3698s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_arg_ao = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "arg_ao", 3698s # (gchar *) "ao", 3698s # NULL 3698s # }, 3698s # FALSE 3698s # }; 3698s # 3698s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_pointers[] = 3698s # { 3698s # &_org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_arg_ao.parent_struct, 3698s # NULL 3698s # }; 3698s # 3698s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ao = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "SingleArgMethodAo", 3698s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_pointers, 3698s # NULL, 3698s # NULL 3698s # }, 3698s # "handle-single-arg-method-ao", 3698s # FALSE 3698s # }; 3698s # 3698s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 3698s # { 3698s # &_org_project_useful_interface_method_info_single_arg_method_ao.parent_struct, 3698s # NULL 3698s # }; 3698s # 3698s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "org.project.UsefulInterface", 3698s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 3698s # NULL, 3698s # NULL, 3698s # NULL 3698s # }, 3698s # "org-project-useful-interface", 3698s # }; 3698s # 3698s # 3698s # /** 3698s # * org_project_useful_interface_interface_info: 3698s # * 3698s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface. 3698s # * 3698s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3698s # */ 3698s # GDBusInterfaceInfo * 3698s # org_project_useful_interface_interface_info (void) 3698s # { 3698s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_override_properties: 3698s # * @klass: The class structure for a #GObject derived class. 3698s # * @property_id_begin: The property id to assign to the first overridden property. 3698s # * 3698s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 3698s # * The properties are overridden in the order they are defined. 3698s # * 3698s # * Returns: The last property id. 3698s # */ 3698s # guint 3698s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3698s # { 3698s # return property_id_begin - 1; 3698s # } 3698s # 3698s # 3698s # inline static void 3698s # org_project_useful_interface_method_marshal_single_arg_method_ao ( 3698s # GClosure *closure, 3698s # GValue *return_value, 3698s # unsigned int n_param_values, 3698s # const GValue *param_values, 3698s # void *invocation_hint, 3698s # void *marshal_data) 3698s # { 3698s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 3698s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3698s # } 3698s # 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterface: 3698s # * 3698s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceIface: 3698s # * @parent_iface: The parent interface. 3698s # * @handle_single_arg_method_ao: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ao signal. 3698s # * 3698s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # */ 3698s # 3698s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 3698s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 3698s # 3698s # static void 3698s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 3698s # { 3698s # /* GObject signals for incoming D-Bus method calls: */ 3698s # /** 3698s # * OrgProjectUsefulInterface::handle-single-arg-method-ao: 3698s # * @object: A #OrgProjectUsefulInterface. 3698s # * @invocation: A #GDBusMethodInvocation. 3698s # * @arg_arg_ao: Argument passed by remote caller. 3698s # * 3698s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodAo">SingleArgMethodAo()</link> D-Bus method. 3698s # * 3698s # * 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. 3698s # * 3698s # * 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. 3698s # */ 3698s # g_signal_new ("handle-single-arg-method-ao", 3698s # G_TYPE_FROM_INTERFACE (iface), 3698s # G_SIGNAL_RUN_LAST, 3698s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ao), 3698s # g_signal_accumulator_true_handled, 3698s # NULL, 3698s # org_project_useful_interface_method_marshal_single_arg_method_ao, 3698s # G_TYPE_BOOLEAN, 3698s # 2, 3698s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 3698s # 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_ao: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @arg_arg_ao: Argument to pass with the method invocation. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodAo">SingleArgMethodAo()</link> D-Bus method on @proxy. 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_call_single_arg_method_ao_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_call_single_arg_method_ao_sync() for the synchronous, blocking version of this method. 3698s # */ 3698s # void 3698s # org_project_useful_interface_call_single_arg_method_ao ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # const gchar *const *arg_arg_ao, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3698s # "SingleArgMethodAo", 3698s # g_variant_new ("(^ao)", 3698s # arg_arg_ao), 3698s # G_DBUS_CALL_FLAGS_NONE, 3698s # -1, 3698s # cancellable, 3698s # callback, 3698s # user_data); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_ao_finish: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ao(). 3698s # * @error: Return location for error or %NULL. 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ao(). 3698s # * 3698s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3698s # */ 3698s # gboolean 3698s # org_project_useful_interface_call_single_arg_method_ao_finish ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GVariant *_ret; 3698s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3698s # if (_ret == NULL) 3698s # goto _out; 3698s # g_variant_get (_ret, 3698s # "()"); 3698s # g_variant_unref (_ret); 3698s # _out: 3698s # return _ret != NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_ao_sync: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @arg_arg_ao: Argument to pass with the method invocation. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL. 3698s # * 3698s # * Synchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodAo">SingleArgMethodAo()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_call_single_arg_method_ao() for the asynchronous version of this method. 3698s # * 3698s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3698s # */ 3698s # gboolean 3698s # org_project_useful_interface_call_single_arg_method_ao_sync ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # const gchar *const *arg_arg_ao, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GVariant *_ret; 3698s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3698s # "SingleArgMethodAo", 3698s # g_variant_new ("(^ao)", 3698s # arg_arg_ao), 3698s # G_DBUS_CALL_FLAGS_NONE, 3698s # -1, 3698s # cancellable, 3698s # error); 3698s # if (_ret == NULL) 3698s # goto _out; 3698s # g_variant_get (_ret, 3698s # "()"); 3698s # g_variant_unref (_ret); 3698s # _out: 3698s # return _ret != NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_complete_single_arg_method_ao: 3698s # * @object: A #OrgProjectUsefulInterface. 3698s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3698s # * 3698s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodAo">SingleArgMethodAo()</link> 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. 3698s # * 3698s # * This method will free @invocation, you cannot use it afterwards. 3698s # */ 3698s # void 3698s # org_project_useful_interface_complete_single_arg_method_ao ( 3698s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 3698s # GDBusMethodInvocation *invocation) 3698s # { 3698s # g_dbus_method_invocation_return_value (invocation, 3698s # g_variant_new ("()")); 3698s # } 3698s # 3698s # /* ------------------------------------------------------------------------ */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceProxy: 3698s # * 3698s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceProxyClass: 3698s # * @parent_class: The parent class. 3698s # * 3698s # * Class structure for #OrgProjectUsefulInterfaceProxy. 3698s # */ 3698s # 3698s # struct _OrgProjectUsefulInterfaceProxyPrivate 3698s # { 3698s # GData *qdata; 3698s # }; 3698s # 3698s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3698s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3698s # 3698s # #else 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3698s # 3698s # #endif 3698s # static void 3698s # org_project_useful_interface_proxy_finalize (GObject *object) 3698s # { 3698s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 3698s # g_datalist_clear (&proxy->priv->qdata); 3698s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3698s # guint prop_id G_GNUC_UNUSED, 3698s # GValue *value G_GNUC_UNUSED, 3698s # GParamSpec *pspec G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3698s # guint prop_id G_GNUC_UNUSED, 3698s # const GValue *value G_GNUC_UNUSED, 3698s # GParamSpec *pspec G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 3698s # const gchar *sender_name G_GNUC_UNUSED, 3698s # const gchar *signal_name, 3698s # GVariant *parameters) 3698s # { 3698s # _ExtendedGDBusSignalInfo *info; 3698s # GVariantIter iter; 3698s # GVariant *child; 3698s # GValue *paramv; 3698s # gsize num_params; 3698s # gsize n; 3698s # guint signal_id; 3698s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 3698s # if (info == NULL) 3698s # return; 3698s # num_params = g_variant_n_children (parameters); 3698s # paramv = g_new0 (GValue, num_params + 1); 3698s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_set_object (¶mv[0], proxy); 3698s # g_variant_iter_init (&iter, parameters); 3698s # n = 1; 3698s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3698s # { 3698s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3698s # if (arg_info->use_gvariant) 3698s # { 3698s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3698s # g_value_set_variant (¶mv[n], child); 3698s # n++; 3698s # } 3698s # else 3698s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3698s # g_variant_unref (child); 3698s # } 3698s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_signal_emitv (paramv, signal_id, 0, NULL); 3698s # for (n = 0; n < num_params + 1; n++) 3698s # g_value_unset (¶mv[n]); 3698s # g_free (paramv); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 3698s # GVariant *changed_properties, 3698s # const gchar *const *invalidated_properties) 3698s # { 3698s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 3698s # guint n; 3698s # const gchar *key; 3698s # GVariantIter *iter; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # g_variant_get (changed_properties, "a{sv}", &iter); 3698s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3698s # { 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 3698s # g_datalist_remove_data (&proxy->priv->qdata, key); 3698s # if (info != NULL) 3698s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3698s # } 3698s # g_variant_iter_free (iter); 3698s # for (n = 0; invalidated_properties[n] != NULL; n++) 3698s # { 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 3698s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3698s # if (info != NULL) 3698s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3698s # } 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 3698s # { 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 3698s # #else 3698s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 3698s # #endif 3698s # 3698s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 3698s # { 3698s # GObjectClass *gobject_class; 3698s # GDBusProxyClass *proxy_class; 3698s # 3698s # gobject_class = G_OBJECT_CLASS (klass); 3698s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 3698s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 3698s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 3698s # 3698s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3698s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 3698s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3698s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 3698s # #endif 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new: 3698s # * @connection: A #GDBusConnection. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new() for more details. 3698s # * 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3698s # */ 3698s # void 3698s # org_project_useful_interface_proxy_new ( 3698s # GDBusConnection *connection, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_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); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_finish: 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_finish ( 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GObject *ret; 3698s # GObject *source_object; 3698s # source_object = g_async_result_get_source_object (res); 3698s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3698s # g_object_unref (source_object); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_sync: 3698s # * @connection: A #GDBusConnection. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new_sync() for more details. 3698s # * 3698s # * The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_sync ( 3698s # GDBusConnection *connection, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GInitable *ret; 3698s # 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); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus: 3698s # * @bus_type: A #GBusType. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: A bus name (well-known or unique). 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3698s # * 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3698s # */ 3698s # void 3698s # org_project_useful_interface_proxy_new_for_bus ( 3698s # GBusType bus_type, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_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); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus_finish: 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_for_bus_finish ( 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GObject *ret; 3698s # GObject *source_object; 3698s # source_object = g_async_result_get_source_object (res); 3698s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3698s # g_object_unref (source_object); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus_sync: 3698s # * @bus_type: A #GBusType. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: A bus name (well-known or unique). 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3698s # * 3698s # * The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_for_bus_sync ( 3698s # GBusType bus_type, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GInitable *ret; 3698s # 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); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # 3698s # /* ------------------------------------------------------------------------ */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceSkeleton: 3698s # * 3698s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceSkeletonClass: 3698s # * @parent_class: The parent class. 3698s # * 3698s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 3698s # */ 3698s # 3698s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 3698s # { 3698s # GValue *properties; 3698s # GList *changed_properties; 3698s # GSource *changed_properties_idle_source; 3698s # GMainContext *context; 3698s # GMutex lock; 3698s # }; 3698s # 3698s # static void 3698s # _org_project_useful_interface_skeleton_handle_method_call ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name, 3698s # const gchar *method_name, 3698s # GVariant *parameters, 3698s # GDBusMethodInvocation *invocation, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # _ExtendedGDBusMethodInfo *info; 3698s # GVariantIter iter; 3698s # GVariant *child; 3698s # GValue *paramv; 3698s # gsize num_params; 3698s # guint num_extra; 3698s # gsize n; 3698s # guint signal_id; 3698s # GValue return_value = G_VALUE_INIT; 3698s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3698s # g_assert (info != NULL); 3698s # num_params = g_variant_n_children (parameters); 3698s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3698s # n = 0; 3698s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_set_object (¶mv[n++], skeleton); 3698s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3698s # g_value_set_object (¶mv[n++], invocation); 3698s # if (info->pass_fdlist) 3698s # { 3698s # #ifdef G_OS_UNIX 3698s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3698s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3698s # #else 3698s # g_assert_not_reached (); 3698s # #endif 3698s # } 3698s # g_variant_iter_init (&iter, parameters); 3698s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3698s # { 3698s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3698s # if (arg_info->use_gvariant) 3698s # { 3698s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3698s # g_value_set_variant (¶mv[n], child); 3698s # n++; 3698s # } 3698s # else 3698s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3698s # g_variant_unref (child); 3698s # } 3698s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3698s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3698s # if (!g_value_get_boolean (&return_value)) 3698s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3698s # g_value_unset (&return_value); 3698s # for (n = 0; n < num_params + num_extra; n++) 3698s # g_value_unset (¶mv[n]); 3698s # g_free (paramv); 3698s # } 3698s # 3698s # static GVariant * 3698s # _org_project_useful_interface_skeleton_handle_get_property ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name G_GNUC_UNUSED, 3698s # const gchar *property_name, 3698s # GError **error, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # GValue value = G_VALUE_INIT; 3698s # GParamSpec *pspec; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # GVariant *ret; 3698s # ret = NULL; 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3698s # g_assert (info != NULL); 3698s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3698s # if (pspec == NULL) 3698s # { 3698s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3698s # } 3698s # else 3698s # { 3698s # g_value_init (&value, pspec->value_type); 3698s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3698s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3698s # g_value_unset (&value); 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static gboolean 3698s # _org_project_useful_interface_skeleton_handle_set_property ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name G_GNUC_UNUSED, 3698s # const gchar *property_name, 3698s # GVariant *variant, 3698s # GError **error, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # GValue value = G_VALUE_INIT; 3698s # GParamSpec *pspec; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # gboolean ret; 3698s # ret = FALSE; 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3698s # g_assert (info != NULL); 3698s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3698s # if (pspec == NULL) 3698s # { 3698s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3698s # } 3698s # else 3698s # { 3698s # if (info->use_gvariant) 3698s # g_value_set_variant (&value, variant); 3698s # else 3698s # g_dbus_gvariant_to_gvalue (variant, &value); 3698s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3698s # g_value_unset (&value); 3698s # ret = TRUE; 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 3698s # { 3698s # _org_project_useful_interface_skeleton_handle_method_call, 3698s # _org_project_useful_interface_skeleton_handle_get_property, 3698s # _org_project_useful_interface_skeleton_handle_set_property, 3698s # {NULL} 3698s # }; 3698s # 3698s # static GDBusInterfaceInfo * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3698s # { 3698s # return org_project_useful_interface_interface_info (); 3698s # } 3698s # 3698s # static GDBusInterfaceVTable * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3698s # { 3698s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 3698s # } 3698s # 3698s # static GVariant * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 3698s # 3698s # GVariantBuilder builder; 3698s # guint n; 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3698s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3698s # #else 3698s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3698s # #endif 3698s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 3698s # goto out; 3698s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 3698s # { 3698s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 3698s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3698s # { 3698s # GVariant *value; 3698s # 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); 3698s # if (value != NULL) 3698s # { 3698s # g_variant_take_ref (value); 3698s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3698s # g_variant_unref (value); 3698s # } 3698s # } 3698s # } 3698s # out: 3698s # return g_variant_builder_end (&builder); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3698s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3698s # 3698s # #else 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3698s # 3698s # #endif 3698s # static void 3698s # org_project_useful_interface_skeleton_finalize (GObject *object) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 3698s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3698s # if (skeleton->priv->changed_properties_idle_source != NULL) 3698s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3698s # g_main_context_unref (skeleton->priv->context); 3698s # g_mutex_clear (&skeleton->priv->lock); 3698s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 3698s # { 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 3698s # #else 3698s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 3698s # #endif 3698s # 3698s # g_mutex_init (&skeleton->priv->lock); 3698s # skeleton->priv->context = g_main_context_ref_thread_default (); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 3698s # { 3698s # GObjectClass *gobject_class; 3698s # GDBusInterfaceSkeletonClass *skeleton_class; 3698s # 3698s # gobject_class = G_OBJECT_CLASS (klass); 3698s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 3698s # 3698s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3698s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 3698s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 3698s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 3698s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3698s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 3698s # #endif 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_skeleton_new: 3698s # * 3698s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_skeleton_new (void) 3698s # { 3698s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 3698s # } 3698s # Error: 3698s # 3698s # /tmp/tmpj0kzs0gk/tmpr87bk8xk.xml: 3698s # <node> 3698s # <interface name="org.project.UsefulInterface"> 3698s # <method name="SingleArgMethodAay"> 3698s # <arg name="arg_aay" type="aay"/> 3698s # </method> 3698s # </interface> 3698s # </node> 3698s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpj0kzs0gk/tmpr87bk8xk.xml', '--output', '-', '--body'] 3698s # Return code: 0 3698s # Output: 3698s # /* 3698s # * This file is generated by gdbus-codegen, do not modify it. 3698s # * 3698s # * The license of this code is the same as for the D-Bus interface description 3698s # * it was derived from. Note that it links to GLib, so must comply with the 3698s # * LGPL linking clauses. 3698s # */ 3698s # 3698s # #ifdef HAVE_CONFIG_H 3698s # # include "config.h" 3698s # #endif 3698s # 3698s # #include <string.h> 3698s # #ifdef G_OS_UNIX 3698s # # include <gio/gunixfdlist.h> 3698s # #endif 3698s # 3698s # #ifdef G_ENABLE_DEBUG 3698s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3698s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3698s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3698s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3698s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3698s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3698s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3698s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3698s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3698s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3698s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3698s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3698s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3698s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3698s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3698s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3698s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3698s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3698s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3698s # #else /* !G_ENABLE_DEBUG */ 3698s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3698s # * Do not access GValues directly in your code. Instead, use the 3698s # * g_value_get_*() functions 3698s # */ 3698s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3698s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3698s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3698s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3698s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3698s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3698s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3698s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3698s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3698s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3698s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3698s # #endif /* !G_ENABLE_DEBUG */ 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusArgInfo parent_struct; 3698s # gboolean use_gvariant; 3698s # } _ExtendedGDBusArgInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusMethodInfo parent_struct; 3698s # const gchar *signal_name; 3698s # gboolean pass_fdlist; 3698s # } _ExtendedGDBusMethodInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusSignalInfo parent_struct; 3698s # const gchar *signal_name; 3698s # } _ExtendedGDBusSignalInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusPropertyInfo parent_struct; 3698s # const gchar *hyphen_name; 3698s # guint use_gvariant : 1; 3698s # guint emits_changed_signal : 1; 3698s # } _ExtendedGDBusPropertyInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusInterfaceInfo parent_struct; 3698s # const gchar *hyphen_name; 3698s # } _ExtendedGDBusInterfaceInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # const _ExtendedGDBusPropertyInfo *info; 3698s # guint prop_id; 3698s # GValue orig_value; /* the value before the change */ 3698s # } ChangedProperty; 3698s # 3698s # static void 3698s # _changed_property_free (ChangedProperty *data) 3698s # { 3698s # g_value_unset (&data->orig_value); 3698s # g_free (data); 3698s # } 3698s # 3698s # static gboolean 3698s # _g_strv_equal0 (gchar **a, gchar **b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # guint n; 3698s # if (a == NULL && b == NULL) 3698s # { 3698s # ret = TRUE; 3698s # goto out; 3698s # } 3698s # if (a == NULL || b == NULL) 3698s # goto out; 3698s # if (g_strv_length (a) != g_strv_length (b)) 3698s # goto out; 3698s # for (n = 0; a[n] != NULL; n++) 3698s # if (g_strcmp0 (a[n], b[n]) != 0) 3698s # goto out; 3698s # ret = TRUE; 3698s # out: 3698s # return ret; 3698s # } 3698s # 3698s # static gboolean 3698s # _g_variant_equal0 (GVariant *a, GVariant *b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # if (a == NULL && b == NULL) 3698s # { 3698s # ret = TRUE; 3698s # goto out; 3698s # } 3698s # if (a == NULL || b == NULL) 3698s # goto out; 3698s # ret = g_variant_equal (a, b); 3698s # out: 3698s # return ret; 3698s # } 3698s # 3698s # G_GNUC_UNUSED static gboolean 3698s # _g_value_equal (const GValue *a, const GValue *b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3698s # switch (G_VALUE_TYPE (a)) 3698s # { 3698s # case G_TYPE_BOOLEAN: 3698s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3698s # break; 3698s # case G_TYPE_UCHAR: 3698s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3698s # break; 3698s # case G_TYPE_INT: 3698s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3698s # break; 3698s # case G_TYPE_UINT: 3698s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3698s # break; 3698s # case G_TYPE_INT64: 3698s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3698s # break; 3698s # case G_TYPE_UINT64: 3698s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3698s # break; 3698s # case G_TYPE_DOUBLE: 3698s # { 3698s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3698s # gdouble da = g_value_get_double (a); 3698s # gdouble db = g_value_get_double (b); 3698s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3698s # } 3698s # break; 3698s # case G_TYPE_STRING: 3698s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3698s # break; 3698s # case G_TYPE_VARIANT: 3698s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3698s # break; 3698s # default: 3698s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3698s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3698s # else 3698s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3698s # break; 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static void 3698s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 3698s # GClosure *closure, 3698s # GValue *return_value, 3698s # unsigned int n_param_values, 3698s # const GValue *param_values, 3698s # void *invocation_hint G_GNUC_UNUSED, 3698s # void *marshal_data) 3698s # { 3698s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 3698s # (void *data1, 3698s # GDBusMethodInvocation *arg_method_invocation, 3698s # const gchar *const *arg_arg_aay, 3698s # void *data2); 3698s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 3698s # GCClosure *cc = (GCClosure*) closure; 3698s # void *data1, *data2; 3698s # gboolean v_return; 3698s # 3698s # g_return_if_fail (return_value != NULL); 3698s # g_return_if_fail (n_param_values == 3); 3698s # 3698s # if (G_CCLOSURE_SWAP_DATA (closure)) 3698s # { 3698s # data1 = closure->data; 3698s # data2 = g_value_peek_pointer (param_values + 0); 3698s # } 3698s # else 3698s # { 3698s # data1 = g_value_peek_pointer (param_values + 0); 3698s # data2 = closure->data; 3698s # } 3698s # 3698s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 3698s # (marshal_data ? marshal_data : cc->callback); 3698s # 3698s # v_return = 3698s # callback (data1, 3698s # g_marshal_value_peek_object (param_values + 1), 3698s # g_marshal_value_peek_boxed (param_values + 2), 3698s # data2); 3698s # 3698s # g_value_set_boolean (return_value, v_return); 3698s # } 3698s # 3698s # /* ------------------------------------------------------------------------ 3698s # * Code for interface org.project.UsefulInterface 3698s # * ------------------------------------------------------------------------ 3698s # */ 3698s # 3698s # /** 3698s # * SECTION:OrgProjectUsefulInterface 3698s # * @title: OrgProjectUsefulInterface 3698s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 3698s # * 3698s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface in C. 3698s # */ 3698s # 3698s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 3698s # 3698s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_arg_aay = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "arg_aay", 3698s # (gchar *) "aay", 3698s # NULL 3698s # }, 3698s # FALSE 3698s # }; 3698s # 3698s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_pointers[] = 3698s # { 3698s # &_org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_arg_aay.parent_struct, 3698s # NULL 3698s # }; 3698s # 3698s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_aay = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "SingleArgMethodAay", 3698s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_pointers, 3698s # NULL, 3698s # NULL 3698s # }, 3698s # "handle-single-arg-method-aay", 3698s # FALSE 3698s # }; 3698s # 3698s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 3698s # { 3698s # &_org_project_useful_interface_method_info_single_arg_method_aay.parent_struct, 3698s # NULL 3698s # }; 3698s # 3698s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "org.project.UsefulInterface", 3698s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 3698s # NULL, 3698s # NULL, 3698s # NULL 3698s # }, 3698s # "org-project-useful-interface", 3698s # }; 3698s # 3698s # 3698s # /** 3698s # * org_project_useful_interface_interface_info: 3698s # * 3698s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface. 3698s # * 3698s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3698s # */ 3698s # GDBusInterfaceInfo * 3698s # org_project_useful_interface_interface_info (void) 3698s # { 3698s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_override_properties: 3698s # * @klass: The class structure for a #GObject derived class. 3698s # * @property_id_begin: The property id to assign to the first overridden property. 3698s # * 3698s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 3698s # * The properties are overridden in the order they are defined. 3698s # * 3698s # * Returns: The last property id. 3698s # */ 3698s # guint 3698s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3698s # { 3698s # return property_id_begin - 1; 3698s # } 3698s # 3698s # 3698s # inline static void 3698s # org_project_useful_interface_method_marshal_single_arg_method_aay ( 3698s # GClosure *closure, 3698s # GValue *return_value, 3698s # unsigned int n_param_values, 3698s # const GValue *param_values, 3698s # void *invocation_hint, 3698s # void *marshal_data) 3698s # { 3698s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 3698s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3698s # } 3698s # 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterface: 3698s # * 3698s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceIface: 3698s # * @parent_iface: The parent interface. 3698s # * @handle_single_arg_method_aay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-aay signal. 3698s # * 3698s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # */ 3698s # 3698s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 3698s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 3698s # 3698s # static void 3698s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 3698s # { 3698s # /* GObject signals for incoming D-Bus method calls: */ 3698s # /** 3698s # * OrgProjectUsefulInterface::handle-single-arg-method-aay: 3698s # * @object: A #OrgProjectUsefulInterface. 3698s # * @invocation: A #GDBusMethodInvocation. 3698s # * @arg_arg_aay: Argument passed by remote caller. 3698s # * 3698s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodAay">SingleArgMethodAay()</link> D-Bus method. 3698s # * 3698s # * 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. 3698s # * 3698s # * 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. 3698s # */ 3698s # g_signal_new ("handle-single-arg-method-aay", 3698s # G_TYPE_FROM_INTERFACE (iface), 3698s # G_SIGNAL_RUN_LAST, 3698s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_aay), 3698s # g_signal_accumulator_true_handled, 3698s # NULL, 3698s # org_project_useful_interface_method_marshal_single_arg_method_aay, 3698s # G_TYPE_BOOLEAN, 3698s # 2, 3698s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 3698s # 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_aay: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @arg_arg_aay: Argument to pass with the method invocation. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodAay">SingleArgMethodAay()</link> D-Bus method on @proxy. 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_call_single_arg_method_aay_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_call_single_arg_method_aay_sync() for the synchronous, blocking version of this method. 3698s # */ 3698s # void 3698s # org_project_useful_interface_call_single_arg_method_aay ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # const gchar *const *arg_arg_aay, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3698s # "SingleArgMethodAay", 3698s # g_variant_new ("(^aay)", 3698s # arg_arg_aay), 3698s # G_DBUS_CALL_FLAGS_NONE, 3698s # -1, 3698s # cancellable, 3698s # callback, 3698s # user_data); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_aay_finish: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_aay(). 3698s # * @error: Return location for error or %NULL. 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_aay(). 3698s # * 3698s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3698s # */ 3698s # gboolean 3698s # org_project_useful_interface_call_single_arg_method_aay_finish ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GVariant *_ret; 3698s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3698s # if (_ret == NULL) 3698s # goto _out; 3698s # g_variant_get (_ret, 3698s # "()"); 3698s # g_variant_unref (_ret); 3698s # _out: 3698s # return _ret != NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_aay_sync: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @arg_arg_aay: Argument to pass with the method invocation. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL. 3698s # * 3698s # * Synchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodAay">SingleArgMethodAay()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_call_single_arg_method_aay() for the asynchronous version of this method. 3698s # * 3698s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3698s # */ 3698s # gboolean 3698s # org_project_useful_interface_call_single_arg_method_aay_sync ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # const gchar *const *arg_arg_aay, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GVariant *_ret; 3698s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3698s # "SingleArgMethodAay", 3698s # g_variant_new ("(^aay)", 3698s # arg_arg_aay), 3698s # G_DBUS_CALL_FLAGS_NONE, 3698s # -1, 3698s # cancellable, 3698s # error); 3698s # if (_ret == NULL) 3698s # goto _out; 3698s # g_variant_get (_ret, 3698s # "()"); 3698s # g_variant_unref (_ret); 3698s # _out: 3698s # return _ret != NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_complete_single_arg_method_aay: 3698s # * @object: A #OrgProjectUsefulInterface. 3698s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3698s # * 3698s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodAay">SingleArgMethodAay()</link> 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. 3698s # * 3698s # * This method will free @invocation, you cannot use it afterwards. 3698s # */ 3698s # void 3698s # org_project_useful_interface_complete_single_arg_method_aay ( 3698s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 3698s # GDBusMethodInvocation *invocation) 3698s # { 3698s # g_dbus_method_invocation_return_value (invocation, 3698s # g_variant_new ("()")); 3698s # } 3698s # 3698s # /* ------------------------------------------------------------------------ */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceProxy: 3698s # * 3698s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceProxyClass: 3698s # * @parent_class: The parent class. 3698s # * 3698s # * Class structure for #OrgProjectUsefulInterfaceProxy. 3698s # */ 3698s # 3698s # struct _OrgProjectUsefulInterfaceProxyPrivate 3698s # { 3698s # GData *qdata; 3698s # }; 3698s # 3698s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3698s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3698s # 3698s # #else 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3698s # 3698s # #endif 3698s # static void 3698s # org_project_useful_interface_proxy_finalize (GObject *object) 3698s # { 3698s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 3698s # g_datalist_clear (&proxy->priv->qdata); 3698s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3698s # guint prop_id G_GNUC_UNUSED, 3698s # GValue *value G_GNUC_UNUSED, 3698s # GParamSpec *pspec G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3698s # guint prop_id G_GNUC_UNUSED, 3698s # const GValue *value G_GNUC_UNUSED, 3698s # GParamSpec *pspec G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 3698s # const gchar *sender_name G_GNUC_UNUSED, 3698s # const gchar *signal_name, 3698s # GVariant *parameters) 3698s # { 3698s # _ExtendedGDBusSignalInfo *info; 3698s # GVariantIter iter; 3698s # GVariant *child; 3698s # GValue *paramv; 3698s # gsize num_params; 3698s # gsize n; 3698s # guint signal_id; 3698s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 3698s # if (info == NULL) 3698s # return; 3698s # num_params = g_variant_n_children (parameters); 3698s # paramv = g_new0 (GValue, num_params + 1); 3698s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_set_object (¶mv[0], proxy); 3698s # g_variant_iter_init (&iter, parameters); 3698s # n = 1; 3698s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3698s # { 3698s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3698s # if (arg_info->use_gvariant) 3698s # { 3698s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3698s # g_value_set_variant (¶mv[n], child); 3698s # n++; 3698s # } 3698s # else 3698s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3698s # g_variant_unref (child); 3698s # } 3698s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_signal_emitv (paramv, signal_id, 0, NULL); 3698s # for (n = 0; n < num_params + 1; n++) 3698s # g_value_unset (¶mv[n]); 3698s # g_free (paramv); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 3698s # GVariant *changed_properties, 3698s # const gchar *const *invalidated_properties) 3698s # { 3698s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 3698s # guint n; 3698s # const gchar *key; 3698s # GVariantIter *iter; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # g_variant_get (changed_properties, "a{sv}", &iter); 3698s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3698s # { 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 3698s # g_datalist_remove_data (&proxy->priv->qdata, key); 3698s # if (info != NULL) 3698s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3698s # } 3698s # g_variant_iter_free (iter); 3698s # for (n = 0; invalidated_properties[n] != NULL; n++) 3698s # { 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 3698s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3698s # if (info != NULL) 3698s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3698s # } 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 3698s # { 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 3698s # #else 3698s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 3698s # #endif 3698s # 3698s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 3698s # { 3698s # GObjectClass *gobject_class; 3698s # GDBusProxyClass *proxy_class; 3698s # 3698s # gobject_class = G_OBJECT_CLASS (klass); 3698s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 3698s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 3698s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 3698s # 3698s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3698s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 3698s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3698s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 3698s # #endif 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new: 3698s # * @connection: A #GDBusConnection. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new() for more details. 3698s # * 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3698s # */ 3698s # void 3698s # org_project_useful_interface_proxy_new ( 3698s # GDBusConnection *connection, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_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); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_finish: 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_finish ( 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GObject *ret; 3698s # GObject *source_object; 3698s # source_object = g_async_result_get_source_object (res); 3698s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3698s # g_object_unref (source_object); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_sync: 3698s # * @connection: A #GDBusConnection. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new_sync() for more details. 3698s # * 3698s # * The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_sync ( 3698s # GDBusConnection *connection, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GInitable *ret; 3698s # 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); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus: 3698s # * @bus_type: A #GBusType. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: A bus name (well-known or unique). 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3698s # * 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3698s # */ 3698s # void 3698s # org_project_useful_interface_proxy_new_for_bus ( 3698s # GBusType bus_type, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_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); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus_finish: 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_for_bus_finish ( 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GObject *ret; 3698s # GObject *source_object; 3698s # source_object = g_async_result_get_source_object (res); 3698s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3698s # g_object_unref (source_object); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus_sync: 3698s # * @bus_type: A #GBusType. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: A bus name (well-known or unique). 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3698s # * 3698s # * The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_for_bus_sync ( 3698s # GBusType bus_type, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GInitable *ret; 3698s # 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); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # 3698s # /* ------------------------------------------------------------------------ */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceSkeleton: 3698s # * 3698s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceSkeletonClass: 3698s # * @parent_class: The parent class. 3698s # * 3698s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 3698s # */ 3698s # 3698s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 3698s # { 3698s # GValue *properties; 3698s # GList *changed_properties; 3698s # GSource *changed_properties_idle_source; 3698s # GMainContext *context; 3698s # GMutex lock; 3698s # }; 3698s # 3698s # static void 3698s # _org_project_useful_interface_skeleton_handle_method_call ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name, 3698s # const gchar *method_name, 3698s # GVariant *parameters, 3698s # GDBusMethodInvocation *invocation, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # _ExtendedGDBusMethodInfo *info; 3698s # GVariantIter iter; 3698s # GVariant *child; 3698s # GValue *paramv; 3698s # gsize num_params; 3698s # guint num_extra; 3698s # gsize n; 3698s # guint signal_id; 3698s # GValue return_value = G_VALUE_INIT; 3698s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3698s # g_assert (info != NULL); 3698s # num_params = g_variant_n_children (parameters); 3698s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3698s # n = 0; 3698s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_set_object (¶mv[n++], skeleton); 3698s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3698s # g_value_set_object (¶mv[n++], invocation); 3698s # if (info->pass_fdlist) 3698s # { 3698s # #ifdef G_OS_UNIX 3698s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3698s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3698s # #else 3698s # g_assert_not_reached (); 3698s # #endif 3698s # } 3698s # g_variant_iter_init (&iter, parameters); 3698s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3698s # { 3698s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3698s # if (arg_info->use_gvariant) 3698s # { 3698s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3698s # g_value_set_variant (¶mv[n], child); 3698s # n++; 3698s # } 3698s # else 3698s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3698s # g_variant_unref (child); 3698s # } 3698s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3698s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3698s # if (!g_value_get_boolean (&return_value)) 3698s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3698s # g_value_unset (&return_value); 3698s # for (n = 0; n < num_params + num_extra; n++) 3698s # g_value_unset (¶mv[n]); 3698s # g_free (paramv); 3698s # } 3698s # 3698s # static GVariant * 3698s # _org_project_useful_interface_skeleton_handle_get_property ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name G_GNUC_UNUSED, 3698s # const gchar *property_name, 3698s # GError **error, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # GValue value = G_VALUE_INIT; 3698s # GParamSpec *pspec; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # GVariant *ret; 3698s # ret = NULL; 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3698s # g_assert (info != NULL); 3698s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3698s # if (pspec == NULL) 3698s # { 3698s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3698s # } 3698s # else 3698s # { 3698s # g_value_init (&value, pspec->value_type); 3698s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3698s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3698s # g_value_unset (&value); 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static gboolean 3698s # _org_project_useful_interface_skeleton_handle_set_property ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name G_GNUC_UNUSED, 3698s # const gchar *property_name, 3698s # GVariant *variant, 3698s # GError **error, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # GValue value = G_VALUE_INIT; 3698s # GParamSpec *pspec; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # gboolean ret; 3698s # ret = FALSE; 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3698s # g_assert (info != NULL); 3698s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3698s # if (pspec == NULL) 3698s # { 3698s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3698s # } 3698s # else 3698s # { 3698s # if (info->use_gvariant) 3698s # g_value_set_variant (&value, variant); 3698s # else 3698s # g_dbus_gvariant_to_gvalue (variant, &value); 3698s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3698s # g_value_unset (&value); 3698s # ret = TRUE; 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 3698s # { 3698s # _org_project_useful_interface_skeleton_handle_method_call, 3698s # _org_project_useful_interface_skeleton_handle_get_property, 3698s # _org_project_useful_interface_skeleton_handle_set_property, 3698s # {NULL} 3698s # }; 3698s # 3698s # static GDBusInterfaceInfo * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3698s # { 3698s # return org_project_useful_interface_interface_info (); 3698s # } 3698s # 3698s # static GDBusInterfaceVTable * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3698s # { 3698s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 3698s # } 3698s # 3698s # static GVariant * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 3698s # 3698s # GVariantBuilder builder; 3698s # guint n; 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3698s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3698s # #else 3698s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3698s # #endif 3698s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 3698s # goto out; 3698s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 3698s # { 3698s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 3698s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3698s # { 3698s # GVariant *value; 3698s # 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); 3698s # if (value != NULL) 3698s # { 3698s # g_variant_take_ref (value); 3698s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3698s # g_variant_unref (value); 3698s # } 3698s # } 3698s # } 3698s # out: 3698s # return g_variant_builder_end (&builder); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3698s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3698s # 3698s # #else 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3698s # 3698s # #endif 3698s # static void 3698s # org_project_useful_interface_skeleton_finalize (GObject *object) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 3698s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3698s # if (skeleton->priv->changed_properties_idle_source != NULL) 3698s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3698s # g_main_context_unref (skeleton->priv->context); 3698s # g_mutex_clear (&skeleton->priv->lock); 3698s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 3698s # { 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 3698s # #else 3698s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 3698s # #endif 3698s # 3698s # g_mutex_init (&skeleton->priv->lock); 3698s # skeleton->priv->context = g_main_context_ref_thread_default (); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 3698s # { 3698s # GObjectClass *gobject_class; 3698s # GDBusInterfaceSkeletonClass *skeleton_class; 3698s # 3698s # gobject_class = G_OBJECT_CLASS (klass); 3698s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 3698s # 3698s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3698s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 3698s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 3698s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 3698s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3698s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 3698s # #endif 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_skeleton_new: 3698s # * 3698s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_skeleton_new (void) 3698s # { 3698s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 3698s # } 3698s # Error: 3698s # 3698s # /tmp/tmpj0kzs0gk/tmpy_n3542p.xml: 3698s # <node> 3698s # <interface name="org.project.UsefulInterface"> 3698s # <method name="SingleArgMethodAsv"> 3698s # <arg name="arg_asv" type="a{sv}"/> 3698s # </method> 3698s # </interface> 3698s # </node> 3698s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpj0kzs0gk/tmpy_n3542p.xml', '--output', '-', '--body'] 3698s # Return code: 0 3698s # Output: 3698s # /* 3698s # * This file is generated by gdbus-codegen, do not modify it. 3698s # * 3698s # * The license of this code is the same as for the D-Bus interface description 3698s # * it was derived from. Note that it links to GLib, so must comply with the 3698s # * LGPL linking clauses. 3698s # */ 3698s # 3698s # #ifdef HAVE_CONFIG_H 3698s # # include "config.h" 3698s # #endif 3698s # 3698s # #include <string.h> 3698s # #ifdef G_OS_UNIX 3698s # # include <gio/gunixfdlist.h> 3698s # #endif 3698s # 3698s # #ifdef G_ENABLE_DEBUG 3698s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3698s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3698s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3698s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3698s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3698s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3698s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3698s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3698s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3698s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3698s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3698s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3698s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3698s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3698s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3698s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3698s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3698s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3698s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3698s # #else /* !G_ENABLE_DEBUG */ 3698s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3698s # * Do not access GValues directly in your code. Instead, use the 3698s # * g_value_get_*() functions 3698s # */ 3698s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3698s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3698s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3698s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3698s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3698s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3698s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3698s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3698s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3698s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3698s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3698s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3698s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3698s # #endif /* !G_ENABLE_DEBUG */ 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusArgInfo parent_struct; 3698s # gboolean use_gvariant; 3698s # } _ExtendedGDBusArgInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusMethodInfo parent_struct; 3698s # const gchar *signal_name; 3698s # gboolean pass_fdlist; 3698s # } _ExtendedGDBusMethodInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusSignalInfo parent_struct; 3698s # const gchar *signal_name; 3698s # } _ExtendedGDBusSignalInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusPropertyInfo parent_struct; 3698s # const gchar *hyphen_name; 3698s # guint use_gvariant : 1; 3698s # guint emits_changed_signal : 1; 3698s # } _ExtendedGDBusPropertyInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # GDBusInterfaceInfo parent_struct; 3698s # const gchar *hyphen_name; 3698s # } _ExtendedGDBusInterfaceInfo; 3698s # 3698s # typedef struct 3698s # { 3698s # const _ExtendedGDBusPropertyInfo *info; 3698s # guint prop_id; 3698s # GValue orig_value; /* the value before the change */ 3698s # } ChangedProperty; 3698s # 3698s # static void 3698s # _changed_property_free (ChangedProperty *data) 3698s # { 3698s # g_value_unset (&data->orig_value); 3698s # g_free (data); 3698s # } 3698s # 3698s # static gboolean 3698s # _g_strv_equal0 (gchar **a, gchar **b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # guint n; 3698s # if (a == NULL && b == NULL) 3698s # { 3698s # ret = TRUE; 3698s # goto out; 3698s # } 3698s # if (a == NULL || b == NULL) 3698s # goto out; 3698s # if (g_strv_length (a) != g_strv_length (b)) 3698s # goto out; 3698s # for (n = 0; a[n] != NULL; n++) 3698s # if (g_strcmp0 (a[n], b[n]) != 0) 3698s # goto out; 3698s # ret = TRUE; 3698s # out: 3698s # return ret; 3698s # } 3698s # 3698s # static gboolean 3698s # _g_variant_equal0 (GVariant *a, GVariant *b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # if (a == NULL && b == NULL) 3698s # { 3698s # ret = TRUE; 3698s # goto out; 3698s # } 3698s # if (a == NULL || b == NULL) 3698s # goto out; 3698s # ret = g_variant_equal (a, b); 3698s # out: 3698s # return ret; 3698s # } 3698s # 3698s # G_GNUC_UNUSED static gboolean 3698s # _g_value_equal (const GValue *a, const GValue *b) 3698s # { 3698s # gboolean ret = FALSE; 3698s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3698s # switch (G_VALUE_TYPE (a)) 3698s # { 3698s # case G_TYPE_BOOLEAN: 3698s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3698s # break; 3698s # case G_TYPE_UCHAR: 3698s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3698s # break; 3698s # case G_TYPE_INT: 3698s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3698s # break; 3698s # case G_TYPE_UINT: 3698s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3698s # break; 3698s # case G_TYPE_INT64: 3698s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3698s # break; 3698s # case G_TYPE_UINT64: 3698s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3698s # break; 3698s # case G_TYPE_DOUBLE: 3698s # { 3698s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3698s # gdouble da = g_value_get_double (a); 3698s # gdouble db = g_value_get_double (b); 3698s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3698s # } 3698s # break; 3698s # case G_TYPE_STRING: 3698s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3698s # break; 3698s # case G_TYPE_VARIANT: 3698s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3698s # break; 3698s # default: 3698s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3698s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3698s # else 3698s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3698s # break; 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static void 3698s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT ( 3698s # GClosure *closure, 3698s # GValue *return_value, 3698s # unsigned int n_param_values, 3698s # const GValue *param_values, 3698s # void *invocation_hint G_GNUC_UNUSED, 3698s # void *marshal_data) 3698s # { 3698s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 3698s # (void *data1, 3698s # GDBusMethodInvocation *arg_method_invocation, 3698s # GVariant *arg_arg_asv, 3698s # void *data2); 3698s # _GDbusCodegenMarshalBoolean_ObjectVariantFunc callback; 3698s # GCClosure *cc = (GCClosure*) closure; 3698s # void *data1, *data2; 3698s # gboolean v_return; 3698s # 3698s # g_return_if_fail (return_value != NULL); 3698s # g_return_if_fail (n_param_values == 3); 3698s # 3698s # if (G_CCLOSURE_SWAP_DATA (closure)) 3698s # { 3698s # data1 = closure->data; 3698s # data2 = g_value_peek_pointer (param_values + 0); 3698s # } 3698s # else 3698s # { 3698s # data1 = g_value_peek_pointer (param_values + 0); 3698s # data2 = closure->data; 3698s # } 3698s # 3698s # callback = (_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 3698s # (marshal_data ? marshal_data : cc->callback); 3698s # 3698s # v_return = 3698s # callback (data1, 3698s # g_marshal_value_peek_object (param_values + 1), 3698s # g_marshal_value_peek_variant (param_values + 2), 3698s # data2); 3698s # 3698s # g_value_set_boolean (return_value, v_return); 3698s # } 3698s # 3698s # /* ------------------------------------------------------------------------ 3698s # * Code for interface org.project.UsefulInterface 3698s # * ------------------------------------------------------------------------ 3698s # */ 3698s # 3698s # /** 3698s # * SECTION:OrgProjectUsefulInterface 3698s # * @title: OrgProjectUsefulInterface 3698s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 3698s # * 3698s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface in C. 3698s # */ 3698s # 3698s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 3698s # 3698s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_arg_asv = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "arg_asv", 3698s # (gchar *) "a{sv}", 3698s # NULL 3698s # }, 3698s # FALSE 3698s # }; 3698s # 3698s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_pointers[] = 3698s # { 3698s # &_org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_arg_asv.parent_struct, 3698s # NULL 3698s # }; 3698s # 3698s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_asv = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "SingleArgMethodAsv", 3698s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_pointers, 3698s # NULL, 3698s # NULL 3698s # }, 3698s # "handle-single-arg-method-asv", 3698s # FALSE 3698s # }; 3698s # 3698s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 3698s # { 3698s # &_org_project_useful_interface_method_info_single_arg_method_asv.parent_struct, 3698s # NULL 3698s # }; 3698s # 3698s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 3698s # { 3698s # { 3698s # -1, 3698s # (gchar *) "org.project.UsefulInterface", 3698s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 3698s # NULL, 3698s # NULL, 3698s # NULL 3698s # }, 3698s # "org-project-useful-interface", 3698s # }; 3698s # 3698s # 3698s # /** 3698s # * org_project_useful_interface_interface_info: 3698s # * 3698s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface. 3698s # * 3698s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3698s # */ 3698s # GDBusInterfaceInfo * 3698s # org_project_useful_interface_interface_info (void) 3698s # { 3698s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_override_properties: 3698s # * @klass: The class structure for a #GObject derived class. 3698s # * @property_id_begin: The property id to assign to the first overridden property. 3698s # * 3698s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 3698s # * The properties are overridden in the order they are defined. 3698s # * 3698s # * Returns: The last property id. 3698s # */ 3698s # guint 3698s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3698s # { 3698s # return property_id_begin - 1; 3698s # } 3698s # 3698s # 3698s # inline static void 3698s # org_project_useful_interface_method_marshal_single_arg_method_asv ( 3698s # GClosure *closure, 3698s # GValue *return_value, 3698s # unsigned int n_param_values, 3698s # const GValue *param_values, 3698s # void *invocation_hint, 3698s # void *marshal_data) 3698s # { 3698s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT (closure, 3698s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3698s # } 3698s # 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterface: 3698s # * 3698s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceIface: 3698s # * @parent_iface: The parent interface. 3698s # * @handle_single_arg_method_asv: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-asv signal. 3698s # * 3698s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # */ 3698s # 3698s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 3698s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 3698s # 3698s # static void 3698s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 3698s # { 3698s # /* GObject signals for incoming D-Bus method calls: */ 3698s # /** 3698s # * OrgProjectUsefulInterface::handle-single-arg-method-asv: 3698s # * @object: A #OrgProjectUsefulInterface. 3698s # * @invocation: A #GDBusMethodInvocation. 3698s # * @arg_arg_asv: Argument passed by remote caller. 3698s # * 3698s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodAsv">SingleArgMethodAsv()</link> D-Bus method. 3698s # * 3698s # * 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. 3698s # * 3698s # * 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. 3698s # */ 3698s # g_signal_new ("handle-single-arg-method-asv", 3698s # G_TYPE_FROM_INTERFACE (iface), 3698s # G_SIGNAL_RUN_LAST, 3698s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_asv), 3698s # g_signal_accumulator_true_handled, 3698s # NULL, 3698s # org_project_useful_interface_method_marshal_single_arg_method_asv, 3698s # G_TYPE_BOOLEAN, 3698s # 2, 3698s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT); 3698s # 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_asv: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @arg_arg_asv: Argument to pass with the method invocation. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodAsv">SingleArgMethodAsv()</link> D-Bus method on @proxy. 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_call_single_arg_method_asv_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_call_single_arg_method_asv_sync() for the synchronous, blocking version of this method. 3698s # */ 3698s # void 3698s # org_project_useful_interface_call_single_arg_method_asv ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # GVariant *arg_arg_asv, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3698s # "SingleArgMethodAsv", 3698s # g_variant_new ("(@a{sv})", 3698s # arg_arg_asv), 3698s # G_DBUS_CALL_FLAGS_NONE, 3698s # -1, 3698s # cancellable, 3698s # callback, 3698s # user_data); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_asv_finish: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_asv(). 3698s # * @error: Return location for error or %NULL. 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_asv(). 3698s # * 3698s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3698s # */ 3698s # gboolean 3698s # org_project_useful_interface_call_single_arg_method_asv_finish ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GVariant *_ret; 3698s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3698s # if (_ret == NULL) 3698s # goto _out; 3698s # g_variant_get (_ret, 3698s # "()"); 3698s # g_variant_unref (_ret); 3698s # _out: 3698s # return _ret != NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_call_single_arg_method_asv_sync: 3698s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3698s # * @arg_arg_asv: Argument to pass with the method invocation. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL. 3698s # * 3698s # * Synchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodAsv">SingleArgMethodAsv()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_call_single_arg_method_asv() for the asynchronous version of this method. 3698s # * 3698s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3698s # */ 3698s # gboolean 3698s # org_project_useful_interface_call_single_arg_method_asv_sync ( 3698s # OrgProjectUsefulInterface *proxy, 3698s # GVariant *arg_arg_asv, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GVariant *_ret; 3698s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3698s # "SingleArgMethodAsv", 3698s # g_variant_new ("(@a{sv})", 3698s # arg_arg_asv), 3698s # G_DBUS_CALL_FLAGS_NONE, 3698s # -1, 3698s # cancellable, 3698s # error); 3698s # if (_ret == NULL) 3698s # goto _out; 3698s # g_variant_get (_ret, 3698s # "()"); 3698s # g_variant_unref (_ret); 3698s # _out: 3698s # return _ret != NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_complete_single_arg_method_asv: 3698s # * @object: A #OrgProjectUsefulInterface. 3698s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3698s # * 3698s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodAsv">SingleArgMethodAsv()</link> 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. 3698s # * 3698s # * This method will free @invocation, you cannot use it afterwards. 3698s # */ 3698s # void 3698s # org_project_useful_interface_complete_single_arg_method_asv ( 3698s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 3698s # GDBusMethodInvocation *invocation) 3698s # { 3698s # g_dbus_method_invocation_return_value (invocation, 3698s # g_variant_new ("()")); 3698s # } 3698s # 3698s # /* ------------------------------------------------------------------------ */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceProxy: 3698s # * 3698s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceProxyClass: 3698s # * @parent_class: The parent class. 3698s # * 3698s # * Class structure for #OrgProjectUsefulInterfaceProxy. 3698s # */ 3698s # 3698s # struct _OrgProjectUsefulInterfaceProxyPrivate 3698s # { 3698s # GData *qdata; 3698s # }; 3698s # 3698s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3698s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3698s # 3698s # #else 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3698s # 3698s # #endif 3698s # static void 3698s # org_project_useful_interface_proxy_finalize (GObject *object) 3698s # { 3698s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 3698s # g_datalist_clear (&proxy->priv->qdata); 3698s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3698s # guint prop_id G_GNUC_UNUSED, 3698s # GValue *value G_GNUC_UNUSED, 3698s # GParamSpec *pspec G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3698s # guint prop_id G_GNUC_UNUSED, 3698s # const GValue *value G_GNUC_UNUSED, 3698s # GParamSpec *pspec G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 3698s # const gchar *sender_name G_GNUC_UNUSED, 3698s # const gchar *signal_name, 3698s # GVariant *parameters) 3698s # { 3698s # _ExtendedGDBusSignalInfo *info; 3698s # GVariantIter iter; 3698s # GVariant *child; 3698s # GValue *paramv; 3698s # gsize num_params; 3698s # gsize n; 3698s # guint signal_id; 3698s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 3698s # if (info == NULL) 3698s # return; 3698s # num_params = g_variant_n_children (parameters); 3698s # paramv = g_new0 (GValue, num_params + 1); 3698s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_set_object (¶mv[0], proxy); 3698s # g_variant_iter_init (&iter, parameters); 3698s # n = 1; 3698s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3698s # { 3698s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3698s # if (arg_info->use_gvariant) 3698s # { 3698s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3698s # g_value_set_variant (¶mv[n], child); 3698s # n++; 3698s # } 3698s # else 3698s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3698s # g_variant_unref (child); 3698s # } 3698s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_signal_emitv (paramv, signal_id, 0, NULL); 3698s # for (n = 0; n < num_params + 1; n++) 3698s # g_value_unset (¶mv[n]); 3698s # g_free (paramv); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 3698s # GVariant *changed_properties, 3698s # const gchar *const *invalidated_properties) 3698s # { 3698s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 3698s # guint n; 3698s # const gchar *key; 3698s # GVariantIter *iter; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # g_variant_get (changed_properties, "a{sv}", &iter); 3698s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3698s # { 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 3698s # g_datalist_remove_data (&proxy->priv->qdata, key); 3698s # if (info != NULL) 3698s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3698s # } 3698s # g_variant_iter_free (iter); 3698s # for (n = 0; invalidated_properties[n] != NULL; n++) 3698s # { 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 3698s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3698s # if (info != NULL) 3698s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3698s # } 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 3698s # { 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 3698s # #else 3698s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 3698s # #endif 3698s # 3698s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 3698s # { 3698s # GObjectClass *gobject_class; 3698s # GDBusProxyClass *proxy_class; 3698s # 3698s # gobject_class = G_OBJECT_CLASS (klass); 3698s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 3698s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 3698s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 3698s # 3698s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3698s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 3698s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3698s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 3698s # #endif 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new: 3698s # * @connection: A #GDBusConnection. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new() for more details. 3698s # * 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3698s # */ 3698s # void 3698s # org_project_useful_interface_proxy_new ( 3698s # GDBusConnection *connection, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_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); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_finish: 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_finish ( 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GObject *ret; 3698s # GObject *source_object; 3698s # source_object = g_async_result_get_source_object (res); 3698s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3698s # g_object_unref (source_object); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_sync: 3698s # * @connection: A #GDBusConnection. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new_sync() for more details. 3698s # * 3698s # * The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_sync ( 3698s # GDBusConnection *connection, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GInitable *ret; 3698s # 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); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus: 3698s # * @bus_type: A #GBusType. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: A bus name (well-known or unique). 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3698s # * @user_data: User data to pass to @callback. 3698s # * 3698s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3698s # * 3698s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3698s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3698s # */ 3698s # void 3698s # org_project_useful_interface_proxy_new_for_bus ( 3698s # GBusType bus_type, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GAsyncReadyCallback callback, 3698s # gpointer user_data) 3698s # { 3698s # g_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); 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus_finish: 3698s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_for_bus_finish ( 3698s # GAsyncResult *res, 3698s # GError **error) 3698s # { 3698s # GObject *ret; 3698s # GObject *source_object; 3698s # source_object = g_async_result_get_source_object (res); 3698s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3698s # g_object_unref (source_object); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_proxy_new_for_bus_sync: 3698s # * @bus_type: A #GBusType. 3698s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3698s # * @name: A bus name (well-known or unique). 3698s # * @object_path: An object path. 3698s # * @cancellable: (nullable): A #GCancellable or %NULL. 3698s # * @error: Return location for error or %NULL 3698s # * 3698s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3698s # * 3698s # * The calling thread is blocked until a reply is received. 3698s # * 3698s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_proxy_new_for_bus_sync ( 3698s # GBusType bus_type, 3698s # GDBusProxyFlags flags, 3698s # const gchar *name, 3698s # const gchar *object_path, 3698s # GCancellable *cancellable, 3698s # GError **error) 3698s # { 3698s # GInitable *ret; 3698s # 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); 3698s # if (ret != NULL) 3698s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3698s # else 3698s # return NULL; 3698s # } 3698s # 3698s # 3698s # /* ------------------------------------------------------------------------ */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceSkeleton: 3698s # * 3698s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3698s # */ 3698s # 3698s # /** 3698s # * OrgProjectUsefulInterfaceSkeletonClass: 3698s # * @parent_class: The parent class. 3698s # * 3698s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 3698s # */ 3698s # 3698s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 3698s # { 3698s # GValue *properties; 3698s # GList *changed_properties; 3698s # GSource *changed_properties_idle_source; 3698s # GMainContext *context; 3698s # GMutex lock; 3698s # }; 3698s # 3698s # static void 3698s # _org_project_useful_interface_skeleton_handle_method_call ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name, 3698s # const gchar *method_name, 3698s # GVariant *parameters, 3698s # GDBusMethodInvocation *invocation, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # _ExtendedGDBusMethodInfo *info; 3698s # GVariantIter iter; 3698s # GVariant *child; 3698s # GValue *paramv; 3698s # gsize num_params; 3698s # guint num_extra; 3698s # gsize n; 3698s # guint signal_id; 3698s # GValue return_value = G_VALUE_INIT; 3698s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3698s # g_assert (info != NULL); 3698s # num_params = g_variant_n_children (parameters); 3698s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3698s # n = 0; 3698s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_set_object (¶mv[n++], skeleton); 3698s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3698s # g_value_set_object (¶mv[n++], invocation); 3698s # if (info->pass_fdlist) 3698s # { 3698s # #ifdef G_OS_UNIX 3698s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3698s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3698s # #else 3698s # g_assert_not_reached (); 3698s # #endif 3698s # } 3698s # g_variant_iter_init (&iter, parameters); 3698s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3698s # { 3698s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3698s # if (arg_info->use_gvariant) 3698s # { 3698s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3698s # g_value_set_variant (¶mv[n], child); 3698s # n++; 3698s # } 3698s # else 3698s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3698s # g_variant_unref (child); 3698s # } 3698s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3698s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3698s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3698s # if (!g_value_get_boolean (&return_value)) 3698s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3698s # g_value_unset (&return_value); 3698s # for (n = 0; n < num_params + num_extra; n++) 3698s # g_value_unset (¶mv[n]); 3698s # g_free (paramv); 3698s # } 3698s # 3698s # static GVariant * 3698s # _org_project_useful_interface_skeleton_handle_get_property ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name G_GNUC_UNUSED, 3698s # const gchar *property_name, 3698s # GError **error, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # GValue value = G_VALUE_INIT; 3698s # GParamSpec *pspec; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # GVariant *ret; 3698s # ret = NULL; 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3698s # g_assert (info != NULL); 3698s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3698s # if (pspec == NULL) 3698s # { 3698s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3698s # } 3698s # else 3698s # { 3698s # g_value_init (&value, pspec->value_type); 3698s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3698s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3698s # g_value_unset (&value); 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static gboolean 3698s # _org_project_useful_interface_skeleton_handle_set_property ( 3698s # GDBusConnection *connection G_GNUC_UNUSED, 3698s # const gchar *sender G_GNUC_UNUSED, 3698s # const gchar *object_path G_GNUC_UNUSED, 3698s # const gchar *interface_name G_GNUC_UNUSED, 3698s # const gchar *property_name, 3698s # GVariant *variant, 3698s # GError **error, 3698s # gpointer user_data) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3698s # GValue value = G_VALUE_INIT; 3698s # GParamSpec *pspec; 3698s # _ExtendedGDBusPropertyInfo *info; 3698s # gboolean ret; 3698s # ret = FALSE; 3698s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3698s # g_assert (info != NULL); 3698s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3698s # if (pspec == NULL) 3698s # { 3698s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3698s # } 3698s # else 3698s # { 3698s # if (info->use_gvariant) 3698s # g_value_set_variant (&value, variant); 3698s # else 3698s # g_dbus_gvariant_to_gvalue (variant, &value); 3698s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3698s # g_value_unset (&value); 3698s # ret = TRUE; 3698s # } 3698s # return ret; 3698s # } 3698s # 3698s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 3698s # { 3698s # _org_project_useful_interface_skeleton_handle_method_call, 3698s # _org_project_useful_interface_skeleton_handle_get_property, 3698s # _org_project_useful_interface_skeleton_handle_set_property, 3698s # {NULL} 3698s # }; 3698s # 3698s # static GDBusInterfaceInfo * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3698s # { 3698s # return org_project_useful_interface_interface_info (); 3698s # } 3698s # 3698s # static GDBusInterfaceVTable * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3698s # { 3698s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 3698s # } 3698s # 3698s # static GVariant * 3698s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 3698s # 3698s # GVariantBuilder builder; 3698s # guint n; 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3698s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3698s # #else 3698s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3698s # #endif 3698s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 3698s # goto out; 3698s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 3698s # { 3698s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 3698s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3698s # { 3698s # GVariant *value; 3698s # 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); 3698s # if (value != NULL) 3698s # { 3698s # g_variant_take_ref (value); 3698s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3698s # g_variant_unref (value); 3698s # } 3698s # } 3698s # } 3698s # out: 3698s # return g_variant_builder_end (&builder); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3698s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3698s # 3698s # #else 3698s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3698s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3698s # 3698s # #endif 3698s # static void 3698s # org_project_useful_interface_skeleton_finalize (GObject *object) 3698s # { 3698s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 3698s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3698s # if (skeleton->priv->changed_properties_idle_source != NULL) 3698s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3698s # g_main_context_unref (skeleton->priv->context); 3698s # g_mutex_clear (&skeleton->priv->lock); 3698s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 3698s # { 3698s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3698s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 3698s # #else 3698s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 3698s # #endif 3698s # 3698s # g_mutex_init (&skeleton->priv->lock); 3698s # skeleton->priv->context = g_main_context_ref_thread_default (); 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 3698s # { 3698s # GObjectClass *gobject_class; 3698s # GDBusInterfaceSkeletonClass *skeleton_class; 3698s # 3698s # gobject_class = G_OBJECT_CLASS (klass); 3698s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 3698s # 3698s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3698s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 3698s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 3698s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 3698s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 3698s # 3698s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3698s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 3698s # #endif 3698s # } 3698s # 3698s # static void 3698s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3698s # { 3698s # } 3698s # 3698s # /** 3698s # * org_project_useful_interface_skeleton_new: 3698s # * 3698s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3698s # * 3698s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 3698s # */ 3698s # OrgProjectUsefulInterface * 3698s # org_project_useful_interface_skeleton_new (void) 3698s # { 3698s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 3698s # } 3698s # Error: 3699s # Executing: glib/codegen.py.test 3704s # Executing: glib/codegen.py.test 3709s # Executing: glib/codegen.py.test 3709s ok 11 __main__.TestCodegen.test_generate_methods_marshaller_single_typed_out_args 3709s # gdbus-codegen: /usr/bin/gdbus-codegen 3709s # tmpdir: /tmp/tmplo7nhxxl 3709s # /tmp/tmplo7nhxxl/tmpb_3pqeuo.xml: 3709s # <node> 3709s # <interface name="org.project.UsefulInterface"> 3709s # <method name="SingleArgMethodB"> 3709s # <arg name="arg_b" type="b" direction="out"/> 3709s # </method> 3709s # </interface> 3709s # </node> 3709s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplo7nhxxl/tmpb_3pqeuo.xml', '--output', '-', '--body'] 3709s # Return code: 0 3709s # Output: 3709s # /* 3709s # * This file is generated by gdbus-codegen, do not modify it. 3709s # * 3709s # * The license of this code is the same as for the D-Bus interface description 3709s # * it was derived from. Note that it links to GLib, so must comply with the 3709s # * LGPL linking clauses. 3709s # */ 3709s # 3709s # #ifdef HAVE_CONFIG_H 3709s # # include "config.h" 3709s # #endif 3709s # 3709s # #include <string.h> 3709s # #ifdef G_OS_UNIX 3709s # # include <gio/gunixfdlist.h> 3709s # #endif 3709s # 3709s # #ifdef G_ENABLE_DEBUG 3709s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3709s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3709s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3709s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3709s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3709s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3709s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3709s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3709s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3709s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3709s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3709s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3709s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3709s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3709s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3709s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3709s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3709s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3709s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3709s # #else /* !G_ENABLE_DEBUG */ 3709s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3709s # * Do not access GValues directly in your code. Instead, use the 3709s # * g_value_get_*() functions 3709s # */ 3709s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3709s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3709s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3709s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3709s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3709s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3709s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3709s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3709s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3709s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3709s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3709s # #endif /* !G_ENABLE_DEBUG */ 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusArgInfo parent_struct; 3709s # gboolean use_gvariant; 3709s # } _ExtendedGDBusArgInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusMethodInfo parent_struct; 3709s # const gchar *signal_name; 3709s # gboolean pass_fdlist; 3709s # } _ExtendedGDBusMethodInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusSignalInfo parent_struct; 3709s # const gchar *signal_name; 3709s # } _ExtendedGDBusSignalInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusPropertyInfo parent_struct; 3709s # const gchar *hyphen_name; 3709s # guint use_gvariant : 1; 3709s # guint emits_changed_signal : 1; 3709s # } _ExtendedGDBusPropertyInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusInterfaceInfo parent_struct; 3709s # const gchar *hyphen_name; 3709s # } _ExtendedGDBusInterfaceInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # const _ExtendedGDBusPropertyInfo *info; 3709s # guint prop_id; 3709s # GValue orig_value; /* the value before the change */ 3709s # } ChangedProperty; 3709s # 3709s # static void 3709s # _changed_property_free (ChangedProperty *data) 3709s # { 3709s # g_value_unset (&data->orig_value); 3709s # g_free (data); 3709s # } 3709s # 3709s # static gboolean 3709s # _g_strv_equal0 (gchar **a, gchar **b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # guint n; 3709s # if (a == NULL && b == NULL) 3709s # { 3709s # ret = TRUE; 3709s # goto out; 3709s # } 3709s # if (a == NULL || b == NULL) 3709s # goto out; 3709s # if (g_strv_length (a) != g_strv_length (b)) 3709s # goto out; 3709s # for (n = 0; a[n] != NULL; n++) 3709s # if (g_strcmp0 (a[n], b[n]) != 0) 3709s # goto out; 3709s # ret = TRUE; 3709s # out: 3709s # return ret; 3709s # } 3709s # 3709s # static gboolean 3709s # _g_variant_equal0 (GVariant *a, GVariant *b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # if (a == NULL && b == NULL) 3709s # { 3709s # ret = TRUE; 3709s # goto out; 3709s # } 3709s # if (a == NULL || b == NULL) 3709s # goto out; 3709s # ret = g_variant_equal (a, b); 3709s # out: 3709s # return ret; 3709s # } 3709s # 3709s # G_GNUC_UNUSED static gboolean 3709s # _g_value_equal (const GValue *a, const GValue *b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3709s # switch (G_VALUE_TYPE (a)) 3709s # { 3709s # case G_TYPE_BOOLEAN: 3709s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3709s # break; 3709s # case G_TYPE_UCHAR: 3709s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3709s # break; 3709s # case G_TYPE_INT: 3709s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3709s # break; 3709s # case G_TYPE_UINT: 3709s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3709s # break; 3709s # case G_TYPE_INT64: 3709s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3709s # break; 3709s # case G_TYPE_UINT64: 3709s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3709s # break; 3709s # case G_TYPE_DOUBLE: 3709s # { 3709s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3709s # gdouble da = g_value_get_double (a); 3709s # gdouble db = g_value_get_double (b); 3709s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3709s # } 3709s # break; 3709s # case G_TYPE_STRING: 3709s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3709s # break; 3709s # case G_TYPE_VARIANT: 3709s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3709s # break; 3709s # default: 3709s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3709s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3709s # else 3709s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3709s # break; 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static void 3709s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 3709s # GClosure *closure, 3709s # GValue *return_value, 3709s # unsigned int n_param_values, 3709s # const GValue *param_values, 3709s # void *invocation_hint G_GNUC_UNUSED, 3709s # void *marshal_data) 3709s # { 3709s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 3709s # (void *data1, 3709s # GDBusMethodInvocation *arg_method_invocation, 3709s # void *data2); 3709s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 3709s # GCClosure *cc = (GCClosure*) closure; 3709s # void *data1, *data2; 3709s # gboolean v_return; 3709s # 3709s # g_return_if_fail (return_value != NULL); 3709s # g_return_if_fail (n_param_values == 2); 3709s # 3709s # if (G_CCLOSURE_SWAP_DATA (closure)) 3709s # { 3709s # data1 = closure->data; 3709s # data2 = g_value_peek_pointer (param_values + 0); 3709s # } 3709s # else 3709s # { 3709s # data1 = g_value_peek_pointer (param_values + 0); 3709s # data2 = closure->data; 3709s # } 3709s # 3709s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 3709s # (marshal_data ? marshal_data : cc->callback); 3709s # 3709s # v_return = 3709s # callback (data1, 3709s # g_marshal_value_peek_object (param_values + 1), 3709s # data2); 3709s # 3709s # g_value_set_boolean (return_value, v_return); 3709s # } 3709s # 3709s # /* ------------------------------------------------------------------------ 3709s # * Code for interface org.project.UsefulInterface 3709s # * ------------------------------------------------------------------------ 3709s # */ 3709s # 3709s # /** 3709s # * SECTION:OrgProjectUsefulInterface 3709s # * @title: OrgProjectUsefulInterface 3709s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 3709s # * 3709s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface in C. 3709s # */ 3709s # 3709s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 3709s # 3709s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_arg_b = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "arg_b", 3709s # (gchar *) "b", 3709s # NULL 3709s # }, 3709s # FALSE 3709s # }; 3709s # 3709s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_pointers[] = 3709s # { 3709s # &_org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_arg_b.parent_struct, 3709s # NULL 3709s # }; 3709s # 3709s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_b = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "SingleArgMethodB", 3709s # NULL, 3709s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_pointers, 3709s # NULL 3709s # }, 3709s # "handle-single-arg-method-b", 3709s # FALSE 3709s # }; 3709s # 3709s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 3709s # { 3709s # &_org_project_useful_interface_method_info_single_arg_method_b.parent_struct, 3709s # NULL 3709s # }; 3709s # 3709s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "org.project.UsefulInterface", 3709s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 3709s # NULL, 3709s # NULL, 3709s # NULL 3709s # }, 3709s # "org-project-useful-interface", 3709s # }; 3709s # 3709s # 3709s # /** 3709s # * org_project_useful_interface_interface_info: 3709s # * 3709s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface. 3709s # * 3709s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3709s # */ 3709s # GDBusInterfaceInfo * 3709s # org_project_useful_interface_interface_info (void) 3709s # { 3709s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_override_properties: 3709s # * @klass: The class structure for a #GObject derived class. 3709s # * @property_id_begin: The property id to assign to the first overridden property. 3709s # * 3709s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 3709s # * The properties are overridden in the order they are defined. 3709s # * 3709s # * Returns: The last property id. 3709s # */ 3709s # guint 3709s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3709s # { 3709s # return property_id_begin - 1; 3709s # } 3709s # 3709s # 3709s # inline static void 3709s # org_project_useful_interface_method_marshal_single_arg_method_b ( 3709s # GClosure *closure, 3709s # GValue *return_value, 3709s # unsigned int n_param_values, 3709s # const GValue *param_values, 3709s # void *invocation_hint, 3709s # void *marshal_data) 3709s # { 3709s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 3709s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3709s # } 3709s # 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterface: 3709s # * 3709s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceIface: 3709s # * @parent_iface: The parent interface. 3709s # * @handle_single_arg_method_b: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-b signal. 3709s # * 3709s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # */ 3709s # 3709s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 3709s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 3709s # 3709s # static void 3709s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 3709s # { 3709s # /* GObject signals for incoming D-Bus method calls: */ 3709s # /** 3709s # * OrgProjectUsefulInterface::handle-single-arg-method-b: 3709s # * @object: A #OrgProjectUsefulInterface. 3709s # * @invocation: A #GDBusMethodInvocation. 3709s # * 3709s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodB">SingleArgMethodB()</link> D-Bus method. 3709s # * 3709s # * 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. 3709s # * 3709s # * 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. 3709s # */ 3709s # g_signal_new ("handle-single-arg-method-b", 3709s # G_TYPE_FROM_INTERFACE (iface), 3709s # G_SIGNAL_RUN_LAST, 3709s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_b), 3709s # g_signal_accumulator_true_handled, 3709s # NULL, 3709s # org_project_useful_interface_method_marshal_single_arg_method_b, 3709s # G_TYPE_BOOLEAN, 3709s # 1, 3709s # G_TYPE_DBUS_METHOD_INVOCATION); 3709s # 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_b: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodB">SingleArgMethodB()</link> D-Bus method on @proxy. 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_call_single_arg_method_b_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_call_single_arg_method_b_sync() for the synchronous, blocking version of this method. 3709s # */ 3709s # void 3709s # org_project_useful_interface_call_single_arg_method_b ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3709s # "SingleArgMethodB", 3709s # g_variant_new ("()"), 3709s # G_DBUS_CALL_FLAGS_NONE, 3709s # -1, 3709s # cancellable, 3709s # callback, 3709s # user_data); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_b_finish: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @out_arg_b: (out) (optional): Return location for return parameter or %NULL to ignore. 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_b(). 3709s # * @error: Return location for error or %NULL. 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_b(). 3709s # * 3709s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3709s # */ 3709s # gboolean 3709s # org_project_useful_interface_call_single_arg_method_b_finish ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # gboolean *out_arg_b, 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GVariant *_ret; 3709s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3709s # if (_ret == NULL) 3709s # goto _out; 3709s # g_variant_get (_ret, 3709s # "(b)", 3709s # out_arg_b); 3709s # g_variant_unref (_ret); 3709s # _out: 3709s # return _ret != NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_b_sync: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @out_arg_b: (out) (optional): Return location for return parameter or %NULL to ignore. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL. 3709s # * 3709s # * Synchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodB">SingleArgMethodB()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_call_single_arg_method_b() for the asynchronous version of this method. 3709s # * 3709s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3709s # */ 3709s # gboolean 3709s # org_project_useful_interface_call_single_arg_method_b_sync ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # gboolean *out_arg_b, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GVariant *_ret; 3709s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3709s # "SingleArgMethodB", 3709s # g_variant_new ("()"), 3709s # G_DBUS_CALL_FLAGS_NONE, 3709s # -1, 3709s # cancellable, 3709s # error); 3709s # if (_ret == NULL) 3709s # goto _out; 3709s # g_variant_get (_ret, 3709s # "(b)", 3709s # out_arg_b); 3709s # g_variant_unref (_ret); 3709s # _out: 3709s # return _ret != NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_complete_single_arg_method_b: 3709s # * @object: A #OrgProjectUsefulInterface. 3709s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3709s # * @arg_b: Parameter to return. 3709s # * 3709s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodB">SingleArgMethodB()</link> 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. 3709s # * 3709s # * This method will free @invocation, you cannot use it afterwards. 3709s # */ 3709s # void 3709s # org_project_useful_interface_complete_single_arg_method_b ( 3709s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 3709s # GDBusMethodInvocation *invocation, 3709s # gboolean arg_b) 3709s # { 3709s # g_dbus_method_invocation_return_value (invocation, 3709s # g_variant_new ("(b)", 3709s # arg_b)); 3709s # } 3709s # 3709s # /* ------------------------------------------------------------------------ */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceProxy: 3709s # * 3709s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceProxyClass: 3709s # * @parent_class: The parent class. 3709s # * 3709s # * Class structure for #OrgProjectUsefulInterfaceProxy. 3709s # */ 3709s # 3709s # struct _OrgProjectUsefulInterfaceProxyPrivate 3709s # { 3709s # GData *qdata; 3709s # }; 3709s # 3709s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3709s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3709s # 3709s # #else 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3709s # 3709s # #endif 3709s # static void 3709s # org_project_useful_interface_proxy_finalize (GObject *object) 3709s # { 3709s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 3709s # g_datalist_clear (&proxy->priv->qdata); 3709s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3709s # guint prop_id G_GNUC_UNUSED, 3709s # GValue *value G_GNUC_UNUSED, 3709s # GParamSpec *pspec G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3709s # guint prop_id G_GNUC_UNUSED, 3709s # const GValue *value G_GNUC_UNUSED, 3709s # GParamSpec *pspec G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 3709s # const gchar *sender_name G_GNUC_UNUSED, 3709s # const gchar *signal_name, 3709s # GVariant *parameters) 3709s # { 3709s # _ExtendedGDBusSignalInfo *info; 3709s # GVariantIter iter; 3709s # GVariant *child; 3709s # GValue *paramv; 3709s # gsize num_params; 3709s # gsize n; 3709s # guint signal_id; 3709s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 3709s # if (info == NULL) 3709s # return; 3709s # num_params = g_variant_n_children (parameters); 3709s # paramv = g_new0 (GValue, num_params + 1); 3709s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_set_object (¶mv[0], proxy); 3709s # g_variant_iter_init (&iter, parameters); 3709s # n = 1; 3709s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3709s # { 3709s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3709s # if (arg_info->use_gvariant) 3709s # { 3709s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3709s # g_value_set_variant (¶mv[n], child); 3709s # n++; 3709s # } 3709s # else 3709s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3709s # g_variant_unref (child); 3709s # } 3709s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_signal_emitv (paramv, signal_id, 0, NULL); 3709s # for (n = 0; n < num_params + 1; n++) 3709s # g_value_unset (¶mv[n]); 3709s # g_free (paramv); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 3709s # GVariant *changed_properties, 3709s # const gchar *const *invalidated_properties) 3709s # { 3709s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 3709s # guint n; 3709s # const gchar *key; 3709s # GVariantIter *iter; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # g_variant_get (changed_properties, "a{sv}", &iter); 3709s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3709s # { 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 3709s # g_datalist_remove_data (&proxy->priv->qdata, key); 3709s # if (info != NULL) 3709s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3709s # } 3709s # g_variant_iter_free (iter); 3709s # for (n = 0; invalidated_properties[n] != NULL; n++) 3709s # { 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 3709s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3709s # if (info != NULL) 3709s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3709s # } 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 3709s # { 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 3709s # #else 3709s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 3709s # #endif 3709s # 3709s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 3709s # { 3709s # GObjectClass *gobject_class; 3709s # GDBusProxyClass *proxy_class; 3709s # 3709s # gobject_class = G_OBJECT_CLASS (klass); 3709s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 3709s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 3709s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 3709s # 3709s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3709s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 3709s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3709s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 3709s # #endif 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new: 3709s # * @connection: A #GDBusConnection. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new() for more details. 3709s # * 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3709s # */ 3709s # void 3709s # org_project_useful_interface_proxy_new ( 3709s # GDBusConnection *connection, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_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); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_finish: 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_finish ( 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GObject *ret; 3709s # GObject *source_object; 3709s # source_object = g_async_result_get_source_object (res); 3709s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3709s # g_object_unref (source_object); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_sync: 3709s # * @connection: A #GDBusConnection. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new_sync() for more details. 3709s # * 3709s # * The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_sync ( 3709s # GDBusConnection *connection, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GInitable *ret; 3709s # 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); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus: 3709s # * @bus_type: A #GBusType. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: A bus name (well-known or unique). 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3709s # * 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3709s # */ 3709s # void 3709s # org_project_useful_interface_proxy_new_for_bus ( 3709s # GBusType bus_type, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_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); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus_finish: 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_for_bus_finish ( 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GObject *ret; 3709s # GObject *source_object; 3709s # source_object = g_async_result_get_source_object (res); 3709s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3709s # g_object_unref (source_object); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus_sync: 3709s # * @bus_type: A #GBusType. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: A bus name (well-known or unique). 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3709s # * 3709s # * The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_for_bus_sync ( 3709s # GBusType bus_type, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GInitable *ret; 3709s # 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); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # 3709s # /* ------------------------------------------------------------------------ */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceSkeleton: 3709s # * 3709s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceSkeletonClass: 3709s # * @parent_class: The parent class. 3709s # * 3709s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 3709s # */ 3709s # 3709s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 3709s # { 3709s # GValue *properties; 3709s # GList *changed_properties; 3709s # GSource *changed_properties_idle_source; 3709s # GMainContext *context; 3709s # GMutex lock; 3709s # }; 3709s # 3709s # static void 3709s # _org_project_useful_interface_skeleton_handle_method_call ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name, 3709s # const gchar *method_name, 3709s # GVariant *parameters, 3709s # GDBusMethodInvocation *invocation, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # _ExtendedGDBusMethodInfo *info; 3709s # GVariantIter iter; 3709s # GVariant *child; 3709s # GValue *paramv; 3709s # gsize num_params; 3709s # guint num_extra; 3709s # gsize n; 3709s # guint signal_id; 3709s # GValue return_value = G_VALUE_INIT; 3709s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3709s # g_assert (info != NULL); 3709s # num_params = g_variant_n_children (parameters); 3709s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3709s # n = 0; 3709s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_set_object (¶mv[n++], skeleton); 3709s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3709s # g_value_set_object (¶mv[n++], invocation); 3709s # if (info->pass_fdlist) 3709s # { 3709s # #ifdef G_OS_UNIX 3709s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3709s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3709s # #else 3709s # g_assert_not_reached (); 3709s # #endif 3709s # } 3709s # g_variant_iter_init (&iter, parameters); 3709s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3709s # { 3709s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3709s # if (arg_info->use_gvariant) 3709s # { 3709s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3709s # g_value_set_variant (¶mv[n], child); 3709s # n++; 3709s # } 3709s # else 3709s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3709s # g_variant_unref (child); 3709s # } 3709s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3709s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3709s # if (!g_value_get_boolean (&return_value)) 3709s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3709s # g_value_unset (&return_value); 3709s # for (n = 0; n < num_params + num_extra; n++) 3709s # g_value_unset (¶mv[n]); 3709s # g_free (paramv); 3709s # } 3709s # 3709s # static GVariant * 3709s # _org_project_useful_interface_skeleton_handle_get_property ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name G_GNUC_UNUSED, 3709s # const gchar *property_name, 3709s # GError **error, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # GValue value = G_VALUE_INIT; 3709s # GParamSpec *pspec; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # GVariant *ret; 3709s # ret = NULL; 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3709s # g_assert (info != NULL); 3709s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3709s # if (pspec == NULL) 3709s # { 3709s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3709s # } 3709s # else 3709s # { 3709s # g_value_init (&value, pspec->value_type); 3709s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3709s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3709s # g_value_unset (&value); 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static gboolean 3709s # _org_project_useful_interface_skeleton_handle_set_property ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name G_GNUC_UNUSED, 3709s # const gchar *property_name, 3709s # GVariant *variant, 3709s # GError **error, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # GValue value = G_VALUE_INIT; 3709s # GParamSpec *pspec; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # gboolean ret; 3709s # ret = FALSE; 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3709s # g_assert (info != NULL); 3709s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3709s # if (pspec == NULL) 3709s # { 3709s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3709s # } 3709s # else 3709s # { 3709s # if (info->use_gvariant) 3709s # g_value_set_variant (&value, variant); 3709s # else 3709s # g_dbus_gvariant_to_gvalue (variant, &value); 3709s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3709s # g_value_unset (&value); 3709s # ret = TRUE; 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 3709s # { 3709s # _org_project_useful_interface_skeleton_handle_method_call, 3709s # _org_project_useful_interface_skeleton_handle_get_property, 3709s # _org_project_useful_interface_skeleton_handle_set_property, 3709s # {NULL} 3709s # }; 3709s # 3709s # static GDBusInterfaceInfo * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3709s # { 3709s # return org_project_useful_interface_interface_info (); 3709s # } 3709s # 3709s # static GDBusInterfaceVTable * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3709s # { 3709s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 3709s # } 3709s # 3709s # static GVariant * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 3709s # 3709s # GVariantBuilder builder; 3709s # guint n; 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3709s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3709s # #else 3709s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3709s # #endif 3709s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 3709s # goto out; 3709s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 3709s # { 3709s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 3709s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3709s # { 3709s # GVariant *value; 3709s # 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); 3709s # if (value != NULL) 3709s # { 3709s # g_variant_take_ref (value); 3709s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3709s # g_variant_unref (value); 3709s # } 3709s # } 3709s # } 3709s # out: 3709s # return g_variant_builder_end (&builder); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3709s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3709s # 3709s # #else 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3709s # 3709s # #endif 3709s # static void 3709s # org_project_useful_interface_skeleton_finalize (GObject *object) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 3709s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3709s # if (skeleton->priv->changed_properties_idle_source != NULL) 3709s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3709s # g_main_context_unref (skeleton->priv->context); 3709s # g_mutex_clear (&skeleton->priv->lock); 3709s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 3709s # { 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 3709s # #else 3709s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 3709s # #endif 3709s # 3709s # g_mutex_init (&skeleton->priv->lock); 3709s # skeleton->priv->context = g_main_context_ref_thread_default (); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 3709s # { 3709s # GObjectClass *gobject_class; 3709s # GDBusInterfaceSkeletonClass *skeleton_class; 3709s # 3709s # gobject_class = G_OBJECT_CLASS (klass); 3709s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 3709s # 3709s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3709s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 3709s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 3709s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 3709s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3709s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 3709s # #endif 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_skeleton_new: 3709s # * 3709s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_skeleton_new (void) 3709s # { 3709s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 3709s # } 3709s # Error: 3709s # 3709s # /tmp/tmplo7nhxxl/tmpwdlf9aao.xml: 3709s # <node> 3709s # <interface name="org.project.UsefulInterface"> 3709s # <method name="SingleArgMethodY"> 3709s # <arg name="arg_y" type="y" direction="out"/> 3709s # </method> 3709s # </interface> 3709s # </node> 3709s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplo7nhxxl/tmpwdlf9aao.xml', '--output', '-', '--body'] 3709s # Return code: 0 3709s # Output: 3709s # /* 3709s # * This file is generated by gdbus-codegen, do not modify it. 3709s # * 3709s # * The license of this code is the same as for the D-Bus interface description 3709s # * it was derived from. Note that it links to GLib, so must comply with the 3709s # * LGPL linking clauses. 3709s # */ 3709s # 3709s # #ifdef HAVE_CONFIG_H 3709s # # include "config.h" 3709s # #endif 3709s # 3709s # #include <string.h> 3709s # #ifdef G_OS_UNIX 3709s # # include <gio/gunixfdlist.h> 3709s # #endif 3709s # 3709s # #ifdef G_ENABLE_DEBUG 3709s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3709s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3709s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3709s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3709s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3709s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3709s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3709s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3709s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3709s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3709s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3709s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3709s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3709s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3709s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3709s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3709s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3709s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3709s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3709s # #else /* !G_ENABLE_DEBUG */ 3709s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3709s # * Do not access GValues directly in your code. Instead, use the 3709s # * g_value_get_*() functions 3709s # */ 3709s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3709s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3709s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3709s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3709s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3709s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3709s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3709s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3709s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3709s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3709s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3709s # #endif /* !G_ENABLE_DEBUG */ 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusArgInfo parent_struct; 3709s # gboolean use_gvariant; 3709s # } _ExtendedGDBusArgInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusMethodInfo parent_struct; 3709s # const gchar *signal_name; 3709s # gboolean pass_fdlist; 3709s # } _ExtendedGDBusMethodInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusSignalInfo parent_struct; 3709s # const gchar *signal_name; 3709s # } _ExtendedGDBusSignalInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusPropertyInfo parent_struct; 3709s # const gchar *hyphen_name; 3709s # guint use_gvariant : 1; 3709s # guint emits_changed_signal : 1; 3709s # } _ExtendedGDBusPropertyInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusInterfaceInfo parent_struct; 3709s # const gchar *hyphen_name; 3709s # } _ExtendedGDBusInterfaceInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # const _ExtendedGDBusPropertyInfo *info; 3709s # guint prop_id; 3709s # GValue orig_value; /* the value before the change */ 3709s # } ChangedProperty; 3709s # 3709s # static void 3709s # _changed_property_free (ChangedProperty *data) 3709s # { 3709s # g_value_unset (&data->orig_value); 3709s # g_free (data); 3709s # } 3709s # 3709s # static gboolean 3709s # _g_strv_equal0 (gchar **a, gchar **b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # guint n; 3709s # if (a == NULL && b == NULL) 3709s # { 3709s # ret = TRUE; 3709s # goto out; 3709s # } 3709s # if (a == NULL || b == NULL) 3709s # goto out; 3709s # if (g_strv_length (a) != g_strv_length (b)) 3709s # goto out; 3709s # for (n = 0; a[n] != NULL; n++) 3709s # if (g_strcmp0 (a[n], b[n]) != 0) 3709s # goto out; 3709s # ret = TRUE; 3709s # out: 3709s # return ret; 3709s # } 3709s # 3709s # static gboolean 3709s # _g_variant_equal0 (GVariant *a, GVariant *b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # if (a == NULL && b == NULL) 3709s # { 3709s # ret = TRUE; 3709s # goto out; 3709s # } 3709s # if (a == NULL || b == NULL) 3709s # goto out; 3709s # ret = g_variant_equal (a, b); 3709s # out: 3709s # return ret; 3709s # } 3709s # 3709s # G_GNUC_UNUSED static gboolean 3709s # _g_value_equal (const GValue *a, const GValue *b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3709s # switch (G_VALUE_TYPE (a)) 3709s # { 3709s # case G_TYPE_BOOLEAN: 3709s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3709s # break; 3709s # case G_TYPE_UCHAR: 3709s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3709s # break; 3709s # case G_TYPE_INT: 3709s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3709s # break; 3709s # case G_TYPE_UINT: 3709s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3709s # break; 3709s # case G_TYPE_INT64: 3709s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3709s # break; 3709s # case G_TYPE_UINT64: 3709s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3709s # break; 3709s # case G_TYPE_DOUBLE: 3709s # { 3709s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3709s # gdouble da = g_value_get_double (a); 3709s # gdouble db = g_value_get_double (b); 3709s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3709s # } 3709s # break; 3709s # case G_TYPE_STRING: 3709s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3709s # break; 3709s # case G_TYPE_VARIANT: 3709s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3709s # break; 3709s # default: 3709s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3709s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3709s # else 3709s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3709s # break; 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static void 3709s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 3709s # GClosure *closure, 3709s # GValue *return_value, 3709s # unsigned int n_param_values, 3709s # const GValue *param_values, 3709s # void *invocation_hint G_GNUC_UNUSED, 3709s # void *marshal_data) 3709s # { 3709s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 3709s # (void *data1, 3709s # GDBusMethodInvocation *arg_method_invocation, 3709s # void *data2); 3709s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 3709s # GCClosure *cc = (GCClosure*) closure; 3709s # void *data1, *data2; 3709s # gboolean v_return; 3709s # 3709s # g_return_if_fail (return_value != NULL); 3709s # g_return_if_fail (n_param_values == 2); 3709s # 3709s # if (G_CCLOSURE_SWAP_DATA (closure)) 3709s # { 3709s # data1 = closure->data; 3709s # data2 = g_value_peek_pointer (param_values + 0); 3709s # } 3709s # else 3709s # { 3709s # data1 = g_value_peek_pointer (param_values + 0); 3709s # data2 = closure->data; 3709s # } 3709s # 3709s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 3709s # (marshal_data ? marshal_data : cc->callback); 3709s # 3709s # v_return = 3709s # callback (data1, 3709s # g_marshal_value_peek_object (param_values + 1), 3709s # data2); 3709s # 3709s # g_value_set_boolean (return_value, v_return); 3709s # } 3709s # 3709s # /* ------------------------------------------------------------------------ 3709s # * Code for interface org.project.UsefulInterface 3709s # * ------------------------------------------------------------------------ 3709s # */ 3709s # 3709s # /** 3709s # * SECTION:OrgProjectUsefulInterface 3709s # * @title: OrgProjectUsefulInterface 3709s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 3709s # * 3709s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface in C. 3709s # */ 3709s # 3709s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 3709s # 3709s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_arg_y = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "arg_y", 3709s # (gchar *) "y", 3709s # NULL 3709s # }, 3709s # FALSE 3709s # }; 3709s # 3709s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_pointers[] = 3709s # { 3709s # &_org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_arg_y.parent_struct, 3709s # NULL 3709s # }; 3709s # 3709s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_y = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "SingleArgMethodY", 3709s # NULL, 3709s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_pointers, 3709s # NULL 3709s # }, 3709s # "handle-single-arg-method-y", 3709s # FALSE 3709s # }; 3709s # 3709s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 3709s # { 3709s # &_org_project_useful_interface_method_info_single_arg_method_y.parent_struct, 3709s # NULL 3709s # }; 3709s # 3709s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "org.project.UsefulInterface", 3709s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 3709s # NULL, 3709s # NULL, 3709s # NULL 3709s # }, 3709s # "org-project-useful-interface", 3709s # }; 3709s # 3709s # 3709s # /** 3709s # * org_project_useful_interface_interface_info: 3709s # * 3709s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface. 3709s # * 3709s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3709s # */ 3709s # GDBusInterfaceInfo * 3709s # org_project_useful_interface_interface_info (void) 3709s # { 3709s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_override_properties: 3709s # * @klass: The class structure for a #GObject derived class. 3709s # * @property_id_begin: The property id to assign to the first overridden property. 3709s # * 3709s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 3709s # * The properties are overridden in the order they are defined. 3709s # * 3709s # * Returns: The last property id. 3709s # */ 3709s # guint 3709s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3709s # { 3709s # return property_id_begin - 1; 3709s # } 3709s # 3709s # 3709s # inline static void 3709s # org_project_useful_interface_method_marshal_single_arg_method_y ( 3709s # GClosure *closure, 3709s # GValue *return_value, 3709s # unsigned int n_param_values, 3709s # const GValue *param_values, 3709s # void *invocation_hint, 3709s # void *marshal_data) 3709s # { 3709s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 3709s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3709s # } 3709s # 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterface: 3709s # * 3709s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceIface: 3709s # * @parent_iface: The parent interface. 3709s # * @handle_single_arg_method_y: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-y signal. 3709s # * 3709s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # */ 3709s # 3709s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 3709s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 3709s # 3709s # static void 3709s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 3709s # { 3709s # /* GObject signals for incoming D-Bus method calls: */ 3709s # /** 3709s # * OrgProjectUsefulInterface::handle-single-arg-method-y: 3709s # * @object: A #OrgProjectUsefulInterface. 3709s # * @invocation: A #GDBusMethodInvocation. 3709s # * 3709s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodY">SingleArgMethodY()</link> D-Bus method. 3709s # * 3709s # * 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. 3709s # * 3709s # * 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. 3709s # */ 3709s # g_signal_new ("handle-single-arg-method-y", 3709s # G_TYPE_FROM_INTERFACE (iface), 3709s # G_SIGNAL_RUN_LAST, 3709s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_y), 3709s # g_signal_accumulator_true_handled, 3709s # NULL, 3709s # org_project_useful_interface_method_marshal_single_arg_method_y, 3709s # G_TYPE_BOOLEAN, 3709s # 1, 3709s # G_TYPE_DBUS_METHOD_INVOCATION); 3709s # 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_y: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodY">SingleArgMethodY()</link> D-Bus method on @proxy. 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_call_single_arg_method_y_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_call_single_arg_method_y_sync() for the synchronous, blocking version of this method. 3709s # */ 3709s # void 3709s # org_project_useful_interface_call_single_arg_method_y ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3709s # "SingleArgMethodY", 3709s # g_variant_new ("()"), 3709s # G_DBUS_CALL_FLAGS_NONE, 3709s # -1, 3709s # cancellable, 3709s # callback, 3709s # user_data); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_y_finish: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @out_arg_y: (out) (optional): Return location for return parameter or %NULL to ignore. 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_y(). 3709s # * @error: Return location for error or %NULL. 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_y(). 3709s # * 3709s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3709s # */ 3709s # gboolean 3709s # org_project_useful_interface_call_single_arg_method_y_finish ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # guchar *out_arg_y, 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GVariant *_ret; 3709s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3709s # if (_ret == NULL) 3709s # goto _out; 3709s # g_variant_get (_ret, 3709s # "(y)", 3709s # out_arg_y); 3709s # g_variant_unref (_ret); 3709s # _out: 3709s # return _ret != NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_y_sync: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @out_arg_y: (out) (optional): Return location for return parameter or %NULL to ignore. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL. 3709s # * 3709s # * Synchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodY">SingleArgMethodY()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_call_single_arg_method_y() for the asynchronous version of this method. 3709s # * 3709s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3709s # */ 3709s # gboolean 3709s # org_project_useful_interface_call_single_arg_method_y_sync ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # guchar *out_arg_y, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GVariant *_ret; 3709s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3709s # "SingleArgMethodY", 3709s # g_variant_new ("()"), 3709s # G_DBUS_CALL_FLAGS_NONE, 3709s # -1, 3709s # cancellable, 3709s # error); 3709s # if (_ret == NULL) 3709s # goto _out; 3709s # g_variant_get (_ret, 3709s # "(y)", 3709s # out_arg_y); 3709s # g_variant_unref (_ret); 3709s # _out: 3709s # return _ret != NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_complete_single_arg_method_y: 3709s # * @object: A #OrgProjectUsefulInterface. 3709s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3709s # * @arg_y: Parameter to return. 3709s # * 3709s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodY">SingleArgMethodY()</link> 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. 3709s # * 3709s # * This method will free @invocation, you cannot use it afterwards. 3709s # */ 3709s # void 3709s # org_project_useful_interface_complete_single_arg_method_y ( 3709s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 3709s # GDBusMethodInvocation *invocation, 3709s # guchar arg_y) 3709s # { 3709s # g_dbus_method_invocation_return_value (invocation, 3709s # g_variant_new ("(y)", 3709s # arg_y)); 3709s # } 3709s # 3709s # /* ------------------------------------------------------------------------ */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceProxy: 3709s # * 3709s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceProxyClass: 3709s # * @parent_class: The parent class. 3709s # * 3709s # * Class structure for #OrgProjectUsefulInterfaceProxy. 3709s # */ 3709s # 3709s # struct _OrgProjectUsefulInterfaceProxyPrivate 3709s # { 3709s # GData *qdata; 3709s # }; 3709s # 3709s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3709s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3709s # 3709s # #else 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3709s # 3709s # #endif 3709s # static void 3709s # org_project_useful_interface_proxy_finalize (GObject *object) 3709s # { 3709s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 3709s # g_datalist_clear (&proxy->priv->qdata); 3709s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3709s # guint prop_id G_GNUC_UNUSED, 3709s # GValue *value G_GNUC_UNUSED, 3709s # GParamSpec *pspec G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3709s # guint prop_id G_GNUC_UNUSED, 3709s # const GValue *value G_GNUC_UNUSED, 3709s # GParamSpec *pspec G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 3709s # const gchar *sender_name G_GNUC_UNUSED, 3709s # const gchar *signal_name, 3709s # GVariant *parameters) 3709s # { 3709s # _ExtendedGDBusSignalInfo *info; 3709s # GVariantIter iter; 3709s # GVariant *child; 3709s # GValue *paramv; 3709s # gsize num_params; 3709s # gsize n; 3709s # guint signal_id; 3709s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 3709s # if (info == NULL) 3709s # return; 3709s # num_params = g_variant_n_children (parameters); 3709s # paramv = g_new0 (GValue, num_params + 1); 3709s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_set_object (¶mv[0], proxy); 3709s # g_variant_iter_init (&iter, parameters); 3709s # n = 1; 3709s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3709s # { 3709s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3709s # if (arg_info->use_gvariant) 3709s # { 3709s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3709s # g_value_set_variant (¶mv[n], child); 3709s # n++; 3709s # } 3709s # else 3709s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3709s # g_variant_unref (child); 3709s # } 3709s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_signal_emitv (paramv, signal_id, 0, NULL); 3709s # for (n = 0; n < num_params + 1; n++) 3709s # g_value_unset (¶mv[n]); 3709s # g_free (paramv); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 3709s # GVariant *changed_properties, 3709s # const gchar *const *invalidated_properties) 3709s # { 3709s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 3709s # guint n; 3709s # const gchar *key; 3709s # GVariantIter *iter; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # g_variant_get (changed_properties, "a{sv}", &iter); 3709s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3709s # { 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 3709s # g_datalist_remove_data (&proxy->priv->qdata, key); 3709s # if (info != NULL) 3709s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3709s # } 3709s # g_variant_iter_free (iter); 3709s # for (n = 0; invalidated_properties[n] != NULL; n++) 3709s # { 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 3709s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3709s # if (info != NULL) 3709s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3709s # } 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 3709s # { 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 3709s # #else 3709s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 3709s # #endif 3709s # 3709s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 3709s # { 3709s # GObjectClass *gobject_class; 3709s # GDBusProxyClass *proxy_class; 3709s # 3709s # gobject_class = G_OBJECT_CLASS (klass); 3709s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 3709s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 3709s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 3709s # 3709s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3709s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 3709s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3709s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 3709s # #endif 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new: 3709s # * @connection: A #GDBusConnection. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new() for more details. 3709s # * 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3709s # */ 3709s # void 3709s # org_project_useful_interface_proxy_new ( 3709s # GDBusConnection *connection, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_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); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_finish: 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_finish ( 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GObject *ret; 3709s # GObject *source_object; 3709s # source_object = g_async_result_get_source_object (res); 3709s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3709s # g_object_unref (source_object); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_sync: 3709s # * @connection: A #GDBusConnection. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new_sync() for more details. 3709s # * 3709s # * The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_sync ( 3709s # GDBusConnection *connection, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GInitable *ret; 3709s # 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); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus: 3709s # * @bus_type: A #GBusType. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: A bus name (well-known or unique). 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3709s # * 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3709s # */ 3709s # void 3709s # org_project_useful_interface_proxy_new_for_bus ( 3709s # GBusType bus_type, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_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); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus_finish: 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_for_bus_finish ( 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GObject *ret; 3709s # GObject *source_object; 3709s # source_object = g_async_result_get_source_object (res); 3709s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3709s # g_object_unref (source_object); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus_sync: 3709s # * @bus_type: A #GBusType. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: A bus name (well-known or unique). 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3709s # * 3709s # * The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_for_bus_sync ( 3709s # GBusType bus_type, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GInitable *ret; 3709s # 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); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # 3709s # /* ------------------------------------------------------------------------ */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceSkeleton: 3709s # * 3709s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceSkeletonClass: 3709s # * @parent_class: The parent class. 3709s # * 3709s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 3709s # */ 3709s # 3709s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 3709s # { 3709s # GValue *properties; 3709s # GList *changed_properties; 3709s # GSource *changed_properties_idle_source; 3709s # GMainContext *context; 3709s # GMutex lock; 3709s # }; 3709s # 3709s # static void 3709s # _org_project_useful_interface_skeleton_handle_method_call ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name, 3709s # const gchar *method_name, 3709s # GVariant *parameters, 3709s # GDBusMethodInvocation *invocation, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # _ExtendedGDBusMethodInfo *info; 3709s # GVariantIter iter; 3709s # GVariant *child; 3709s # GValue *paramv; 3709s # gsize num_params; 3709s # guint num_extra; 3709s # gsize n; 3709s # guint signal_id; 3709s # GValue return_value = G_VALUE_INIT; 3709s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3709s # g_assert (info != NULL); 3709s # num_params = g_variant_n_children (parameters); 3709s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3709s # n = 0; 3709s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_set_object (¶mv[n++], skeleton); 3709s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3709s # g_value_set_object (¶mv[n++], invocation); 3709s # if (info->pass_fdlist) 3709s # { 3709s # #ifdef G_OS_UNIX 3709s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3709s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3709s # #else 3709s # g_assert_not_reached (); 3709s # #endif 3709s # } 3709s # g_variant_iter_init (&iter, parameters); 3709s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3709s # { 3709s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3709s # if (arg_info->use_gvariant) 3709s # { 3709s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3709s # g_value_set_variant (¶mv[n], child); 3709s # n++; 3709s # } 3709s # else 3709s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3709s # g_variant_unref (child); 3709s # } 3709s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3709s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3709s # if (!g_value_get_boolean (&return_value)) 3709s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3709s # g_value_unset (&return_value); 3709s # for (n = 0; n < num_params + num_extra; n++) 3709s # g_value_unset (¶mv[n]); 3709s # g_free (paramv); 3709s # } 3709s # 3709s # static GVariant * 3709s # _org_project_useful_interface_skeleton_handle_get_property ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name G_GNUC_UNUSED, 3709s # const gchar *property_name, 3709s # GError **error, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # GValue value = G_VALUE_INIT; 3709s # GParamSpec *pspec; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # GVariant *ret; 3709s # ret = NULL; 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3709s # g_assert (info != NULL); 3709s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3709s # if (pspec == NULL) 3709s # { 3709s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3709s # } 3709s # else 3709s # { 3709s # g_value_init (&value, pspec->value_type); 3709s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3709s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3709s # g_value_unset (&value); 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static gboolean 3709s # _org_project_useful_interface_skeleton_handle_set_property ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name G_GNUC_UNUSED, 3709s # const gchar *property_name, 3709s # GVariant *variant, 3709s # GError **error, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # GValue value = G_VALUE_INIT; 3709s # GParamSpec *pspec; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # gboolean ret; 3709s # ret = FALSE; 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3709s # g_assert (info != NULL); 3709s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3709s # if (pspec == NULL) 3709s # { 3709s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3709s # } 3709s # else 3709s # { 3709s # if (info->use_gvariant) 3709s # g_value_set_variant (&value, variant); 3709s # else 3709s # g_dbus_gvariant_to_gvalue (variant, &value); 3709s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3709s # g_value_unset (&value); 3709s # ret = TRUE; 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 3709s # { 3709s # _org_project_useful_interface_skeleton_handle_method_call, 3709s # _org_project_useful_interface_skeleton_handle_get_property, 3709s # _org_project_useful_interface_skeleton_handle_set_property, 3709s # {NULL} 3709s # }; 3709s # 3709s # static GDBusInterfaceInfo * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3709s # { 3709s # return org_project_useful_interface_interface_info (); 3709s # } 3709s # 3709s # static GDBusInterfaceVTable * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3709s # { 3709s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 3709s # } 3709s # 3709s # static GVariant * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 3709s # 3709s # GVariantBuilder builder; 3709s # guint n; 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3709s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3709s # #else 3709s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3709s # #endif 3709s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 3709s # goto out; 3709s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 3709s # { 3709s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 3709s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3709s # { 3709s # GVariant *value; 3709s # 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); 3709s # if (value != NULL) 3709s # { 3709s # g_variant_take_ref (value); 3709s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3709s # g_variant_unref (value); 3709s # } 3709s # } 3709s # } 3709s # out: 3709s # return g_variant_builder_end (&builder); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3709s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3709s # 3709s # #else 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3709s # 3709s # #endif 3709s # static void 3709s # org_project_useful_interface_skeleton_finalize (GObject *object) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 3709s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3709s # if (skeleton->priv->changed_properties_idle_source != NULL) 3709s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3709s # g_main_context_unref (skeleton->priv->context); 3709s # g_mutex_clear (&skeleton->priv->lock); 3709s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 3709s # { 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 3709s # #else 3709s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 3709s # #endif 3709s # 3709s # g_mutex_init (&skeleton->priv->lock); 3709s # skeleton->priv->context = g_main_context_ref_thread_default (); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 3709s # { 3709s # GObjectClass *gobject_class; 3709s # GDBusInterfaceSkeletonClass *skeleton_class; 3709s # 3709s # gobject_class = G_OBJECT_CLASS (klass); 3709s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 3709s # 3709s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3709s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 3709s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 3709s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 3709s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3709s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 3709s # #endif 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_skeleton_new: 3709s # * 3709s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_skeleton_new (void) 3709s # { 3709s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 3709s # } 3709s # Error: 3709s # 3709s # /tmp/tmplo7nhxxl/tmpiatnpd2y.xml: 3709s # <node> 3709s # <interface name="org.project.UsefulInterface"> 3709s # <method name="SingleArgMethodN"> 3709s # <arg name="arg_n" type="n" direction="out"/> 3709s # </method> 3709s # </interface> 3709s # </node> 3709s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplo7nhxxl/tmpiatnpd2y.xml', '--output', '-', '--body'] 3709s # Return code: 0 3709s # Output: 3709s # /* 3709s # * This file is generated by gdbus-codegen, do not modify it. 3709s # * 3709s # * The license of this code is the same as for the D-Bus interface description 3709s # * it was derived from. Note that it links to GLib, so must comply with the 3709s # * LGPL linking clauses. 3709s # */ 3709s # 3709s # #ifdef HAVE_CONFIG_H 3709s # # include "config.h" 3709s # #endif 3709s # 3709s # #include <string.h> 3709s # #ifdef G_OS_UNIX 3709s # # include <gio/gunixfdlist.h> 3709s # #endif 3709s # 3709s # #ifdef G_ENABLE_DEBUG 3709s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3709s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3709s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3709s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3709s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3709s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3709s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3709s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3709s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3709s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3709s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3709s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3709s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3709s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3709s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3709s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3709s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3709s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3709s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3709s # #else /* !G_ENABLE_DEBUG */ 3709s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3709s # * Do not access GValues directly in your code. Instead, use the 3709s # * g_value_get_*() functions 3709s # */ 3709s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3709s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3709s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3709s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3709s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3709s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3709s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3709s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3709s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3709s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3709s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3709s # #endif /* !G_ENABLE_DEBUG */ 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusArgInfo parent_struct; 3709s # gboolean use_gvariant; 3709s # } _ExtendedGDBusArgInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusMethodInfo parent_struct; 3709s # const gchar *signal_name; 3709s # gboolean pass_fdlist; 3709s # } _ExtendedGDBusMethodInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusSignalInfo parent_struct; 3709s # const gchar *signal_name; 3709s # } _ExtendedGDBusSignalInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusPropertyInfo parent_struct; 3709s # const gchar *hyphen_name; 3709s # guint use_gvariant : 1; 3709s # guint emits_changed_signal : 1; 3709s # } _ExtendedGDBusPropertyInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusInterfaceInfo parent_struct; 3709s # const gchar *hyphen_name; 3709s # } _ExtendedGDBusInterfaceInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # const _ExtendedGDBusPropertyInfo *info; 3709s # guint prop_id; 3709s # GValue orig_value; /* the value before the change */ 3709s # } ChangedProperty; 3709s # 3709s # static void 3709s # _changed_property_free (ChangedProperty *data) 3709s # { 3709s # g_value_unset (&data->orig_value); 3709s # g_free (data); 3709s # } 3709s # 3709s # static gboolean 3709s # _g_strv_equal0 (gchar **a, gchar **b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # guint n; 3709s # if (a == NULL && b == NULL) 3709s # { 3709s # ret = TRUE; 3709s # goto out; 3709s # } 3709s # if (a == NULL || b == NULL) 3709s # goto out; 3709s # if (g_strv_length (a) != g_strv_length (b)) 3709s # goto out; 3709s # for (n = 0; a[n] != NULL; n++) 3709s # if (g_strcmp0 (a[n], b[n]) != 0) 3709s # goto out; 3709s # ret = TRUE; 3709s # out: 3709s # return ret; 3709s # } 3709s # 3709s # static gboolean 3709s # _g_variant_equal0 (GVariant *a, GVariant *b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # if (a == NULL && b == NULL) 3709s # { 3709s # ret = TRUE; 3709s # goto out; 3709s # } 3709s # if (a == NULL || b == NULL) 3709s # goto out; 3709s # ret = g_variant_equal (a, b); 3709s # out: 3709s # return ret; 3709s # } 3709s # 3709s # G_GNUC_UNUSED static gboolean 3709s # _g_value_equal (const GValue *a, const GValue *b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3709s # switch (G_VALUE_TYPE (a)) 3709s # { 3709s # case G_TYPE_BOOLEAN: 3709s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3709s # break; 3709s # case G_TYPE_UCHAR: 3709s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3709s # break; 3709s # case G_TYPE_INT: 3709s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3709s # break; 3709s # case G_TYPE_UINT: 3709s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3709s # break; 3709s # case G_TYPE_INT64: 3709s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3709s # break; 3709s # case G_TYPE_UINT64: 3709s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3709s # break; 3709s # case G_TYPE_DOUBLE: 3709s # { 3709s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3709s # gdouble da = g_value_get_double (a); 3709s # gdouble db = g_value_get_double (b); 3709s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3709s # } 3709s # break; 3709s # case G_TYPE_STRING: 3709s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3709s # break; 3709s # case G_TYPE_VARIANT: 3709s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3709s # break; 3709s # default: 3709s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3709s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3709s # else 3709s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3709s # break; 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static void 3709s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 3709s # GClosure *closure, 3709s # GValue *return_value, 3709s # unsigned int n_param_values, 3709s # const GValue *param_values, 3709s # void *invocation_hint G_GNUC_UNUSED, 3709s # void *marshal_data) 3709s # { 3709s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 3709s # (void *data1, 3709s # GDBusMethodInvocation *arg_method_invocation, 3709s # void *data2); 3709s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 3709s # GCClosure *cc = (GCClosure*) closure; 3709s # void *data1, *data2; 3709s # gboolean v_return; 3709s # 3709s # g_return_if_fail (return_value != NULL); 3709s # g_return_if_fail (n_param_values == 2); 3709s # 3709s # if (G_CCLOSURE_SWAP_DATA (closure)) 3709s # { 3709s # data1 = closure->data; 3709s # data2 = g_value_peek_pointer (param_values + 0); 3709s # } 3709s # else 3709s # { 3709s # data1 = g_value_peek_pointer (param_values + 0); 3709s # data2 = closure->data; 3709s # } 3709s # 3709s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 3709s # (marshal_data ? marshal_data : cc->callback); 3709s # 3709s # v_return = 3709s # callback (data1, 3709s # g_marshal_value_peek_object (param_values + 1), 3709s # data2); 3709s # 3709s # g_value_set_boolean (return_value, v_return); 3709s # } 3709s # 3709s # /* ------------------------------------------------------------------------ 3709s # * Code for interface org.project.UsefulInterface 3709s # * ------------------------------------------------------------------------ 3709s # */ 3709s # 3709s # /** 3709s # * SECTION:OrgProjectUsefulInterface 3709s # * @title: OrgProjectUsefulInterface 3709s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 3709s # * 3709s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface in C. 3709s # */ 3709s # 3709s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 3709s # 3709s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_arg_n = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "arg_n", 3709s # (gchar *) "n", 3709s # NULL 3709s # }, 3709s # FALSE 3709s # }; 3709s # 3709s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_pointers[] = 3709s # { 3709s # &_org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_arg_n.parent_struct, 3709s # NULL 3709s # }; 3709s # 3709s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_n = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "SingleArgMethodN", 3709s # NULL, 3709s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_pointers, 3709s # NULL 3709s # }, 3709s # "handle-single-arg-method-n", 3709s # FALSE 3709s # }; 3709s # 3709s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 3709s # { 3709s # &_org_project_useful_interface_method_info_single_arg_method_n.parent_struct, 3709s # NULL 3709s # }; 3709s # 3709s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "org.project.UsefulInterface", 3709s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 3709s # NULL, 3709s # NULL, 3709s # NULL 3709s # }, 3709s # "org-project-useful-interface", 3709s # }; 3709s # 3709s # 3709s # /** 3709s # * org_project_useful_interface_interface_info: 3709s # * 3709s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface. 3709s # * 3709s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3709s # */ 3709s # GDBusInterfaceInfo * 3709s # org_project_useful_interface_interface_info (void) 3709s # { 3709s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_override_properties: 3709s # * @klass: The class structure for a #GObject derived class. 3709s # * @property_id_begin: The property id to assign to the first overridden property. 3709s # * 3709s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 3709s # * The properties are overridden in the order they are defined. 3709s # * 3709s # * Returns: The last property id. 3709s # */ 3709s # guint 3709s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3709s # { 3709s # return property_id_begin - 1; 3709s # } 3709s # 3709s # 3709s # inline static void 3709s # org_project_useful_interface_method_marshal_single_arg_method_n ( 3709s # GClosure *closure, 3709s # GValue *return_value, 3709s # unsigned int n_param_values, 3709s # const GValue *param_values, 3709s # void *invocation_hint, 3709s # void *marshal_data) 3709s # { 3709s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 3709s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3709s # } 3709s # 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterface: 3709s # * 3709s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceIface: 3709s # * @parent_iface: The parent interface. 3709s # * @handle_single_arg_method_n: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-n signal. 3709s # * 3709s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # */ 3709s # 3709s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 3709s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 3709s # 3709s # static void 3709s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 3709s # { 3709s # /* GObject signals for incoming D-Bus method calls: */ 3709s # /** 3709s # * OrgProjectUsefulInterface::handle-single-arg-method-n: 3709s # * @object: A #OrgProjectUsefulInterface. 3709s # * @invocation: A #GDBusMethodInvocation. 3709s # * 3709s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodN">SingleArgMethodN()</link> D-Bus method. 3709s # * 3709s # * 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. 3709s # * 3709s # * 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. 3709s # */ 3709s # g_signal_new ("handle-single-arg-method-n", 3709s # G_TYPE_FROM_INTERFACE (iface), 3709s # G_SIGNAL_RUN_LAST, 3709s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_n), 3709s # g_signal_accumulator_true_handled, 3709s # NULL, 3709s # org_project_useful_interface_method_marshal_single_arg_method_n, 3709s # G_TYPE_BOOLEAN, 3709s # 1, 3709s # G_TYPE_DBUS_METHOD_INVOCATION); 3709s # 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_n: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodN">SingleArgMethodN()</link> D-Bus method on @proxy. 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_call_single_arg_method_n_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_call_single_arg_method_n_sync() for the synchronous, blocking version of this method. 3709s # */ 3709s # void 3709s # org_project_useful_interface_call_single_arg_method_n ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3709s # "SingleArgMethodN", 3709s # g_variant_new ("()"), 3709s # G_DBUS_CALL_FLAGS_NONE, 3709s # -1, 3709s # cancellable, 3709s # callback, 3709s # user_data); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_n_finish: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @out_arg_n: (out) (optional): Return location for return parameter or %NULL to ignore. 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_n(). 3709s # * @error: Return location for error or %NULL. 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_n(). 3709s # * 3709s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3709s # */ 3709s # gboolean 3709s # org_project_useful_interface_call_single_arg_method_n_finish ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # gint16 *out_arg_n, 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GVariant *_ret; 3709s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3709s # if (_ret == NULL) 3709s # goto _out; 3709s # g_variant_get (_ret, 3709s # "(n)", 3709s # out_arg_n); 3709s # g_variant_unref (_ret); 3709s # _out: 3709s # return _ret != NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_n_sync: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @out_arg_n: (out) (optional): Return location for return parameter or %NULL to ignore. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL. 3709s # * 3709s # * Synchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodN">SingleArgMethodN()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_call_single_arg_method_n() for the asynchronous version of this method. 3709s # * 3709s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3709s # */ 3709s # gboolean 3709s # org_project_useful_interface_call_single_arg_method_n_sync ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # gint16 *out_arg_n, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GVariant *_ret; 3709s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3709s # "SingleArgMethodN", 3709s # g_variant_new ("()"), 3709s # G_DBUS_CALL_FLAGS_NONE, 3709s # -1, 3709s # cancellable, 3709s # error); 3709s # if (_ret == NULL) 3709s # goto _out; 3709s # g_variant_get (_ret, 3709s # "(n)", 3709s # out_arg_n); 3709s # g_variant_unref (_ret); 3709s # _out: 3709s # return _ret != NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_complete_single_arg_method_n: 3709s # * @object: A #OrgProjectUsefulInterface. 3709s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3709s # * @arg_n: Parameter to return. 3709s # * 3709s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodN">SingleArgMethodN()</link> 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. 3709s # * 3709s # * This method will free @invocation, you cannot use it afterwards. 3709s # */ 3709s # void 3709s # org_project_useful_interface_complete_single_arg_method_n ( 3709s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 3709s # GDBusMethodInvocation *invocation, 3709s # gint16 arg_n) 3709s # { 3709s # g_dbus_method_invocation_return_value (invocation, 3709s # g_variant_new ("(n)", 3709s # arg_n)); 3709s # } 3709s # 3709s # /* ------------------------------------------------------------------------ */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceProxy: 3709s # * 3709s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceProxyClass: 3709s # * @parent_class: The parent class. 3709s # * 3709s # * Class structure for #OrgProjectUsefulInterfaceProxy. 3709s # */ 3709s # 3709s # struct _OrgProjectUsefulInterfaceProxyPrivate 3709s # { 3709s # GData *qdata; 3709s # }; 3709s # 3709s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3709s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3709s # 3709s # #else 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3709s # 3709s # #endif 3709s # static void 3709s # org_project_useful_interface_proxy_finalize (GObject *object) 3709s # { 3709s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 3709s # g_datalist_clear (&proxy->priv->qdata); 3709s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3709s # guint prop_id G_GNUC_UNUSED, 3709s # GValue *value G_GNUC_UNUSED, 3709s # GParamSpec *pspec G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3709s # guint prop_id G_GNUC_UNUSED, 3709s # const GValue *value G_GNUC_UNUSED, 3709s # GParamSpec *pspec G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 3709s # const gchar *sender_name G_GNUC_UNUSED, 3709s # const gchar *signal_name, 3709s # GVariant *parameters) 3709s # { 3709s # _ExtendedGDBusSignalInfo *info; 3709s # GVariantIter iter; 3709s # GVariant *child; 3709s # GValue *paramv; 3709s # gsize num_params; 3709s # gsize n; 3709s # guint signal_id; 3709s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 3709s # if (info == NULL) 3709s # return; 3709s # num_params = g_variant_n_children (parameters); 3709s # paramv = g_new0 (GValue, num_params + 1); 3709s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_set_object (¶mv[0], proxy); 3709s # g_variant_iter_init (&iter, parameters); 3709s # n = 1; 3709s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3709s # { 3709s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3709s # if (arg_info->use_gvariant) 3709s # { 3709s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3709s # g_value_set_variant (¶mv[n], child); 3709s # n++; 3709s # } 3709s # else 3709s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3709s # g_variant_unref (child); 3709s # } 3709s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_signal_emitv (paramv, signal_id, 0, NULL); 3709s # for (n = 0; n < num_params + 1; n++) 3709s # g_value_unset (¶mv[n]); 3709s # g_free (paramv); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 3709s # GVariant *changed_properties, 3709s # const gchar *const *invalidated_properties) 3709s # { 3709s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 3709s # guint n; 3709s # const gchar *key; 3709s # GVariantIter *iter; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # g_variant_get (changed_properties, "a{sv}", &iter); 3709s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3709s # { 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 3709s # g_datalist_remove_data (&proxy->priv->qdata, key); 3709s # if (info != NULL) 3709s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3709s # } 3709s # g_variant_iter_free (iter); 3709s # for (n = 0; invalidated_properties[n] != NULL; n++) 3709s # { 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 3709s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3709s # if (info != NULL) 3709s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3709s # } 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 3709s # { 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 3709s # #else 3709s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 3709s # #endif 3709s # 3709s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 3709s # { 3709s # GObjectClass *gobject_class; 3709s # GDBusProxyClass *proxy_class; 3709s # 3709s # gobject_class = G_OBJECT_CLASS (klass); 3709s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 3709s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 3709s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 3709s # 3709s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3709s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 3709s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3709s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 3709s # #endif 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new: 3709s # * @connection: A #GDBusConnection. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new() for more details. 3709s # * 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3709s # */ 3709s # void 3709s # org_project_useful_interface_proxy_new ( 3709s # GDBusConnection *connection, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_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); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_finish: 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_finish ( 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GObject *ret; 3709s # GObject *source_object; 3709s # source_object = g_async_result_get_source_object (res); 3709s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3709s # g_object_unref (source_object); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_sync: 3709s # * @connection: A #GDBusConnection. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new_sync() for more details. 3709s # * 3709s # * The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_sync ( 3709s # GDBusConnection *connection, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GInitable *ret; 3709s # 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); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus: 3709s # * @bus_type: A #GBusType. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: A bus name (well-known or unique). 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3709s # * 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3709s # */ 3709s # void 3709s # org_project_useful_interface_proxy_new_for_bus ( 3709s # GBusType bus_type, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_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); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus_finish: 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_for_bus_finish ( 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GObject *ret; 3709s # GObject *source_object; 3709s # source_object = g_async_result_get_source_object (res); 3709s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3709s # g_object_unref (source_object); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus_sync: 3709s # * @bus_type: A #GBusType. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: A bus name (well-known or unique). 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3709s # * 3709s # * The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_for_bus_sync ( 3709s # GBusType bus_type, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GInitable *ret; 3709s # 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); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # 3709s # /* ------------------------------------------------------------------------ */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceSkeleton: 3709s # * 3709s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceSkeletonClass: 3709s # * @parent_class: The parent class. 3709s # * 3709s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 3709s # */ 3709s # 3709s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 3709s # { 3709s # GValue *properties; 3709s # GList *changed_properties; 3709s # GSource *changed_properties_idle_source; 3709s # GMainContext *context; 3709s # GMutex lock; 3709s # }; 3709s # 3709s # static void 3709s # _org_project_useful_interface_skeleton_handle_method_call ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name, 3709s # const gchar *method_name, 3709s # GVariant *parameters, 3709s # GDBusMethodInvocation *invocation, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # _ExtendedGDBusMethodInfo *info; 3709s # GVariantIter iter; 3709s # GVariant *child; 3709s # GValue *paramv; 3709s # gsize num_params; 3709s # guint num_extra; 3709s # gsize n; 3709s # guint signal_id; 3709s # GValue return_value = G_VALUE_INIT; 3709s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3709s # g_assert (info != NULL); 3709s # num_params = g_variant_n_children (parameters); 3709s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3709s # n = 0; 3709s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_set_object (¶mv[n++], skeleton); 3709s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3709s # g_value_set_object (¶mv[n++], invocation); 3709s # if (info->pass_fdlist) 3709s # { 3709s # #ifdef G_OS_UNIX 3709s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3709s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3709s # #else 3709s # g_assert_not_reached (); 3709s # #endif 3709s # } 3709s # g_variant_iter_init (&iter, parameters); 3709s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3709s # { 3709s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3709s # if (arg_info->use_gvariant) 3709s # { 3709s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3709s # g_value_set_variant (¶mv[n], child); 3709s # n++; 3709s # } 3709s # else 3709s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3709s # g_variant_unref (child); 3709s # } 3709s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3709s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3709s # if (!g_value_get_boolean (&return_value)) 3709s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3709s # g_value_unset (&return_value); 3709s # for (n = 0; n < num_params + num_extra; n++) 3709s # g_value_unset (¶mv[n]); 3709s # g_free (paramv); 3709s # } 3709s # 3709s # static GVariant * 3709s # _org_project_useful_interface_skeleton_handle_get_property ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name G_GNUC_UNUSED, 3709s # const gchar *property_name, 3709s # GError **error, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # GValue value = G_VALUE_INIT; 3709s # GParamSpec *pspec; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # GVariant *ret; 3709s # ret = NULL; 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3709s # g_assert (info != NULL); 3709s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3709s # if (pspec == NULL) 3709s # { 3709s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3709s # } 3709s # else 3709s # { 3709s # g_value_init (&value, pspec->value_type); 3709s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3709s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3709s # g_value_unset (&value); 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static gboolean 3709s # _org_project_useful_interface_skeleton_handle_set_property ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name G_GNUC_UNUSED, 3709s # const gchar *property_name, 3709s # GVariant *variant, 3709s # GError **error, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # GValue value = G_VALUE_INIT; 3709s # GParamSpec *pspec; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # gboolean ret; 3709s # ret = FALSE; 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3709s # g_assert (info != NULL); 3709s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3709s # if (pspec == NULL) 3709s # { 3709s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3709s # } 3709s # else 3709s # { 3709s # if (info->use_gvariant) 3709s # g_value_set_variant (&value, variant); 3709s # else 3709s # g_dbus_gvariant_to_gvalue (variant, &value); 3709s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3709s # g_value_unset (&value); 3709s # ret = TRUE; 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 3709s # { 3709s # _org_project_useful_interface_skeleton_handle_method_call, 3709s # _org_project_useful_interface_skeleton_handle_get_property, 3709s # _org_project_useful_interface_skeleton_handle_set_property, 3709s # {NULL} 3709s # }; 3709s # 3709s # static GDBusInterfaceInfo * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3709s # { 3709s # return org_project_useful_interface_interface_info (); 3709s # } 3709s # 3709s # static GDBusInterfaceVTable * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3709s # { 3709s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 3709s # } 3709s # 3709s # static GVariant * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 3709s # 3709s # GVariantBuilder builder; 3709s # guint n; 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3709s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3709s # #else 3709s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3709s # #endif 3709s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 3709s # goto out; 3709s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 3709s # { 3709s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 3709s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3709s # { 3709s # GVariant *value; 3709s # 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); 3709s # if (value != NULL) 3709s # { 3709s # g_variant_take_ref (value); 3709s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3709s # g_variant_unref (value); 3709s # } 3709s # } 3709s # } 3709s # out: 3709s # return g_variant_builder_end (&builder); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3709s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3709s # 3709s # #else 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3709s # 3709s # #endif 3709s # static void 3709s # org_project_useful_interface_skeleton_finalize (GObject *object) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 3709s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3709s # if (skeleton->priv->changed_properties_idle_source != NULL) 3709s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3709s # g_main_context_unref (skeleton->priv->context); 3709s # g_mutex_clear (&skeleton->priv->lock); 3709s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 3709s # { 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 3709s # #else 3709s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 3709s # #endif 3709s # 3709s # g_mutex_init (&skeleton->priv->lock); 3709s # skeleton->priv->context = g_main_context_ref_thread_default (); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 3709s # { 3709s # GObjectClass *gobject_class; 3709s # GDBusInterfaceSkeletonClass *skeleton_class; 3709s # 3709s # gobject_class = G_OBJECT_CLASS (klass); 3709s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 3709s # 3709s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3709s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 3709s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 3709s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 3709s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3709s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 3709s # #endif 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_skeleton_new: 3709s # * 3709s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_skeleton_new (void) 3709s # { 3709s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 3709s # } 3709s # Error: 3709s # 3709s # /tmp/tmplo7nhxxl/tmpt6jt76dw.xml: 3709s # <node> 3709s # <interface name="org.project.UsefulInterface"> 3709s # <method name="SingleArgMethodQ"> 3709s # <arg name="arg_q" type="q" direction="out"/> 3709s # </method> 3709s # </interface> 3709s # </node> 3709s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplo7nhxxl/tmpt6jt76dw.xml', '--output', '-', '--body'] 3709s # Return code: 0 3709s # Output: 3709s # /* 3709s # * This file is generated by gdbus-codegen, do not modify it. 3709s # * 3709s # * The license of this code is the same as for the D-Bus interface description 3709s # * it was derived from. Note that it links to GLib, so must comply with the 3709s # * LGPL linking clauses. 3709s # */ 3709s # 3709s # #ifdef HAVE_CONFIG_H 3709s # # include "config.h" 3709s # #endif 3709s # 3709s # #include <string.h> 3709s # #ifdef G_OS_UNIX 3709s # # include <gio/gunixfdlist.h> 3709s # #endif 3709s # 3709s # #ifdef G_ENABLE_DEBUG 3709s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3709s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3709s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3709s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3709s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3709s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3709s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3709s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3709s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3709s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3709s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3709s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3709s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3709s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3709s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3709s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3709s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3709s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3709s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3709s # #else /* !G_ENABLE_DEBUG */ 3709s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3709s # * Do not access GValues directly in your code. Instead, use the 3709s # * g_value_get_*() functions 3709s # */ 3709s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3709s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3709s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3709s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3709s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3709s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3709s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3709s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3709s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3709s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3709s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3709s # #endif /* !G_ENABLE_DEBUG */ 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusArgInfo parent_struct; 3709s # gboolean use_gvariant; 3709s # } _ExtendedGDBusArgInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusMethodInfo parent_struct; 3709s # const gchar *signal_name; 3709s # gboolean pass_fdlist; 3709s # } _ExtendedGDBusMethodInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusSignalInfo parent_struct; 3709s # const gchar *signal_name; 3709s # } _ExtendedGDBusSignalInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusPropertyInfo parent_struct; 3709s # const gchar *hyphen_name; 3709s # guint use_gvariant : 1; 3709s # guint emits_changed_signal : 1; 3709s # } _ExtendedGDBusPropertyInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusInterfaceInfo parent_struct; 3709s # const gchar *hyphen_name; 3709s # } _ExtendedGDBusInterfaceInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # const _ExtendedGDBusPropertyInfo *info; 3709s # guint prop_id; 3709s # GValue orig_value; /* the value before the change */ 3709s # } ChangedProperty; 3709s # 3709s # static void 3709s # _changed_property_free (ChangedProperty *data) 3709s # { 3709s # g_value_unset (&data->orig_value); 3709s # g_free (data); 3709s # } 3709s # 3709s # static gboolean 3709s # _g_strv_equal0 (gchar **a, gchar **b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # guint n; 3709s # if (a == NULL && b == NULL) 3709s # { 3709s # ret = TRUE; 3709s # goto out; 3709s # } 3709s # if (a == NULL || b == NULL) 3709s # goto out; 3709s # if (g_strv_length (a) != g_strv_length (b)) 3709s # goto out; 3709s # for (n = 0; a[n] != NULL; n++) 3709s # if (g_strcmp0 (a[n], b[n]) != 0) 3709s # goto out; 3709s # ret = TRUE; 3709s # out: 3709s # return ret; 3709s # } 3709s # 3709s # static gboolean 3709s # _g_variant_equal0 (GVariant *a, GVariant *b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # if (a == NULL && b == NULL) 3709s # { 3709s # ret = TRUE; 3709s # goto out; 3709s # } 3709s # if (a == NULL || b == NULL) 3709s # goto out; 3709s # ret = g_variant_equal (a, b); 3709s # out: 3709s # return ret; 3709s # } 3709s # 3709s # G_GNUC_UNUSED static gboolean 3709s # _g_value_equal (const GValue *a, const GValue *b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3709s # switch (G_VALUE_TYPE (a)) 3709s # { 3709s # case G_TYPE_BOOLEAN: 3709s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3709s # break; 3709s # case G_TYPE_UCHAR: 3709s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3709s # break; 3709s # case G_TYPE_INT: 3709s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3709s # break; 3709s # case G_TYPE_UINT: 3709s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3709s # break; 3709s # case G_TYPE_INT64: 3709s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3709s # break; 3709s # case G_TYPE_UINT64: 3709s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3709s # break; 3709s # case G_TYPE_DOUBLE: 3709s # { 3709s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3709s # gdouble da = g_value_get_double (a); 3709s # gdouble db = g_value_get_double (b); 3709s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3709s # } 3709s # break; 3709s # case G_TYPE_STRING: 3709s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3709s # break; 3709s # case G_TYPE_VARIANT: 3709s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3709s # break; 3709s # default: 3709s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3709s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3709s # else 3709s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3709s # break; 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static void 3709s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 3709s # GClosure *closure, 3709s # GValue *return_value, 3709s # unsigned int n_param_values, 3709s # const GValue *param_values, 3709s # void *invocation_hint G_GNUC_UNUSED, 3709s # void *marshal_data) 3709s # { 3709s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 3709s # (void *data1, 3709s # GDBusMethodInvocation *arg_method_invocation, 3709s # void *data2); 3709s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 3709s # GCClosure *cc = (GCClosure*) closure; 3709s # void *data1, *data2; 3709s # gboolean v_return; 3709s # 3709s # g_return_if_fail (return_value != NULL); 3709s # g_return_if_fail (n_param_values == 2); 3709s # 3709s # if (G_CCLOSURE_SWAP_DATA (closure)) 3709s # { 3709s # data1 = closure->data; 3709s # data2 = g_value_peek_pointer (param_values + 0); 3709s # } 3709s # else 3709s # { 3709s # data1 = g_value_peek_pointer (param_values + 0); 3709s # data2 = closure->data; 3709s # } 3709s # 3709s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 3709s # (marshal_data ? marshal_data : cc->callback); 3709s # 3709s # v_return = 3709s # callback (data1, 3709s # g_marshal_value_peek_object (param_values + 1), 3709s # data2); 3709s # 3709s # g_value_set_boolean (return_value, v_return); 3709s # } 3709s # 3709s # /* ------------------------------------------------------------------------ 3709s # * Code for interface org.project.UsefulInterface 3709s # * ------------------------------------------------------------------------ 3709s # */ 3709s # 3709s # /** 3709s # * SECTION:OrgProjectUsefulInterface 3709s # * @title: OrgProjectUsefulInterface 3709s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 3709s # * 3709s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface in C. 3709s # */ 3709s # 3709s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 3709s # 3709s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_arg_q = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "arg_q", 3709s # (gchar *) "q", 3709s # NULL 3709s # }, 3709s # FALSE 3709s # }; 3709s # 3709s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_pointers[] = 3709s # { 3709s # &_org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_arg_q.parent_struct, 3709s # NULL 3709s # }; 3709s # 3709s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_q = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "SingleArgMethodQ", 3709s # NULL, 3709s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_pointers, 3709s # NULL 3709s # }, 3709s # "handle-single-arg-method-q", 3709s # FALSE 3709s # }; 3709s # 3709s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 3709s # { 3709s # &_org_project_useful_interface_method_info_single_arg_method_q.parent_struct, 3709s # NULL 3709s # }; 3709s # 3709s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "org.project.UsefulInterface", 3709s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 3709s # NULL, 3709s # NULL, 3709s # NULL 3709s # }, 3709s # "org-project-useful-interface", 3709s # }; 3709s # 3709s # 3709s # /** 3709s # * org_project_useful_interface_interface_info: 3709s # * 3709s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface. 3709s # * 3709s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3709s # */ 3709s # GDBusInterfaceInfo * 3709s # org_project_useful_interface_interface_info (void) 3709s # { 3709s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_override_properties: 3709s # * @klass: The class structure for a #GObject derived class. 3709s # * @property_id_begin: The property id to assign to the first overridden property. 3709s # * 3709s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 3709s # * The properties are overridden in the order they are defined. 3709s # * 3709s # * Returns: The last property id. 3709s # */ 3709s # guint 3709s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3709s # { 3709s # return property_id_begin - 1; 3709s # } 3709s # 3709s # 3709s # inline static void 3709s # org_project_useful_interface_method_marshal_single_arg_method_q ( 3709s # GClosure *closure, 3709s # GValue *return_value, 3709s # unsigned int n_param_values, 3709s # const GValue *param_values, 3709s # void *invocation_hint, 3709s # void *marshal_data) 3709s # { 3709s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 3709s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3709s # } 3709s # 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterface: 3709s # * 3709s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceIface: 3709s # * @parent_iface: The parent interface. 3709s # * @handle_single_arg_method_q: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-q signal. 3709s # * 3709s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # */ 3709s # 3709s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 3709s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 3709s # 3709s # static void 3709s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 3709s # { 3709s # /* GObject signals for incoming D-Bus method calls: */ 3709s # /** 3709s # * OrgProjectUsefulInterface::handle-single-arg-method-q: 3709s # * @object: A #OrgProjectUsefulInterface. 3709s # * @invocation: A #GDBusMethodInvocation. 3709s # * 3709s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodQ">SingleArgMethodQ()</link> D-Bus method. 3709s # * 3709s # * 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. 3709s # * 3709s # * 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. 3709s # */ 3709s # g_signal_new ("handle-single-arg-method-q", 3709s # G_TYPE_FROM_INTERFACE (iface), 3709s # G_SIGNAL_RUN_LAST, 3709s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_q), 3709s # g_signal_accumulator_true_handled, 3709s # NULL, 3709s # org_project_useful_interface_method_marshal_single_arg_method_q, 3709s # G_TYPE_BOOLEAN, 3709s # 1, 3709s # G_TYPE_DBUS_METHOD_INVOCATION); 3709s # 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_q: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodQ">SingleArgMethodQ()</link> D-Bus method on @proxy. 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_call_single_arg_method_q_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_call_single_arg_method_q_sync() for the synchronous, blocking version of this method. 3709s # */ 3709s # void 3709s # org_project_useful_interface_call_single_arg_method_q ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3709s # "SingleArgMethodQ", 3709s # g_variant_new ("()"), 3709s # G_DBUS_CALL_FLAGS_NONE, 3709s # -1, 3709s # cancellable, 3709s # callback, 3709s # user_data); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_q_finish: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @out_arg_q: (out) (optional): Return location for return parameter or %NULL to ignore. 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_q(). 3709s # * @error: Return location for error or %NULL. 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_q(). 3709s # * 3709s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3709s # */ 3709s # gboolean 3709s # org_project_useful_interface_call_single_arg_method_q_finish ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # guint16 *out_arg_q, 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GVariant *_ret; 3709s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3709s # if (_ret == NULL) 3709s # goto _out; 3709s # g_variant_get (_ret, 3709s # "(q)", 3709s # out_arg_q); 3709s # g_variant_unref (_ret); 3709s # _out: 3709s # return _ret != NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_q_sync: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @out_arg_q: (out) (optional): Return location for return parameter or %NULL to ignore. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL. 3709s # * 3709s # * Synchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodQ">SingleArgMethodQ()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_call_single_arg_method_q() for the asynchronous version of this method. 3709s # * 3709s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3709s # */ 3709s # gboolean 3709s # org_project_useful_interface_call_single_arg_method_q_sync ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # guint16 *out_arg_q, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GVariant *_ret; 3709s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3709s # "SingleArgMethodQ", 3709s # g_variant_new ("()"), 3709s # G_DBUS_CALL_FLAGS_NONE, 3709s # -1, 3709s # cancellable, 3709s # error); 3709s # if (_ret == NULL) 3709s # goto _out; 3709s # g_variant_get (_ret, 3709s # "(q)", 3709s # out_arg_q); 3709s # g_variant_unref (_ret); 3709s # _out: 3709s # return _ret != NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_complete_single_arg_method_q: 3709s # * @object: A #OrgProjectUsefulInterface. 3709s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3709s # * @arg_q: Parameter to return. 3709s # * 3709s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodQ">SingleArgMethodQ()</link> 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. 3709s # * 3709s # * This method will free @invocation, you cannot use it afterwards. 3709s # */ 3709s # void 3709s # org_project_useful_interface_complete_single_arg_method_q ( 3709s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 3709s # GDBusMethodInvocation *invocation, 3709s # guint16 arg_q) 3709s # { 3709s # g_dbus_method_invocation_return_value (invocation, 3709s # g_variant_new ("(q)", 3709s # arg_q)); 3709s # } 3709s # 3709s # /* ------------------------------------------------------------------------ */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceProxy: 3709s # * 3709s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceProxyClass: 3709s # * @parent_class: The parent class. 3709s # * 3709s # * Class structure for #OrgProjectUsefulInterfaceProxy. 3709s # */ 3709s # 3709s # struct _OrgProjectUsefulInterfaceProxyPrivate 3709s # { 3709s # GData *qdata; 3709s # }; 3709s # 3709s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3709s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3709s # 3709s # #else 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3709s # 3709s # #endif 3709s # static void 3709s # org_project_useful_interface_proxy_finalize (GObject *object) 3709s # { 3709s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 3709s # g_datalist_clear (&proxy->priv->qdata); 3709s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3709s # guint prop_id G_GNUC_UNUSED, 3709s # GValue *value G_GNUC_UNUSED, 3709s # GParamSpec *pspec G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3709s # guint prop_id G_GNUC_UNUSED, 3709s # const GValue *value G_GNUC_UNUSED, 3709s # GParamSpec *pspec G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 3709s # const gchar *sender_name G_GNUC_UNUSED, 3709s # const gchar *signal_name, 3709s # GVariant *parameters) 3709s # { 3709s # _ExtendedGDBusSignalInfo *info; 3709s # GVariantIter iter; 3709s # GVariant *child; 3709s # GValue *paramv; 3709s # gsize num_params; 3709s # gsize n; 3709s # guint signal_id; 3709s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 3709s # if (info == NULL) 3709s # return; 3709s # num_params = g_variant_n_children (parameters); 3709s # paramv = g_new0 (GValue, num_params + 1); 3709s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_set_object (¶mv[0], proxy); 3709s # g_variant_iter_init (&iter, parameters); 3709s # n = 1; 3709s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3709s # { 3709s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3709s # if (arg_info->use_gvariant) 3709s # { 3709s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3709s # g_value_set_variant (¶mv[n], child); 3709s # n++; 3709s # } 3709s # else 3709s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3709s # g_variant_unref (child); 3709s # } 3709s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_signal_emitv (paramv, signal_id, 0, NULL); 3709s # for (n = 0; n < num_params + 1; n++) 3709s # g_value_unset (¶mv[n]); 3709s # g_free (paramv); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 3709s # GVariant *changed_properties, 3709s # const gchar *const *invalidated_properties) 3709s # { 3709s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 3709s # guint n; 3709s # const gchar *key; 3709s # GVariantIter *iter; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # g_variant_get (changed_properties, "a{sv}", &iter); 3709s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3709s # { 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 3709s # g_datalist_remove_data (&proxy->priv->qdata, key); 3709s # if (info != NULL) 3709s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3709s # } 3709s # g_variant_iter_free (iter); 3709s # for (n = 0; invalidated_properties[n] != NULL; n++) 3709s # { 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 3709s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3709s # if (info != NULL) 3709s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3709s # } 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 3709s # { 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 3709s # #else 3709s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 3709s # #endif 3709s # 3709s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 3709s # { 3709s # GObjectClass *gobject_class; 3709s # GDBusProxyClass *proxy_class; 3709s # 3709s # gobject_class = G_OBJECT_CLASS (klass); 3709s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 3709s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 3709s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 3709s # 3709s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3709s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 3709s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3709s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 3709s # #endif 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new: 3709s # * @connection: A #GDBusConnection. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new() for more details. 3709s # * 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3709s # */ 3709s # void 3709s # org_project_useful_interface_proxy_new ( 3709s # GDBusConnection *connection, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_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); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_finish: 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_finish ( 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GObject *ret; 3709s # GObject *source_object; 3709s # source_object = g_async_result_get_source_object (res); 3709s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3709s # g_object_unref (source_object); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_sync: 3709s # * @connection: A #GDBusConnection. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new_sync() for more details. 3709s # * 3709s # * The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_sync ( 3709s # GDBusConnection *connection, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GInitable *ret; 3709s # 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); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus: 3709s # * @bus_type: A #GBusType. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: A bus name (well-known or unique). 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3709s # * 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3709s # */ 3709s # void 3709s # org_project_useful_interface_proxy_new_for_bus ( 3709s # GBusType bus_type, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_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); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus_finish: 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_for_bus_finish ( 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GObject *ret; 3709s # GObject *source_object; 3709s # source_object = g_async_result_get_source_object (res); 3709s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3709s # g_object_unref (source_object); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus_sync: 3709s # * @bus_type: A #GBusType. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: A bus name (well-known or unique). 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3709s # * 3709s # * The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_for_bus_sync ( 3709s # GBusType bus_type, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GInitable *ret; 3709s # 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); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # 3709s # /* ------------------------------------------------------------------------ */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceSkeleton: 3709s # * 3709s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceSkeletonClass: 3709s # * @parent_class: The parent class. 3709s # * 3709s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 3709s # */ 3709s # 3709s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 3709s # { 3709s # GValue *properties; 3709s # GList *changed_properties; 3709s # GSource *changed_properties_idle_source; 3709s # GMainContext *context; 3709s # GMutex lock; 3709s # }; 3709s # 3709s # static void 3709s # _org_project_useful_interface_skeleton_handle_method_call ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name, 3709s # const gchar *method_name, 3709s # GVariant *parameters, 3709s # GDBusMethodInvocation *invocation, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # _ExtendedGDBusMethodInfo *info; 3709s # GVariantIter iter; 3709s # GVariant *child; 3709s # GValue *paramv; 3709s # gsize num_params; 3709s # guint num_extra; 3709s # gsize n; 3709s # guint signal_id; 3709s # GValue return_value = G_VALUE_INIT; 3709s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3709s # g_assert (info != NULL); 3709s # num_params = g_variant_n_children (parameters); 3709s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3709s # n = 0; 3709s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_set_object (¶mv[n++], skeleton); 3709s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3709s # g_value_set_object (¶mv[n++], invocation); 3709s # if (info->pass_fdlist) 3709s # { 3709s # #ifdef G_OS_UNIX 3709s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3709s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3709s # #else 3709s # g_assert_not_reached (); 3709s # #endif 3709s # } 3709s # g_variant_iter_init (&iter, parameters); 3709s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3709s # { 3709s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3709s # if (arg_info->use_gvariant) 3709s # { 3709s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3709s # g_value_set_variant (¶mv[n], child); 3709s # n++; 3709s # } 3709s # else 3709s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3709s # g_variant_unref (child); 3709s # } 3709s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3709s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3709s # if (!g_value_get_boolean (&return_value)) 3709s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3709s # g_value_unset (&return_value); 3709s # for (n = 0; n < num_params + num_extra; n++) 3709s # g_value_unset (¶mv[n]); 3709s # g_free (paramv); 3709s # } 3709s # 3709s # static GVariant * 3709s # _org_project_useful_interface_skeleton_handle_get_property ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name G_GNUC_UNUSED, 3709s # const gchar *property_name, 3709s # GError **error, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # GValue value = G_VALUE_INIT; 3709s # GParamSpec *pspec; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # GVariant *ret; 3709s # ret = NULL; 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3709s # g_assert (info != NULL); 3709s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3709s # if (pspec == NULL) 3709s # { 3709s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3709s # } 3709s # else 3709s # { 3709s # g_value_init (&value, pspec->value_type); 3709s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3709s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3709s # g_value_unset (&value); 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static gboolean 3709s # _org_project_useful_interface_skeleton_handle_set_property ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name G_GNUC_UNUSED, 3709s # const gchar *property_name, 3709s # GVariant *variant, 3709s # GError **error, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # GValue value = G_VALUE_INIT; 3709s # GParamSpec *pspec; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # gboolean ret; 3709s # ret = FALSE; 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3709s # g_assert (info != NULL); 3709s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3709s # if (pspec == NULL) 3709s # { 3709s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3709s # } 3709s # else 3709s # { 3709s # if (info->use_gvariant) 3709s # g_value_set_variant (&value, variant); 3709s # else 3709s # g_dbus_gvariant_to_gvalue (variant, &value); 3709s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3709s # g_value_unset (&value); 3709s # ret = TRUE; 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 3709s # { 3709s # _org_project_useful_interface_skeleton_handle_method_call, 3709s # _org_project_useful_interface_skeleton_handle_get_property, 3709s # _org_project_useful_interface_skeleton_handle_set_property, 3709s # {NULL} 3709s # }; 3709s # 3709s # static GDBusInterfaceInfo * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3709s # { 3709s # return org_project_useful_interface_interface_info (); 3709s # } 3709s # 3709s # static GDBusInterfaceVTable * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3709s # { 3709s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 3709s # } 3709s # 3709s # static GVariant * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 3709s # 3709s # GVariantBuilder builder; 3709s # guint n; 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3709s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3709s # #else 3709s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3709s # #endif 3709s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 3709s # goto out; 3709s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 3709s # { 3709s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 3709s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3709s # { 3709s # GVariant *value; 3709s # 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); 3709s # if (value != NULL) 3709s # { 3709s # g_variant_take_ref (value); 3709s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3709s # g_variant_unref (value); 3709s # } 3709s # } 3709s # } 3709s # out: 3709s # return g_variant_builder_end (&builder); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3709s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3709s # 3709s # #else 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3709s # 3709s # #endif 3709s # static void 3709s # org_project_useful_interface_skeleton_finalize (GObject *object) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 3709s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3709s # if (skeleton->priv->changed_properties_idle_source != NULL) 3709s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3709s # g_main_context_unref (skeleton->priv->context); 3709s # g_mutex_clear (&skeleton->priv->lock); 3709s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 3709s # { 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 3709s # #else 3709s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 3709s # #endif 3709s # 3709s # g_mutex_init (&skeleton->priv->lock); 3709s # skeleton->priv->context = g_main_context_ref_thread_default (); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 3709s # { 3709s # GObjectClass *gobject_class; 3709s # GDBusInterfaceSkeletonClass *skeleton_class; 3709s # 3709s # gobject_class = G_OBJECT_CLASS (klass); 3709s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 3709s # 3709s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3709s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 3709s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 3709s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 3709s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3709s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 3709s # #endif 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_skeleton_new: 3709s # * 3709s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_skeleton_new (void) 3709s # { 3709s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 3709s # } 3709s # Error: 3709s # 3709s # /tmp/tmplo7nhxxl/tmpnjq8a9nt.xml: 3709s # <node> 3709s # <interface name="org.project.UsefulInterface"> 3709s # <method name="SingleArgMethodI"> 3709s # <arg name="arg_i" type="i" direction="out"/> 3709s # </method> 3709s # </interface> 3709s # </node> 3709s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplo7nhxxl/tmpnjq8a9nt.xml', '--output', '-', '--body'] 3709s # Return code: 0 3709s # Output: 3709s # /* 3709s # * This file is generated by gdbus-codegen, do not modify it. 3709s # * 3709s # * The license of this code is the same as for the D-Bus interface description 3709s # * it was derived from. Note that it links to GLib, so must comply with the 3709s # * LGPL linking clauses. 3709s # */ 3709s # 3709s # #ifdef HAVE_CONFIG_H 3709s # # include "config.h" 3709s # #endif 3709s # 3709s # #include <string.h> 3709s # #ifdef G_OS_UNIX 3709s # # include <gio/gunixfdlist.h> 3709s # #endif 3709s # 3709s # #ifdef G_ENABLE_DEBUG 3709s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3709s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3709s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3709s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3709s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3709s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3709s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3709s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3709s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3709s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3709s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3709s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3709s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3709s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3709s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3709s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3709s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3709s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3709s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3709s # #else /* !G_ENABLE_DEBUG */ 3709s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3709s # * Do not access GValues directly in your code. Instead, use the 3709s # * g_value_get_*() functions 3709s # */ 3709s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3709s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3709s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3709s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3709s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3709s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3709s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3709s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3709s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3709s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3709s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3709s # #endif /* !G_ENABLE_DEBUG */ 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusArgInfo parent_struct; 3709s # gboolean use_gvariant; 3709s # } _ExtendedGDBusArgInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusMethodInfo parent_struct; 3709s # const gchar *signal_name; 3709s # gboolean pass_fdlist; 3709s # } _ExtendedGDBusMethodInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusSignalInfo parent_struct; 3709s # const gchar *signal_name; 3709s # } _ExtendedGDBusSignalInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusPropertyInfo parent_struct; 3709s # const gchar *hyphen_name; 3709s # guint use_gvariant : 1; 3709s # guint emits_changed_signal : 1; 3709s # } _ExtendedGDBusPropertyInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusInterfaceInfo parent_struct; 3709s # const gchar *hyphen_name; 3709s # } _ExtendedGDBusInterfaceInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # const _ExtendedGDBusPropertyInfo *info; 3709s # guint prop_id; 3709s # GValue orig_value; /* the value before the change */ 3709s # } ChangedProperty; 3709s # 3709s # static void 3709s # _changed_property_free (ChangedProperty *data) 3709s # { 3709s # g_value_unset (&data->orig_value); 3709s # g_free (data); 3709s # } 3709s # 3709s # static gboolean 3709s # _g_strv_equal0 (gchar **a, gchar **b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # guint n; 3709s # if (a == NULL && b == NULL) 3709s # { 3709s # ret = TRUE; 3709s # goto out; 3709s # } 3709s # if (a == NULL || b == NULL) 3709s # goto out; 3709s # if (g_strv_length (a) != g_strv_length (b)) 3709s # goto out; 3709s # for (n = 0; a[n] != NULL; n++) 3709s # if (g_strcmp0 (a[n], b[n]) != 0) 3709s # goto out; 3709s # ret = TRUE; 3709s # out: 3709s # return ret; 3709s # } 3709s # 3709s # static gboolean 3709s # _g_variant_equal0 (GVariant *a, GVariant *b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # if (a == NULL && b == NULL) 3709s # { 3709s # ret = TRUE; 3709s # goto out; 3709s # } 3709s # if (a == NULL || b == NULL) 3709s # goto out; 3709s # ret = g_variant_equal (a, b); 3709s # out: 3709s # return ret; 3709s # } 3709s # 3709s # G_GNUC_UNUSED static gboolean 3709s # _g_value_equal (const GValue *a, const GValue *b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3709s # switch (G_VALUE_TYPE (a)) 3709s # { 3709s # case G_TYPE_BOOLEAN: 3709s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3709s # break; 3709s # case G_TYPE_UCHAR: 3709s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3709s # break; 3709s # case G_TYPE_INT: 3709s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3709s # break; 3709s # case G_TYPE_UINT: 3709s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3709s # break; 3709s # case G_TYPE_INT64: 3709s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3709s # break; 3709s # case G_TYPE_UINT64: 3709s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3709s # break; 3709s # case G_TYPE_DOUBLE: 3709s # { 3709s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3709s # gdouble da = g_value_get_double (a); 3709s # gdouble db = g_value_get_double (b); 3709s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3709s # } 3709s # break; 3709s # case G_TYPE_STRING: 3709s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3709s # break; 3709s # case G_TYPE_VARIANT: 3709s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3709s # break; 3709s # default: 3709s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3709s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3709s # else 3709s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3709s # break; 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static void 3709s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 3709s # GClosure *closure, 3709s # GValue *return_value, 3709s # unsigned int n_param_values, 3709s # const GValue *param_values, 3709s # void *invocation_hint G_GNUC_UNUSED, 3709s # void *marshal_data) 3709s # { 3709s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 3709s # (void *data1, 3709s # GDBusMethodInvocation *arg_method_invocation, 3709s # void *data2); 3709s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 3709s # GCClosure *cc = (GCClosure*) closure; 3709s # void *data1, *data2; 3709s # gboolean v_return; 3709s # 3709s # g_return_if_fail (return_value != NULL); 3709s # g_return_if_fail (n_param_values == 2); 3709s # 3709s # if (G_CCLOSURE_SWAP_DATA (closure)) 3709s # { 3709s # data1 = closure->data; 3709s # data2 = g_value_peek_pointer (param_values + 0); 3709s # } 3709s # else 3709s # { 3709s # data1 = g_value_peek_pointer (param_values + 0); 3709s # data2 = closure->data; 3709s # } 3709s # 3709s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 3709s # (marshal_data ? marshal_data : cc->callback); 3709s # 3709s # v_return = 3709s # callback (data1, 3709s # g_marshal_value_peek_object (param_values + 1), 3709s # data2); 3709s # 3709s # g_value_set_boolean (return_value, v_return); 3709s # } 3709s # 3709s # /* ------------------------------------------------------------------------ 3709s # * Code for interface org.project.UsefulInterface 3709s # * ------------------------------------------------------------------------ 3709s # */ 3709s # 3709s # /** 3709s # * SECTION:OrgProjectUsefulInterface 3709s # * @title: OrgProjectUsefulInterface 3709s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 3709s # * 3709s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface in C. 3709s # */ 3709s # 3709s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 3709s # 3709s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_arg_i = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "arg_i", 3709s # (gchar *) "i", 3709s # NULL 3709s # }, 3709s # FALSE 3709s # }; 3709s # 3709s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_pointers[] = 3709s # { 3709s # &_org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_arg_i.parent_struct, 3709s # NULL 3709s # }; 3709s # 3709s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_i = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "SingleArgMethodI", 3709s # NULL, 3709s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_pointers, 3709s # NULL 3709s # }, 3709s # "handle-single-arg-method-i", 3709s # FALSE 3709s # }; 3709s # 3709s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 3709s # { 3709s # &_org_project_useful_interface_method_info_single_arg_method_i.parent_struct, 3709s # NULL 3709s # }; 3709s # 3709s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "org.project.UsefulInterface", 3709s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 3709s # NULL, 3709s # NULL, 3709s # NULL 3709s # }, 3709s # "org-project-useful-interface", 3709s # }; 3709s # 3709s # 3709s # /** 3709s # * org_project_useful_interface_interface_info: 3709s # * 3709s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface. 3709s # * 3709s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3709s # */ 3709s # GDBusInterfaceInfo * 3709s # org_project_useful_interface_interface_info (void) 3709s # { 3709s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_override_properties: 3709s # * @klass: The class structure for a #GObject derived class. 3709s # * @property_id_begin: The property id to assign to the first overridden property. 3709s # * 3709s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 3709s # * The properties are overridden in the order they are defined. 3709s # * 3709s # * Returns: The last property id. 3709s # */ 3709s # guint 3709s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3709s # { 3709s # return property_id_begin - 1; 3709s # } 3709s # 3709s # 3709s # inline static void 3709s # org_project_useful_interface_method_marshal_single_arg_method_i ( 3709s # GClosure *closure, 3709s # GValue *return_value, 3709s # unsigned int n_param_values, 3709s # const GValue *param_values, 3709s # void *invocation_hint, 3709s # void *marshal_data) 3709s # { 3709s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 3709s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3709s # } 3709s # 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterface: 3709s # * 3709s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceIface: 3709s # * @parent_iface: The parent interface. 3709s # * @handle_single_arg_method_i: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-i signal. 3709s # * 3709s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # */ 3709s # 3709s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 3709s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 3709s # 3709s # static void 3709s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 3709s # { 3709s # /* GObject signals for incoming D-Bus method calls: */ 3709s # /** 3709s # * OrgProjectUsefulInterface::handle-single-arg-method-i: 3709s # * @object: A #OrgProjectUsefulInterface. 3709s # * @invocation: A #GDBusMethodInvocation. 3709s # * 3709s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodI">SingleArgMethodI()</link> D-Bus method. 3709s # * 3709s # * 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. 3709s # * 3709s # * 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. 3709s # */ 3709s # g_signal_new ("handle-single-arg-method-i", 3709s # G_TYPE_FROM_INTERFACE (iface), 3709s # G_SIGNAL_RUN_LAST, 3709s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_i), 3709s # g_signal_accumulator_true_handled, 3709s # NULL, 3709s # org_project_useful_interface_method_marshal_single_arg_method_i, 3709s # G_TYPE_BOOLEAN, 3709s # 1, 3709s # G_TYPE_DBUS_METHOD_INVOCATION); 3709s # 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_i: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodI">SingleArgMethodI()</link> D-Bus method on @proxy. 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_call_single_arg_method_i_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_call_single_arg_method_i_sync() for the synchronous, blocking version of this method. 3709s # */ 3709s # void 3709s # org_project_useful_interface_call_single_arg_method_i ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3709s # "SingleArgMethodI", 3709s # g_variant_new ("()"), 3709s # G_DBUS_CALL_FLAGS_NONE, 3709s # -1, 3709s # cancellable, 3709s # callback, 3709s # user_data); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_i_finish: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @out_arg_i: (out) (optional): Return location for return parameter or %NULL to ignore. 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_i(). 3709s # * @error: Return location for error or %NULL. 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_i(). 3709s # * 3709s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3709s # */ 3709s # gboolean 3709s # org_project_useful_interface_call_single_arg_method_i_finish ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # gint *out_arg_i, 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GVariant *_ret; 3709s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3709s # if (_ret == NULL) 3709s # goto _out; 3709s # g_variant_get (_ret, 3709s # "(i)", 3709s # out_arg_i); 3709s # g_variant_unref (_ret); 3709s # _out: 3709s # return _ret != NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_i_sync: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @out_arg_i: (out) (optional): Return location for return parameter or %NULL to ignore. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL. 3709s # * 3709s # * Synchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodI">SingleArgMethodI()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_call_single_arg_method_i() for the asynchronous version of this method. 3709s # * 3709s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3709s # */ 3709s # gboolean 3709s # org_project_useful_interface_call_single_arg_method_i_sync ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # gint *out_arg_i, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GVariant *_ret; 3709s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3709s # "SingleArgMethodI", 3709s # g_variant_new ("()"), 3709s # G_DBUS_CALL_FLAGS_NONE, 3709s # -1, 3709s # cancellable, 3709s # error); 3709s # if (_ret == NULL) 3709s # goto _out; 3709s # g_variant_get (_ret, 3709s # "(i)", 3709s # out_arg_i); 3709s # g_variant_unref (_ret); 3709s # _out: 3709s # return _ret != NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_complete_single_arg_method_i: 3709s # * @object: A #OrgProjectUsefulInterface. 3709s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3709s # * @arg_i: Parameter to return. 3709s # * 3709s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodI">SingleArgMethodI()</link> 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. 3709s # * 3709s # * This method will free @invocation, you cannot use it afterwards. 3709s # */ 3709s # void 3709s # org_project_useful_interface_complete_single_arg_method_i ( 3709s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 3709s # GDBusMethodInvocation *invocation, 3709s # gint arg_i) 3709s # { 3709s # g_dbus_method_invocation_return_value (invocation, 3709s # g_variant_new ("(i)", 3709s # arg_i)); 3709s # } 3709s # 3709s # /* ------------------------------------------------------------------------ */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceProxy: 3709s # * 3709s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceProxyClass: 3709s # * @parent_class: The parent class. 3709s # * 3709s # * Class structure for #OrgProjectUsefulInterfaceProxy. 3709s # */ 3709s # 3709s # struct _OrgProjectUsefulInterfaceProxyPrivate 3709s # { 3709s # GData *qdata; 3709s # }; 3709s # 3709s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3709s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3709s # 3709s # #else 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3709s # 3709s # #endif 3709s # static void 3709s # org_project_useful_interface_proxy_finalize (GObject *object) 3709s # { 3709s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 3709s # g_datalist_clear (&proxy->priv->qdata); 3709s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3709s # guint prop_id G_GNUC_UNUSED, 3709s # GValue *value G_GNUC_UNUSED, 3709s # GParamSpec *pspec G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3709s # guint prop_id G_GNUC_UNUSED, 3709s # const GValue *value G_GNUC_UNUSED, 3709s # GParamSpec *pspec G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 3709s # const gchar *sender_name G_GNUC_UNUSED, 3709s # const gchar *signal_name, 3709s # GVariant *parameters) 3709s # { 3709s # _ExtendedGDBusSignalInfo *info; 3709s # GVariantIter iter; 3709s # GVariant *child; 3709s # GValue *paramv; 3709s # gsize num_params; 3709s # gsize n; 3709s # guint signal_id; 3709s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 3709s # if (info == NULL) 3709s # return; 3709s # num_params = g_variant_n_children (parameters); 3709s # paramv = g_new0 (GValue, num_params + 1); 3709s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_set_object (¶mv[0], proxy); 3709s # g_variant_iter_init (&iter, parameters); 3709s # n = 1; 3709s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3709s # { 3709s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3709s # if (arg_info->use_gvariant) 3709s # { 3709s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3709s # g_value_set_variant (¶mv[n], child); 3709s # n++; 3709s # } 3709s # else 3709s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3709s # g_variant_unref (child); 3709s # } 3709s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_signal_emitv (paramv, signal_id, 0, NULL); 3709s # for (n = 0; n < num_params + 1; n++) 3709s # g_value_unset (¶mv[n]); 3709s # g_free (paramv); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 3709s # GVariant *changed_properties, 3709s # const gchar *const *invalidated_properties) 3709s # { 3709s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 3709s # guint n; 3709s # const gchar *key; 3709s # GVariantIter *iter; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # g_variant_get (changed_properties, "a{sv}", &iter); 3709s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3709s # { 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 3709s # g_datalist_remove_data (&proxy->priv->qdata, key); 3709s # if (info != NULL) 3709s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3709s # } 3709s # g_variant_iter_free (iter); 3709s # for (n = 0; invalidated_properties[n] != NULL; n++) 3709s # { 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 3709s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3709s # if (info != NULL) 3709s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3709s # } 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 3709s # { 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 3709s # #else 3709s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 3709s # #endif 3709s # 3709s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 3709s # { 3709s # GObjectClass *gobject_class; 3709s # GDBusProxyClass *proxy_class; 3709s # 3709s # gobject_class = G_OBJECT_CLASS (klass); 3709s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 3709s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 3709s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 3709s # 3709s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3709s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 3709s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3709s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 3709s # #endif 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new: 3709s # * @connection: A #GDBusConnection. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new() for more details. 3709s # * 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3709s # */ 3709s # void 3709s # org_project_useful_interface_proxy_new ( 3709s # GDBusConnection *connection, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_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); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_finish: 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_finish ( 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GObject *ret; 3709s # GObject *source_object; 3709s # source_object = g_async_result_get_source_object (res); 3709s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3709s # g_object_unref (source_object); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_sync: 3709s # * @connection: A #GDBusConnection. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new_sync() for more details. 3709s # * 3709s # * The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_sync ( 3709s # GDBusConnection *connection, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GInitable *ret; 3709s # 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); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus: 3709s # * @bus_type: A #GBusType. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: A bus name (well-known or unique). 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3709s # * 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3709s # */ 3709s # void 3709s # org_project_useful_interface_proxy_new_for_bus ( 3709s # GBusType bus_type, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_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); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus_finish: 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_for_bus_finish ( 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GObject *ret; 3709s # GObject *source_object; 3709s # source_object = g_async_result_get_source_object (res); 3709s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3709s # g_object_unref (source_object); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus_sync: 3709s # * @bus_type: A #GBusType. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: A bus name (well-known or unique). 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3709s # * 3709s # * The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_for_bus_sync ( 3709s # GBusType bus_type, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GInitable *ret; 3709s # 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); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # 3709s # /* ------------------------------------------------------------------------ */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceSkeleton: 3709s # * 3709s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceSkeletonClass: 3709s # * @parent_class: The parent class. 3709s # * 3709s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 3709s # */ 3709s # 3709s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 3709s # { 3709s # GValue *properties; 3709s # GList *changed_properties; 3709s # GSource *changed_properties_idle_source; 3709s # GMainContext *context; 3709s # GMutex lock; 3709s # }; 3709s # 3709s # static void 3709s # _org_project_useful_interface_skeleton_handle_method_call ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name, 3709s # const gchar *method_name, 3709s # GVariant *parameters, 3709s # GDBusMethodInvocation *invocation, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # _ExtendedGDBusMethodInfo *info; 3709s # GVariantIter iter; 3709s # GVariant *child; 3709s # GValue *paramv; 3709s # gsize num_params; 3709s # guint num_extra; 3709s # gsize n; 3709s # guint signal_id; 3709s # GValue return_value = G_VALUE_INIT; 3709s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3709s # g_assert (info != NULL); 3709s # num_params = g_variant_n_children (parameters); 3709s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3709s # n = 0; 3709s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_set_object (¶mv[n++], skeleton); 3709s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3709s # g_value_set_object (¶mv[n++], invocation); 3709s # if (info->pass_fdlist) 3709s # { 3709s # #ifdef G_OS_UNIX 3709s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3709s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3709s # #else 3709s # g_assert_not_reached (); 3709s # #endif 3709s # } 3709s # g_variant_iter_init (&iter, parameters); 3709s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3709s # { 3709s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3709s # if (arg_info->use_gvariant) 3709s # { 3709s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3709s # g_value_set_variant (¶mv[n], child); 3709s # n++; 3709s # } 3709s # else 3709s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3709s # g_variant_unref (child); 3709s # } 3709s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3709s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3709s # if (!g_value_get_boolean (&return_value)) 3709s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3709s # g_value_unset (&return_value); 3709s # for (n = 0; n < num_params + num_extra; n++) 3709s # g_value_unset (¶mv[n]); 3709s # g_free (paramv); 3709s # } 3709s # 3709s # static GVariant * 3709s # _org_project_useful_interface_skeleton_handle_get_property ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name G_GNUC_UNUSED, 3709s # const gchar *property_name, 3709s # GError **error, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # GValue value = G_VALUE_INIT; 3709s # GParamSpec *pspec; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # GVariant *ret; 3709s # ret = NULL; 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3709s # g_assert (info != NULL); 3709s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3709s # if (pspec == NULL) 3709s # { 3709s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3709s # } 3709s # else 3709s # { 3709s # g_value_init (&value, pspec->value_type); 3709s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3709s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3709s # g_value_unset (&value); 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static gboolean 3709s # _org_project_useful_interface_skeleton_handle_set_property ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name G_GNUC_UNUSED, 3709s # const gchar *property_name, 3709s # GVariant *variant, 3709s # GError **error, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # GValue value = G_VALUE_INIT; 3709s # GParamSpec *pspec; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # gboolean ret; 3709s # ret = FALSE; 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3709s # g_assert (info != NULL); 3709s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3709s # if (pspec == NULL) 3709s # { 3709s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3709s # } 3709s # else 3709s # { 3709s # if (info->use_gvariant) 3709s # g_value_set_variant (&value, variant); 3709s # else 3709s # g_dbus_gvariant_to_gvalue (variant, &value); 3709s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3709s # g_value_unset (&value); 3709s # ret = TRUE; 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 3709s # { 3709s # _org_project_useful_interface_skeleton_handle_method_call, 3709s # _org_project_useful_interface_skeleton_handle_get_property, 3709s # _org_project_useful_interface_skeleton_handle_set_property, 3709s # {NULL} 3709s # }; 3709s # 3709s # static GDBusInterfaceInfo * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3709s # { 3709s # return org_project_useful_interface_interface_info (); 3709s # } 3709s # 3709s # static GDBusInterfaceVTable * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3709s # { 3709s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 3709s # } 3709s # 3709s # static GVariant * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 3709s # 3709s # GVariantBuilder builder; 3709s # guint n; 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3709s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3709s # #else 3709s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3709s # #endif 3709s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 3709s # goto out; 3709s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 3709s # { 3709s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 3709s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3709s # { 3709s # GVariant *value; 3709s # 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); 3709s # if (value != NULL) 3709s # { 3709s # g_variant_take_ref (value); 3709s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3709s # g_variant_unref (value); 3709s # } 3709s # } 3709s # } 3709s # out: 3709s # return g_variant_builder_end (&builder); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3709s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3709s # 3709s # #else 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3709s # 3709s # #endif 3709s # static void 3709s # org_project_useful_interface_skeleton_finalize (GObject *object) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 3709s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3709s # if (skeleton->priv->changed_properties_idle_source != NULL) 3709s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3709s # g_main_context_unref (skeleton->priv->context); 3709s # g_mutex_clear (&skeleton->priv->lock); 3709s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 3709s # { 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 3709s # #else 3709s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 3709s # #endif 3709s # 3709s # g_mutex_init (&skeleton->priv->lock); 3709s # skeleton->priv->context = g_main_context_ref_thread_default (); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 3709s # { 3709s # GObjectClass *gobject_class; 3709s # GDBusInterfaceSkeletonClass *skeleton_class; 3709s # 3709s # gobject_class = G_OBJECT_CLASS (klass); 3709s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 3709s # 3709s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3709s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 3709s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 3709s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 3709s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3709s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 3709s # #endif 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_skeleton_new: 3709s # * 3709s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_skeleton_new (void) 3709s # { 3709s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 3709s # } 3709s # Error: 3709s # 3709s # /tmp/tmplo7nhxxl/tmp8k2hgt9x.xml: 3709s # <node> 3709s # <interface name="org.project.UsefulInterface"> 3709s # <method name="SingleArgMethodU"> 3709s # <arg name="arg_u" type="u" direction="out"/> 3709s # </method> 3709s # </interface> 3709s # </node> 3709s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplo7nhxxl/tmp8k2hgt9x.xml', '--output', '-', '--body'] 3709s # Return code: 0 3709s # Output: 3709s # /* 3709s # * This file is generated by gdbus-codegen, do not modify it. 3709s # * 3709s # * The license of this code is the same as for the D-Bus interface description 3709s # * it was derived from. Note that it links to GLib, so must comply with the 3709s # * LGPL linking clauses. 3709s # */ 3709s # 3709s # #ifdef HAVE_CONFIG_H 3709s # # include "config.h" 3709s # #endif 3709s # 3709s # #include <string.h> 3709s # #ifdef G_OS_UNIX 3709s # # include <gio/gunixfdlist.h> 3709s # #endif 3709s # 3709s # #ifdef G_ENABLE_DEBUG 3709s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3709s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3709s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3709s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3709s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3709s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3709s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3709s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3709s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3709s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3709s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3709s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3709s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3709s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3709s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3709s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3709s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3709s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3709s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3709s # #else /* !G_ENABLE_DEBUG */ 3709s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3709s # * Do not access GValues directly in your code. Instead, use the 3709s # * g_value_get_*() functions 3709s # */ 3709s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3709s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3709s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3709s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3709s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3709s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3709s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3709s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3709s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3709s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3709s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3709s # #endif /* !G_ENABLE_DEBUG */ 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusArgInfo parent_struct; 3709s # gboolean use_gvariant; 3709s # } _ExtendedGDBusArgInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusMethodInfo parent_struct; 3709s # const gchar *signal_name; 3709s # gboolean pass_fdlist; 3709s # } _ExtendedGDBusMethodInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusSignalInfo parent_struct; 3709s # const gchar *signal_name; 3709s # } _ExtendedGDBusSignalInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusPropertyInfo parent_struct; 3709s # const gchar *hyphen_name; 3709s # guint use_gvariant : 1; 3709s # guint emits_changed_signal : 1; 3709s # } _ExtendedGDBusPropertyInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusInterfaceInfo parent_struct; 3709s # const gchar *hyphen_name; 3709s # } _ExtendedGDBusInterfaceInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # const _ExtendedGDBusPropertyInfo *info; 3709s # guint prop_id; 3709s # GValue orig_value; /* the value before the change */ 3709s # } ChangedProperty; 3709s # 3709s # static void 3709s # _changed_property_free (ChangedProperty *data) 3709s # { 3709s # g_value_unset (&data->orig_value); 3709s # g_free (data); 3709s # } 3709s # 3709s # static gboolean 3709s # _g_strv_equal0 (gchar **a, gchar **b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # guint n; 3709s # if (a == NULL && b == NULL) 3709s # { 3709s # ret = TRUE; 3709s # goto out; 3709s # } 3709s # if (a == NULL || b == NULL) 3709s # goto out; 3709s # if (g_strv_length (a) != g_strv_length (b)) 3709s # goto out; 3709s # for (n = 0; a[n] != NULL; n++) 3709s # if (g_strcmp0 (a[n], b[n]) != 0) 3709s # goto out; 3709s # ret = TRUE; 3709s # out: 3709s # return ret; 3709s # } 3709s # 3709s # static gboolean 3709s # _g_variant_equal0 (GVariant *a, GVariant *b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # if (a == NULL && b == NULL) 3709s # { 3709s # ret = TRUE; 3709s # goto out; 3709s # } 3709s # if (a == NULL || b == NULL) 3709s # goto out; 3709s # ret = g_variant_equal (a, b); 3709s # out: 3709s # return ret; 3709s # } 3709s # 3709s # G_GNUC_UNUSED static gboolean 3709s # _g_value_equal (const GValue *a, const GValue *b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3709s # switch (G_VALUE_TYPE (a)) 3709s # { 3709s # case G_TYPE_BOOLEAN: 3709s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3709s # break; 3709s # case G_TYPE_UCHAR: 3709s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3709s # break; 3709s # case G_TYPE_INT: 3709s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3709s # break; 3709s # case G_TYPE_UINT: 3709s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3709s # break; 3709s # case G_TYPE_INT64: 3709s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3709s # break; 3709s # case G_TYPE_UINT64: 3709s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3709s # break; 3709s # case G_TYPE_DOUBLE: 3709s # { 3709s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3709s # gdouble da = g_value_get_double (a); 3709s # gdouble db = g_value_get_double (b); 3709s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3709s # } 3709s # break; 3709s # case G_TYPE_STRING: 3709s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3709s # break; 3709s # case G_TYPE_VARIANT: 3709s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3709s # break; 3709s # default: 3709s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3709s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3709s # else 3709s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3709s # break; 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static void 3709s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 3709s # GClosure *closure, 3709s # GValue *return_value, 3709s # unsigned int n_param_values, 3709s # const GValue *param_values, 3709s # void *invocation_hint G_GNUC_UNUSED, 3709s # void *marshal_data) 3709s # { 3709s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 3709s # (void *data1, 3709s # GDBusMethodInvocation *arg_method_invocation, 3709s # void *data2); 3709s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 3709s # GCClosure *cc = (GCClosure*) closure; 3709s # void *data1, *data2; 3709s # gboolean v_return; 3709s # 3709s # g_return_if_fail (return_value != NULL); 3709s # g_return_if_fail (n_param_values == 2); 3709s # 3709s # if (G_CCLOSURE_SWAP_DATA (closure)) 3709s # { 3709s # data1 = closure->data; 3709s # data2 = g_value_peek_pointer (param_values + 0); 3709s # } 3709s # else 3709s # { 3709s # data1 = g_value_peek_pointer (param_values + 0); 3709s # data2 = closure->data; 3709s # } 3709s # 3709s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 3709s # (marshal_data ? marshal_data : cc->callback); 3709s # 3709s # v_return = 3709s # callback (data1, 3709s # g_marshal_value_peek_object (param_values + 1), 3709s # data2); 3709s # 3709s # g_value_set_boolean (return_value, v_return); 3709s # } 3709s # 3709s # /* ------------------------------------------------------------------------ 3709s # * Code for interface org.project.UsefulInterface 3709s # * ------------------------------------------------------------------------ 3709s # */ 3709s # 3709s # /** 3709s # * SECTION:OrgProjectUsefulInterface 3709s # * @title: OrgProjectUsefulInterface 3709s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 3709s # * 3709s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface in C. 3709s # */ 3709s # 3709s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 3709s # 3709s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_arg_u = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "arg_u", 3709s # (gchar *) "u", 3709s # NULL 3709s # }, 3709s # FALSE 3709s # }; 3709s # 3709s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_pointers[] = 3709s # { 3709s # &_org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_arg_u.parent_struct, 3709s # NULL 3709s # }; 3709s # 3709s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_u = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "SingleArgMethodU", 3709s # NULL, 3709s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_pointers, 3709s # NULL 3709s # }, 3709s # "handle-single-arg-method-u", 3709s # FALSE 3709s # }; 3709s # 3709s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 3709s # { 3709s # &_org_project_useful_interface_method_info_single_arg_method_u.parent_struct, 3709s # NULL 3709s # }; 3709s # 3709s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "org.project.UsefulInterface", 3709s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 3709s # NULL, 3709s # NULL, 3709s # NULL 3709s # }, 3709s # "org-project-useful-interface", 3709s # }; 3709s # 3709s # 3709s # /** 3709s # * org_project_useful_interface_interface_info: 3709s # * 3709s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface. 3709s # * 3709s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3709s # */ 3709s # GDBusInterfaceInfo * 3709s # org_project_useful_interface_interface_info (void) 3709s # { 3709s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_override_properties: 3709s # * @klass: The class structure for a #GObject derived class. 3709s # * @property_id_begin: The property id to assign to the first overridden property. 3709s # * 3709s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 3709s # * The properties are overridden in the order they are defined. 3709s # * 3709s # * Returns: The last property id. 3709s # */ 3709s # guint 3709s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3709s # { 3709s # return property_id_begin - 1; 3709s # } 3709s # 3709s # 3709s # inline static void 3709s # org_project_useful_interface_method_marshal_single_arg_method_u ( 3709s # GClosure *closure, 3709s # GValue *return_value, 3709s # unsigned int n_param_values, 3709s # const GValue *param_values, 3709s # void *invocation_hint, 3709s # void *marshal_data) 3709s # { 3709s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 3709s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3709s # } 3709s # 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterface: 3709s # * 3709s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceIface: 3709s # * @parent_iface: The parent interface. 3709s # * @handle_single_arg_method_u: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-u signal. 3709s # * 3709s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # */ 3709s # 3709s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 3709s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 3709s # 3709s # static void 3709s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 3709s # { 3709s # /* GObject signals for incoming D-Bus method calls: */ 3709s # /** 3709s # * OrgProjectUsefulInterface::handle-single-arg-method-u: 3709s # * @object: A #OrgProjectUsefulInterface. 3709s # * @invocation: A #GDBusMethodInvocation. 3709s # * 3709s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodU">SingleArgMethodU()</link> D-Bus method. 3709s # * 3709s # * 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. 3709s # * 3709s # * 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. 3709s # */ 3709s # g_signal_new ("handle-single-arg-method-u", 3709s # G_TYPE_FROM_INTERFACE (iface), 3709s # G_SIGNAL_RUN_LAST, 3709s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_u), 3709s # g_signal_accumulator_true_handled, 3709s # NULL, 3709s # org_project_useful_interface_method_marshal_single_arg_method_u, 3709s # G_TYPE_BOOLEAN, 3709s # 1, 3709s # G_TYPE_DBUS_METHOD_INVOCATION); 3709s # 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_u: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodU">SingleArgMethodU()</link> D-Bus method on @proxy. 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_call_single_arg_method_u_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_call_single_arg_method_u_sync() for the synchronous, blocking version of this method. 3709s # */ 3709s # void 3709s # org_project_useful_interface_call_single_arg_method_u ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3709s # "SingleArgMethodU", 3709s # g_variant_new ("()"), 3709s # G_DBUS_CALL_FLAGS_NONE, 3709s # -1, 3709s # cancellable, 3709s # callback, 3709s # user_data); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_u_finish: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @out_arg_u: (out) (optional): Return location for return parameter or %NULL to ignore. 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_u(). 3709s # * @error: Return location for error or %NULL. 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_u(). 3709s # * 3709s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3709s # */ 3709s # gboolean 3709s # org_project_useful_interface_call_single_arg_method_u_finish ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # guint *out_arg_u, 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GVariant *_ret; 3709s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3709s # if (_ret == NULL) 3709s # goto _out; 3709s # g_variant_get (_ret, 3709s # "(u)", 3709s # out_arg_u); 3709s # g_variant_unref (_ret); 3709s # _out: 3709s # return _ret != NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_u_sync: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @out_arg_u: (out) (optional): Return location for return parameter or %NULL to ignore. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL. 3709s # * 3709s # * Synchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodU">SingleArgMethodU()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_call_single_arg_method_u() for the asynchronous version of this method. 3709s # * 3709s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3709s # */ 3709s # gboolean 3709s # org_project_useful_interface_call_single_arg_method_u_sync ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # guint *out_arg_u, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GVariant *_ret; 3709s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3709s # "SingleArgMethodU", 3709s # g_variant_new ("()"), 3709s # G_DBUS_CALL_FLAGS_NONE, 3709s # -1, 3709s # cancellable, 3709s # error); 3709s # if (_ret == NULL) 3709s # goto _out; 3709s # g_variant_get (_ret, 3709s # "(u)", 3709s # out_arg_u); 3709s # g_variant_unref (_ret); 3709s # _out: 3709s # return _ret != NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_complete_single_arg_method_u: 3709s # * @object: A #OrgProjectUsefulInterface. 3709s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3709s # * @arg_u: Parameter to return. 3709s # * 3709s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodU">SingleArgMethodU()</link> 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. 3709s # * 3709s # * This method will free @invocation, you cannot use it afterwards. 3709s # */ 3709s # void 3709s # org_project_useful_interface_complete_single_arg_method_u ( 3709s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 3709s # GDBusMethodInvocation *invocation, 3709s # guint arg_u) 3709s # { 3709s # g_dbus_method_invocation_return_value (invocation, 3709s # g_variant_new ("(u)", 3709s # arg_u)); 3709s # } 3709s # 3709s # /* ------------------------------------------------------------------------ */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceProxy: 3709s # * 3709s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceProxyClass: 3709s # * @parent_class: The parent class. 3709s # * 3709s # * Class structure for #OrgProjectUsefulInterfaceProxy. 3709s # */ 3709s # 3709s # struct _OrgProjectUsefulInterfaceProxyPrivate 3709s # { 3709s # GData *qdata; 3709s # }; 3709s # 3709s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3709s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3709s # 3709s # #else 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3709s # 3709s # #endif 3709s # static void 3709s # org_project_useful_interface_proxy_finalize (GObject *object) 3709s # { 3709s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 3709s # g_datalist_clear (&proxy->priv->qdata); 3709s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3709s # guint prop_id G_GNUC_UNUSED, 3709s # GValue *value G_GNUC_UNUSED, 3709s # GParamSpec *pspec G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3709s # guint prop_id G_GNUC_UNUSED, 3709s # const GValue *value G_GNUC_UNUSED, 3709s # GParamSpec *pspec G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 3709s # const gchar *sender_name G_GNUC_UNUSED, 3709s # const gchar *signal_name, 3709s # GVariant *parameters) 3709s # { 3709s # _ExtendedGDBusSignalInfo *info; 3709s # GVariantIter iter; 3709s # GVariant *child; 3709s # GValue *paramv; 3709s # gsize num_params; 3709s # gsize n; 3709s # guint signal_id; 3709s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 3709s # if (info == NULL) 3709s # return; 3709s # num_params = g_variant_n_children (parameters); 3709s # paramv = g_new0 (GValue, num_params + 1); 3709s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_set_object (¶mv[0], proxy); 3709s # g_variant_iter_init (&iter, parameters); 3709s # n = 1; 3709s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3709s # { 3709s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3709s # if (arg_info->use_gvariant) 3709s # { 3709s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3709s # g_value_set_variant (¶mv[n], child); 3709s # n++; 3709s # } 3709s # else 3709s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3709s # g_variant_unref (child); 3709s # } 3709s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_signal_emitv (paramv, signal_id, 0, NULL); 3709s # for (n = 0; n < num_params + 1; n++) 3709s # g_value_unset (¶mv[n]); 3709s # g_free (paramv); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 3709s # GVariant *changed_properties, 3709s # const gchar *const *invalidated_properties) 3709s # { 3709s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 3709s # guint n; 3709s # const gchar *key; 3709s # GVariantIter *iter; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # g_variant_get (changed_properties, "a{sv}", &iter); 3709s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3709s # { 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 3709s # g_datalist_remove_data (&proxy->priv->qdata, key); 3709s # if (info != NULL) 3709s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3709s # } 3709s # g_variant_iter_free (iter); 3709s # for (n = 0; invalidated_properties[n] != NULL; n++) 3709s # { 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 3709s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3709s # if (info != NULL) 3709s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3709s # } 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 3709s # { 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 3709s # #else 3709s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 3709s # #endif 3709s # 3709s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 3709s # { 3709s # GObjectClass *gobject_class; 3709s # GDBusProxyClass *proxy_class; 3709s # 3709s # gobject_class = G_OBJECT_CLASS (klass); 3709s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 3709s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 3709s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 3709s # 3709s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3709s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 3709s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3709s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 3709s # #endif 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new: 3709s # * @connection: A #GDBusConnection. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new() for more details. 3709s # * 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3709s # */ 3709s # void 3709s # org_project_useful_interface_proxy_new ( 3709s # GDBusConnection *connection, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_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); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_finish: 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_finish ( 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GObject *ret; 3709s # GObject *source_object; 3709s # source_object = g_async_result_get_source_object (res); 3709s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3709s # g_object_unref (source_object); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_sync: 3709s # * @connection: A #GDBusConnection. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new_sync() for more details. 3709s # * 3709s # * The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_sync ( 3709s # GDBusConnection *connection, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GInitable *ret; 3709s # 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); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus: 3709s # * @bus_type: A #GBusType. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: A bus name (well-known or unique). 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3709s # * 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3709s # */ 3709s # void 3709s # org_project_useful_interface_proxy_new_for_bus ( 3709s # GBusType bus_type, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_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); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus_finish: 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_for_bus_finish ( 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GObject *ret; 3709s # GObject *source_object; 3709s # source_object = g_async_result_get_source_object (res); 3709s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3709s # g_object_unref (source_object); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus_sync: 3709s # * @bus_type: A #GBusType. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: A bus name (well-known or unique). 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3709s # * 3709s # * The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_for_bus_sync ( 3709s # GBusType bus_type, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GInitable *ret; 3709s # 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); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # 3709s # /* ------------------------------------------------------------------------ */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceSkeleton: 3709s # * 3709s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceSkeletonClass: 3709s # * @parent_class: The parent class. 3709s # * 3709s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 3709s # */ 3709s # 3709s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 3709s # { 3709s # GValue *properties; 3709s # GList *changed_properties; 3709s # GSource *changed_properties_idle_source; 3709s # GMainContext *context; 3709s # GMutex lock; 3709s # }; 3709s # 3709s # static void 3709s # _org_project_useful_interface_skeleton_handle_method_call ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name, 3709s # const gchar *method_name, 3709s # GVariant *parameters, 3709s # GDBusMethodInvocation *invocation, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # _ExtendedGDBusMethodInfo *info; 3709s # GVariantIter iter; 3709s # GVariant *child; 3709s # GValue *paramv; 3709s # gsize num_params; 3709s # guint num_extra; 3709s # gsize n; 3709s # guint signal_id; 3709s # GValue return_value = G_VALUE_INIT; 3709s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3709s # g_assert (info != NULL); 3709s # num_params = g_variant_n_children (parameters); 3709s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3709s # n = 0; 3709s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_set_object (¶mv[n++], skeleton); 3709s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3709s # g_value_set_object (¶mv[n++], invocation); 3709s # if (info->pass_fdlist) 3709s # { 3709s # #ifdef G_OS_UNIX 3709s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3709s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3709s # #else 3709s # g_assert_not_reached (); 3709s # #endif 3709s # } 3709s # g_variant_iter_init (&iter, parameters); 3709s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3709s # { 3709s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3709s # if (arg_info->use_gvariant) 3709s # { 3709s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3709s # g_value_set_variant (¶mv[n], child); 3709s # n++; 3709s # } 3709s # else 3709s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3709s # g_variant_unref (child); 3709s # } 3709s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3709s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3709s # if (!g_value_get_boolean (&return_value)) 3709s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3709s # g_value_unset (&return_value); 3709s # for (n = 0; n < num_params + num_extra; n++) 3709s # g_value_unset (¶mv[n]); 3709s # g_free (paramv); 3709s # } 3709s # 3709s # static GVariant * 3709s # _org_project_useful_interface_skeleton_handle_get_property ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name G_GNUC_UNUSED, 3709s # const gchar *property_name, 3709s # GError **error, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # GValue value = G_VALUE_INIT; 3709s # GParamSpec *pspec; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # GVariant *ret; 3709s # ret = NULL; 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3709s # g_assert (info != NULL); 3709s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3709s # if (pspec == NULL) 3709s # { 3709s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3709s # } 3709s # else 3709s # { 3709s # g_value_init (&value, pspec->value_type); 3709s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3709s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3709s # g_value_unset (&value); 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static gboolean 3709s # _org_project_useful_interface_skeleton_handle_set_property ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name G_GNUC_UNUSED, 3709s # const gchar *property_name, 3709s # GVariant *variant, 3709s # GError **error, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # GValue value = G_VALUE_INIT; 3709s # GParamSpec *pspec; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # gboolean ret; 3709s # ret = FALSE; 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3709s # g_assert (info != NULL); 3709s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3709s # if (pspec == NULL) 3709s # { 3709s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3709s # } 3709s # else 3709s # { 3709s # if (info->use_gvariant) 3709s # g_value_set_variant (&value, variant); 3709s # else 3709s # g_dbus_gvariant_to_gvalue (variant, &value); 3709s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3709s # g_value_unset (&value); 3709s # ret = TRUE; 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 3709s # { 3709s # _org_project_useful_interface_skeleton_handle_method_call, 3709s # _org_project_useful_interface_skeleton_handle_get_property, 3709s # _org_project_useful_interface_skeleton_handle_set_property, 3709s # {NULL} 3709s # }; 3709s # 3709s # static GDBusInterfaceInfo * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3709s # { 3709s # return org_project_useful_interface_interface_info (); 3709s # } 3709s # 3709s # static GDBusInterfaceVTable * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3709s # { 3709s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 3709s # } 3709s # 3709s # static GVariant * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 3709s # 3709s # GVariantBuilder builder; 3709s # guint n; 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3709s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3709s # #else 3709s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3709s # #endif 3709s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 3709s # goto out; 3709s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 3709s # { 3709s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 3709s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3709s # { 3709s # GVariant *value; 3709s # 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); 3709s # if (value != NULL) 3709s # { 3709s # g_variant_take_ref (value); 3709s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3709s # g_variant_unref (value); 3709s # } 3709s # } 3709s # } 3709s # out: 3709s # return g_variant_builder_end (&builder); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3709s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3709s # 3709s # #else 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3709s # 3709s # #endif 3709s # static void 3709s # org_project_useful_interface_skeleton_finalize (GObject *object) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 3709s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3709s # if (skeleton->priv->changed_properties_idle_source != NULL) 3709s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3709s # g_main_context_unref (skeleton->priv->context); 3709s # g_mutex_clear (&skeleton->priv->lock); 3709s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 3709s # { 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 3709s # #else 3709s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 3709s # #endif 3709s # 3709s # g_mutex_init (&skeleton->priv->lock); 3709s # skeleton->priv->context = g_main_context_ref_thread_default (); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 3709s # { 3709s # GObjectClass *gobject_class; 3709s # GDBusInterfaceSkeletonClass *skeleton_class; 3709s # 3709s # gobject_class = G_OBJECT_CLASS (klass); 3709s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 3709s # 3709s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3709s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 3709s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 3709s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 3709s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3709s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 3709s # #endif 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_skeleton_new: 3709s # * 3709s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_skeleton_new (void) 3709s # { 3709s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 3709s # } 3709s # Error: 3709s # 3709s # /tmp/tmplo7nhxxl/tmp6xo62q2g.xml: 3709s # <node> 3709s # <interface name="org.project.UsefulInterface"> 3709s # <method name="SingleArgMethodX"> 3709s # <arg name="arg_x" type="x" direction="out"/> 3709s # </method> 3709s # </interface> 3709s # </node> 3709s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplo7nhxxl/tmp6xo62q2g.xml', '--output', '-', '--body'] 3709s # Return code: 0 3709s # Output: 3709s # /* 3709s # * This file is generated by gdbus-codegen, do not modify it. 3709s # * 3709s # * The license of this code is the same as for the D-Bus interface description 3709s # * it was derived from. Note that it links to GLib, so must comply with the 3709s # * LGPL linking clauses. 3709s # */ 3709s # 3709s # #ifdef HAVE_CONFIG_H 3709s # # include "config.h" 3709s # #endif 3709s # 3709s # #include <string.h> 3709s # #ifdef G_OS_UNIX 3709s # # include <gio/gunixfdlist.h> 3709s # #endif 3709s # 3709s # #ifdef G_ENABLE_DEBUG 3709s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3709s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3709s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3709s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3709s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3709s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3709s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3709s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3709s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3709s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3709s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3709s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3709s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3709s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3709s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3709s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3709s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3709s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3709s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3709s # #else /* !G_ENABLE_DEBUG */ 3709s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3709s # * Do not access GValues directly in your code. Instead, use the 3709s # * g_value_get_*() functions 3709s # */ 3709s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3709s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3709s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3709s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3709s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3709s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3709s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3709s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3709s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3709s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3709s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3709s # #endif /* !G_ENABLE_DEBUG */ 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusArgInfo parent_struct; 3709s # gboolean use_gvariant; 3709s # } _ExtendedGDBusArgInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusMethodInfo parent_struct; 3709s # const gchar *signal_name; 3709s # gboolean pass_fdlist; 3709s # } _ExtendedGDBusMethodInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusSignalInfo parent_struct; 3709s # const gchar *signal_name; 3709s # } _ExtendedGDBusSignalInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusPropertyInfo parent_struct; 3709s # const gchar *hyphen_name; 3709s # guint use_gvariant : 1; 3709s # guint emits_changed_signal : 1; 3709s # } _ExtendedGDBusPropertyInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusInterfaceInfo parent_struct; 3709s # const gchar *hyphen_name; 3709s # } _ExtendedGDBusInterfaceInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # const _ExtendedGDBusPropertyInfo *info; 3709s # guint prop_id; 3709s # GValue orig_value; /* the value before the change */ 3709s # } ChangedProperty; 3709s # 3709s # static void 3709s # _changed_property_free (ChangedProperty *data) 3709s # { 3709s # g_value_unset (&data->orig_value); 3709s # g_free (data); 3709s # } 3709s # 3709s # static gboolean 3709s # _g_strv_equal0 (gchar **a, gchar **b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # guint n; 3709s # if (a == NULL && b == NULL) 3709s # { 3709s # ret = TRUE; 3709s # goto out; 3709s # } 3709s # if (a == NULL || b == NULL) 3709s # goto out; 3709s # if (g_strv_length (a) != g_strv_length (b)) 3709s # goto out; 3709s # for (n = 0; a[n] != NULL; n++) 3709s # if (g_strcmp0 (a[n], b[n]) != 0) 3709s # goto out; 3709s # ret = TRUE; 3709s # out: 3709s # return ret; 3709s # } 3709s # 3709s # static gboolean 3709s # _g_variant_equal0 (GVariant *a, GVariant *b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # if (a == NULL && b == NULL) 3709s # { 3709s # ret = TRUE; 3709s # goto out; 3709s # } 3709s # if (a == NULL || b == NULL) 3709s # goto out; 3709s # ret = g_variant_equal (a, b); 3709s # out: 3709s # return ret; 3709s # } 3709s # 3709s # G_GNUC_UNUSED static gboolean 3709s # _g_value_equal (const GValue *a, const GValue *b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3709s # switch (G_VALUE_TYPE (a)) 3709s # { 3709s # case G_TYPE_BOOLEAN: 3709s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3709s # break; 3709s # case G_TYPE_UCHAR: 3709s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3709s # break; 3709s # case G_TYPE_INT: 3709s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3709s # break; 3709s # case G_TYPE_UINT: 3709s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3709s # break; 3709s # case G_TYPE_INT64: 3709s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3709s # break; 3709s # case G_TYPE_UINT64: 3709s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3709s # break; 3709s # case G_TYPE_DOUBLE: 3709s # { 3709s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3709s # gdouble da = g_value_get_double (a); 3709s # gdouble db = g_value_get_double (b); 3709s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3709s # } 3709s # break; 3709s # case G_TYPE_STRING: 3709s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3709s # break; 3709s # case G_TYPE_VARIANT: 3709s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3709s # break; 3709s # default: 3709s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3709s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3709s # else 3709s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3709s # break; 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static void 3709s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 3709s # GClosure *closure, 3709s # GValue *return_value, 3709s # unsigned int n_param_values, 3709s # const GValue *param_values, 3709s # void *invocation_hint G_GNUC_UNUSED, 3709s # void *marshal_data) 3709s # { 3709s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 3709s # (void *data1, 3709s # GDBusMethodInvocation *arg_method_invocation, 3709s # void *data2); 3709s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 3709s # GCClosure *cc = (GCClosure*) closure; 3709s # void *data1, *data2; 3709s # gboolean v_return; 3709s # 3709s # g_return_if_fail (return_value != NULL); 3709s # g_return_if_fail (n_param_values == 2); 3709s # 3709s # if (G_CCLOSURE_SWAP_DATA (closure)) 3709s # { 3709s # data1 = closure->data; 3709s # data2 = g_value_peek_pointer (param_values + 0); 3709s # } 3709s # else 3709s # { 3709s # data1 = g_value_peek_pointer (param_values + 0); 3709s # data2 = closure->data; 3709s # } 3709s # 3709s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 3709s # (marshal_data ? marshal_data : cc->callback); 3709s # 3709s # v_return = 3709s # callback (data1, 3709s # g_marshal_value_peek_object (param_values + 1), 3709s # data2); 3709s # 3709s # g_value_set_boolean (return_value, v_return); 3709s # } 3709s # 3709s # /* ------------------------------------------------------------------------ 3709s # * Code for interface org.project.UsefulInterface 3709s # * ------------------------------------------------------------------------ 3709s # */ 3709s # 3709s # /** 3709s # * SECTION:OrgProjectUsefulInterface 3709s # * @title: OrgProjectUsefulInterface 3709s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 3709s # * 3709s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface in C. 3709s # */ 3709s # 3709s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 3709s # 3709s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_arg_x = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "arg_x", 3709s # (gchar *) "x", 3709s # NULL 3709s # }, 3709s # FALSE 3709s # }; 3709s # 3709s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_pointers[] = 3709s # { 3709s # &_org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_arg_x.parent_struct, 3709s # NULL 3709s # }; 3709s # 3709s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_x = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "SingleArgMethodX", 3709s # NULL, 3709s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_pointers, 3709s # NULL 3709s # }, 3709s # "handle-single-arg-method-x", 3709s # FALSE 3709s # }; 3709s # 3709s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 3709s # { 3709s # &_org_project_useful_interface_method_info_single_arg_method_x.parent_struct, 3709s # NULL 3709s # }; 3709s # 3709s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "org.project.UsefulInterface", 3709s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 3709s # NULL, 3709s # NULL, 3709s # NULL 3709s # }, 3709s # "org-project-useful-interface", 3709s # }; 3709s # 3709s # 3709s # /** 3709s # * org_project_useful_interface_interface_info: 3709s # * 3709s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface. 3709s # * 3709s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3709s # */ 3709s # GDBusInterfaceInfo * 3709s # org_project_useful_interface_interface_info (void) 3709s # { 3709s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_override_properties: 3709s # * @klass: The class structure for a #GObject derived class. 3709s # * @property_id_begin: The property id to assign to the first overridden property. 3709s # * 3709s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 3709s # * The properties are overridden in the order they are defined. 3709s # * 3709s # * Returns: The last property id. 3709s # */ 3709s # guint 3709s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3709s # { 3709s # return property_id_begin - 1; 3709s # } 3709s # 3709s # 3709s # inline static void 3709s # org_project_useful_interface_method_marshal_single_arg_method_x ( 3709s # GClosure *closure, 3709s # GValue *return_value, 3709s # unsigned int n_param_values, 3709s # const GValue *param_values, 3709s # void *invocation_hint, 3709s # void *marshal_data) 3709s # { 3709s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 3709s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3709s # } 3709s # 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterface: 3709s # * 3709s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceIface: 3709s # * @parent_iface: The parent interface. 3709s # * @handle_single_arg_method_x: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-x signal. 3709s # * 3709s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # */ 3709s # 3709s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 3709s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 3709s # 3709s # static void 3709s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 3709s # { 3709s # /* GObject signals for incoming D-Bus method calls: */ 3709s # /** 3709s # * OrgProjectUsefulInterface::handle-single-arg-method-x: 3709s # * @object: A #OrgProjectUsefulInterface. 3709s # * @invocation: A #GDBusMethodInvocation. 3709s # * 3709s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodX">SingleArgMethodX()</link> D-Bus method. 3709s # * 3709s # * 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. 3709s # * 3709s # * 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. 3709s # */ 3709s # g_signal_new ("handle-single-arg-method-x", 3709s # G_TYPE_FROM_INTERFACE (iface), 3709s # G_SIGNAL_RUN_LAST, 3709s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_x), 3709s # g_signal_accumulator_true_handled, 3709s # NULL, 3709s # org_project_useful_interface_method_marshal_single_arg_method_x, 3709s # G_TYPE_BOOLEAN, 3709s # 1, 3709s # G_TYPE_DBUS_METHOD_INVOCATION); 3709s # 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_x: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodX">SingleArgMethodX()</link> D-Bus method on @proxy. 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_call_single_arg_method_x_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_call_single_arg_method_x_sync() for the synchronous, blocking version of this method. 3709s # */ 3709s # void 3709s # org_project_useful_interface_call_single_arg_method_x ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3709s # "SingleArgMethodX", 3709s # g_variant_new ("()"), 3709s # G_DBUS_CALL_FLAGS_NONE, 3709s # -1, 3709s # cancellable, 3709s # callback, 3709s # user_data); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_x_finish: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @out_arg_x: (out) (optional): Return location for return parameter or %NULL to ignore. 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_x(). 3709s # * @error: Return location for error or %NULL. 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_x(). 3709s # * 3709s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3709s # */ 3709s # gboolean 3709s # org_project_useful_interface_call_single_arg_method_x_finish ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # gint64 *out_arg_x, 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GVariant *_ret; 3709s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3709s # if (_ret == NULL) 3709s # goto _out; 3709s # g_variant_get (_ret, 3709s # "(x)", 3709s # out_arg_x); 3709s # g_variant_unref (_ret); 3709s # _out: 3709s # return _ret != NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_x_sync: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @out_arg_x: (out) (optional): Return location for return parameter or %NULL to ignore. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL. 3709s # * 3709s # * Synchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodX">SingleArgMethodX()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_call_single_arg_method_x() for the asynchronous version of this method. 3709s # * 3709s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3709s # */ 3709s # gboolean 3709s # org_project_useful_interface_call_single_arg_method_x_sync ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # gint64 *out_arg_x, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GVariant *_ret; 3709s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3709s # "SingleArgMethodX", 3709s # g_variant_new ("()"), 3709s # G_DBUS_CALL_FLAGS_NONE, 3709s # -1, 3709s # cancellable, 3709s # error); 3709s # if (_ret == NULL) 3709s # goto _out; 3709s # g_variant_get (_ret, 3709s # "(x)", 3709s # out_arg_x); 3709s # g_variant_unref (_ret); 3709s # _out: 3709s # return _ret != NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_complete_single_arg_method_x: 3709s # * @object: A #OrgProjectUsefulInterface. 3709s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3709s # * @arg_x: Parameter to return. 3709s # * 3709s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodX">SingleArgMethodX()</link> 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. 3709s # * 3709s # * This method will free @invocation, you cannot use it afterwards. 3709s # */ 3709s # void 3709s # org_project_useful_interface_complete_single_arg_method_x ( 3709s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 3709s # GDBusMethodInvocation *invocation, 3709s # gint64 arg_x) 3709s # { 3709s # g_dbus_method_invocation_return_value (invocation, 3709s # g_variant_new ("(x)", 3709s # arg_x)); 3709s # } 3709s # 3709s # /* ------------------------------------------------------------------------ */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceProxy: 3709s # * 3709s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceProxyClass: 3709s # * @parent_class: The parent class. 3709s # * 3709s # * Class structure for #OrgProjectUsefulInterfaceProxy. 3709s # */ 3709s # 3709s # struct _OrgProjectUsefulInterfaceProxyPrivate 3709s # { 3709s # GData *qdata; 3709s # }; 3709s # 3709s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3709s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3709s # 3709s # #else 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3709s # 3709s # #endif 3709s # static void 3709s # org_project_useful_interface_proxy_finalize (GObject *object) 3709s # { 3709s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 3709s # g_datalist_clear (&proxy->priv->qdata); 3709s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3709s # guint prop_id G_GNUC_UNUSED, 3709s # GValue *value G_GNUC_UNUSED, 3709s # GParamSpec *pspec G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3709s # guint prop_id G_GNUC_UNUSED, 3709s # const GValue *value G_GNUC_UNUSED, 3709s # GParamSpec *pspec G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 3709s # const gchar *sender_name G_GNUC_UNUSED, 3709s # const gchar *signal_name, 3709s # GVariant *parameters) 3709s # { 3709s # _ExtendedGDBusSignalInfo *info; 3709s # GVariantIter iter; 3709s # GVariant *child; 3709s # GValue *paramv; 3709s # gsize num_params; 3709s # gsize n; 3709s # guint signal_id; 3709s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 3709s # if (info == NULL) 3709s # return; 3709s # num_params = g_variant_n_children (parameters); 3709s # paramv = g_new0 (GValue, num_params + 1); 3709s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_set_object (¶mv[0], proxy); 3709s # g_variant_iter_init (&iter, parameters); 3709s # n = 1; 3709s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3709s # { 3709s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3709s # if (arg_info->use_gvariant) 3709s # { 3709s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3709s # g_value_set_variant (¶mv[n], child); 3709s # n++; 3709s # } 3709s # else 3709s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3709s # g_variant_unref (child); 3709s # } 3709s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_signal_emitv (paramv, signal_id, 0, NULL); 3709s # for (n = 0; n < num_params + 1; n++) 3709s # g_value_unset (¶mv[n]); 3709s # g_free (paramv); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 3709s # GVariant *changed_properties, 3709s # const gchar *const *invalidated_properties) 3709s # { 3709s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 3709s # guint n; 3709s # const gchar *key; 3709s # GVariantIter *iter; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # g_variant_get (changed_properties, "a{sv}", &iter); 3709s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3709s # { 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 3709s # g_datalist_remove_data (&proxy->priv->qdata, key); 3709s # if (info != NULL) 3709s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3709s # } 3709s # g_variant_iter_free (iter); 3709s # for (n = 0; invalidated_properties[n] != NULL; n++) 3709s # { 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 3709s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3709s # if (info != NULL) 3709s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3709s # } 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 3709s # { 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 3709s # #else 3709s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 3709s # #endif 3709s # 3709s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 3709s # { 3709s # GObjectClass *gobject_class; 3709s # GDBusProxyClass *proxy_class; 3709s # 3709s # gobject_class = G_OBJECT_CLASS (klass); 3709s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 3709s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 3709s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 3709s # 3709s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3709s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 3709s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3709s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 3709s # #endif 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new: 3709s # * @connection: A #GDBusConnection. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new() for more details. 3709s # * 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3709s # */ 3709s # void 3709s # org_project_useful_interface_proxy_new ( 3709s # GDBusConnection *connection, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_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); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_finish: 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_finish ( 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GObject *ret; 3709s # GObject *source_object; 3709s # source_object = g_async_result_get_source_object (res); 3709s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3709s # g_object_unref (source_object); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_sync: 3709s # * @connection: A #GDBusConnection. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new_sync() for more details. 3709s # * 3709s # * The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_sync ( 3709s # GDBusConnection *connection, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GInitable *ret; 3709s # 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); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus: 3709s # * @bus_type: A #GBusType. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: A bus name (well-known or unique). 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3709s # * 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3709s # */ 3709s # void 3709s # org_project_useful_interface_proxy_new_for_bus ( 3709s # GBusType bus_type, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_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); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus_finish: 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_for_bus_finish ( 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GObject *ret; 3709s # GObject *source_object; 3709s # source_object = g_async_result_get_source_object (res); 3709s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3709s # g_object_unref (source_object); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus_sync: 3709s # * @bus_type: A #GBusType. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: A bus name (well-known or unique). 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3709s # * 3709s # * The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_for_bus_sync ( 3709s # GBusType bus_type, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GInitable *ret; 3709s # 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); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # 3709s # /* ------------------------------------------------------------------------ */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceSkeleton: 3709s # * 3709s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceSkeletonClass: 3709s # * @parent_class: The parent class. 3709s # * 3709s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 3709s # */ 3709s # 3709s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 3709s # { 3709s # GValue *properties; 3709s # GList *changed_properties; 3709s # GSource *changed_properties_idle_source; 3709s # GMainContext *context; 3709s # GMutex lock; 3709s # }; 3709s # 3709s # static void 3709s # _org_project_useful_interface_skeleton_handle_method_call ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name, 3709s # const gchar *method_name, 3709s # GVariant *parameters, 3709s # GDBusMethodInvocation *invocation, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # _ExtendedGDBusMethodInfo *info; 3709s # GVariantIter iter; 3709s # GVariant *child; 3709s # GValue *paramv; 3709s # gsize num_params; 3709s # guint num_extra; 3709s # gsize n; 3709s # guint signal_id; 3709s # GValue return_value = G_VALUE_INIT; 3709s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3709s # g_assert (info != NULL); 3709s # num_params = g_variant_n_children (parameters); 3709s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3709s # n = 0; 3709s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_set_object (¶mv[n++], skeleton); 3709s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3709s # g_value_set_object (¶mv[n++], invocation); 3709s # if (info->pass_fdlist) 3709s # { 3709s # #ifdef G_OS_UNIX 3709s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3709s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3709s # #else 3709s # g_assert_not_reached (); 3709s # #endif 3709s # } 3709s # g_variant_iter_init (&iter, parameters); 3709s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3709s # { 3709s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3709s # if (arg_info->use_gvariant) 3709s # { 3709s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3709s # g_value_set_variant (¶mv[n], child); 3709s # n++; 3709s # } 3709s # else 3709s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3709s # g_variant_unref (child); 3709s # } 3709s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3709s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3709s # if (!g_value_get_boolean (&return_value)) 3709s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3709s # g_value_unset (&return_value); 3709s # for (n = 0; n < num_params + num_extra; n++) 3709s # g_value_unset (¶mv[n]); 3709s # g_free (paramv); 3709s # } 3709s # 3709s # static GVariant * 3709s # _org_project_useful_interface_skeleton_handle_get_property ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name G_GNUC_UNUSED, 3709s # const gchar *property_name, 3709s # GError **error, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # GValue value = G_VALUE_INIT; 3709s # GParamSpec *pspec; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # GVariant *ret; 3709s # ret = NULL; 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3709s # g_assert (info != NULL); 3709s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3709s # if (pspec == NULL) 3709s # { 3709s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3709s # } 3709s # else 3709s # { 3709s # g_value_init (&value, pspec->value_type); 3709s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3709s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3709s # g_value_unset (&value); 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static gboolean 3709s # _org_project_useful_interface_skeleton_handle_set_property ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name G_GNUC_UNUSED, 3709s # const gchar *property_name, 3709s # GVariant *variant, 3709s # GError **error, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # GValue value = G_VALUE_INIT; 3709s # GParamSpec *pspec; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # gboolean ret; 3709s # ret = FALSE; 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3709s # g_assert (info != NULL); 3709s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3709s # if (pspec == NULL) 3709s # { 3709s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3709s # } 3709s # else 3709s # { 3709s # if (info->use_gvariant) 3709s # g_value_set_variant (&value, variant); 3709s # else 3709s # g_dbus_gvariant_to_gvalue (variant, &value); 3709s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3709s # g_value_unset (&value); 3709s # ret = TRUE; 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 3709s # { 3709s # _org_project_useful_interface_skeleton_handle_method_call, 3709s # _org_project_useful_interface_skeleton_handle_get_property, 3709s # _org_project_useful_interface_skeleton_handle_set_property, 3709s # {NULL} 3709s # }; 3709s # 3709s # static GDBusInterfaceInfo * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3709s # { 3709s # return org_project_useful_interface_interface_info (); 3709s # } 3709s # 3709s # static GDBusInterfaceVTable * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3709s # { 3709s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 3709s # } 3709s # 3709s # static GVariant * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 3709s # 3709s # GVariantBuilder builder; 3709s # guint n; 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3709s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3709s # #else 3709s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3709s # #endif 3709s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 3709s # goto out; 3709s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 3709s # { 3709s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 3709s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3709s # { 3709s # GVariant *value; 3709s # 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); 3709s # if (value != NULL) 3709s # { 3709s # g_variant_take_ref (value); 3709s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3709s # g_variant_unref (value); 3709s # } 3709s # } 3709s # } 3709s # out: 3709s # return g_variant_builder_end (&builder); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3709s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3709s # 3709s # #else 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3709s # 3709s # #endif 3709s # static void 3709s # org_project_useful_interface_skeleton_finalize (GObject *object) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 3709s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3709s # if (skeleton->priv->changed_properties_idle_source != NULL) 3709s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3709s # g_main_context_unref (skeleton->priv->context); 3709s # g_mutex_clear (&skeleton->priv->lock); 3709s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 3709s # { 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 3709s # #else 3709s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 3709s # #endif 3709s # 3709s # g_mutex_init (&skeleton->priv->lock); 3709s # skeleton->priv->context = g_main_context_ref_thread_default (); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 3709s # { 3709s # GObjectClass *gobject_class; 3709s # GDBusInterfaceSkeletonClass *skeleton_class; 3709s # 3709s # gobject_class = G_OBJECT_CLASS (klass); 3709s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 3709s # 3709s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3709s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 3709s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 3709s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 3709s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3709s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 3709s # #endif 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_skeleton_new: 3709s # * 3709s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_skeleton_new (void) 3709s # { 3709s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 3709s # } 3709s # Error: 3709s # 3709s # /tmp/tmplo7nhxxl/tmp2m0_8bfg.xml: 3709s # <node> 3709s # <interface name="org.project.UsefulInterface"> 3709s # <method name="SingleArgMethodT"> 3709s # <arg name="arg_t" type="t" direction="out"/> 3709s # </method> 3709s # </interface> 3709s # </node> 3709s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplo7nhxxl/tmp2m0_8bfg.xml', '--output', '-', '--body'] 3709s # Return code: 0 3709s # Output: 3709s # /* 3709s # * This file is generated by gdbus-codegen, do not modify it. 3709s # * 3709s # * The license of this code is the same as for the D-Bus interface description 3709s # * it was derived from. Note that it links to GLib, so must comply with the 3709s # * LGPL linking clauses. 3709s # */ 3709s # 3709s # #ifdef HAVE_CONFIG_H 3709s # # include "config.h" 3709s # #endif 3709s # 3709s # #include <string.h> 3709s # #ifdef G_OS_UNIX 3709s # # include <gio/gunixfdlist.h> 3709s # #endif 3709s # 3709s # #ifdef G_ENABLE_DEBUG 3709s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3709s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3709s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3709s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3709s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3709s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3709s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3709s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3709s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3709s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3709s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3709s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3709s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3709s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3709s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3709s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3709s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3709s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3709s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3709s # #else /* !G_ENABLE_DEBUG */ 3709s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3709s # * Do not access GValues directly in your code. Instead, use the 3709s # * g_value_get_*() functions 3709s # */ 3709s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3709s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3709s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3709s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3709s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3709s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3709s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3709s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3709s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3709s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3709s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3709s # #endif /* !G_ENABLE_DEBUG */ 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusArgInfo parent_struct; 3709s # gboolean use_gvariant; 3709s # } _ExtendedGDBusArgInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusMethodInfo parent_struct; 3709s # const gchar *signal_name; 3709s # gboolean pass_fdlist; 3709s # } _ExtendedGDBusMethodInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusSignalInfo parent_struct; 3709s # const gchar *signal_name; 3709s # } _ExtendedGDBusSignalInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusPropertyInfo parent_struct; 3709s # const gchar *hyphen_name; 3709s # guint use_gvariant : 1; 3709s # guint emits_changed_signal : 1; 3709s # } _ExtendedGDBusPropertyInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusInterfaceInfo parent_struct; 3709s # const gchar *hyphen_name; 3709s # } _ExtendedGDBusInterfaceInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # const _ExtendedGDBusPropertyInfo *info; 3709s # guint prop_id; 3709s # GValue orig_value; /* the value before the change */ 3709s # } ChangedProperty; 3709s # 3709s # static void 3709s # _changed_property_free (ChangedProperty *data) 3709s # { 3709s # g_value_unset (&data->orig_value); 3709s # g_free (data); 3709s # } 3709s # 3709s # static gboolean 3709s # _g_strv_equal0 (gchar **a, gchar **b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # guint n; 3709s # if (a == NULL && b == NULL) 3709s # { 3709s # ret = TRUE; 3709s # goto out; 3709s # } 3709s # if (a == NULL || b == NULL) 3709s # goto out; 3709s # if (g_strv_length (a) != g_strv_length (b)) 3709s # goto out; 3709s # for (n = 0; a[n] != NULL; n++) 3709s # if (g_strcmp0 (a[n], b[n]) != 0) 3709s # goto out; 3709s # ret = TRUE; 3709s # out: 3709s # return ret; 3709s # } 3709s # 3709s # static gboolean 3709s # _g_variant_equal0 (GVariant *a, GVariant *b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # if (a == NULL && b == NULL) 3709s # { 3709s # ret = TRUE; 3709s # goto out; 3709s # } 3709s # if (a == NULL || b == NULL) 3709s # goto out; 3709s # ret = g_variant_equal (a, b); 3709s # out: 3709s # return ret; 3709s # } 3709s # 3709s # G_GNUC_UNUSED static gboolean 3709s # _g_value_equal (const GValue *a, const GValue *b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3709s # switch (G_VALUE_TYPE (a)) 3709s # { 3709s # case G_TYPE_BOOLEAN: 3709s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3709s # break; 3709s # case G_TYPE_UCHAR: 3709s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3709s # break; 3709s # case G_TYPE_INT: 3709s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3709s # break; 3709s # case G_TYPE_UINT: 3709s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3709s # break; 3709s # case G_TYPE_INT64: 3709s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3709s # break; 3709s # case G_TYPE_UINT64: 3709s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3709s # break; 3709s # case G_TYPE_DOUBLE: 3709s # { 3709s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3709s # gdouble da = g_value_get_double (a); 3709s # gdouble db = g_value_get_double (b); 3709s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3709s # } 3709s # break; 3709s # case G_TYPE_STRING: 3709s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3709s # break; 3709s # case G_TYPE_VARIANT: 3709s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3709s # break; 3709s # default: 3709s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3709s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3709s # else 3709s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3709s # break; 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static void 3709s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 3709s # GClosure *closure, 3709s # GValue *return_value, 3709s # unsigned int n_param_values, 3709s # const GValue *param_values, 3709s # void *invocation_hint G_GNUC_UNUSED, 3709s # void *marshal_data) 3709s # { 3709s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 3709s # (void *data1, 3709s # GDBusMethodInvocation *arg_method_invocation, 3709s # void *data2); 3709s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 3709s # GCClosure *cc = (GCClosure*) closure; 3709s # void *data1, *data2; 3709s # gboolean v_return; 3709s # 3709s # g_return_if_fail (return_value != NULL); 3709s # g_return_if_fail (n_param_values == 2); 3709s # 3709s # if (G_CCLOSURE_SWAP_DATA (closure)) 3709s # { 3709s # data1 = closure->data; 3709s # data2 = g_value_peek_pointer (param_values + 0); 3709s # } 3709s # else 3709s # { 3709s # data1 = g_value_peek_pointer (param_values + 0); 3709s # data2 = closure->data; 3709s # } 3709s # 3709s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 3709s # (marshal_data ? marshal_data : cc->callback); 3709s # 3709s # v_return = 3709s # callback (data1, 3709s # g_marshal_value_peek_object (param_values + 1), 3709s # data2); 3709s # 3709s # g_value_set_boolean (return_value, v_return); 3709s # } 3709s # 3709s # /* ------------------------------------------------------------------------ 3709s # * Code for interface org.project.UsefulInterface 3709s # * ------------------------------------------------------------------------ 3709s # */ 3709s # 3709s # /** 3709s # * SECTION:OrgProjectUsefulInterface 3709s # * @title: OrgProjectUsefulInterface 3709s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 3709s # * 3709s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface in C. 3709s # */ 3709s # 3709s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 3709s # 3709s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_arg_t = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "arg_t", 3709s # (gchar *) "t", 3709s # NULL 3709s # }, 3709s # FALSE 3709s # }; 3709s # 3709s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_pointers[] = 3709s # { 3709s # &_org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_arg_t.parent_struct, 3709s # NULL 3709s # }; 3709s # 3709s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_t = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "SingleArgMethodT", 3709s # NULL, 3709s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_pointers, 3709s # NULL 3709s # }, 3709s # "handle-single-arg-method-t", 3709s # FALSE 3709s # }; 3709s # 3709s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 3709s # { 3709s # &_org_project_useful_interface_method_info_single_arg_method_t.parent_struct, 3709s # NULL 3709s # }; 3709s # 3709s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "org.project.UsefulInterface", 3709s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 3709s # NULL, 3709s # NULL, 3709s # NULL 3709s # }, 3709s # "org-project-useful-interface", 3709s # }; 3709s # 3709s # 3709s # /** 3709s # * org_project_useful_interface_interface_info: 3709s # * 3709s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface. 3709s # * 3709s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3709s # */ 3709s # GDBusInterfaceInfo * 3709s # org_project_useful_interface_interface_info (void) 3709s # { 3709s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_override_properties: 3709s # * @klass: The class structure for a #GObject derived class. 3709s # * @property_id_begin: The property id to assign to the first overridden property. 3709s # * 3709s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 3709s # * The properties are overridden in the order they are defined. 3709s # * 3709s # * Returns: The last property id. 3709s # */ 3709s # guint 3709s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3709s # { 3709s # return property_id_begin - 1; 3709s # } 3709s # 3709s # 3709s # inline static void 3709s # org_project_useful_interface_method_marshal_single_arg_method_t ( 3709s # GClosure *closure, 3709s # GValue *return_value, 3709s # unsigned int n_param_values, 3709s # const GValue *param_values, 3709s # void *invocation_hint, 3709s # void *marshal_data) 3709s # { 3709s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 3709s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3709s # } 3709s # 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterface: 3709s # * 3709s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceIface: 3709s # * @parent_iface: The parent interface. 3709s # * @handle_single_arg_method_t: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-t signal. 3709s # * 3709s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # */ 3709s # 3709s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 3709s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 3709s # 3709s # static void 3709s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 3709s # { 3709s # /* GObject signals for incoming D-Bus method calls: */ 3709s # /** 3709s # * OrgProjectUsefulInterface::handle-single-arg-method-t: 3709s # * @object: A #OrgProjectUsefulInterface. 3709s # * @invocation: A #GDBusMethodInvocation. 3709s # * 3709s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodT">SingleArgMethodT()</link> D-Bus method. 3709s # * 3709s # * 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. 3709s # * 3709s # * 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. 3709s # */ 3709s # g_signal_new ("handle-single-arg-method-t", 3709s # G_TYPE_FROM_INTERFACE (iface), 3709s # G_SIGNAL_RUN_LAST, 3709s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_t), 3709s # g_signal_accumulator_true_handled, 3709s # NULL, 3709s # org_project_useful_interface_method_marshal_single_arg_method_t, 3709s # G_TYPE_BOOLEAN, 3709s # 1, 3709s # G_TYPE_DBUS_METHOD_INVOCATION); 3709s # 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_t: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodT">SingleArgMethodT()</link> D-Bus method on @proxy. 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_call_single_arg_method_t_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_call_single_arg_method_t_sync() for the synchronous, blocking version of this method. 3709s # */ 3709s # void 3709s # org_project_useful_interface_call_single_arg_method_t ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3709s # "SingleArgMethodT", 3709s # g_variant_new ("()"), 3709s # G_DBUS_CALL_FLAGS_NONE, 3709s # -1, 3709s # cancellable, 3709s # callback, 3709s # user_data); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_t_finish: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @out_arg_t: (out) (optional): Return location for return parameter or %NULL to ignore. 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_t(). 3709s # * @error: Return location for error or %NULL. 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_t(). 3709s # * 3709s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3709s # */ 3709s # gboolean 3709s # org_project_useful_interface_call_single_arg_method_t_finish ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # guint64 *out_arg_t, 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GVariant *_ret; 3709s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3709s # if (_ret == NULL) 3709s # goto _out; 3709s # g_variant_get (_ret, 3709s # "(t)", 3709s # out_arg_t); 3709s # g_variant_unref (_ret); 3709s # _out: 3709s # return _ret != NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_t_sync: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @out_arg_t: (out) (optional): Return location for return parameter or %NULL to ignore. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL. 3709s # * 3709s # * Synchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodT">SingleArgMethodT()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_call_single_arg_method_t() for the asynchronous version of this method. 3709s # * 3709s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3709s # */ 3709s # gboolean 3709s # org_project_useful_interface_call_single_arg_method_t_sync ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # guint64 *out_arg_t, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GVariant *_ret; 3709s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3709s # "SingleArgMethodT", 3709s # g_variant_new ("()"), 3709s # G_DBUS_CALL_FLAGS_NONE, 3709s # -1, 3709s # cancellable, 3709s # error); 3709s # if (_ret == NULL) 3709s # goto _out; 3709s # g_variant_get (_ret, 3709s # "(t)", 3709s # out_arg_t); 3709s # g_variant_unref (_ret); 3709s # _out: 3709s # return _ret != NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_complete_single_arg_method_t: 3709s # * @object: A #OrgProjectUsefulInterface. 3709s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3709s # * @arg_t: Parameter to return. 3709s # * 3709s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodT">SingleArgMethodT()</link> 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. 3709s # * 3709s # * This method will free @invocation, you cannot use it afterwards. 3709s # */ 3709s # void 3709s # org_project_useful_interface_complete_single_arg_method_t ( 3709s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 3709s # GDBusMethodInvocation *invocation, 3709s # guint64 arg_t) 3709s # { 3709s # g_dbus_method_invocation_return_value (invocation, 3709s # g_variant_new ("(t)", 3709s # arg_t)); 3709s # } 3709s # 3709s # /* ------------------------------------------------------------------------ */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceProxy: 3709s # * 3709s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceProxyClass: 3709s # * @parent_class: The parent class. 3709s # * 3709s # * Class structure for #OrgProjectUsefulInterfaceProxy. 3709s # */ 3709s # 3709s # struct _OrgProjectUsefulInterfaceProxyPrivate 3709s # { 3709s # GData *qdata; 3709s # }; 3709s # 3709s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3709s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3709s # 3709s # #else 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3709s # 3709s # #endif 3709s # static void 3709s # org_project_useful_interface_proxy_finalize (GObject *object) 3709s # { 3709s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 3709s # g_datalist_clear (&proxy->priv->qdata); 3709s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3709s # guint prop_id G_GNUC_UNUSED, 3709s # GValue *value G_GNUC_UNUSED, 3709s # GParamSpec *pspec G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3709s # guint prop_id G_GNUC_UNUSED, 3709s # const GValue *value G_GNUC_UNUSED, 3709s # GParamSpec *pspec G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 3709s # const gchar *sender_name G_GNUC_UNUSED, 3709s # const gchar *signal_name, 3709s # GVariant *parameters) 3709s # { 3709s # _ExtendedGDBusSignalInfo *info; 3709s # GVariantIter iter; 3709s # GVariant *child; 3709s # GValue *paramv; 3709s # gsize num_params; 3709s # gsize n; 3709s # guint signal_id; 3709s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 3709s # if (info == NULL) 3709s # return; 3709s # num_params = g_variant_n_children (parameters); 3709s # paramv = g_new0 (GValue, num_params + 1); 3709s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_set_object (¶mv[0], proxy); 3709s # g_variant_iter_init (&iter, parameters); 3709s # n = 1; 3709s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3709s # { 3709s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3709s # if (arg_info->use_gvariant) 3709s # { 3709s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3709s # g_value_set_variant (¶mv[n], child); 3709s # n++; 3709s # } 3709s # else 3709s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3709s # g_variant_unref (child); 3709s # } 3709s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_signal_emitv (paramv, signal_id, 0, NULL); 3709s # for (n = 0; n < num_params + 1; n++) 3709s # g_value_unset (¶mv[n]); 3709s # g_free (paramv); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 3709s # GVariant *changed_properties, 3709s # const gchar *const *invalidated_properties) 3709s # { 3709s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 3709s # guint n; 3709s # const gchar *key; 3709s # GVariantIter *iter; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # g_variant_get (changed_properties, "a{sv}", &iter); 3709s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3709s # { 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 3709s # g_datalist_remove_data (&proxy->priv->qdata, key); 3709s # if (info != NULL) 3709s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3709s # } 3709s # g_variant_iter_free (iter); 3709s # for (n = 0; invalidated_properties[n] != NULL; n++) 3709s # { 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 3709s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3709s # if (info != NULL) 3709s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3709s # } 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 3709s # { 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 3709s # #else 3709s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 3709s # #endif 3709s # 3709s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 3709s # { 3709s # GObjectClass *gobject_class; 3709s # GDBusProxyClass *proxy_class; 3709s # 3709s # gobject_class = G_OBJECT_CLASS (klass); 3709s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 3709s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 3709s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 3709s # 3709s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3709s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 3709s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3709s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 3709s # #endif 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new: 3709s # * @connection: A #GDBusConnection. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new() for more details. 3709s # * 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3709s # */ 3709s # void 3709s # org_project_useful_interface_proxy_new ( 3709s # GDBusConnection *connection, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_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); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_finish: 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_finish ( 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GObject *ret; 3709s # GObject *source_object; 3709s # source_object = g_async_result_get_source_object (res); 3709s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3709s # g_object_unref (source_object); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_sync: 3709s # * @connection: A #GDBusConnection. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new_sync() for more details. 3709s # * 3709s # * The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_sync ( 3709s # GDBusConnection *connection, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GInitable *ret; 3709s # 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); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus: 3709s # * @bus_type: A #GBusType. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: A bus name (well-known or unique). 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3709s # * 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3709s # */ 3709s # void 3709s # org_project_useful_interface_proxy_new_for_bus ( 3709s # GBusType bus_type, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_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); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus_finish: 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_for_bus_finish ( 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GObject *ret; 3709s # GObject *source_object; 3709s # source_object = g_async_result_get_source_object (res); 3709s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3709s # g_object_unref (source_object); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus_sync: 3709s # * @bus_type: A #GBusType. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: A bus name (well-known or unique). 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3709s # * 3709s # * The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_for_bus_sync ( 3709s # GBusType bus_type, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GInitable *ret; 3709s # 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); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # 3709s # /* ------------------------------------------------------------------------ */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceSkeleton: 3709s # * 3709s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceSkeletonClass: 3709s # * @parent_class: The parent class. 3709s # * 3709s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 3709s # */ 3709s # 3709s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 3709s # { 3709s # GValue *properties; 3709s # GList *changed_properties; 3709s # GSource *changed_properties_idle_source; 3709s # GMainContext *context; 3709s # GMutex lock; 3709s # }; 3709s # 3709s # static void 3709s # _org_project_useful_interface_skeleton_handle_method_call ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name, 3709s # const gchar *method_name, 3709s # GVariant *parameters, 3709s # GDBusMethodInvocation *invocation, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # _ExtendedGDBusMethodInfo *info; 3709s # GVariantIter iter; 3709s # GVariant *child; 3709s # GValue *paramv; 3709s # gsize num_params; 3709s # guint num_extra; 3709s # gsize n; 3709s # guint signal_id; 3709s # GValue return_value = G_VALUE_INIT; 3709s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3709s # g_assert (info != NULL); 3709s # num_params = g_variant_n_children (parameters); 3709s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3709s # n = 0; 3709s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_set_object (¶mv[n++], skeleton); 3709s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3709s # g_value_set_object (¶mv[n++], invocation); 3709s # if (info->pass_fdlist) 3709s # { 3709s # #ifdef G_OS_UNIX 3709s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3709s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3709s # #else 3709s # g_assert_not_reached (); 3709s # #endif 3709s # } 3709s # g_variant_iter_init (&iter, parameters); 3709s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3709s # { 3709s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3709s # if (arg_info->use_gvariant) 3709s # { 3709s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3709s # g_value_set_variant (¶mv[n], child); 3709s # n++; 3709s # } 3709s # else 3709s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3709s # g_variant_unref (child); 3709s # } 3709s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3709s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3709s # if (!g_value_get_boolean (&return_value)) 3709s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3709s # g_value_unset (&return_value); 3709s # for (n = 0; n < num_params + num_extra; n++) 3709s # g_value_unset (¶mv[n]); 3709s # g_free (paramv); 3709s # } 3709s # 3709s # static GVariant * 3709s # _org_project_useful_interface_skeleton_handle_get_property ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name G_GNUC_UNUSED, 3709s # const gchar *property_name, 3709s # GError **error, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # GValue value = G_VALUE_INIT; 3709s # GParamSpec *pspec; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # GVariant *ret; 3709s # ret = NULL; 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3709s # g_assert (info != NULL); 3709s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3709s # if (pspec == NULL) 3709s # { 3709s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3709s # } 3709s # else 3709s # { 3709s # g_value_init (&value, pspec->value_type); 3709s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3709s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3709s # g_value_unset (&value); 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static gboolean 3709s # _org_project_useful_interface_skeleton_handle_set_property ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name G_GNUC_UNUSED, 3709s # const gchar *property_name, 3709s # GVariant *variant, 3709s # GError **error, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # GValue value = G_VALUE_INIT; 3709s # GParamSpec *pspec; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # gboolean ret; 3709s # ret = FALSE; 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3709s # g_assert (info != NULL); 3709s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3709s # if (pspec == NULL) 3709s # { 3709s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3709s # } 3709s # else 3709s # { 3709s # if (info->use_gvariant) 3709s # g_value_set_variant (&value, variant); 3709s # else 3709s # g_dbus_gvariant_to_gvalue (variant, &value); 3709s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3709s # g_value_unset (&value); 3709s # ret = TRUE; 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 3709s # { 3709s # _org_project_useful_interface_skeleton_handle_method_call, 3709s # _org_project_useful_interface_skeleton_handle_get_property, 3709s # _org_project_useful_interface_skeleton_handle_set_property, 3709s # {NULL} 3709s # }; 3709s # 3709s # static GDBusInterfaceInfo * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3709s # { 3709s # return org_project_useful_interface_interface_info (); 3709s # } 3709s # 3709s # static GDBusInterfaceVTable * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3709s # { 3709s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 3709s # } 3709s # 3709s # static GVariant * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 3709s # 3709s # GVariantBuilder builder; 3709s # guint n; 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3709s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3709s # #else 3709s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3709s # #endif 3709s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 3709s # goto out; 3709s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 3709s # { 3709s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 3709s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3709s # { 3709s # GVariant *value; 3709s # 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); 3709s # if (value != NULL) 3709s # { 3709s # g_variant_take_ref (value); 3709s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3709s # g_variant_unref (value); 3709s # } 3709s # } 3709s # } 3709s # out: 3709s # return g_variant_builder_end (&builder); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3709s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3709s # 3709s # #else 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3709s # 3709s # #endif 3709s # static void 3709s # org_project_useful_interface_skeleton_finalize (GObject *object) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 3709s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3709s # if (skeleton->priv->changed_properties_idle_source != NULL) 3709s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3709s # g_main_context_unref (skeleton->priv->context); 3709s # g_mutex_clear (&skeleton->priv->lock); 3709s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 3709s # { 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 3709s # #else 3709s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 3709s # #endif 3709s # 3709s # g_mutex_init (&skeleton->priv->lock); 3709s # skeleton->priv->context = g_main_context_ref_thread_default (); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 3709s # { 3709s # GObjectClass *gobject_class; 3709s # GDBusInterfaceSkeletonClass *skeleton_class; 3709s # 3709s # gobject_class = G_OBJECT_CLASS (klass); 3709s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 3709s # 3709s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3709s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 3709s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 3709s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 3709s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3709s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 3709s # #endif 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_skeleton_new: 3709s # * 3709s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_skeleton_new (void) 3709s # { 3709s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 3709s # } 3709s # Error: 3709s # 3709s # /tmp/tmplo7nhxxl/tmpek7e5d7d.xml: 3709s # <node> 3709s # <interface name="org.project.UsefulInterface"> 3709s # <method name="SingleArgMethodD"> 3709s # <arg name="arg_d" type="d" direction="out"/> 3709s # </method> 3709s # </interface> 3709s # </node> 3709s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplo7nhxxl/tmpek7e5d7d.xml', '--output', '-', '--body'] 3709s # Return code: 0 3709s # Output: 3709s # /* 3709s # * This file is generated by gdbus-codegen, do not modify it. 3709s # * 3709s # * The license of this code is the same as for the D-Bus interface description 3709s # * it was derived from. Note that it links to GLib, so must comply with the 3709s # * LGPL linking clauses. 3709s # */ 3709s # 3709s # #ifdef HAVE_CONFIG_H 3709s # # include "config.h" 3709s # #endif 3709s # 3709s # #include <string.h> 3709s # #ifdef G_OS_UNIX 3709s # # include <gio/gunixfdlist.h> 3709s # #endif 3709s # 3709s # #ifdef G_ENABLE_DEBUG 3709s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3709s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3709s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3709s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3709s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3709s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3709s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3709s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3709s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3709s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3709s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3709s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3709s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3709s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3709s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3709s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3709s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3709s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3709s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3709s # #else /* !G_ENABLE_DEBUG */ 3709s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3709s # * Do not access GValues directly in your code. Instead, use the 3709s # * g_value_get_*() functions 3709s # */ 3709s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3709s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3709s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3709s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3709s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3709s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3709s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3709s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3709s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3709s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3709s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3709s # #endif /* !G_ENABLE_DEBUG */ 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusArgInfo parent_struct; 3709s # gboolean use_gvariant; 3709s # } _ExtendedGDBusArgInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusMethodInfo parent_struct; 3709s # const gchar *signal_name; 3709s # gboolean pass_fdlist; 3709s # } _ExtendedGDBusMethodInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusSignalInfo parent_struct; 3709s # const gchar *signal_name; 3709s # } _ExtendedGDBusSignalInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusPropertyInfo parent_struct; 3709s # const gchar *hyphen_name; 3709s # guint use_gvariant : 1; 3709s # guint emits_changed_signal : 1; 3709s # } _ExtendedGDBusPropertyInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusInterfaceInfo parent_struct; 3709s # const gchar *hyphen_name; 3709s # } _ExtendedGDBusInterfaceInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # const _ExtendedGDBusPropertyInfo *info; 3709s # guint prop_id; 3709s # GValue orig_value; /* the value before the change */ 3709s # } ChangedProperty; 3709s # 3709s # static void 3709s # _changed_property_free (ChangedProperty *data) 3709s # { 3709s # g_value_unset (&data->orig_value); 3709s # g_free (data); 3709s # } 3709s # 3709s # static gboolean 3709s # _g_strv_equal0 (gchar **a, gchar **b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # guint n; 3709s # if (a == NULL && b == NULL) 3709s # { 3709s # ret = TRUE; 3709s # goto out; 3709s # } 3709s # if (a == NULL || b == NULL) 3709s # goto out; 3709s # if (g_strv_length (a) != g_strv_length (b)) 3709s # goto out; 3709s # for (n = 0; a[n] != NULL; n++) 3709s # if (g_strcmp0 (a[n], b[n]) != 0) 3709s # goto out; 3709s # ret = TRUE; 3709s # out: 3709s # return ret; 3709s # } 3709s # 3709s # static gboolean 3709s # _g_variant_equal0 (GVariant *a, GVariant *b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # if (a == NULL && b == NULL) 3709s # { 3709s # ret = TRUE; 3709s # goto out; 3709s # } 3709s # if (a == NULL || b == NULL) 3709s # goto out; 3709s # ret = g_variant_equal (a, b); 3709s # out: 3709s # return ret; 3709s # } 3709s # 3709s # G_GNUC_UNUSED static gboolean 3709s # _g_value_equal (const GValue *a, const GValue *b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3709s # switch (G_VALUE_TYPE (a)) 3709s # { 3709s # case G_TYPE_BOOLEAN: 3709s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3709s # break; 3709s # case G_TYPE_UCHAR: 3709s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3709s # break; 3709s # case G_TYPE_INT: 3709s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3709s # break; 3709s # case G_TYPE_UINT: 3709s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3709s # break; 3709s # case G_TYPE_INT64: 3709s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3709s # break; 3709s # case G_TYPE_UINT64: 3709s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3709s # break; 3709s # case G_TYPE_DOUBLE: 3709s # { 3709s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3709s # gdouble da = g_value_get_double (a); 3709s # gdouble db = g_value_get_double (b); 3709s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3709s # } 3709s # break; 3709s # case G_TYPE_STRING: 3709s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3709s # break; 3709s # case G_TYPE_VARIANT: 3709s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3709s # break; 3709s # default: 3709s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3709s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3709s # else 3709s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3709s # break; 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static void 3709s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 3709s # GClosure *closure, 3709s # GValue *return_value, 3709s # unsigned int n_param_values, 3709s # const GValue *param_values, 3709s # void *invocation_hint G_GNUC_UNUSED, 3709s # void *marshal_data) 3709s # { 3709s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 3709s # (void *data1, 3709s # GDBusMethodInvocation *arg_method_invocation, 3709s # void *data2); 3709s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 3709s # GCClosure *cc = (GCClosure*) closure; 3709s # void *data1, *data2; 3709s # gboolean v_return; 3709s # 3709s # g_return_if_fail (return_value != NULL); 3709s # g_return_if_fail (n_param_values == 2); 3709s # 3709s # if (G_CCLOSURE_SWAP_DATA (closure)) 3709s # { 3709s # data1 = closure->data; 3709s # data2 = g_value_peek_pointer (param_values + 0); 3709s # } 3709s # else 3709s # { 3709s # data1 = g_value_peek_pointer (param_values + 0); 3709s # data2 = closure->data; 3709s # } 3709s # 3709s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 3709s # (marshal_data ? marshal_data : cc->callback); 3709s # 3709s # v_return = 3709s # callback (data1, 3709s # g_marshal_value_peek_object (param_values + 1), 3709s # data2); 3709s # 3709s # g_value_set_boolean (return_value, v_return); 3709s # } 3709s # 3709s # /* ------------------------------------------------------------------------ 3709s # * Code for interface org.project.UsefulInterface 3709s # * ------------------------------------------------------------------------ 3709s # */ 3709s # 3709s # /** 3709s # * SECTION:OrgProjectUsefulInterface 3709s # * @title: OrgProjectUsefulInterface 3709s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 3709s # * 3709s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface in C. 3709s # */ 3709s # 3709s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 3709s # 3709s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_arg_d = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "arg_d", 3709s # (gchar *) "d", 3709s # NULL 3709s # }, 3709s # FALSE 3709s # }; 3709s # 3709s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_pointers[] = 3709s # { 3709s # &_org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_arg_d.parent_struct, 3709s # NULL 3709s # }; 3709s # 3709s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_d = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "SingleArgMethodD", 3709s # NULL, 3709s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_pointers, 3709s # NULL 3709s # }, 3709s # "handle-single-arg-method-d", 3709s # FALSE 3709s # }; 3709s # 3709s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 3709s # { 3709s # &_org_project_useful_interface_method_info_single_arg_method_d.parent_struct, 3709s # NULL 3709s # }; 3709s # 3709s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "org.project.UsefulInterface", 3709s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 3709s # NULL, 3709s # NULL, 3709s # NULL 3709s # }, 3709s # "org-project-useful-interface", 3709s # }; 3709s # 3709s # 3709s # /** 3709s # * org_project_useful_interface_interface_info: 3709s # * 3709s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface. 3709s # * 3709s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3709s # */ 3709s # GDBusInterfaceInfo * 3709s # org_project_useful_interface_interface_info (void) 3709s # { 3709s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_override_properties: 3709s # * @klass: The class structure for a #GObject derived class. 3709s # * @property_id_begin: The property id to assign to the first overridden property. 3709s # * 3709s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 3709s # * The properties are overridden in the order they are defined. 3709s # * 3709s # * Returns: The last property id. 3709s # */ 3709s # guint 3709s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3709s # { 3709s # return property_id_begin - 1; 3709s # } 3709s # 3709s # 3709s # inline static void 3709s # org_project_useful_interface_method_marshal_single_arg_method_d ( 3709s # GClosure *closure, 3709s # GValue *return_value, 3709s # unsigned int n_param_values, 3709s # const GValue *param_values, 3709s # void *invocation_hint, 3709s # void *marshal_data) 3709s # { 3709s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 3709s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3709s # } 3709s # 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterface: 3709s # * 3709s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceIface: 3709s # * @parent_iface: The parent interface. 3709s # * @handle_single_arg_method_d: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-d signal. 3709s # * 3709s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # */ 3709s # 3709s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 3709s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 3709s # 3709s # static void 3709s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 3709s # { 3709s # /* GObject signals for incoming D-Bus method calls: */ 3709s # /** 3709s # * OrgProjectUsefulInterface::handle-single-arg-method-d: 3709s # * @object: A #OrgProjectUsefulInterface. 3709s # * @invocation: A #GDBusMethodInvocation. 3709s # * 3709s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodD">SingleArgMethodD()</link> D-Bus method. 3709s # * 3709s # * 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. 3709s # * 3709s # * 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. 3709s # */ 3709s # g_signal_new ("handle-single-arg-method-d", 3709s # G_TYPE_FROM_INTERFACE (iface), 3709s # G_SIGNAL_RUN_LAST, 3709s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_d), 3709s # g_signal_accumulator_true_handled, 3709s # NULL, 3709s # org_project_useful_interface_method_marshal_single_arg_method_d, 3709s # G_TYPE_BOOLEAN, 3709s # 1, 3709s # G_TYPE_DBUS_METHOD_INVOCATION); 3709s # 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_d: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodD">SingleArgMethodD()</link> D-Bus method on @proxy. 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_call_single_arg_method_d_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_call_single_arg_method_d_sync() for the synchronous, blocking version of this method. 3709s # */ 3709s # void 3709s # org_project_useful_interface_call_single_arg_method_d ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3709s # "SingleArgMethodD", 3709s # g_variant_new ("()"), 3709s # G_DBUS_CALL_FLAGS_NONE, 3709s # -1, 3709s # cancellable, 3709s # callback, 3709s # user_data); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_d_finish: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @out_arg_d: (out) (optional): Return location for return parameter or %NULL to ignore. 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_d(). 3709s # * @error: Return location for error or %NULL. 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_d(). 3709s # * 3709s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3709s # */ 3709s # gboolean 3709s # org_project_useful_interface_call_single_arg_method_d_finish ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # gdouble *out_arg_d, 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GVariant *_ret; 3709s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3709s # if (_ret == NULL) 3709s # goto _out; 3709s # g_variant_get (_ret, 3709s # "(d)", 3709s # out_arg_d); 3709s # g_variant_unref (_ret); 3709s # _out: 3709s # return _ret != NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_d_sync: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @out_arg_d: (out) (optional): Return location for return parameter or %NULL to ignore. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL. 3709s # * 3709s # * Synchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodD">SingleArgMethodD()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_call_single_arg_method_d() for the asynchronous version of this method. 3709s # * 3709s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3709s # */ 3709s # gboolean 3709s # org_project_useful_interface_call_single_arg_method_d_sync ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # gdouble *out_arg_d, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GVariant *_ret; 3709s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3709s # "SingleArgMethodD", 3709s # g_variant_new ("()"), 3709s # G_DBUS_CALL_FLAGS_NONE, 3709s # -1, 3709s # cancellable, 3709s # error); 3709s # if (_ret == NULL) 3709s # goto _out; 3709s # g_variant_get (_ret, 3709s # "(d)", 3709s # out_arg_d); 3709s # g_variant_unref (_ret); 3709s # _out: 3709s # return _ret != NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_complete_single_arg_method_d: 3709s # * @object: A #OrgProjectUsefulInterface. 3709s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3709s # * @arg_d: Parameter to return. 3709s # * 3709s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodD">SingleArgMethodD()</link> 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. 3709s # * 3709s # * This method will free @invocation, you cannot use it afterwards. 3709s # */ 3709s # void 3709s # org_project_useful_interface_complete_single_arg_method_d ( 3709s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 3709s # GDBusMethodInvocation *invocation, 3709s # gdouble arg_d) 3709s # { 3709s # g_dbus_method_invocation_return_value (invocation, 3709s # g_variant_new ("(d)", 3709s # arg_d)); 3709s # } 3709s # 3709s # /* ------------------------------------------------------------------------ */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceProxy: 3709s # * 3709s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceProxyClass: 3709s # * @parent_class: The parent class. 3709s # * 3709s # * Class structure for #OrgProjectUsefulInterfaceProxy. 3709s # */ 3709s # 3709s # struct _OrgProjectUsefulInterfaceProxyPrivate 3709s # { 3709s # GData *qdata; 3709s # }; 3709s # 3709s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3709s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3709s # 3709s # #else 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3709s # 3709s # #endif 3709s # static void 3709s # org_project_useful_interface_proxy_finalize (GObject *object) 3709s # { 3709s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 3709s # g_datalist_clear (&proxy->priv->qdata); 3709s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3709s # guint prop_id G_GNUC_UNUSED, 3709s # GValue *value G_GNUC_UNUSED, 3709s # GParamSpec *pspec G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3709s # guint prop_id G_GNUC_UNUSED, 3709s # const GValue *value G_GNUC_UNUSED, 3709s # GParamSpec *pspec G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 3709s # const gchar *sender_name G_GNUC_UNUSED, 3709s # const gchar *signal_name, 3709s # GVariant *parameters) 3709s # { 3709s # _ExtendedGDBusSignalInfo *info; 3709s # GVariantIter iter; 3709s # GVariant *child; 3709s # GValue *paramv; 3709s # gsize num_params; 3709s # gsize n; 3709s # guint signal_id; 3709s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 3709s # if (info == NULL) 3709s # return; 3709s # num_params = g_variant_n_children (parameters); 3709s # paramv = g_new0 (GValue, num_params + 1); 3709s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_set_object (¶mv[0], proxy); 3709s # g_variant_iter_init (&iter, parameters); 3709s # n = 1; 3709s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3709s # { 3709s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3709s # if (arg_info->use_gvariant) 3709s # { 3709s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3709s # g_value_set_variant (¶mv[n], child); 3709s # n++; 3709s # } 3709s # else 3709s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3709s # g_variant_unref (child); 3709s # } 3709s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_signal_emitv (paramv, signal_id, 0, NULL); 3709s # for (n = 0; n < num_params + 1; n++) 3709s # g_value_unset (¶mv[n]); 3709s # g_free (paramv); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 3709s # GVariant *changed_properties, 3709s # const gchar *const *invalidated_properties) 3709s # { 3709s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 3709s # guint n; 3709s # const gchar *key; 3709s # GVariantIter *iter; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # g_variant_get (changed_properties, "a{sv}", &iter); 3709s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3709s # { 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 3709s # g_datalist_remove_data (&proxy->priv->qdata, key); 3709s # if (info != NULL) 3709s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3709s # } 3709s # g_variant_iter_free (iter); 3709s # for (n = 0; invalidated_properties[n] != NULL; n++) 3709s # { 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 3709s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3709s # if (info != NULL) 3709s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3709s # } 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 3709s # { 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 3709s # #else 3709s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 3709s # #endif 3709s # 3709s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 3709s # { 3709s # GObjectClass *gobject_class; 3709s # GDBusProxyClass *proxy_class; 3709s # 3709s # gobject_class = G_OBJECT_CLASS (klass); 3709s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 3709s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 3709s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 3709s # 3709s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3709s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 3709s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3709s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 3709s # #endif 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new: 3709s # * @connection: A #GDBusConnection. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new() for more details. 3709s # * 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3709s # */ 3709s # void 3709s # org_project_useful_interface_proxy_new ( 3709s # GDBusConnection *connection, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_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); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_finish: 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_finish ( 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GObject *ret; 3709s # GObject *source_object; 3709s # source_object = g_async_result_get_source_object (res); 3709s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3709s # g_object_unref (source_object); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_sync: 3709s # * @connection: A #GDBusConnection. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new_sync() for more details. 3709s # * 3709s # * The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_sync ( 3709s # GDBusConnection *connection, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GInitable *ret; 3709s # 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); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus: 3709s # * @bus_type: A #GBusType. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: A bus name (well-known or unique). 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3709s # * 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3709s # */ 3709s # void 3709s # org_project_useful_interface_proxy_new_for_bus ( 3709s # GBusType bus_type, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_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); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus_finish: 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_for_bus_finish ( 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GObject *ret; 3709s # GObject *source_object; 3709s # source_object = g_async_result_get_source_object (res); 3709s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3709s # g_object_unref (source_object); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus_sync: 3709s # * @bus_type: A #GBusType. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: A bus name (well-known or unique). 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3709s # * 3709s # * The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_for_bus_sync ( 3709s # GBusType bus_type, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GInitable *ret; 3709s # 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); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # 3709s # /* ------------------------------------------------------------------------ */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceSkeleton: 3709s # * 3709s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceSkeletonClass: 3709s # * @parent_class: The parent class. 3709s # * 3709s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 3709s # */ 3709s # 3709s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 3709s # { 3709s # GValue *properties; 3709s # GList *changed_properties; 3709s # GSource *changed_properties_idle_source; 3709s # GMainContext *context; 3709s # GMutex lock; 3709s # }; 3709s # 3709s # static void 3709s # _org_project_useful_interface_skeleton_handle_method_call ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name, 3709s # const gchar *method_name, 3709s # GVariant *parameters, 3709s # GDBusMethodInvocation *invocation, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # _ExtendedGDBusMethodInfo *info; 3709s # GVariantIter iter; 3709s # GVariant *child; 3709s # GValue *paramv; 3709s # gsize num_params; 3709s # guint num_extra; 3709s # gsize n; 3709s # guint signal_id; 3709s # GValue return_value = G_VALUE_INIT; 3709s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3709s # g_assert (info != NULL); 3709s # num_params = g_variant_n_children (parameters); 3709s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3709s # n = 0; 3709s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_set_object (¶mv[n++], skeleton); 3709s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3709s # g_value_set_object (¶mv[n++], invocation); 3709s # if (info->pass_fdlist) 3709s # { 3709s # #ifdef G_OS_UNIX 3709s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3709s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3709s # #else 3709s # g_assert_not_reached (); 3709s # #endif 3709s # } 3709s # g_variant_iter_init (&iter, parameters); 3709s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3709s # { 3709s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3709s # if (arg_info->use_gvariant) 3709s # { 3709s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3709s # g_value_set_variant (¶mv[n], child); 3709s # n++; 3709s # } 3709s # else 3709s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3709s # g_variant_unref (child); 3709s # } 3709s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3709s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3709s # if (!g_value_get_boolean (&return_value)) 3709s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3709s # g_value_unset (&return_value); 3709s # for (n = 0; n < num_params + num_extra; n++) 3709s # g_value_unset (¶mv[n]); 3709s # g_free (paramv); 3709s # } 3709s # 3709s # static GVariant * 3709s # _org_project_useful_interface_skeleton_handle_get_property ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name G_GNUC_UNUSED, 3709s # const gchar *property_name, 3709s # GError **error, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # GValue value = G_VALUE_INIT; 3709s # GParamSpec *pspec; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # GVariant *ret; 3709s # ret = NULL; 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3709s # g_assert (info != NULL); 3709s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3709s # if (pspec == NULL) 3709s # { 3709s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3709s # } 3709s # else 3709s # { 3709s # g_value_init (&value, pspec->value_type); 3709s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3709s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3709s # g_value_unset (&value); 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static gboolean 3709s # _org_project_useful_interface_skeleton_handle_set_property ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name G_GNUC_UNUSED, 3709s # const gchar *property_name, 3709s # GVariant *variant, 3709s # GError **error, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # GValue value = G_VALUE_INIT; 3709s # GParamSpec *pspec; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # gboolean ret; 3709s # ret = FALSE; 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3709s # g_assert (info != NULL); 3709s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3709s # if (pspec == NULL) 3709s # { 3709s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3709s # } 3709s # else 3709s # { 3709s # if (info->use_gvariant) 3709s # g_value_set_variant (&value, variant); 3709s # else 3709s # g_dbus_gvariant_to_gvalue (variant, &value); 3709s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3709s # g_value_unset (&value); 3709s # ret = TRUE; 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 3709s # { 3709s # _org_project_useful_interface_skeleton_handle_method_call, 3709s # _org_project_useful_interface_skeleton_handle_get_property, 3709s # _org_project_useful_interface_skeleton_handle_set_property, 3709s # {NULL} 3709s # }; 3709s # 3709s # static GDBusInterfaceInfo * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3709s # { 3709s # return org_project_useful_interface_interface_info (); 3709s # } 3709s # 3709s # static GDBusInterfaceVTable * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3709s # { 3709s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 3709s # } 3709s # 3709s # static GVariant * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 3709s # 3709s # GVariantBuilder builder; 3709s # guint n; 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3709s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3709s # #else 3709s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3709s # #endif 3709s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 3709s # goto out; 3709s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 3709s # { 3709s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 3709s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3709s # { 3709s # GVariant *value; 3709s # 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); 3709s # if (value != NULL) 3709s # { 3709s # g_variant_take_ref (value); 3709s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3709s # g_variant_unref (value); 3709s # } 3709s # } 3709s # } 3709s # out: 3709s # return g_variant_builder_end (&builder); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3709s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3709s # 3709s # #else 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3709s # 3709s # #endif 3709s # static void 3709s # org_project_useful_interface_skeleton_finalize (GObject *object) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 3709s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3709s # if (skeleton->priv->changed_properties_idle_source != NULL) 3709s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3709s # g_main_context_unref (skeleton->priv->context); 3709s # g_mutex_clear (&skeleton->priv->lock); 3709s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 3709s # { 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 3709s # #else 3709s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 3709s # #endif 3709s # 3709s # g_mutex_init (&skeleton->priv->lock); 3709s # skeleton->priv->context = g_main_context_ref_thread_default (); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 3709s # { 3709s # GObjectClass *gobject_class; 3709s # GDBusInterfaceSkeletonClass *skeleton_class; 3709s # 3709s # gobject_class = G_OBJECT_CLASS (klass); 3709s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 3709s # 3709s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3709s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 3709s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 3709s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 3709s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3709s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 3709s # #endif 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_skeleton_new: 3709s # * 3709s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_skeleton_new (void) 3709s # { 3709s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 3709s # } 3709s # Error: 3709s # 3709s # /tmp/tmplo7nhxxl/tmpt15ox8mw.xml: 3709s # <node> 3709s # <interface name="org.project.UsefulInterface"> 3709s # <method name="SingleArgMethodS"> 3709s # <arg name="arg_s" type="s" direction="out"/> 3709s # </method> 3709s # </interface> 3709s # </node> 3709s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplo7nhxxl/tmpt15ox8mw.xml', '--output', '-', '--body'] 3709s # Return code: 0 3709s # Output: 3709s # /* 3709s # * This file is generated by gdbus-codegen, do not modify it. 3709s # * 3709s # * The license of this code is the same as for the D-Bus interface description 3709s # * it was derived from. Note that it links to GLib, so must comply with the 3709s # * LGPL linking clauses. 3709s # */ 3709s # 3709s # #ifdef HAVE_CONFIG_H 3709s # # include "config.h" 3709s # #endif 3709s # 3709s # #include <string.h> 3709s # #ifdef G_OS_UNIX 3709s # # include <gio/gunixfdlist.h> 3709s # #endif 3709s # 3709s # #ifdef G_ENABLE_DEBUG 3709s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3709s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3709s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3709s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3709s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3709s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3709s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3709s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3709s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3709s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3709s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3709s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3709s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3709s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3709s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3709s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3709s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3709s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3709s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3709s # #else /* !G_ENABLE_DEBUG */ 3709s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3709s # * Do not access GValues directly in your code. Instead, use the 3709s # * g_value_get_*() functions 3709s # */ 3709s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3709s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3709s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3709s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3709s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3709s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3709s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3709s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3709s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3709s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3709s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3709s # #endif /* !G_ENABLE_DEBUG */ 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusArgInfo parent_struct; 3709s # gboolean use_gvariant; 3709s # } _ExtendedGDBusArgInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusMethodInfo parent_struct; 3709s # const gchar *signal_name; 3709s # gboolean pass_fdlist; 3709s # } _ExtendedGDBusMethodInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusSignalInfo parent_struct; 3709s # const gchar *signal_name; 3709s # } _ExtendedGDBusSignalInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusPropertyInfo parent_struct; 3709s # const gchar *hyphen_name; 3709s # guint use_gvariant : 1; 3709s # guint emits_changed_signal : 1; 3709s # } _ExtendedGDBusPropertyInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusInterfaceInfo parent_struct; 3709s # const gchar *hyphen_name; 3709s # } _ExtendedGDBusInterfaceInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # const _ExtendedGDBusPropertyInfo *info; 3709s # guint prop_id; 3709s # GValue orig_value; /* the value before the change */ 3709s # } ChangedProperty; 3709s # 3709s # static void 3709s # _changed_property_free (ChangedProperty *data) 3709s # { 3709s # g_value_unset (&data->orig_value); 3709s # g_free (data); 3709s # } 3709s # 3709s # static gboolean 3709s # _g_strv_equal0 (gchar **a, gchar **b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # guint n; 3709s # if (a == NULL && b == NULL) 3709s # { 3709s # ret = TRUE; 3709s # goto out; 3709s # } 3709s # if (a == NULL || b == NULL) 3709s # goto out; 3709s # if (g_strv_length (a) != g_strv_length (b)) 3709s # goto out; 3709s # for (n = 0; a[n] != NULL; n++) 3709s # if (g_strcmp0 (a[n], b[n]) != 0) 3709s # goto out; 3709s # ret = TRUE; 3709s # out: 3709s # return ret; 3709s # } 3709s # 3709s # static gboolean 3709s # _g_variant_equal0 (GVariant *a, GVariant *b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # if (a == NULL && b == NULL) 3709s # { 3709s # ret = TRUE; 3709s # goto out; 3709s # } 3709s # if (a == NULL || b == NULL) 3709s # goto out; 3709s # ret = g_variant_equal (a, b); 3709s # out: 3709s # return ret; 3709s # } 3709s # 3709s # G_GNUC_UNUSED static gboolean 3709s # _g_value_equal (const GValue *a, const GValue *b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3709s # switch (G_VALUE_TYPE (a)) 3709s # { 3709s # case G_TYPE_BOOLEAN: 3709s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3709s # break; 3709s # case G_TYPE_UCHAR: 3709s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3709s # break; 3709s # case G_TYPE_INT: 3709s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3709s # break; 3709s # case G_TYPE_UINT: 3709s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3709s # break; 3709s # case G_TYPE_INT64: 3709s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3709s # break; 3709s # case G_TYPE_UINT64: 3709s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3709s # break; 3709s # case G_TYPE_DOUBLE: 3709s # { 3709s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3709s # gdouble da = g_value_get_double (a); 3709s # gdouble db = g_value_get_double (b); 3709s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3709s # } 3709s # break; 3709s # case G_TYPE_STRING: 3709s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3709s # break; 3709s # case G_TYPE_VARIANT: 3709s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3709s # break; 3709s # default: 3709s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3709s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3709s # else 3709s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3709s # break; 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static void 3709s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 3709s # GClosure *closure, 3709s # GValue *return_value, 3709s # unsigned int n_param_values, 3709s # const GValue *param_values, 3709s # void *invocation_hint G_GNUC_UNUSED, 3709s # void *marshal_data) 3709s # { 3709s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 3709s # (void *data1, 3709s # GDBusMethodInvocation *arg_method_invocation, 3709s # void *data2); 3709s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 3709s # GCClosure *cc = (GCClosure*) closure; 3709s # void *data1, *data2; 3709s # gboolean v_return; 3709s # 3709s # g_return_if_fail (return_value != NULL); 3709s # g_return_if_fail (n_param_values == 2); 3709s # 3709s # if (G_CCLOSURE_SWAP_DATA (closure)) 3709s # { 3709s # data1 = closure->data; 3709s # data2 = g_value_peek_pointer (param_values + 0); 3709s # } 3709s # else 3709s # { 3709s # data1 = g_value_peek_pointer (param_values + 0); 3709s # data2 = closure->data; 3709s # } 3709s # 3709s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 3709s # (marshal_data ? marshal_data : cc->callback); 3709s # 3709s # v_return = 3709s # callback (data1, 3709s # g_marshal_value_peek_object (param_values + 1), 3709s # data2); 3709s # 3709s # g_value_set_boolean (return_value, v_return); 3709s # } 3709s # 3709s # /* ------------------------------------------------------------------------ 3709s # * Code for interface org.project.UsefulInterface 3709s # * ------------------------------------------------------------------------ 3709s # */ 3709s # 3709s # /** 3709s # * SECTION:OrgProjectUsefulInterface 3709s # * @title: OrgProjectUsefulInterface 3709s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 3709s # * 3709s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface in C. 3709s # */ 3709s # 3709s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 3709s # 3709s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_arg_s = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "arg_s", 3709s # (gchar *) "s", 3709s # NULL 3709s # }, 3709s # FALSE 3709s # }; 3709s # 3709s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_pointers[] = 3709s # { 3709s # &_org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_arg_s.parent_struct, 3709s # NULL 3709s # }; 3709s # 3709s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_s = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "SingleArgMethodS", 3709s # NULL, 3709s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_pointers, 3709s # NULL 3709s # }, 3709s # "handle-single-arg-method-s", 3709s # FALSE 3709s # }; 3709s # 3709s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 3709s # { 3709s # &_org_project_useful_interface_method_info_single_arg_method_s.parent_struct, 3709s # NULL 3709s # }; 3709s # 3709s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "org.project.UsefulInterface", 3709s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 3709s # NULL, 3709s # NULL, 3709s # NULL 3709s # }, 3709s # "org-project-useful-interface", 3709s # }; 3709s # 3709s # 3709s # /** 3709s # * org_project_useful_interface_interface_info: 3709s # * 3709s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface. 3709s # * 3709s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3709s # */ 3709s # GDBusInterfaceInfo * 3709s # org_project_useful_interface_interface_info (void) 3709s # { 3709s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_override_properties: 3709s # * @klass: The class structure for a #GObject derived class. 3709s # * @property_id_begin: The property id to assign to the first overridden property. 3709s # * 3709s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 3709s # * The properties are overridden in the order they are defined. 3709s # * 3709s # * Returns: The last property id. 3709s # */ 3709s # guint 3709s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3709s # { 3709s # return property_id_begin - 1; 3709s # } 3709s # 3709s # 3709s # inline static void 3709s # org_project_useful_interface_method_marshal_single_arg_method_s ( 3709s # GClosure *closure, 3709s # GValue *return_value, 3709s # unsigned int n_param_values, 3709s # const GValue *param_values, 3709s # void *invocation_hint, 3709s # void *marshal_data) 3709s # { 3709s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 3709s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3709s # } 3709s # 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterface: 3709s # * 3709s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceIface: 3709s # * @parent_iface: The parent interface. 3709s # * @handle_single_arg_method_s: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-s signal. 3709s # * 3709s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # */ 3709s # 3709s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 3709s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 3709s # 3709s # static void 3709s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 3709s # { 3709s # /* GObject signals for incoming D-Bus method calls: */ 3709s # /** 3709s # * OrgProjectUsefulInterface::handle-single-arg-method-s: 3709s # * @object: A #OrgProjectUsefulInterface. 3709s # * @invocation: A #GDBusMethodInvocation. 3709s # * 3709s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodS">SingleArgMethodS()</link> D-Bus method. 3709s # * 3709s # * 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. 3709s # * 3709s # * 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. 3709s # */ 3709s # g_signal_new ("handle-single-arg-method-s", 3709s # G_TYPE_FROM_INTERFACE (iface), 3709s # G_SIGNAL_RUN_LAST, 3709s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_s), 3709s # g_signal_accumulator_true_handled, 3709s # NULL, 3709s # org_project_useful_interface_method_marshal_single_arg_method_s, 3709s # G_TYPE_BOOLEAN, 3709s # 1, 3709s # G_TYPE_DBUS_METHOD_INVOCATION); 3709s # 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_s: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodS">SingleArgMethodS()</link> D-Bus method on @proxy. 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_call_single_arg_method_s_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_call_single_arg_method_s_sync() for the synchronous, blocking version of this method. 3709s # */ 3709s # void 3709s # org_project_useful_interface_call_single_arg_method_s ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3709s # "SingleArgMethodS", 3709s # g_variant_new ("()"), 3709s # G_DBUS_CALL_FLAGS_NONE, 3709s # -1, 3709s # cancellable, 3709s # callback, 3709s # user_data); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_s_finish: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @out_arg_s: (out) (optional): Return location for return parameter or %NULL to ignore. 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_s(). 3709s # * @error: Return location for error or %NULL. 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_s(). 3709s # * 3709s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3709s # */ 3709s # gboolean 3709s # org_project_useful_interface_call_single_arg_method_s_finish ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # gchar **out_arg_s, 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GVariant *_ret; 3709s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3709s # if (_ret == NULL) 3709s # goto _out; 3709s # g_variant_get (_ret, 3709s # "(s)", 3709s # out_arg_s); 3709s # g_variant_unref (_ret); 3709s # _out: 3709s # return _ret != NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_s_sync: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @out_arg_s: (out) (optional): Return location for return parameter or %NULL to ignore. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL. 3709s # * 3709s # * Synchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodS">SingleArgMethodS()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_call_single_arg_method_s() for the asynchronous version of this method. 3709s # * 3709s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3709s # */ 3709s # gboolean 3709s # org_project_useful_interface_call_single_arg_method_s_sync ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # gchar **out_arg_s, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GVariant *_ret; 3709s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3709s # "SingleArgMethodS", 3709s # g_variant_new ("()"), 3709s # G_DBUS_CALL_FLAGS_NONE, 3709s # -1, 3709s # cancellable, 3709s # error); 3709s # if (_ret == NULL) 3709s # goto _out; 3709s # g_variant_get (_ret, 3709s # "(s)", 3709s # out_arg_s); 3709s # g_variant_unref (_ret); 3709s # _out: 3709s # return _ret != NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_complete_single_arg_method_s: 3709s # * @object: A #OrgProjectUsefulInterface. 3709s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3709s # * @arg_s: Parameter to return. 3709s # * 3709s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodS">SingleArgMethodS()</link> 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. 3709s # * 3709s # * This method will free @invocation, you cannot use it afterwards. 3709s # */ 3709s # void 3709s # org_project_useful_interface_complete_single_arg_method_s ( 3709s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 3709s # GDBusMethodInvocation *invocation, 3709s # const gchar *arg_s) 3709s # { 3709s # g_dbus_method_invocation_return_value (invocation, 3709s # g_variant_new ("(s)", 3709s # arg_s)); 3709s # } 3709s # 3709s # /* ------------------------------------------------------------------------ */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceProxy: 3709s # * 3709s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceProxyClass: 3709s # * @parent_class: The parent class. 3709s # * 3709s # * Class structure for #OrgProjectUsefulInterfaceProxy. 3709s # */ 3709s # 3709s # struct _OrgProjectUsefulInterfaceProxyPrivate 3709s # { 3709s # GData *qdata; 3709s # }; 3709s # 3709s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3709s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3709s # 3709s # #else 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3709s # 3709s # #endif 3709s # static void 3709s # org_project_useful_interface_proxy_finalize (GObject *object) 3709s # { 3709s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 3709s # g_datalist_clear (&proxy->priv->qdata); 3709s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3709s # guint prop_id G_GNUC_UNUSED, 3709s # GValue *value G_GNUC_UNUSED, 3709s # GParamSpec *pspec G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3709s # guint prop_id G_GNUC_UNUSED, 3709s # const GValue *value G_GNUC_UNUSED, 3709s # GParamSpec *pspec G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 3709s # const gchar *sender_name G_GNUC_UNUSED, 3709s # const gchar *signal_name, 3709s # GVariant *parameters) 3709s # { 3709s # _ExtendedGDBusSignalInfo *info; 3709s # GVariantIter iter; 3709s # GVariant *child; 3709s # GValue *paramv; 3709s # gsize num_params; 3709s # gsize n; 3709s # guint signal_id; 3709s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 3709s # if (info == NULL) 3709s # return; 3709s # num_params = g_variant_n_children (parameters); 3709s # paramv = g_new0 (GValue, num_params + 1); 3709s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_set_object (¶mv[0], proxy); 3709s # g_variant_iter_init (&iter, parameters); 3709s # n = 1; 3709s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3709s # { 3709s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3709s # if (arg_info->use_gvariant) 3709s # { 3709s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3709s # g_value_set_variant (¶mv[n], child); 3709s # n++; 3709s # } 3709s # else 3709s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3709s # g_variant_unref (child); 3709s # } 3709s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_signal_emitv (paramv, signal_id, 0, NULL); 3709s # for (n = 0; n < num_params + 1; n++) 3709s # g_value_unset (¶mv[n]); 3709s # g_free (paramv); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 3709s # GVariant *changed_properties, 3709s # const gchar *const *invalidated_properties) 3709s # { 3709s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 3709s # guint n; 3709s # const gchar *key; 3709s # GVariantIter *iter; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # g_variant_get (changed_properties, "a{sv}", &iter); 3709s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3709s # { 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 3709s # g_datalist_remove_data (&proxy->priv->qdata, key); 3709s # if (info != NULL) 3709s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3709s # } 3709s # g_variant_iter_free (iter); 3709s # for (n = 0; invalidated_properties[n] != NULL; n++) 3709s # { 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 3709s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3709s # if (info != NULL) 3709s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3709s # } 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 3709s # { 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 3709s # #else 3709s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 3709s # #endif 3709s # 3709s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 3709s # { 3709s # GObjectClass *gobject_class; 3709s # GDBusProxyClass *proxy_class; 3709s # 3709s # gobject_class = G_OBJECT_CLASS (klass); 3709s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 3709s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 3709s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 3709s # 3709s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3709s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 3709s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3709s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 3709s # #endif 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new: 3709s # * @connection: A #GDBusConnection. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new() for more details. 3709s # * 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3709s # */ 3709s # void 3709s # org_project_useful_interface_proxy_new ( 3709s # GDBusConnection *connection, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_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); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_finish: 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_finish ( 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GObject *ret; 3709s # GObject *source_object; 3709s # source_object = g_async_result_get_source_object (res); 3709s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3709s # g_object_unref (source_object); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_sync: 3709s # * @connection: A #GDBusConnection. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new_sync() for more details. 3709s # * 3709s # * The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_sync ( 3709s # GDBusConnection *connection, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GInitable *ret; 3709s # 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); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus: 3709s # * @bus_type: A #GBusType. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: A bus name (well-known or unique). 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3709s # * 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3709s # */ 3709s # void 3709s # org_project_useful_interface_proxy_new_for_bus ( 3709s # GBusType bus_type, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_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); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus_finish: 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_for_bus_finish ( 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GObject *ret; 3709s # GObject *source_object; 3709s # source_object = g_async_result_get_source_object (res); 3709s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3709s # g_object_unref (source_object); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus_sync: 3709s # * @bus_type: A #GBusType. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: A bus name (well-known or unique). 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3709s # * 3709s # * The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_for_bus_sync ( 3709s # GBusType bus_type, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GInitable *ret; 3709s # 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); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # 3709s # /* ------------------------------------------------------------------------ */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceSkeleton: 3709s # * 3709s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceSkeletonClass: 3709s # * @parent_class: The parent class. 3709s # * 3709s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 3709s # */ 3709s # 3709s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 3709s # { 3709s # GValue *properties; 3709s # GList *changed_properties; 3709s # GSource *changed_properties_idle_source; 3709s # GMainContext *context; 3709s # GMutex lock; 3709s # }; 3709s # 3709s # static void 3709s # _org_project_useful_interface_skeleton_handle_method_call ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name, 3709s # const gchar *method_name, 3709s # GVariant *parameters, 3709s # GDBusMethodInvocation *invocation, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # _ExtendedGDBusMethodInfo *info; 3709s # GVariantIter iter; 3709s # GVariant *child; 3709s # GValue *paramv; 3709s # gsize num_params; 3709s # guint num_extra; 3709s # gsize n; 3709s # guint signal_id; 3709s # GValue return_value = G_VALUE_INIT; 3709s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3709s # g_assert (info != NULL); 3709s # num_params = g_variant_n_children (parameters); 3709s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3709s # n = 0; 3709s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_set_object (¶mv[n++], skeleton); 3709s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3709s # g_value_set_object (¶mv[n++], invocation); 3709s # if (info->pass_fdlist) 3709s # { 3709s # #ifdef G_OS_UNIX 3709s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3709s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3709s # #else 3709s # g_assert_not_reached (); 3709s # #endif 3709s # } 3709s # g_variant_iter_init (&iter, parameters); 3709s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3709s # { 3709s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3709s # if (arg_info->use_gvariant) 3709s # { 3709s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3709s # g_value_set_variant (¶mv[n], child); 3709s # n++; 3709s # } 3709s # else 3709s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3709s # g_variant_unref (child); 3709s # } 3709s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3709s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3709s # if (!g_value_get_boolean (&return_value)) 3709s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3709s # g_value_unset (&return_value); 3709s # for (n = 0; n < num_params + num_extra; n++) 3709s # g_value_unset (¶mv[n]); 3709s # g_free (paramv); 3709s # } 3709s # 3709s # static GVariant * 3709s # _org_project_useful_interface_skeleton_handle_get_property ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name G_GNUC_UNUSED, 3709s # const gchar *property_name, 3709s # GError **error, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # GValue value = G_VALUE_INIT; 3709s # GParamSpec *pspec; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # GVariant *ret; 3709s # ret = NULL; 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3709s # g_assert (info != NULL); 3709s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3709s # if (pspec == NULL) 3709s # { 3709s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3709s # } 3709s # else 3709s # { 3709s # g_value_init (&value, pspec->value_type); 3709s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3709s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3709s # g_value_unset (&value); 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static gboolean 3709s # _org_project_useful_interface_skeleton_handle_set_property ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name G_GNUC_UNUSED, 3709s # const gchar *property_name, 3709s # GVariant *variant, 3709s # GError **error, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # GValue value = G_VALUE_INIT; 3709s # GParamSpec *pspec; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # gboolean ret; 3709s # ret = FALSE; 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3709s # g_assert (info != NULL); 3709s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3709s # if (pspec == NULL) 3709s # { 3709s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3709s # } 3709s # else 3709s # { 3709s # if (info->use_gvariant) 3709s # g_value_set_variant (&value, variant); 3709s # else 3709s # g_dbus_gvariant_to_gvalue (variant, &value); 3709s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3709s # g_value_unset (&value); 3709s # ret = TRUE; 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 3709s # { 3709s # _org_project_useful_interface_skeleton_handle_method_call, 3709s # _org_project_useful_interface_skeleton_handle_get_property, 3709s # _org_project_useful_interface_skeleton_handle_set_property, 3709s # {NULL} 3709s # }; 3709s # 3709s # static GDBusInterfaceInfo * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3709s # { 3709s # return org_project_useful_interface_interface_info (); 3709s # } 3709s # 3709s # static GDBusInterfaceVTable * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3709s # { 3709s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 3709s # } 3709s # 3709s # static GVariant * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 3709s # 3709s # GVariantBuilder builder; 3709s # guint n; 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3709s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3709s # #else 3709s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3709s # #endif 3709s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 3709s # goto out; 3709s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 3709s # { 3709s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 3709s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3709s # { 3709s # GVariant *value; 3709s # 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); 3709s # if (value != NULL) 3709s # { 3709s # g_variant_take_ref (value); 3709s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3709s # g_variant_unref (value); 3709s # } 3709s # } 3709s # } 3709s # out: 3709s # return g_variant_builder_end (&builder); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3709s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3709s # 3709s # #else 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3709s # 3709s # #endif 3709s # static void 3709s # org_project_useful_interface_skeleton_finalize (GObject *object) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 3709s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3709s # if (skeleton->priv->changed_properties_idle_source != NULL) 3709s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3709s # g_main_context_unref (skeleton->priv->context); 3709s # g_mutex_clear (&skeleton->priv->lock); 3709s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 3709s # { 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 3709s # #else 3709s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 3709s # #endif 3709s # 3709s # g_mutex_init (&skeleton->priv->lock); 3709s # skeleton->priv->context = g_main_context_ref_thread_default (); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 3709s # { 3709s # GObjectClass *gobject_class; 3709s # GDBusInterfaceSkeletonClass *skeleton_class; 3709s # 3709s # gobject_class = G_OBJECT_CLASS (klass); 3709s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 3709s # 3709s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3709s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 3709s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 3709s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 3709s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3709s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 3709s # #endif 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_skeleton_new: 3709s # * 3709s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_skeleton_new (void) 3709s # { 3709s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 3709s # } 3709s # Error: 3709s # 3709s # /tmp/tmplo7nhxxl/tmpx000yu27.xml: 3709s # <node> 3709s # <interface name="org.project.UsefulInterface"> 3709s # <method name="SingleArgMethodO"> 3709s # <arg name="arg_o" type="o" direction="out"/> 3709s # </method> 3709s # </interface> 3709s # </node> 3709s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplo7nhxxl/tmpx000yu27.xml', '--output', '-', '--body'] 3709s # Return code: 0 3709s # Output: 3709s # /* 3709s # * This file is generated by gdbus-codegen, do not modify it. 3709s # * 3709s # * The license of this code is the same as for the D-Bus interface description 3709s # * it was derived from. Note that it links to GLib, so must comply with the 3709s # * LGPL linking clauses. 3709s # */ 3709s # 3709s # #ifdef HAVE_CONFIG_H 3709s # # include "config.h" 3709s # #endif 3709s # 3709s # #include <string.h> 3709s # #ifdef G_OS_UNIX 3709s # # include <gio/gunixfdlist.h> 3709s # #endif 3709s # 3709s # #ifdef G_ENABLE_DEBUG 3709s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3709s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3709s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3709s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3709s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3709s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3709s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3709s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3709s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3709s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3709s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3709s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3709s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3709s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3709s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3709s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3709s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3709s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3709s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3709s # #else /* !G_ENABLE_DEBUG */ 3709s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3709s # * Do not access GValues directly in your code. Instead, use the 3709s # * g_value_get_*() functions 3709s # */ 3709s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3709s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3709s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3709s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3709s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3709s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3709s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3709s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3709s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3709s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3709s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3709s # #endif /* !G_ENABLE_DEBUG */ 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusArgInfo parent_struct; 3709s # gboolean use_gvariant; 3709s # } _ExtendedGDBusArgInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusMethodInfo parent_struct; 3709s # const gchar *signal_name; 3709s # gboolean pass_fdlist; 3709s # } _ExtendedGDBusMethodInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusSignalInfo parent_struct; 3709s # const gchar *signal_name; 3709s # } _ExtendedGDBusSignalInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusPropertyInfo parent_struct; 3709s # const gchar *hyphen_name; 3709s # guint use_gvariant : 1; 3709s # guint emits_changed_signal : 1; 3709s # } _ExtendedGDBusPropertyInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusInterfaceInfo parent_struct; 3709s # const gchar *hyphen_name; 3709s # } _ExtendedGDBusInterfaceInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # const _ExtendedGDBusPropertyInfo *info; 3709s # guint prop_id; 3709s # GValue orig_value; /* the value before the change */ 3709s # } ChangedProperty; 3709s # 3709s # static void 3709s # _changed_property_free (ChangedProperty *data) 3709s # { 3709s # g_value_unset (&data->orig_value); 3709s # g_free (data); 3709s # } 3709s # 3709s # static gboolean 3709s # _g_strv_equal0 (gchar **a, gchar **b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # guint n; 3709s # if (a == NULL && b == NULL) 3709s # { 3709s # ret = TRUE; 3709s # goto out; 3709s # } 3709s # if (a == NULL || b == NULL) 3709s # goto out; 3709s # if (g_strv_length (a) != g_strv_length (b)) 3709s # goto out; 3709s # for (n = 0; a[n] != NULL; n++) 3709s # if (g_strcmp0 (a[n], b[n]) != 0) 3709s # goto out; 3709s # ret = TRUE; 3709s # out: 3709s # return ret; 3709s # } 3709s # 3709s # static gboolean 3709s # _g_variant_equal0 (GVariant *a, GVariant *b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # if (a == NULL && b == NULL) 3709s # { 3709s # ret = TRUE; 3709s # goto out; 3709s # } 3709s # if (a == NULL || b == NULL) 3709s # goto out; 3709s # ret = g_variant_equal (a, b); 3709s # out: 3709s # return ret; 3709s # } 3709s # 3709s # G_GNUC_UNUSED static gboolean 3709s # _g_value_equal (const GValue *a, const GValue *b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3709s # switch (G_VALUE_TYPE (a)) 3709s # { 3709s # case G_TYPE_BOOLEAN: 3709s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3709s # break; 3709s # case G_TYPE_UCHAR: 3709s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3709s # break; 3709s # case G_TYPE_INT: 3709s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3709s # break; 3709s # case G_TYPE_UINT: 3709s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3709s # break; 3709s # case G_TYPE_INT64: 3709s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3709s # break; 3709s # case G_TYPE_UINT64: 3709s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3709s # break; 3709s # case G_TYPE_DOUBLE: 3709s # { 3709s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3709s # gdouble da = g_value_get_double (a); 3709s # gdouble db = g_value_get_double (b); 3709s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3709s # } 3709s # break; 3709s # case G_TYPE_STRING: 3709s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3709s # break; 3709s # case G_TYPE_VARIANT: 3709s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3709s # break; 3709s # default: 3709s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3709s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3709s # else 3709s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3709s # break; 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static void 3709s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 3709s # GClosure *closure, 3709s # GValue *return_value, 3709s # unsigned int n_param_values, 3709s # const GValue *param_values, 3709s # void *invocation_hint G_GNUC_UNUSED, 3709s # void *marshal_data) 3709s # { 3709s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 3709s # (void *data1, 3709s # GDBusMethodInvocation *arg_method_invocation, 3709s # void *data2); 3709s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 3709s # GCClosure *cc = (GCClosure*) closure; 3709s # void *data1, *data2; 3709s # gboolean v_return; 3709s # 3709s # g_return_if_fail (return_value != NULL); 3709s # g_return_if_fail (n_param_values == 2); 3709s # 3709s # if (G_CCLOSURE_SWAP_DATA (closure)) 3709s # { 3709s # data1 = closure->data; 3709s # data2 = g_value_peek_pointer (param_values + 0); 3709s # } 3709s # else 3709s # { 3709s # data1 = g_value_peek_pointer (param_values + 0); 3709s # data2 = closure->data; 3709s # } 3709s # 3709s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 3709s # (marshal_data ? marshal_data : cc->callback); 3709s # 3709s # v_return = 3709s # callback (data1, 3709s # g_marshal_value_peek_object (param_values + 1), 3709s # data2); 3709s # 3709s # g_value_set_boolean (return_value, v_return); 3709s # } 3709s # 3709s # /* ------------------------------------------------------------------------ 3709s # * Code for interface org.project.UsefulInterface 3709s # * ------------------------------------------------------------------------ 3709s # */ 3709s # 3709s # /** 3709s # * SECTION:OrgProjectUsefulInterface 3709s # * @title: OrgProjectUsefulInterface 3709s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 3709s # * 3709s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface in C. 3709s # */ 3709s # 3709s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 3709s # 3709s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_arg_o = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "arg_o", 3709s # (gchar *) "o", 3709s # NULL 3709s # }, 3709s # FALSE 3709s # }; 3709s # 3709s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_pointers[] = 3709s # { 3709s # &_org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_arg_o.parent_struct, 3709s # NULL 3709s # }; 3709s # 3709s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_o = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "SingleArgMethodO", 3709s # NULL, 3709s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_pointers, 3709s # NULL 3709s # }, 3709s # "handle-single-arg-method-o", 3709s # FALSE 3709s # }; 3709s # 3709s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 3709s # { 3709s # &_org_project_useful_interface_method_info_single_arg_method_o.parent_struct, 3709s # NULL 3709s # }; 3709s # 3709s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "org.project.UsefulInterface", 3709s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 3709s # NULL, 3709s # NULL, 3709s # NULL 3709s # }, 3709s # "org-project-useful-interface", 3709s # }; 3709s # 3709s # 3709s # /** 3709s # * org_project_useful_interface_interface_info: 3709s # * 3709s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface. 3709s # * 3709s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3709s # */ 3709s # GDBusInterfaceInfo * 3709s # org_project_useful_interface_interface_info (void) 3709s # { 3709s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_override_properties: 3709s # * @klass: The class structure for a #GObject derived class. 3709s # * @property_id_begin: The property id to assign to the first overridden property. 3709s # * 3709s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 3709s # * The properties are overridden in the order they are defined. 3709s # * 3709s # * Returns: The last property id. 3709s # */ 3709s # guint 3709s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3709s # { 3709s # return property_id_begin - 1; 3709s # } 3709s # 3709s # 3709s # inline static void 3709s # org_project_useful_interface_method_marshal_single_arg_method_o ( 3709s # GClosure *closure, 3709s # GValue *return_value, 3709s # unsigned int n_param_values, 3709s # const GValue *param_values, 3709s # void *invocation_hint, 3709s # void *marshal_data) 3709s # { 3709s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 3709s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3709s # } 3709s # 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterface: 3709s # * 3709s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceIface: 3709s # * @parent_iface: The parent interface. 3709s # * @handle_single_arg_method_o: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-o signal. 3709s # * 3709s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # */ 3709s # 3709s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 3709s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 3709s # 3709s # static void 3709s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 3709s # { 3709s # /* GObject signals for incoming D-Bus method calls: */ 3709s # /** 3709s # * OrgProjectUsefulInterface::handle-single-arg-method-o: 3709s # * @object: A #OrgProjectUsefulInterface. 3709s # * @invocation: A #GDBusMethodInvocation. 3709s # * 3709s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodO">SingleArgMethodO()</link> D-Bus method. 3709s # * 3709s # * 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. 3709s # * 3709s # * 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. 3709s # */ 3709s # g_signal_new ("handle-single-arg-method-o", 3709s # G_TYPE_FROM_INTERFACE (iface), 3709s # G_SIGNAL_RUN_LAST, 3709s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_o), 3709s # g_signal_accumulator_true_handled, 3709s # NULL, 3709s # org_project_useful_interface_method_marshal_single_arg_method_o, 3709s # G_TYPE_BOOLEAN, 3709s # 1, 3709s # G_TYPE_DBUS_METHOD_INVOCATION); 3709s # 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_o: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodO">SingleArgMethodO()</link> D-Bus method on @proxy. 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_call_single_arg_method_o_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_call_single_arg_method_o_sync() for the synchronous, blocking version of this method. 3709s # */ 3709s # void 3709s # org_project_useful_interface_call_single_arg_method_o ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3709s # "SingleArgMethodO", 3709s # g_variant_new ("()"), 3709s # G_DBUS_CALL_FLAGS_NONE, 3709s # -1, 3709s # cancellable, 3709s # callback, 3709s # user_data); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_o_finish: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @out_arg_o: (out) (optional): Return location for return parameter or %NULL to ignore. 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_o(). 3709s # * @error: Return location for error or %NULL. 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_o(). 3709s # * 3709s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3709s # */ 3709s # gboolean 3709s # org_project_useful_interface_call_single_arg_method_o_finish ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # gchar **out_arg_o, 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GVariant *_ret; 3709s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3709s # if (_ret == NULL) 3709s # goto _out; 3709s # g_variant_get (_ret, 3709s # "(o)", 3709s # out_arg_o); 3709s # g_variant_unref (_ret); 3709s # _out: 3709s # return _ret != NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_o_sync: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @out_arg_o: (out) (optional): Return location for return parameter or %NULL to ignore. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL. 3709s # * 3709s # * Synchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodO">SingleArgMethodO()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_call_single_arg_method_o() for the asynchronous version of this method. 3709s # * 3709s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3709s # */ 3709s # gboolean 3709s # org_project_useful_interface_call_single_arg_method_o_sync ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # gchar **out_arg_o, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GVariant *_ret; 3709s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3709s # "SingleArgMethodO", 3709s # g_variant_new ("()"), 3709s # G_DBUS_CALL_FLAGS_NONE, 3709s # -1, 3709s # cancellable, 3709s # error); 3709s # if (_ret == NULL) 3709s # goto _out; 3709s # g_variant_get (_ret, 3709s # "(o)", 3709s # out_arg_o); 3709s # g_variant_unref (_ret); 3709s # _out: 3709s # return _ret != NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_complete_single_arg_method_o: 3709s # * @object: A #OrgProjectUsefulInterface. 3709s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3709s # * @arg_o: Parameter to return. 3709s # * 3709s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodO">SingleArgMethodO()</link> 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. 3709s # * 3709s # * This method will free @invocation, you cannot use it afterwards. 3709s # */ 3709s # void 3709s # org_project_useful_interface_complete_single_arg_method_o ( 3709s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 3709s # GDBusMethodInvocation *invocation, 3709s # const gchar *arg_o) 3709s # { 3709s # g_dbus_method_invocation_return_value (invocation, 3709s # g_variant_new ("(o)", 3709s # arg_o)); 3709s # } 3709s # 3709s # /* ------------------------------------------------------------------------ */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceProxy: 3709s # * 3709s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceProxyClass: 3709s # * @parent_class: The parent class. 3709s # * 3709s # * Class structure for #OrgProjectUsefulInterfaceProxy. 3709s # */ 3709s # 3709s # struct _OrgProjectUsefulInterfaceProxyPrivate 3709s # { 3709s # GData *qdata; 3709s # }; 3709s # 3709s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3709s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3709s # 3709s # #else 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3709s # 3709s # #endif 3709s # static void 3709s # org_project_useful_interface_proxy_finalize (GObject *object) 3709s # { 3709s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 3709s # g_datalist_clear (&proxy->priv->qdata); 3709s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3709s # guint prop_id G_GNUC_UNUSED, 3709s # GValue *value G_GNUC_UNUSED, 3709s # GParamSpec *pspec G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3709s # guint prop_id G_GNUC_UNUSED, 3709s # const GValue *value G_GNUC_UNUSED, 3709s # GParamSpec *pspec G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 3709s # const gchar *sender_name G_GNUC_UNUSED, 3709s # const gchar *signal_name, 3709s # GVariant *parameters) 3709s # { 3709s # _ExtendedGDBusSignalInfo *info; 3709s # GVariantIter iter; 3709s # GVariant *child; 3709s # GValue *paramv; 3709s # gsize num_params; 3709s # gsize n; 3709s # guint signal_id; 3709s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 3709s # if (info == NULL) 3709s # return; 3709s # num_params = g_variant_n_children (parameters); 3709s # paramv = g_new0 (GValue, num_params + 1); 3709s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_set_object (¶mv[0], proxy); 3709s # g_variant_iter_init (&iter, parameters); 3709s # n = 1; 3709s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3709s # { 3709s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3709s # if (arg_info->use_gvariant) 3709s # { 3709s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3709s # g_value_set_variant (¶mv[n], child); 3709s # n++; 3709s # } 3709s # else 3709s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3709s # g_variant_unref (child); 3709s # } 3709s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_signal_emitv (paramv, signal_id, 0, NULL); 3709s # for (n = 0; n < num_params + 1; n++) 3709s # g_value_unset (¶mv[n]); 3709s # g_free (paramv); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 3709s # GVariant *changed_properties, 3709s # const gchar *const *invalidated_properties) 3709s # { 3709s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 3709s # guint n; 3709s # const gchar *key; 3709s # GVariantIter *iter; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # g_variant_get (changed_properties, "a{sv}", &iter); 3709s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3709s # { 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 3709s # g_datalist_remove_data (&proxy->priv->qdata, key); 3709s # if (info != NULL) 3709s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3709s # } 3709s # g_variant_iter_free (iter); 3709s # for (n = 0; invalidated_properties[n] != NULL; n++) 3709s # { 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 3709s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3709s # if (info != NULL) 3709s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3709s # } 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 3709s # { 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 3709s # #else 3709s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 3709s # #endif 3709s # 3709s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 3709s # { 3709s # GObjectClass *gobject_class; 3709s # GDBusProxyClass *proxy_class; 3709s # 3709s # gobject_class = G_OBJECT_CLASS (klass); 3709s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 3709s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 3709s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 3709s # 3709s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3709s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 3709s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3709s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 3709s # #endif 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new: 3709s # * @connection: A #GDBusConnection. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new() for more details. 3709s # * 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3709s # */ 3709s # void 3709s # org_project_useful_interface_proxy_new ( 3709s # GDBusConnection *connection, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_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); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_finish: 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_finish ( 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GObject *ret; 3709s # GObject *source_object; 3709s # source_object = g_async_result_get_source_object (res); 3709s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3709s # g_object_unref (source_object); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_sync: 3709s # * @connection: A #GDBusConnection. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new_sync() for more details. 3709s # * 3709s # * The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_sync ( 3709s # GDBusConnection *connection, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GInitable *ret; 3709s # 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); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus: 3709s # * @bus_type: A #GBusType. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: A bus name (well-known or unique). 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3709s # * 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3709s # */ 3709s # void 3709s # org_project_useful_interface_proxy_new_for_bus ( 3709s # GBusType bus_type, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_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); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus_finish: 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_for_bus_finish ( 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GObject *ret; 3709s # GObject *source_object; 3709s # source_object = g_async_result_get_source_object (res); 3709s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3709s # g_object_unref (source_object); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus_sync: 3709s # * @bus_type: A #GBusType. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: A bus name (well-known or unique). 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3709s # * 3709s # * The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_for_bus_sync ( 3709s # GBusType bus_type, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GInitable *ret; 3709s # 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); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # 3709s # /* ------------------------------------------------------------------------ */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceSkeleton: 3709s # * 3709s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceSkeletonClass: 3709s # * @parent_class: The parent class. 3709s # * 3709s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 3709s # */ 3709s # 3709s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 3709s # { 3709s # GValue *properties; 3709s # GList *changed_properties; 3709s # GSource *changed_properties_idle_source; 3709s # GMainContext *context; 3709s # GMutex lock; 3709s # }; 3709s # 3709s # static void 3709s # _org_project_useful_interface_skeleton_handle_method_call ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name, 3709s # const gchar *method_name, 3709s # GVariant *parameters, 3709s # GDBusMethodInvocation *invocation, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # _ExtendedGDBusMethodInfo *info; 3709s # GVariantIter iter; 3709s # GVariant *child; 3709s # GValue *paramv; 3709s # gsize num_params; 3709s # guint num_extra; 3709s # gsize n; 3709s # guint signal_id; 3709s # GValue return_value = G_VALUE_INIT; 3709s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3709s # g_assert (info != NULL); 3709s # num_params = g_variant_n_children (parameters); 3709s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3709s # n = 0; 3709s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_set_object (¶mv[n++], skeleton); 3709s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3709s # g_value_set_object (¶mv[n++], invocation); 3709s # if (info->pass_fdlist) 3709s # { 3709s # #ifdef G_OS_UNIX 3709s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3709s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3709s # #else 3709s # g_assert_not_reached (); 3709s # #endif 3709s # } 3709s # g_variant_iter_init (&iter, parameters); 3709s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3709s # { 3709s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3709s # if (arg_info->use_gvariant) 3709s # { 3709s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3709s # g_value_set_variant (¶mv[n], child); 3709s # n++; 3709s # } 3709s # else 3709s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3709s # g_variant_unref (child); 3709s # } 3709s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3709s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3709s # if (!g_value_get_boolean (&return_value)) 3709s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3709s # g_value_unset (&return_value); 3709s # for (n = 0; n < num_params + num_extra; n++) 3709s # g_value_unset (¶mv[n]); 3709s # g_free (paramv); 3709s # } 3709s # 3709s # static GVariant * 3709s # _org_project_useful_interface_skeleton_handle_get_property ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name G_GNUC_UNUSED, 3709s # const gchar *property_name, 3709s # GError **error, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # GValue value = G_VALUE_INIT; 3709s # GParamSpec *pspec; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # GVariant *ret; 3709s # ret = NULL; 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3709s # g_assert (info != NULL); 3709s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3709s # if (pspec == NULL) 3709s # { 3709s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3709s # } 3709s # else 3709s # { 3709s # g_value_init (&value, pspec->value_type); 3709s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3709s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3709s # g_value_unset (&value); 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static gboolean 3709s # _org_project_useful_interface_skeleton_handle_set_property ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name G_GNUC_UNUSED, 3709s # const gchar *property_name, 3709s # GVariant *variant, 3709s # GError **error, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # GValue value = G_VALUE_INIT; 3709s # GParamSpec *pspec; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # gboolean ret; 3709s # ret = FALSE; 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3709s # g_assert (info != NULL); 3709s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3709s # if (pspec == NULL) 3709s # { 3709s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3709s # } 3709s # else 3709s # { 3709s # if (info->use_gvariant) 3709s # g_value_set_variant (&value, variant); 3709s # else 3709s # g_dbus_gvariant_to_gvalue (variant, &value); 3709s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3709s # g_value_unset (&value); 3709s # ret = TRUE; 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 3709s # { 3709s # _org_project_useful_interface_skeleton_handle_method_call, 3709s # _org_project_useful_interface_skeleton_handle_get_property, 3709s # _org_project_useful_interface_skeleton_handle_set_property, 3709s # {NULL} 3709s # }; 3709s # 3709s # static GDBusInterfaceInfo * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3709s # { 3709s # return org_project_useful_interface_interface_info (); 3709s # } 3709s # 3709s # static GDBusInterfaceVTable * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3709s # { 3709s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 3709s # } 3709s # 3709s # static GVariant * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 3709s # 3709s # GVariantBuilder builder; 3709s # guint n; 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3709s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3709s # #else 3709s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3709s # #endif 3709s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 3709s # goto out; 3709s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 3709s # { 3709s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 3709s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3709s # { 3709s # GVariant *value; 3709s # 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); 3709s # if (value != NULL) 3709s # { 3709s # g_variant_take_ref (value); 3709s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3709s # g_variant_unref (value); 3709s # } 3709s # } 3709s # } 3709s # out: 3709s # return g_variant_builder_end (&builder); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3709s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3709s # 3709s # #else 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3709s # 3709s # #endif 3709s # static void 3709s # org_project_useful_interface_skeleton_finalize (GObject *object) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 3709s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3709s # if (skeleton->priv->changed_properties_idle_source != NULL) 3709s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3709s # g_main_context_unref (skeleton->priv->context); 3709s # g_mutex_clear (&skeleton->priv->lock); 3709s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 3709s # { 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 3709s # #else 3709s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 3709s # #endif 3709s # 3709s # g_mutex_init (&skeleton->priv->lock); 3709s # skeleton->priv->context = g_main_context_ref_thread_default (); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 3709s # { 3709s # GObjectClass *gobject_class; 3709s # GDBusInterfaceSkeletonClass *skeleton_class; 3709s # 3709s # gobject_class = G_OBJECT_CLASS (klass); 3709s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 3709s # 3709s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3709s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 3709s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 3709s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 3709s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3709s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 3709s # #endif 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_skeleton_new: 3709s # * 3709s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_skeleton_new (void) 3709s # { 3709s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 3709s # } 3709s # Error: 3709s # 3709s # /tmp/tmplo7nhxxl/tmp4m02psc7.xml: 3709s # <node> 3709s # <interface name="org.project.UsefulInterface"> 3709s # <method name="SingleArgMethodG"> 3709s # <arg name="arg_g" type="g" direction="out"/> 3709s # </method> 3709s # </interface> 3709s # </node> 3709s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplo7nhxxl/tmp4m02psc7.xml', '--output', '-', '--body'] 3709s # Return code: 0 3709s # Output: 3709s # /* 3709s # * This file is generated by gdbus-codegen, do not modify it. 3709s # * 3709s # * The license of this code is the same as for the D-Bus interface description 3709s # * it was derived from. Note that it links to GLib, so must comply with the 3709s # * LGPL linking clauses. 3709s # */ 3709s # 3709s # #ifdef HAVE_CONFIG_H 3709s # # include "config.h" 3709s # #endif 3709s # 3709s # #include <string.h> 3709s # #ifdef G_OS_UNIX 3709s # # include <gio/gunixfdlist.h> 3709s # #endif 3709s # 3709s # #ifdef G_ENABLE_DEBUG 3709s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3709s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3709s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3709s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3709s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3709s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3709s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3709s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3709s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3709s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3709s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3709s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3709s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3709s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3709s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3709s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3709s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3709s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3709s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3709s # #else /* !G_ENABLE_DEBUG */ 3709s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3709s # * Do not access GValues directly in your code. Instead, use the 3709s # * g_value_get_*() functions 3709s # */ 3709s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3709s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3709s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3709s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3709s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3709s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3709s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3709s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3709s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3709s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3709s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3709s # #endif /* !G_ENABLE_DEBUG */ 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusArgInfo parent_struct; 3709s # gboolean use_gvariant; 3709s # } _ExtendedGDBusArgInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusMethodInfo parent_struct; 3709s # const gchar *signal_name; 3709s # gboolean pass_fdlist; 3709s # } _ExtendedGDBusMethodInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusSignalInfo parent_struct; 3709s # const gchar *signal_name; 3709s # } _ExtendedGDBusSignalInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusPropertyInfo parent_struct; 3709s # const gchar *hyphen_name; 3709s # guint use_gvariant : 1; 3709s # guint emits_changed_signal : 1; 3709s # } _ExtendedGDBusPropertyInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusInterfaceInfo parent_struct; 3709s # const gchar *hyphen_name; 3709s # } _ExtendedGDBusInterfaceInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # const _ExtendedGDBusPropertyInfo *info; 3709s # guint prop_id; 3709s # GValue orig_value; /* the value before the change */ 3709s # } ChangedProperty; 3709s # 3709s # static void 3709s # _changed_property_free (ChangedProperty *data) 3709s # { 3709s # g_value_unset (&data->orig_value); 3709s # g_free (data); 3709s # } 3709s # 3709s # static gboolean 3709s # _g_strv_equal0 (gchar **a, gchar **b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # guint n; 3709s # if (a == NULL && b == NULL) 3709s # { 3709s # ret = TRUE; 3709s # goto out; 3709s # } 3709s # if (a == NULL || b == NULL) 3709s # goto out; 3709s # if (g_strv_length (a) != g_strv_length (b)) 3709s # goto out; 3709s # for (n = 0; a[n] != NULL; n++) 3709s # if (g_strcmp0 (a[n], b[n]) != 0) 3709s # goto out; 3709s # ret = TRUE; 3709s # out: 3709s # return ret; 3709s # } 3709s # 3709s # static gboolean 3709s # _g_variant_equal0 (GVariant *a, GVariant *b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # if (a == NULL && b == NULL) 3709s # { 3709s # ret = TRUE; 3709s # goto out; 3709s # } 3709s # if (a == NULL || b == NULL) 3709s # goto out; 3709s # ret = g_variant_equal (a, b); 3709s # out: 3709s # return ret; 3709s # } 3709s # 3709s # G_GNUC_UNUSED static gboolean 3709s # _g_value_equal (const GValue *a, const GValue *b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3709s # switch (G_VALUE_TYPE (a)) 3709s # { 3709s # case G_TYPE_BOOLEAN: 3709s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3709s # break; 3709s # case G_TYPE_UCHAR: 3709s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3709s # break; 3709s # case G_TYPE_INT: 3709s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3709s # break; 3709s # case G_TYPE_UINT: 3709s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3709s # break; 3709s # case G_TYPE_INT64: 3709s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3709s # break; 3709s # case G_TYPE_UINT64: 3709s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3709s # break; 3709s # case G_TYPE_DOUBLE: 3709s # { 3709s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3709s # gdouble da = g_value_get_double (a); 3709s # gdouble db = g_value_get_double (b); 3709s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3709s # } 3709s # break; 3709s # case G_TYPE_STRING: 3709s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3709s # break; 3709s # case G_TYPE_VARIANT: 3709s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3709s # break; 3709s # default: 3709s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3709s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3709s # else 3709s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3709s # break; 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static void 3709s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 3709s # GClosure *closure, 3709s # GValue *return_value, 3709s # unsigned int n_param_values, 3709s # const GValue *param_values, 3709s # void *invocation_hint G_GNUC_UNUSED, 3709s # void *marshal_data) 3709s # { 3709s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 3709s # (void *data1, 3709s # GDBusMethodInvocation *arg_method_invocation, 3709s # void *data2); 3709s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 3709s # GCClosure *cc = (GCClosure*) closure; 3709s # void *data1, *data2; 3709s # gboolean v_return; 3709s # 3709s # g_return_if_fail (return_value != NULL); 3709s # g_return_if_fail (n_param_values == 2); 3709s # 3709s # if (G_CCLOSURE_SWAP_DATA (closure)) 3709s # { 3709s # data1 = closure->data; 3709s # data2 = g_value_peek_pointer (param_values + 0); 3709s # } 3709s # else 3709s # { 3709s # data1 = g_value_peek_pointer (param_values + 0); 3709s # data2 = closure->data; 3709s # } 3709s # 3709s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 3709s # (marshal_data ? marshal_data : cc->callback); 3709s # 3709s # v_return = 3709s # callback (data1, 3709s # g_marshal_value_peek_object (param_values + 1), 3709s # data2); 3709s # 3709s # g_value_set_boolean (return_value, v_return); 3709s # } 3709s # 3709s # /* ------------------------------------------------------------------------ 3709s # * Code for interface org.project.UsefulInterface 3709s # * ------------------------------------------------------------------------ 3709s # */ 3709s # 3709s # /** 3709s # * SECTION:OrgProjectUsefulInterface 3709s # * @title: OrgProjectUsefulInterface 3709s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 3709s # * 3709s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface in C. 3709s # */ 3709s # 3709s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 3709s # 3709s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_arg_g = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "arg_g", 3709s # (gchar *) "g", 3709s # NULL 3709s # }, 3709s # FALSE 3709s # }; 3709s # 3709s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_pointers[] = 3709s # { 3709s # &_org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_arg_g.parent_struct, 3709s # NULL 3709s # }; 3709s # 3709s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_g = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "SingleArgMethodG", 3709s # NULL, 3709s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_pointers, 3709s # NULL 3709s # }, 3709s # "handle-single-arg-method-g", 3709s # FALSE 3709s # }; 3709s # 3709s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 3709s # { 3709s # &_org_project_useful_interface_method_info_single_arg_method_g.parent_struct, 3709s # NULL 3709s # }; 3709s # 3709s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "org.project.UsefulInterface", 3709s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 3709s # NULL, 3709s # NULL, 3709s # NULL 3709s # }, 3709s # "org-project-useful-interface", 3709s # }; 3709s # 3709s # 3709s # /** 3709s # * org_project_useful_interface_interface_info: 3709s # * 3709s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface. 3709s # * 3709s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3709s # */ 3709s # GDBusInterfaceInfo * 3709s # org_project_useful_interface_interface_info (void) 3709s # { 3709s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_override_properties: 3709s # * @klass: The class structure for a #GObject derived class. 3709s # * @property_id_begin: The property id to assign to the first overridden property. 3709s # * 3709s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 3709s # * The properties are overridden in the order they are defined. 3709s # * 3709s # * Returns: The last property id. 3709s # */ 3709s # guint 3709s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3709s # { 3709s # return property_id_begin - 1; 3709s # } 3709s # 3709s # 3709s # inline static void 3709s # org_project_useful_interface_method_marshal_single_arg_method_g ( 3709s # GClosure *closure, 3709s # GValue *return_value, 3709s # unsigned int n_param_values, 3709s # const GValue *param_values, 3709s # void *invocation_hint, 3709s # void *marshal_data) 3709s # { 3709s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 3709s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3709s # } 3709s # 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterface: 3709s # * 3709s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceIface: 3709s # * @parent_iface: The parent interface. 3709s # * @handle_single_arg_method_g: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-g signal. 3709s # * 3709s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # */ 3709s # 3709s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 3709s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 3709s # 3709s # static void 3709s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 3709s # { 3709s # /* GObject signals for incoming D-Bus method calls: */ 3709s # /** 3709s # * OrgProjectUsefulInterface::handle-single-arg-method-g: 3709s # * @object: A #OrgProjectUsefulInterface. 3709s # * @invocation: A #GDBusMethodInvocation. 3709s # * 3709s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodG">SingleArgMethodG()</link> D-Bus method. 3709s # * 3709s # * 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. 3709s # * 3709s # * 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. 3709s # */ 3709s # g_signal_new ("handle-single-arg-method-g", 3709s # G_TYPE_FROM_INTERFACE (iface), 3709s # G_SIGNAL_RUN_LAST, 3709s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_g), 3709s # g_signal_accumulator_true_handled, 3709s # NULL, 3709s # org_project_useful_interface_method_marshal_single_arg_method_g, 3709s # G_TYPE_BOOLEAN, 3709s # 1, 3709s # G_TYPE_DBUS_METHOD_INVOCATION); 3709s # 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_g: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodG">SingleArgMethodG()</link> D-Bus method on @proxy. 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_call_single_arg_method_g_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_call_single_arg_method_g_sync() for the synchronous, blocking version of this method. 3709s # */ 3709s # void 3709s # org_project_useful_interface_call_single_arg_method_g ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3709s # "SingleArgMethodG", 3709s # g_variant_new ("()"), 3709s # G_DBUS_CALL_FLAGS_NONE, 3709s # -1, 3709s # cancellable, 3709s # callback, 3709s # user_data); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_g_finish: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @out_arg_g: (out) (optional): Return location for return parameter or %NULL to ignore. 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_g(). 3709s # * @error: Return location for error or %NULL. 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_g(). 3709s # * 3709s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3709s # */ 3709s # gboolean 3709s # org_project_useful_interface_call_single_arg_method_g_finish ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # gchar **out_arg_g, 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GVariant *_ret; 3709s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3709s # if (_ret == NULL) 3709s # goto _out; 3709s # g_variant_get (_ret, 3709s # "(g)", 3709s # out_arg_g); 3709s # g_variant_unref (_ret); 3709s # _out: 3709s # return _ret != NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_g_sync: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @out_arg_g: (out) (optional): Return location for return parameter or %NULL to ignore. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL. 3709s # * 3709s # * Synchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodG">SingleArgMethodG()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_call_single_arg_method_g() for the asynchronous version of this method. 3709s # * 3709s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3709s # */ 3709s # gboolean 3709s # org_project_useful_interface_call_single_arg_method_g_sync ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # gchar **out_arg_g, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GVariant *_ret; 3709s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3709s # "SingleArgMethodG", 3709s # g_variant_new ("()"), 3709s # G_DBUS_CALL_FLAGS_NONE, 3709s # -1, 3709s # cancellable, 3709s # error); 3709s # if (_ret == NULL) 3709s # goto _out; 3709s # g_variant_get (_ret, 3709s # "(g)", 3709s # out_arg_g); 3709s # g_variant_unref (_ret); 3709s # _out: 3709s # return _ret != NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_complete_single_arg_method_g: 3709s # * @object: A #OrgProjectUsefulInterface. 3709s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3709s # * @arg_g: Parameter to return. 3709s # * 3709s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodG">SingleArgMethodG()</link> 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. 3709s # * 3709s # * This method will free @invocation, you cannot use it afterwards. 3709s # */ 3709s # void 3709s # org_project_useful_interface_complete_single_arg_method_g ( 3709s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 3709s # GDBusMethodInvocation *invocation, 3709s # const gchar *arg_g) 3709s # { 3709s # g_dbus_method_invocation_return_value (invocation, 3709s # g_variant_new ("(g)", 3709s # arg_g)); 3709s # } 3709s # 3709s # /* ------------------------------------------------------------------------ */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceProxy: 3709s # * 3709s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceProxyClass: 3709s # * @parent_class: The parent class. 3709s # * 3709s # * Class structure for #OrgProjectUsefulInterfaceProxy. 3709s # */ 3709s # 3709s # struct _OrgProjectUsefulInterfaceProxyPrivate 3709s # { 3709s # GData *qdata; 3709s # }; 3709s # 3709s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3709s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3709s # 3709s # #else 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3709s # 3709s # #endif 3709s # static void 3709s # org_project_useful_interface_proxy_finalize (GObject *object) 3709s # { 3709s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 3709s # g_datalist_clear (&proxy->priv->qdata); 3709s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3709s # guint prop_id G_GNUC_UNUSED, 3709s # GValue *value G_GNUC_UNUSED, 3709s # GParamSpec *pspec G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3709s # guint prop_id G_GNUC_UNUSED, 3709s # const GValue *value G_GNUC_UNUSED, 3709s # GParamSpec *pspec G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 3709s # const gchar *sender_name G_GNUC_UNUSED, 3709s # const gchar *signal_name, 3709s # GVariant *parameters) 3709s # { 3709s # _ExtendedGDBusSignalInfo *info; 3709s # GVariantIter iter; 3709s # GVariant *child; 3709s # GValue *paramv; 3709s # gsize num_params; 3709s # gsize n; 3709s # guint signal_id; 3709s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 3709s # if (info == NULL) 3709s # return; 3709s # num_params = g_variant_n_children (parameters); 3709s # paramv = g_new0 (GValue, num_params + 1); 3709s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_set_object (¶mv[0], proxy); 3709s # g_variant_iter_init (&iter, parameters); 3709s # n = 1; 3709s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3709s # { 3709s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3709s # if (arg_info->use_gvariant) 3709s # { 3709s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3709s # g_value_set_variant (¶mv[n], child); 3709s # n++; 3709s # } 3709s # else 3709s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3709s # g_variant_unref (child); 3709s # } 3709s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_signal_emitv (paramv, signal_id, 0, NULL); 3709s # for (n = 0; n < num_params + 1; n++) 3709s # g_value_unset (¶mv[n]); 3709s # g_free (paramv); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 3709s # GVariant *changed_properties, 3709s # const gchar *const *invalidated_properties) 3709s # { 3709s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 3709s # guint n; 3709s # const gchar *key; 3709s # GVariantIter *iter; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # g_variant_get (changed_properties, "a{sv}", &iter); 3709s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3709s # { 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 3709s # g_datalist_remove_data (&proxy->priv->qdata, key); 3709s # if (info != NULL) 3709s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3709s # } 3709s # g_variant_iter_free (iter); 3709s # for (n = 0; invalidated_properties[n] != NULL; n++) 3709s # { 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 3709s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3709s # if (info != NULL) 3709s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3709s # } 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 3709s # { 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 3709s # #else 3709s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 3709s # #endif 3709s # 3709s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 3709s # { 3709s # GObjectClass *gobject_class; 3709s # GDBusProxyClass *proxy_class; 3709s # 3709s # gobject_class = G_OBJECT_CLASS (klass); 3709s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 3709s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 3709s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 3709s # 3709s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3709s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 3709s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3709s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 3709s # #endif 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new: 3709s # * @connection: A #GDBusConnection. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new() for more details. 3709s # * 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3709s # */ 3709s # void 3709s # org_project_useful_interface_proxy_new ( 3709s # GDBusConnection *connection, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_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); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_finish: 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_finish ( 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GObject *ret; 3709s # GObject *source_object; 3709s # source_object = g_async_result_get_source_object (res); 3709s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3709s # g_object_unref (source_object); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_sync: 3709s # * @connection: A #GDBusConnection. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new_sync() for more details. 3709s # * 3709s # * The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_sync ( 3709s # GDBusConnection *connection, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GInitable *ret; 3709s # 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); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus: 3709s # * @bus_type: A #GBusType. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: A bus name (well-known or unique). 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3709s # * 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3709s # */ 3709s # void 3709s # org_project_useful_interface_proxy_new_for_bus ( 3709s # GBusType bus_type, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_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); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus_finish: 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_for_bus_finish ( 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GObject *ret; 3709s # GObject *source_object; 3709s # source_object = g_async_result_get_source_object (res); 3709s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3709s # g_object_unref (source_object); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus_sync: 3709s # * @bus_type: A #GBusType. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: A bus name (well-known or unique). 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3709s # * 3709s # * The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_for_bus_sync ( 3709s # GBusType bus_type, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GInitable *ret; 3709s # 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); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # 3709s # /* ------------------------------------------------------------------------ */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceSkeleton: 3709s # * 3709s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceSkeletonClass: 3709s # * @parent_class: The parent class. 3709s # * 3709s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 3709s # */ 3709s # 3709s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 3709s # { 3709s # GValue *properties; 3709s # GList *changed_properties; 3709s # GSource *changed_properties_idle_source; 3709s # GMainContext *context; 3709s # GMutex lock; 3709s # }; 3709s # 3709s # static void 3709s # _org_project_useful_interface_skeleton_handle_method_call ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name, 3709s # const gchar *method_name, 3709s # GVariant *parameters, 3709s # GDBusMethodInvocation *invocation, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # _ExtendedGDBusMethodInfo *info; 3709s # GVariantIter iter; 3709s # GVariant *child; 3709s # GValue *paramv; 3709s # gsize num_params; 3709s # guint num_extra; 3709s # gsize n; 3709s # guint signal_id; 3709s # GValue return_value = G_VALUE_INIT; 3709s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3709s # g_assert (info != NULL); 3709s # num_params = g_variant_n_children (parameters); 3709s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3709s # n = 0; 3709s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_set_object (¶mv[n++], skeleton); 3709s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3709s # g_value_set_object (¶mv[n++], invocation); 3709s # if (info->pass_fdlist) 3709s # { 3709s # #ifdef G_OS_UNIX 3709s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3709s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3709s # #else 3709s # g_assert_not_reached (); 3709s # #endif 3709s # } 3709s # g_variant_iter_init (&iter, parameters); 3709s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3709s # { 3709s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3709s # if (arg_info->use_gvariant) 3709s # { 3709s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3709s # g_value_set_variant (¶mv[n], child); 3709s # n++; 3709s # } 3709s # else 3709s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3709s # g_variant_unref (child); 3709s # } 3709s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3709s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3709s # if (!g_value_get_boolean (&return_value)) 3709s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3709s # g_value_unset (&return_value); 3709s # for (n = 0; n < num_params + num_extra; n++) 3709s # g_value_unset (¶mv[n]); 3709s # g_free (paramv); 3709s # } 3709s # 3709s # static GVariant * 3709s # _org_project_useful_interface_skeleton_handle_get_property ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name G_GNUC_UNUSED, 3709s # const gchar *property_name, 3709s # GError **error, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # GValue value = G_VALUE_INIT; 3709s # GParamSpec *pspec; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # GVariant *ret; 3709s # ret = NULL; 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3709s # g_assert (info != NULL); 3709s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3709s # if (pspec == NULL) 3709s # { 3709s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3709s # } 3709s # else 3709s # { 3709s # g_value_init (&value, pspec->value_type); 3709s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3709s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3709s # g_value_unset (&value); 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static gboolean 3709s # _org_project_useful_interface_skeleton_handle_set_property ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name G_GNUC_UNUSED, 3709s # const gchar *property_name, 3709s # GVariant *variant, 3709s # GError **error, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # GValue value = G_VALUE_INIT; 3709s # GParamSpec *pspec; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # gboolean ret; 3709s # ret = FALSE; 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3709s # g_assert (info != NULL); 3709s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3709s # if (pspec == NULL) 3709s # { 3709s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3709s # } 3709s # else 3709s # { 3709s # if (info->use_gvariant) 3709s # g_value_set_variant (&value, variant); 3709s # else 3709s # g_dbus_gvariant_to_gvalue (variant, &value); 3709s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3709s # g_value_unset (&value); 3709s # ret = TRUE; 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 3709s # { 3709s # _org_project_useful_interface_skeleton_handle_method_call, 3709s # _org_project_useful_interface_skeleton_handle_get_property, 3709s # _org_project_useful_interface_skeleton_handle_set_property, 3709s # {NULL} 3709s # }; 3709s # 3709s # static GDBusInterfaceInfo * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3709s # { 3709s # return org_project_useful_interface_interface_info (); 3709s # } 3709s # 3709s # static GDBusInterfaceVTable * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3709s # { 3709s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 3709s # } 3709s # 3709s # static GVariant * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 3709s # 3709s # GVariantBuilder builder; 3709s # guint n; 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3709s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3709s # #else 3709s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3709s # #endif 3709s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 3709s # goto out; 3709s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 3709s # { 3709s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 3709s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3709s # { 3709s # GVariant *value; 3709s # 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); 3709s # if (value != NULL) 3709s # { 3709s # g_variant_take_ref (value); 3709s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3709s # g_variant_unref (value); 3709s # } 3709s # } 3709s # } 3709s # out: 3709s # return g_variant_builder_end (&builder); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3709s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3709s # 3709s # #else 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3709s # 3709s # #endif 3709s # static void 3709s # org_project_useful_interface_skeleton_finalize (GObject *object) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 3709s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3709s # if (skeleton->priv->changed_properties_idle_source != NULL) 3709s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3709s # g_main_context_unref (skeleton->priv->context); 3709s # g_mutex_clear (&skeleton->priv->lock); 3709s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 3709s # { 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 3709s # #else 3709s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 3709s # #endif 3709s # 3709s # g_mutex_init (&skeleton->priv->lock); 3709s # skeleton->priv->context = g_main_context_ref_thread_default (); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 3709s # { 3709s # GObjectClass *gobject_class; 3709s # GDBusInterfaceSkeletonClass *skeleton_class; 3709s # 3709s # gobject_class = G_OBJECT_CLASS (klass); 3709s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 3709s # 3709s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3709s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 3709s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 3709s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 3709s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3709s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 3709s # #endif 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_skeleton_new: 3709s # * 3709s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_skeleton_new (void) 3709s # { 3709s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 3709s # } 3709s # Error: 3709s # 3709s # /tmp/tmplo7nhxxl/tmp9vn0p2ed.xml: 3709s # <node> 3709s # <interface name="org.project.UsefulInterface"> 3709s # <method name="SingleArgMethodH"> 3709s # <arg name="arg_h" type="h" direction="out"/> 3709s # </method> 3709s # </interface> 3709s # </node> 3709s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplo7nhxxl/tmp9vn0p2ed.xml', '--output', '-', '--body'] 3709s # Return code: 0 3709s # Output: 3709s # /* 3709s # * This file is generated by gdbus-codegen, do not modify it. 3709s # * 3709s # * The license of this code is the same as for the D-Bus interface description 3709s # * it was derived from. Note that it links to GLib, so must comply with the 3709s # * LGPL linking clauses. 3709s # */ 3709s # 3709s # #ifdef HAVE_CONFIG_H 3709s # # include "config.h" 3709s # #endif 3709s # 3709s # #include <string.h> 3709s # #ifdef G_OS_UNIX 3709s # # include <gio/gunixfdlist.h> 3709s # #endif 3709s # 3709s # #ifdef G_ENABLE_DEBUG 3709s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3709s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3709s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3709s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3709s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3709s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3709s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3709s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3709s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3709s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3709s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3709s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3709s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3709s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3709s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3709s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3709s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3709s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3709s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3709s # #else /* !G_ENABLE_DEBUG */ 3709s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3709s # * Do not access GValues directly in your code. Instead, use the 3709s # * g_value_get_*() functions 3709s # */ 3709s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3709s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3709s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3709s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3709s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3709s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3709s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3709s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3709s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3709s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3709s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3709s # #endif /* !G_ENABLE_DEBUG */ 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusArgInfo parent_struct; 3709s # gboolean use_gvariant; 3709s # } _ExtendedGDBusArgInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusMethodInfo parent_struct; 3709s # const gchar *signal_name; 3709s # gboolean pass_fdlist; 3709s # } _ExtendedGDBusMethodInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusSignalInfo parent_struct; 3709s # const gchar *signal_name; 3709s # } _ExtendedGDBusSignalInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusPropertyInfo parent_struct; 3709s # const gchar *hyphen_name; 3709s # guint use_gvariant : 1; 3709s # guint emits_changed_signal : 1; 3709s # } _ExtendedGDBusPropertyInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusInterfaceInfo parent_struct; 3709s # const gchar *hyphen_name; 3709s # } _ExtendedGDBusInterfaceInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # const _ExtendedGDBusPropertyInfo *info; 3709s # guint prop_id; 3709s # GValue orig_value; /* the value before the change */ 3709s # } ChangedProperty; 3709s # 3709s # static void 3709s # _changed_property_free (ChangedProperty *data) 3709s # { 3709s # g_value_unset (&data->orig_value); 3709s # g_free (data); 3709s # } 3709s # 3709s # static gboolean 3709s # _g_strv_equal0 (gchar **a, gchar **b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # guint n; 3709s # if (a == NULL && b == NULL) 3709s # { 3709s # ret = TRUE; 3709s # goto out; 3709s # } 3709s # if (a == NULL || b == NULL) 3709s # goto out; 3709s # if (g_strv_length (a) != g_strv_length (b)) 3709s # goto out; 3709s # for (n = 0; a[n] != NULL; n++) 3709s # if (g_strcmp0 (a[n], b[n]) != 0) 3709s # goto out; 3709s # ret = TRUE; 3709s # out: 3709s # return ret; 3709s # } 3709s # 3709s # static gboolean 3709s # _g_variant_equal0 (GVariant *a, GVariant *b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # if (a == NULL && b == NULL) 3709s # { 3709s # ret = TRUE; 3709s # goto out; 3709s # } 3709s # if (a == NULL || b == NULL) 3709s # goto out; 3709s # ret = g_variant_equal (a, b); 3709s # out: 3709s # return ret; 3709s # } 3709s # 3709s # G_GNUC_UNUSED static gboolean 3709s # _g_value_equal (const GValue *a, const GValue *b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3709s # switch (G_VALUE_TYPE (a)) 3709s # { 3709s # case G_TYPE_BOOLEAN: 3709s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3709s # break; 3709s # case G_TYPE_UCHAR: 3709s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3709s # break; 3709s # case G_TYPE_INT: 3709s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3709s # break; 3709s # case G_TYPE_UINT: 3709s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3709s # break; 3709s # case G_TYPE_INT64: 3709s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3709s # break; 3709s # case G_TYPE_UINT64: 3709s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3709s # break; 3709s # case G_TYPE_DOUBLE: 3709s # { 3709s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3709s # gdouble da = g_value_get_double (a); 3709s # gdouble db = g_value_get_double (b); 3709s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3709s # } 3709s # break; 3709s # case G_TYPE_STRING: 3709s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3709s # break; 3709s # case G_TYPE_VARIANT: 3709s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3709s # break; 3709s # default: 3709s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3709s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3709s # else 3709s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3709s # break; 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static void 3709s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 3709s # GClosure *closure, 3709s # GValue *return_value, 3709s # unsigned int n_param_values, 3709s # const GValue *param_values, 3709s # void *invocation_hint G_GNUC_UNUSED, 3709s # void *marshal_data) 3709s # { 3709s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 3709s # (void *data1, 3709s # GDBusMethodInvocation *arg_method_invocation, 3709s # void *data2); 3709s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 3709s # GCClosure *cc = (GCClosure*) closure; 3709s # void *data1, *data2; 3709s # gboolean v_return; 3709s # 3709s # g_return_if_fail (return_value != NULL); 3709s # g_return_if_fail (n_param_values == 2); 3709s # 3709s # if (G_CCLOSURE_SWAP_DATA (closure)) 3709s # { 3709s # data1 = closure->data; 3709s # data2 = g_value_peek_pointer (param_values + 0); 3709s # } 3709s # else 3709s # { 3709s # data1 = g_value_peek_pointer (param_values + 0); 3709s # data2 = closure->data; 3709s # } 3709s # 3709s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 3709s # (marshal_data ? marshal_data : cc->callback); 3709s # 3709s # v_return = 3709s # callback (data1, 3709s # g_marshal_value_peek_object (param_values + 1), 3709s # data2); 3709s # 3709s # g_value_set_boolean (return_value, v_return); 3709s # } 3709s # 3709s # /* ------------------------------------------------------------------------ 3709s # * Code for interface org.project.UsefulInterface 3709s # * ------------------------------------------------------------------------ 3709s # */ 3709s # 3709s # /** 3709s # * SECTION:OrgProjectUsefulInterface 3709s # * @title: OrgProjectUsefulInterface 3709s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 3709s # * 3709s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface in C. 3709s # */ 3709s # 3709s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 3709s # 3709s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_arg_h = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "arg_h", 3709s # (gchar *) "h", 3709s # NULL 3709s # }, 3709s # FALSE 3709s # }; 3709s # 3709s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_pointers[] = 3709s # { 3709s # &_org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_arg_h.parent_struct, 3709s # NULL 3709s # }; 3709s # 3709s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_h = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "SingleArgMethodH", 3709s # NULL, 3709s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_pointers, 3709s # NULL 3709s # }, 3709s # "handle-single-arg-method-h", 3709s # FALSE 3709s # }; 3709s # 3709s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 3709s # { 3709s # &_org_project_useful_interface_method_info_single_arg_method_h.parent_struct, 3709s # NULL 3709s # }; 3709s # 3709s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "org.project.UsefulInterface", 3709s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 3709s # NULL, 3709s # NULL, 3709s # NULL 3709s # }, 3709s # "org-project-useful-interface", 3709s # }; 3709s # 3709s # 3709s # /** 3709s # * org_project_useful_interface_interface_info: 3709s # * 3709s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface. 3709s # * 3709s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3709s # */ 3709s # GDBusInterfaceInfo * 3709s # org_project_useful_interface_interface_info (void) 3709s # { 3709s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_override_properties: 3709s # * @klass: The class structure for a #GObject derived class. 3709s # * @property_id_begin: The property id to assign to the first overridden property. 3709s # * 3709s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 3709s # * The properties are overridden in the order they are defined. 3709s # * 3709s # * Returns: The last property id. 3709s # */ 3709s # guint 3709s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3709s # { 3709s # return property_id_begin - 1; 3709s # } 3709s # 3709s # 3709s # inline static void 3709s # org_project_useful_interface_method_marshal_single_arg_method_h ( 3709s # GClosure *closure, 3709s # GValue *return_value, 3709s # unsigned int n_param_values, 3709s # const GValue *param_values, 3709s # void *invocation_hint, 3709s # void *marshal_data) 3709s # { 3709s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 3709s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3709s # } 3709s # 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterface: 3709s # * 3709s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceIface: 3709s # * @parent_iface: The parent interface. 3709s # * @handle_single_arg_method_h: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-h signal. 3709s # * 3709s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # */ 3709s # 3709s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 3709s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 3709s # 3709s # static void 3709s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 3709s # { 3709s # /* GObject signals for incoming D-Bus method calls: */ 3709s # /** 3709s # * OrgProjectUsefulInterface::handle-single-arg-method-h: 3709s # * @object: A #OrgProjectUsefulInterface. 3709s # * @invocation: A #GDBusMethodInvocation. 3709s # * 3709s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodH">SingleArgMethodH()</link> D-Bus method. 3709s # * 3709s # * 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. 3709s # * 3709s # * 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. 3709s # */ 3709s # g_signal_new ("handle-single-arg-method-h", 3709s # G_TYPE_FROM_INTERFACE (iface), 3709s # G_SIGNAL_RUN_LAST, 3709s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_h), 3709s # g_signal_accumulator_true_handled, 3709s # NULL, 3709s # org_project_useful_interface_method_marshal_single_arg_method_h, 3709s # G_TYPE_BOOLEAN, 3709s # 1, 3709s # G_TYPE_DBUS_METHOD_INVOCATION); 3709s # 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_h: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodH">SingleArgMethodH()</link> D-Bus method on @proxy. 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_call_single_arg_method_h_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_call_single_arg_method_h_sync() for the synchronous, blocking version of this method. 3709s # */ 3709s # void 3709s # org_project_useful_interface_call_single_arg_method_h ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3709s # "SingleArgMethodH", 3709s # g_variant_new ("()"), 3709s # G_DBUS_CALL_FLAGS_NONE, 3709s # -1, 3709s # cancellable, 3709s # callback, 3709s # user_data); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_h_finish: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @out_arg_h: (out) (optional): Return location for return parameter or %NULL to ignore. 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_h(). 3709s # * @error: Return location for error or %NULL. 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_h(). 3709s # * 3709s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3709s # */ 3709s # gboolean 3709s # org_project_useful_interface_call_single_arg_method_h_finish ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # GVariant **out_arg_h, 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GVariant *_ret; 3709s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3709s # if (_ret == NULL) 3709s # goto _out; 3709s # g_variant_get (_ret, 3709s # "(@h)", 3709s # out_arg_h); 3709s # g_variant_unref (_ret); 3709s # _out: 3709s # return _ret != NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_h_sync: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @out_arg_h: (out) (optional): Return location for return parameter or %NULL to ignore. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL. 3709s # * 3709s # * Synchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodH">SingleArgMethodH()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_call_single_arg_method_h() for the asynchronous version of this method. 3709s # * 3709s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3709s # */ 3709s # gboolean 3709s # org_project_useful_interface_call_single_arg_method_h_sync ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # GVariant **out_arg_h, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GVariant *_ret; 3709s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3709s # "SingleArgMethodH", 3709s # g_variant_new ("()"), 3709s # G_DBUS_CALL_FLAGS_NONE, 3709s # -1, 3709s # cancellable, 3709s # error); 3709s # if (_ret == NULL) 3709s # goto _out; 3709s # g_variant_get (_ret, 3709s # "(@h)", 3709s # out_arg_h); 3709s # g_variant_unref (_ret); 3709s # _out: 3709s # return _ret != NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_complete_single_arg_method_h: 3709s # * @object: A #OrgProjectUsefulInterface. 3709s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3709s # * @arg_h: Parameter to return. 3709s # * 3709s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodH">SingleArgMethodH()</link> 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. 3709s # * 3709s # * This method will free @invocation, you cannot use it afterwards. 3709s # */ 3709s # void 3709s # org_project_useful_interface_complete_single_arg_method_h ( 3709s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 3709s # GDBusMethodInvocation *invocation, 3709s # GVariant *arg_h) 3709s # { 3709s # g_dbus_method_invocation_return_value (invocation, 3709s # g_variant_new ("(@h)", 3709s # arg_h)); 3709s # } 3709s # 3709s # /* ------------------------------------------------------------------------ */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceProxy: 3709s # * 3709s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceProxyClass: 3709s # * @parent_class: The parent class. 3709s # * 3709s # * Class structure for #OrgProjectUsefulInterfaceProxy. 3709s # */ 3709s # 3709s # struct _OrgProjectUsefulInterfaceProxyPrivate 3709s # { 3709s # GData *qdata; 3709s # }; 3709s # 3709s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3709s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3709s # 3709s # #else 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3709s # 3709s # #endif 3709s # static void 3709s # org_project_useful_interface_proxy_finalize (GObject *object) 3709s # { 3709s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 3709s # g_datalist_clear (&proxy->priv->qdata); 3709s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3709s # guint prop_id G_GNUC_UNUSED, 3709s # GValue *value G_GNUC_UNUSED, 3709s # GParamSpec *pspec G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3709s # guint prop_id G_GNUC_UNUSED, 3709s # const GValue *value G_GNUC_UNUSED, 3709s # GParamSpec *pspec G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 3709s # const gchar *sender_name G_GNUC_UNUSED, 3709s # const gchar *signal_name, 3709s # GVariant *parameters) 3709s # { 3709s # _ExtendedGDBusSignalInfo *info; 3709s # GVariantIter iter; 3709s # GVariant *child; 3709s # GValue *paramv; 3709s # gsize num_params; 3709s # gsize n; 3709s # guint signal_id; 3709s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 3709s # if (info == NULL) 3709s # return; 3709s # num_params = g_variant_n_children (parameters); 3709s # paramv = g_new0 (GValue, num_params + 1); 3709s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_set_object (¶mv[0], proxy); 3709s # g_variant_iter_init (&iter, parameters); 3709s # n = 1; 3709s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3709s # { 3709s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3709s # if (arg_info->use_gvariant) 3709s # { 3709s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3709s # g_value_set_variant (¶mv[n], child); 3709s # n++; 3709s # } 3709s # else 3709s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3709s # g_variant_unref (child); 3709s # } 3709s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_signal_emitv (paramv, signal_id, 0, NULL); 3709s # for (n = 0; n < num_params + 1; n++) 3709s # g_value_unset (¶mv[n]); 3709s # g_free (paramv); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 3709s # GVariant *changed_properties, 3709s # const gchar *const *invalidated_properties) 3709s # { 3709s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 3709s # guint n; 3709s # const gchar *key; 3709s # GVariantIter *iter; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # g_variant_get (changed_properties, "a{sv}", &iter); 3709s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3709s # { 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 3709s # g_datalist_remove_data (&proxy->priv->qdata, key); 3709s # if (info != NULL) 3709s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3709s # } 3709s # g_variant_iter_free (iter); 3709s # for (n = 0; invalidated_properties[n] != NULL; n++) 3709s # { 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 3709s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3709s # if (info != NULL) 3709s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3709s # } 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 3709s # { 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 3709s # #else 3709s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 3709s # #endif 3709s # 3709s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 3709s # { 3709s # GObjectClass *gobject_class; 3709s # GDBusProxyClass *proxy_class; 3709s # 3709s # gobject_class = G_OBJECT_CLASS (klass); 3709s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 3709s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 3709s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 3709s # 3709s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3709s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 3709s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3709s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 3709s # #endif 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new: 3709s # * @connection: A #GDBusConnection. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new() for more details. 3709s # * 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3709s # */ 3709s # void 3709s # org_project_useful_interface_proxy_new ( 3709s # GDBusConnection *connection, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_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); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_finish: 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_finish ( 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GObject *ret; 3709s # GObject *source_object; 3709s # source_object = g_async_result_get_source_object (res); 3709s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3709s # g_object_unref (source_object); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_sync: 3709s # * @connection: A #GDBusConnection. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new_sync() for more details. 3709s # * 3709s # * The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_sync ( 3709s # GDBusConnection *connection, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GInitable *ret; 3709s # 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); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus: 3709s # * @bus_type: A #GBusType. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: A bus name (well-known or unique). 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3709s # * 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3709s # */ 3709s # void 3709s # org_project_useful_interface_proxy_new_for_bus ( 3709s # GBusType bus_type, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_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); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus_finish: 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_for_bus_finish ( 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GObject *ret; 3709s # GObject *source_object; 3709s # source_object = g_async_result_get_source_object (res); 3709s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3709s # g_object_unref (source_object); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus_sync: 3709s # * @bus_type: A #GBusType. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: A bus name (well-known or unique). 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3709s # * 3709s # * The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_for_bus_sync ( 3709s # GBusType bus_type, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GInitable *ret; 3709s # 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); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # 3709s # /* ------------------------------------------------------------------------ */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceSkeleton: 3709s # * 3709s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceSkeletonClass: 3709s # * @parent_class: The parent class. 3709s # * 3709s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 3709s # */ 3709s # 3709s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 3709s # { 3709s # GValue *properties; 3709s # GList *changed_properties; 3709s # GSource *changed_properties_idle_source; 3709s # GMainContext *context; 3709s # GMutex lock; 3709s # }; 3709s # 3709s # static void 3709s # _org_project_useful_interface_skeleton_handle_method_call ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name, 3709s # const gchar *method_name, 3709s # GVariant *parameters, 3709s # GDBusMethodInvocation *invocation, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # _ExtendedGDBusMethodInfo *info; 3709s # GVariantIter iter; 3709s # GVariant *child; 3709s # GValue *paramv; 3709s # gsize num_params; 3709s # guint num_extra; 3709s # gsize n; 3709s # guint signal_id; 3709s # GValue return_value = G_VALUE_INIT; 3709s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3709s # g_assert (info != NULL); 3709s # num_params = g_variant_n_children (parameters); 3709s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3709s # n = 0; 3709s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_set_object (¶mv[n++], skeleton); 3709s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3709s # g_value_set_object (¶mv[n++], invocation); 3709s # if (info->pass_fdlist) 3709s # { 3709s # #ifdef G_OS_UNIX 3709s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3709s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3709s # #else 3709s # g_assert_not_reached (); 3709s # #endif 3709s # } 3709s # g_variant_iter_init (&iter, parameters); 3709s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3709s # { 3709s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3709s # if (arg_info->use_gvariant) 3709s # { 3709s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3709s # g_value_set_variant (¶mv[n], child); 3709s # n++; 3709s # } 3709s # else 3709s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3709s # g_variant_unref (child); 3709s # } 3709s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3709s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3709s # if (!g_value_get_boolean (&return_value)) 3709s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3709s # g_value_unset (&return_value); 3709s # for (n = 0; n < num_params + num_extra; n++) 3709s # g_value_unset (¶mv[n]); 3709s # g_free (paramv); 3709s # } 3709s # 3709s # static GVariant * 3709s # _org_project_useful_interface_skeleton_handle_get_property ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name G_GNUC_UNUSED, 3709s # const gchar *property_name, 3709s # GError **error, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # GValue value = G_VALUE_INIT; 3709s # GParamSpec *pspec; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # GVariant *ret; 3709s # ret = NULL; 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3709s # g_assert (info != NULL); 3709s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3709s # if (pspec == NULL) 3709s # { 3709s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3709s # } 3709s # else 3709s # { 3709s # g_value_init (&value, pspec->value_type); 3709s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3709s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3709s # g_value_unset (&value); 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static gboolean 3709s # _org_project_useful_interface_skeleton_handle_set_property ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name G_GNUC_UNUSED, 3709s # const gchar *property_name, 3709s # GVariant *variant, 3709s # GError **error, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # GValue value = G_VALUE_INIT; 3709s # GParamSpec *pspec; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # gboolean ret; 3709s # ret = FALSE; 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3709s # g_assert (info != NULL); 3709s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3709s # if (pspec == NULL) 3709s # { 3709s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3709s # } 3709s # else 3709s # { 3709s # if (info->use_gvariant) 3709s # g_value_set_variant (&value, variant); 3709s # else 3709s # g_dbus_gvariant_to_gvalue (variant, &value); 3709s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3709s # g_value_unset (&value); 3709s # ret = TRUE; 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 3709s # { 3709s # _org_project_useful_interface_skeleton_handle_method_call, 3709s # _org_project_useful_interface_skeleton_handle_get_property, 3709s # _org_project_useful_interface_skeleton_handle_set_property, 3709s # {NULL} 3709s # }; 3709s # 3709s # static GDBusInterfaceInfo * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3709s # { 3709s # return org_project_useful_interface_interface_info (); 3709s # } 3709s # 3709s # static GDBusInterfaceVTable * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3709s # { 3709s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 3709s # } 3709s # 3709s # static GVariant * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 3709s # 3709s # GVariantBuilder builder; 3709s # guint n; 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3709s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3709s # #else 3709s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3709s # #endif 3709s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 3709s # goto out; 3709s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 3709s # { 3709s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 3709s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3709s # { 3709s # GVariant *value; 3709s # 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); 3709s # if (value != NULL) 3709s # { 3709s # g_variant_take_ref (value); 3709s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3709s # g_variant_unref (value); 3709s # } 3709s # } 3709s # } 3709s # out: 3709s # return g_variant_builder_end (&builder); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3709s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3709s # 3709s # #else 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3709s # 3709s # #endif 3709s # static void 3709s # org_project_useful_interface_skeleton_finalize (GObject *object) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 3709s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3709s # if (skeleton->priv->changed_properties_idle_source != NULL) 3709s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3709s # g_main_context_unref (skeleton->priv->context); 3709s # g_mutex_clear (&skeleton->priv->lock); 3709s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 3709s # { 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 3709s # #else 3709s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 3709s # #endif 3709s # 3709s # g_mutex_init (&skeleton->priv->lock); 3709s # skeleton->priv->context = g_main_context_ref_thread_default (); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 3709s # { 3709s # GObjectClass *gobject_class; 3709s # GDBusInterfaceSkeletonClass *skeleton_class; 3709s # 3709s # gobject_class = G_OBJECT_CLASS (klass); 3709s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 3709s # 3709s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3709s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 3709s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 3709s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 3709s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3709s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 3709s # #endif 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_skeleton_new: 3709s # * 3709s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_skeleton_new (void) 3709s # { 3709s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 3709s # } 3709s # Error: 3709s # 3709s # /tmp/tmplo7nhxxl/tmpfzac13vv.xml: 3709s # <node> 3709s # <interface name="org.project.UsefulInterface"> 3709s # <method name="SingleArgMethodAy"> 3709s # <arg name="arg_ay" type="ay" direction="out"/> 3709s # </method> 3709s # </interface> 3709s # </node> 3709s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplo7nhxxl/tmpfzac13vv.xml', '--output', '-', '--body'] 3709s # Return code: 0 3709s # Output: 3709s # /* 3709s # * This file is generated by gdbus-codegen, do not modify it. 3709s # * 3709s # * The license of this code is the same as for the D-Bus interface description 3709s # * it was derived from. Note that it links to GLib, so must comply with the 3709s # * LGPL linking clauses. 3709s # */ 3709s # 3709s # #ifdef HAVE_CONFIG_H 3709s # # include "config.h" 3709s # #endif 3709s # 3709s # #include <string.h> 3709s # #ifdef G_OS_UNIX 3709s # # include <gio/gunixfdlist.h> 3709s # #endif 3709s # 3709s # #ifdef G_ENABLE_DEBUG 3709s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3709s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3709s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3709s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3709s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3709s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3709s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3709s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3709s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3709s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3709s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3709s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3709s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3709s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3709s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3709s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3709s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3709s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3709s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3709s # #else /* !G_ENABLE_DEBUG */ 3709s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3709s # * Do not access GValues directly in your code. Instead, use the 3709s # * g_value_get_*() functions 3709s # */ 3709s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3709s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3709s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3709s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3709s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3709s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3709s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3709s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3709s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3709s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3709s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3709s # #endif /* !G_ENABLE_DEBUG */ 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusArgInfo parent_struct; 3709s # gboolean use_gvariant; 3709s # } _ExtendedGDBusArgInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusMethodInfo parent_struct; 3709s # const gchar *signal_name; 3709s # gboolean pass_fdlist; 3709s # } _ExtendedGDBusMethodInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusSignalInfo parent_struct; 3709s # const gchar *signal_name; 3709s # } _ExtendedGDBusSignalInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusPropertyInfo parent_struct; 3709s # const gchar *hyphen_name; 3709s # guint use_gvariant : 1; 3709s # guint emits_changed_signal : 1; 3709s # } _ExtendedGDBusPropertyInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusInterfaceInfo parent_struct; 3709s # const gchar *hyphen_name; 3709s # } _ExtendedGDBusInterfaceInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # const _ExtendedGDBusPropertyInfo *info; 3709s # guint prop_id; 3709s # GValue orig_value; /* the value before the change */ 3709s # } ChangedProperty; 3709s # 3709s # static void 3709s # _changed_property_free (ChangedProperty *data) 3709s # { 3709s # g_value_unset (&data->orig_value); 3709s # g_free (data); 3709s # } 3709s # 3709s # static gboolean 3709s # _g_strv_equal0 (gchar **a, gchar **b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # guint n; 3709s # if (a == NULL && b == NULL) 3709s # { 3709s # ret = TRUE; 3709s # goto out; 3709s # } 3709s # if (a == NULL || b == NULL) 3709s # goto out; 3709s # if (g_strv_length (a) != g_strv_length (b)) 3709s # goto out; 3709s # for (n = 0; a[n] != NULL; n++) 3709s # if (g_strcmp0 (a[n], b[n]) != 0) 3709s # goto out; 3709s # ret = TRUE; 3709s # out: 3709s # return ret; 3709s # } 3709s # 3709s # static gboolean 3709s # _g_variant_equal0 (GVariant *a, GVariant *b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # if (a == NULL && b == NULL) 3709s # { 3709s # ret = TRUE; 3709s # goto out; 3709s # } 3709s # if (a == NULL || b == NULL) 3709s # goto out; 3709s # ret = g_variant_equal (a, b); 3709s # out: 3709s # return ret; 3709s # } 3709s # 3709s # G_GNUC_UNUSED static gboolean 3709s # _g_value_equal (const GValue *a, const GValue *b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3709s # switch (G_VALUE_TYPE (a)) 3709s # { 3709s # case G_TYPE_BOOLEAN: 3709s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3709s # break; 3709s # case G_TYPE_UCHAR: 3709s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3709s # break; 3709s # case G_TYPE_INT: 3709s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3709s # break; 3709s # case G_TYPE_UINT: 3709s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3709s # break; 3709s # case G_TYPE_INT64: 3709s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3709s # break; 3709s # case G_TYPE_UINT64: 3709s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3709s # break; 3709s # case G_TYPE_DOUBLE: 3709s # { 3709s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3709s # gdouble da = g_value_get_double (a); 3709s # gdouble db = g_value_get_double (b); 3709s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3709s # } 3709s # break; 3709s # case G_TYPE_STRING: 3709s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3709s # break; 3709s # case G_TYPE_VARIANT: 3709s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3709s # break; 3709s # default: 3709s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3709s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3709s # else 3709s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3709s # break; 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static void 3709s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 3709s # GClosure *closure, 3709s # GValue *return_value, 3709s # unsigned int n_param_values, 3709s # const GValue *param_values, 3709s # void *invocation_hint G_GNUC_UNUSED, 3709s # void *marshal_data) 3709s # { 3709s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 3709s # (void *data1, 3709s # GDBusMethodInvocation *arg_method_invocation, 3709s # void *data2); 3709s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 3709s # GCClosure *cc = (GCClosure*) closure; 3709s # void *data1, *data2; 3709s # gboolean v_return; 3709s # 3709s # g_return_if_fail (return_value != NULL); 3709s # g_return_if_fail (n_param_values == 2); 3709s # 3709s # if (G_CCLOSURE_SWAP_DATA (closure)) 3709s # { 3709s # data1 = closure->data; 3709s # data2 = g_value_peek_pointer (param_values + 0); 3709s # } 3709s # else 3709s # { 3709s # data1 = g_value_peek_pointer (param_values + 0); 3709s # data2 = closure->data; 3709s # } 3709s # 3709s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 3709s # (marshal_data ? marshal_data : cc->callback); 3709s # 3709s # v_return = 3709s # callback (data1, 3709s # g_marshal_value_peek_object (param_values + 1), 3709s # data2); 3709s # 3709s # g_value_set_boolean (return_value, v_return); 3709s # } 3709s # 3709s # /* ------------------------------------------------------------------------ 3709s # * Code for interface org.project.UsefulInterface 3709s # * ------------------------------------------------------------------------ 3709s # */ 3709s # 3709s # /** 3709s # * SECTION:OrgProjectUsefulInterface 3709s # * @title: OrgProjectUsefulInterface 3709s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 3709s # * 3709s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface in C. 3709s # */ 3709s # 3709s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 3709s # 3709s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_arg_ay = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "arg_ay", 3709s # (gchar *) "ay", 3709s # NULL 3709s # }, 3709s # FALSE 3709s # }; 3709s # 3709s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_pointers[] = 3709s # { 3709s # &_org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_arg_ay.parent_struct, 3709s # NULL 3709s # }; 3709s # 3709s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ay = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "SingleArgMethodAy", 3709s # NULL, 3709s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_pointers, 3709s # NULL 3709s # }, 3709s # "handle-single-arg-method-ay", 3709s # FALSE 3709s # }; 3709s # 3709s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 3709s # { 3709s # &_org_project_useful_interface_method_info_single_arg_method_ay.parent_struct, 3709s # NULL 3709s # }; 3709s # 3709s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "org.project.UsefulInterface", 3709s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 3709s # NULL, 3709s # NULL, 3709s # NULL 3709s # }, 3709s # "org-project-useful-interface", 3709s # }; 3709s # 3709s # 3709s # /** 3709s # * org_project_useful_interface_interface_info: 3709s # * 3709s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface. 3709s # * 3709s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3709s # */ 3709s # GDBusInterfaceInfo * 3709s # org_project_useful_interface_interface_info (void) 3709s # { 3709s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_override_properties: 3709s # * @klass: The class structure for a #GObject derived class. 3709s # * @property_id_begin: The property id to assign to the first overridden property. 3709s # * 3709s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 3709s # * The properties are overridden in the order they are defined. 3709s # * 3709s # * Returns: The last property id. 3709s # */ 3709s # guint 3709s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3709s # { 3709s # return property_id_begin - 1; 3709s # } 3709s # 3709s # 3709s # inline static void 3709s # org_project_useful_interface_method_marshal_single_arg_method_ay ( 3709s # GClosure *closure, 3709s # GValue *return_value, 3709s # unsigned int n_param_values, 3709s # const GValue *param_values, 3709s # void *invocation_hint, 3709s # void *marshal_data) 3709s # { 3709s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 3709s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3709s # } 3709s # 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterface: 3709s # * 3709s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceIface: 3709s # * @parent_iface: The parent interface. 3709s # * @handle_single_arg_method_ay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ay signal. 3709s # * 3709s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # */ 3709s # 3709s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 3709s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 3709s # 3709s # static void 3709s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 3709s # { 3709s # /* GObject signals for incoming D-Bus method calls: */ 3709s # /** 3709s # * OrgProjectUsefulInterface::handle-single-arg-method-ay: 3709s # * @object: A #OrgProjectUsefulInterface. 3709s # * @invocation: A #GDBusMethodInvocation. 3709s # * 3709s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodAy">SingleArgMethodAy()</link> D-Bus method. 3709s # * 3709s # * 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. 3709s # * 3709s # * 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. 3709s # */ 3709s # g_signal_new ("handle-single-arg-method-ay", 3709s # G_TYPE_FROM_INTERFACE (iface), 3709s # G_SIGNAL_RUN_LAST, 3709s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ay), 3709s # g_signal_accumulator_true_handled, 3709s # NULL, 3709s # org_project_useful_interface_method_marshal_single_arg_method_ay, 3709s # G_TYPE_BOOLEAN, 3709s # 1, 3709s # G_TYPE_DBUS_METHOD_INVOCATION); 3709s # 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_ay: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodAy">SingleArgMethodAy()</link> D-Bus method on @proxy. 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_call_single_arg_method_ay_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_call_single_arg_method_ay_sync() for the synchronous, blocking version of this method. 3709s # */ 3709s # void 3709s # org_project_useful_interface_call_single_arg_method_ay ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3709s # "SingleArgMethodAy", 3709s # g_variant_new ("()"), 3709s # G_DBUS_CALL_FLAGS_NONE, 3709s # -1, 3709s # cancellable, 3709s # callback, 3709s # user_data); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_ay_finish: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @out_arg_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ay(). 3709s # * @error: Return location for error or %NULL. 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ay(). 3709s # * 3709s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3709s # */ 3709s # gboolean 3709s # org_project_useful_interface_call_single_arg_method_ay_finish ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # gchar **out_arg_ay, 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GVariant *_ret; 3709s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3709s # if (_ret == NULL) 3709s # goto _out; 3709s # g_variant_get (_ret, 3709s # "(^ay)", 3709s # out_arg_ay); 3709s # g_variant_unref (_ret); 3709s # _out: 3709s # return _ret != NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_ay_sync: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @out_arg_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL. 3709s # * 3709s # * Synchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodAy">SingleArgMethodAy()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_call_single_arg_method_ay() for the asynchronous version of this method. 3709s # * 3709s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3709s # */ 3709s # gboolean 3709s # org_project_useful_interface_call_single_arg_method_ay_sync ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # gchar **out_arg_ay, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GVariant *_ret; 3709s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3709s # "SingleArgMethodAy", 3709s # g_variant_new ("()"), 3709s # G_DBUS_CALL_FLAGS_NONE, 3709s # -1, 3709s # cancellable, 3709s # error); 3709s # if (_ret == NULL) 3709s # goto _out; 3709s # g_variant_get (_ret, 3709s # "(^ay)", 3709s # out_arg_ay); 3709s # g_variant_unref (_ret); 3709s # _out: 3709s # return _ret != NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_complete_single_arg_method_ay: 3709s # * @object: A #OrgProjectUsefulInterface. 3709s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3709s # * @arg_ay: Parameter to return. 3709s # * 3709s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodAy">SingleArgMethodAy()</link> 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. 3709s # * 3709s # * This method will free @invocation, you cannot use it afterwards. 3709s # */ 3709s # void 3709s # org_project_useful_interface_complete_single_arg_method_ay ( 3709s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 3709s # GDBusMethodInvocation *invocation, 3709s # const gchar *arg_ay) 3709s # { 3709s # g_dbus_method_invocation_return_value (invocation, 3709s # g_variant_new ("(^ay)", 3709s # arg_ay)); 3709s # } 3709s # 3709s # /* ------------------------------------------------------------------------ */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceProxy: 3709s # * 3709s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceProxyClass: 3709s # * @parent_class: The parent class. 3709s # * 3709s # * Class structure for #OrgProjectUsefulInterfaceProxy. 3709s # */ 3709s # 3709s # struct _OrgProjectUsefulInterfaceProxyPrivate 3709s # { 3709s # GData *qdata; 3709s # }; 3709s # 3709s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3709s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3709s # 3709s # #else 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3709s # 3709s # #endif 3709s # static void 3709s # org_project_useful_interface_proxy_finalize (GObject *object) 3709s # { 3709s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 3709s # g_datalist_clear (&proxy->priv->qdata); 3709s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3709s # guint prop_id G_GNUC_UNUSED, 3709s # GValue *value G_GNUC_UNUSED, 3709s # GParamSpec *pspec G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3709s # guint prop_id G_GNUC_UNUSED, 3709s # const GValue *value G_GNUC_UNUSED, 3709s # GParamSpec *pspec G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 3709s # const gchar *sender_name G_GNUC_UNUSED, 3709s # const gchar *signal_name, 3709s # GVariant *parameters) 3709s # { 3709s # _ExtendedGDBusSignalInfo *info; 3709s # GVariantIter iter; 3709s # GVariant *child; 3709s # GValue *paramv; 3709s # gsize num_params; 3709s # gsize n; 3709s # guint signal_id; 3709s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 3709s # if (info == NULL) 3709s # return; 3709s # num_params = g_variant_n_children (parameters); 3709s # paramv = g_new0 (GValue, num_params + 1); 3709s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_set_object (¶mv[0], proxy); 3709s # g_variant_iter_init (&iter, parameters); 3709s # n = 1; 3709s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3709s # { 3709s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3709s # if (arg_info->use_gvariant) 3709s # { 3709s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3709s # g_value_set_variant (¶mv[n], child); 3709s # n++; 3709s # } 3709s # else 3709s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3709s # g_variant_unref (child); 3709s # } 3709s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_signal_emitv (paramv, signal_id, 0, NULL); 3709s # for (n = 0; n < num_params + 1; n++) 3709s # g_value_unset (¶mv[n]); 3709s # g_free (paramv); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 3709s # GVariant *changed_properties, 3709s # const gchar *const *invalidated_properties) 3709s # { 3709s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 3709s # guint n; 3709s # const gchar *key; 3709s # GVariantIter *iter; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # g_variant_get (changed_properties, "a{sv}", &iter); 3709s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3709s # { 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 3709s # g_datalist_remove_data (&proxy->priv->qdata, key); 3709s # if (info != NULL) 3709s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3709s # } 3709s # g_variant_iter_free (iter); 3709s # for (n = 0; invalidated_properties[n] != NULL; n++) 3709s # { 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 3709s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3709s # if (info != NULL) 3709s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3709s # } 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 3709s # { 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 3709s # #else 3709s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 3709s # #endif 3709s # 3709s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 3709s # { 3709s # GObjectClass *gobject_class; 3709s # GDBusProxyClass *proxy_class; 3709s # 3709s # gobject_class = G_OBJECT_CLASS (klass); 3709s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 3709s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 3709s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 3709s # 3709s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3709s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 3709s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3709s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 3709s # #endif 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new: 3709s # * @connection: A #GDBusConnection. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new() for more details. 3709s # * 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3709s # */ 3709s # void 3709s # org_project_useful_interface_proxy_new ( 3709s # GDBusConnection *connection, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_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); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_finish: 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_finish ( 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GObject *ret; 3709s # GObject *source_object; 3709s # source_object = g_async_result_get_source_object (res); 3709s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3709s # g_object_unref (source_object); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_sync: 3709s # * @connection: A #GDBusConnection. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new_sync() for more details. 3709s # * 3709s # * The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_sync ( 3709s # GDBusConnection *connection, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GInitable *ret; 3709s # 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); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus: 3709s # * @bus_type: A #GBusType. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: A bus name (well-known or unique). 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3709s # * 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3709s # */ 3709s # void 3709s # org_project_useful_interface_proxy_new_for_bus ( 3709s # GBusType bus_type, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_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); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus_finish: 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_for_bus_finish ( 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GObject *ret; 3709s # GObject *source_object; 3709s # source_object = g_async_result_get_source_object (res); 3709s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3709s # g_object_unref (source_object); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus_sync: 3709s # * @bus_type: A #GBusType. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: A bus name (well-known or unique). 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3709s # * 3709s # * The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_for_bus_sync ( 3709s # GBusType bus_type, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GInitable *ret; 3709s # 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); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # 3709s # /* ------------------------------------------------------------------------ */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceSkeleton: 3709s # * 3709s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceSkeletonClass: 3709s # * @parent_class: The parent class. 3709s # * 3709s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 3709s # */ 3709s # 3709s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 3709s # { 3709s # GValue *properties; 3709s # GList *changed_properties; 3709s # GSource *changed_properties_idle_source; 3709s # GMainContext *context; 3709s # GMutex lock; 3709s # }; 3709s # 3709s # static void 3709s # _org_project_useful_interface_skeleton_handle_method_call ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name, 3709s # const gchar *method_name, 3709s # GVariant *parameters, 3709s # GDBusMethodInvocation *invocation, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # _ExtendedGDBusMethodInfo *info; 3709s # GVariantIter iter; 3709s # GVariant *child; 3709s # GValue *paramv; 3709s # gsize num_params; 3709s # guint num_extra; 3709s # gsize n; 3709s # guint signal_id; 3709s # GValue return_value = G_VALUE_INIT; 3709s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3709s # g_assert (info != NULL); 3709s # num_params = g_variant_n_children (parameters); 3709s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3709s # n = 0; 3709s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_set_object (¶mv[n++], skeleton); 3709s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3709s # g_value_set_object (¶mv[n++], invocation); 3709s # if (info->pass_fdlist) 3709s # { 3709s # #ifdef G_OS_UNIX 3709s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3709s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3709s # #else 3709s # g_assert_not_reached (); 3709s # #endif 3709s # } 3709s # g_variant_iter_init (&iter, parameters); 3709s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3709s # { 3709s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3709s # if (arg_info->use_gvariant) 3709s # { 3709s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3709s # g_value_set_variant (¶mv[n], child); 3709s # n++; 3709s # } 3709s # else 3709s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3709s # g_variant_unref (child); 3709s # } 3709s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3709s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3709s # if (!g_value_get_boolean (&return_value)) 3709s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3709s # g_value_unset (&return_value); 3709s # for (n = 0; n < num_params + num_extra; n++) 3709s # g_value_unset (¶mv[n]); 3709s # g_free (paramv); 3709s # } 3709s # 3709s # static GVariant * 3709s # _org_project_useful_interface_skeleton_handle_get_property ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name G_GNUC_UNUSED, 3709s # const gchar *property_name, 3709s # GError **error, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # GValue value = G_VALUE_INIT; 3709s # GParamSpec *pspec; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # GVariant *ret; 3709s # ret = NULL; 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3709s # g_assert (info != NULL); 3709s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3709s # if (pspec == NULL) 3709s # { 3709s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3709s # } 3709s # else 3709s # { 3709s # g_value_init (&value, pspec->value_type); 3709s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3709s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3709s # g_value_unset (&value); 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static gboolean 3709s # _org_project_useful_interface_skeleton_handle_set_property ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name G_GNUC_UNUSED, 3709s # const gchar *property_name, 3709s # GVariant *variant, 3709s # GError **error, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # GValue value = G_VALUE_INIT; 3709s # GParamSpec *pspec; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # gboolean ret; 3709s # ret = FALSE; 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3709s # g_assert (info != NULL); 3709s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3709s # if (pspec == NULL) 3709s # { 3709s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3709s # } 3709s # else 3709s # { 3709s # if (info->use_gvariant) 3709s # g_value_set_variant (&value, variant); 3709s # else 3709s # g_dbus_gvariant_to_gvalue (variant, &value); 3709s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3709s # g_value_unset (&value); 3709s # ret = TRUE; 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 3709s # { 3709s # _org_project_useful_interface_skeleton_handle_method_call, 3709s # _org_project_useful_interface_skeleton_handle_get_property, 3709s # _org_project_useful_interface_skeleton_handle_set_property, 3709s # {NULL} 3709s # }; 3709s # 3709s # static GDBusInterfaceInfo * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3709s # { 3709s # return org_project_useful_interface_interface_info (); 3709s # } 3709s # 3709s # static GDBusInterfaceVTable * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3709s # { 3709s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 3709s # } 3709s # 3709s # static GVariant * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 3709s # 3709s # GVariantBuilder builder; 3709s # guint n; 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3709s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3709s # #else 3709s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3709s # #endif 3709s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 3709s # goto out; 3709s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 3709s # { 3709s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 3709s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3709s # { 3709s # GVariant *value; 3709s # 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); 3709s # if (value != NULL) 3709s # { 3709s # g_variant_take_ref (value); 3709s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3709s # g_variant_unref (value); 3709s # } 3709s # } 3709s # } 3709s # out: 3709s # return g_variant_builder_end (&builder); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3709s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3709s # 3709s # #else 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3709s # 3709s # #endif 3709s # static void 3709s # org_project_useful_interface_skeleton_finalize (GObject *object) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 3709s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3709s # if (skeleton->priv->changed_properties_idle_source != NULL) 3709s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3709s # g_main_context_unref (skeleton->priv->context); 3709s # g_mutex_clear (&skeleton->priv->lock); 3709s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 3709s # { 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 3709s # #else 3709s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 3709s # #endif 3709s # 3709s # g_mutex_init (&skeleton->priv->lock); 3709s # skeleton->priv->context = g_main_context_ref_thread_default (); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 3709s # { 3709s # GObjectClass *gobject_class; 3709s # GDBusInterfaceSkeletonClass *skeleton_class; 3709s # 3709s # gobject_class = G_OBJECT_CLASS (klass); 3709s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 3709s # 3709s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3709s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 3709s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 3709s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 3709s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3709s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 3709s # #endif 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_skeleton_new: 3709s # * 3709s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_skeleton_new (void) 3709s # { 3709s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 3709s # } 3709s # Error: 3709s # 3709s # /tmp/tmplo7nhxxl/tmpv_sjrl8e.xml: 3709s # <node> 3709s # <interface name="org.project.UsefulInterface"> 3709s # <method name="SingleArgMethodAs"> 3709s # <arg name="arg_as" type="as" direction="out"/> 3709s # </method> 3709s # </interface> 3709s # </node> 3709s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplo7nhxxl/tmpv_sjrl8e.xml', '--output', '-', '--body'] 3709s # Return code: 0 3709s # Output: 3709s # /* 3709s # * This file is generated by gdbus-codegen, do not modify it. 3709s # * 3709s # * The license of this code is the same as for the D-Bus interface description 3709s # * it was derived from. Note that it links to GLib, so must comply with the 3709s # * LGPL linking clauses. 3709s # */ 3709s # 3709s # #ifdef HAVE_CONFIG_H 3709s # # include "config.h" 3709s # #endif 3709s # 3709s # #include <string.h> 3709s # #ifdef G_OS_UNIX 3709s # # include <gio/gunixfdlist.h> 3709s # #endif 3709s # 3709s # #ifdef G_ENABLE_DEBUG 3709s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3709s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3709s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3709s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3709s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3709s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3709s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3709s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3709s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3709s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3709s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3709s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3709s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3709s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3709s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3709s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3709s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3709s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3709s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3709s # #else /* !G_ENABLE_DEBUG */ 3709s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3709s # * Do not access GValues directly in your code. Instead, use the 3709s # * g_value_get_*() functions 3709s # */ 3709s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3709s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3709s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3709s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3709s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3709s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3709s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3709s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3709s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3709s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3709s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3709s # #endif /* !G_ENABLE_DEBUG */ 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusArgInfo parent_struct; 3709s # gboolean use_gvariant; 3709s # } _ExtendedGDBusArgInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusMethodInfo parent_struct; 3709s # const gchar *signal_name; 3709s # gboolean pass_fdlist; 3709s # } _ExtendedGDBusMethodInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusSignalInfo parent_struct; 3709s # const gchar *signal_name; 3709s # } _ExtendedGDBusSignalInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusPropertyInfo parent_struct; 3709s # const gchar *hyphen_name; 3709s # guint use_gvariant : 1; 3709s # guint emits_changed_signal : 1; 3709s # } _ExtendedGDBusPropertyInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusInterfaceInfo parent_struct; 3709s # const gchar *hyphen_name; 3709s # } _ExtendedGDBusInterfaceInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # const _ExtendedGDBusPropertyInfo *info; 3709s # guint prop_id; 3709s # GValue orig_value; /* the value before the change */ 3709s # } ChangedProperty; 3709s # 3709s # static void 3709s # _changed_property_free (ChangedProperty *data) 3709s # { 3709s # g_value_unset (&data->orig_value); 3709s # g_free (data); 3709s # } 3709s # 3709s # static gboolean 3709s # _g_strv_equal0 (gchar **a, gchar **b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # guint n; 3709s # if (a == NULL && b == NULL) 3709s # { 3709s # ret = TRUE; 3709s # goto out; 3709s # } 3709s # if (a == NULL || b == NULL) 3709s # goto out; 3709s # if (g_strv_length (a) != g_strv_length (b)) 3709s # goto out; 3709s # for (n = 0; a[n] != NULL; n++) 3709s # if (g_strcmp0 (a[n], b[n]) != 0) 3709s # goto out; 3709s # ret = TRUE; 3709s # out: 3709s # return ret; 3709s # } 3709s # 3709s # static gboolean 3709s # _g_variant_equal0 (GVariant *a, GVariant *b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # if (a == NULL && b == NULL) 3709s # { 3709s # ret = TRUE; 3709s # goto out; 3709s # } 3709s # if (a == NULL || b == NULL) 3709s # goto out; 3709s # ret = g_variant_equal (a, b); 3709s # out: 3709s # return ret; 3709s # } 3709s # 3709s # G_GNUC_UNUSED static gboolean 3709s # _g_value_equal (const GValue *a, const GValue *b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3709s # switch (G_VALUE_TYPE (a)) 3709s # { 3709s # case G_TYPE_BOOLEAN: 3709s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3709s # break; 3709s # case G_TYPE_UCHAR: 3709s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3709s # break; 3709s # case G_TYPE_INT: 3709s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3709s # break; 3709s # case G_TYPE_UINT: 3709s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3709s # break; 3709s # case G_TYPE_INT64: 3709s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3709s # break; 3709s # case G_TYPE_UINT64: 3709s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3709s # break; 3709s # case G_TYPE_DOUBLE: 3709s # { 3709s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3709s # gdouble da = g_value_get_double (a); 3709s # gdouble db = g_value_get_double (b); 3709s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3709s # } 3709s # break; 3709s # case G_TYPE_STRING: 3709s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3709s # break; 3709s # case G_TYPE_VARIANT: 3709s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3709s # break; 3709s # default: 3709s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3709s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3709s # else 3709s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3709s # break; 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static void 3709s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 3709s # GClosure *closure, 3709s # GValue *return_value, 3709s # unsigned int n_param_values, 3709s # const GValue *param_values, 3709s # void *invocation_hint G_GNUC_UNUSED, 3709s # void *marshal_data) 3709s # { 3709s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 3709s # (void *data1, 3709s # GDBusMethodInvocation *arg_method_invocation, 3709s # void *data2); 3709s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 3709s # GCClosure *cc = (GCClosure*) closure; 3709s # void *data1, *data2; 3709s # gboolean v_return; 3709s # 3709s # g_return_if_fail (return_value != NULL); 3709s # g_return_if_fail (n_param_values == 2); 3709s # 3709s # if (G_CCLOSURE_SWAP_DATA (closure)) 3709s # { 3709s # data1 = closure->data; 3709s # data2 = g_value_peek_pointer (param_values + 0); 3709s # } 3709s # else 3709s # { 3709s # data1 = g_value_peek_pointer (param_values + 0); 3709s # data2 = closure->data; 3709s # } 3709s # 3709s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 3709s # (marshal_data ? marshal_data : cc->callback); 3709s # 3709s # v_return = 3709s # callback (data1, 3709s # g_marshal_value_peek_object (param_values + 1), 3709s # data2); 3709s # 3709s # g_value_set_boolean (return_value, v_return); 3709s # } 3709s # 3709s # /* ------------------------------------------------------------------------ 3709s # * Code for interface org.project.UsefulInterface 3709s # * ------------------------------------------------------------------------ 3709s # */ 3709s # 3709s # /** 3709s # * SECTION:OrgProjectUsefulInterface 3709s # * @title: OrgProjectUsefulInterface 3709s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 3709s # * 3709s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface in C. 3709s # */ 3709s # 3709s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 3709s # 3709s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_arg_as = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "arg_as", 3709s # (gchar *) "as", 3709s # NULL 3709s # }, 3709s # FALSE 3709s # }; 3709s # 3709s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_pointers[] = 3709s # { 3709s # &_org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_arg_as.parent_struct, 3709s # NULL 3709s # }; 3709s # 3709s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_as = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "SingleArgMethodAs", 3709s # NULL, 3709s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_pointers, 3709s # NULL 3709s # }, 3709s # "handle-single-arg-method-as", 3709s # FALSE 3709s # }; 3709s # 3709s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 3709s # { 3709s # &_org_project_useful_interface_method_info_single_arg_method_as.parent_struct, 3709s # NULL 3709s # }; 3709s # 3709s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "org.project.UsefulInterface", 3709s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 3709s # NULL, 3709s # NULL, 3709s # NULL 3709s # }, 3709s # "org-project-useful-interface", 3709s # }; 3709s # 3709s # 3709s # /** 3709s # * org_project_useful_interface_interface_info: 3709s # * 3709s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface. 3709s # * 3709s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3709s # */ 3709s # GDBusInterfaceInfo * 3709s # org_project_useful_interface_interface_info (void) 3709s # { 3709s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_override_properties: 3709s # * @klass: The class structure for a #GObject derived class. 3709s # * @property_id_begin: The property id to assign to the first overridden property. 3709s # * 3709s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 3709s # * The properties are overridden in the order they are defined. 3709s # * 3709s # * Returns: The last property id. 3709s # */ 3709s # guint 3709s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3709s # { 3709s # return property_id_begin - 1; 3709s # } 3709s # 3709s # 3709s # inline static void 3709s # org_project_useful_interface_method_marshal_single_arg_method_as ( 3709s # GClosure *closure, 3709s # GValue *return_value, 3709s # unsigned int n_param_values, 3709s # const GValue *param_values, 3709s # void *invocation_hint, 3709s # void *marshal_data) 3709s # { 3709s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 3709s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3709s # } 3709s # 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterface: 3709s # * 3709s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceIface: 3709s # * @parent_iface: The parent interface. 3709s # * @handle_single_arg_method_as: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-as signal. 3709s # * 3709s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # */ 3709s # 3709s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 3709s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 3709s # 3709s # static void 3709s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 3709s # { 3709s # /* GObject signals for incoming D-Bus method calls: */ 3709s # /** 3709s # * OrgProjectUsefulInterface::handle-single-arg-method-as: 3709s # * @object: A #OrgProjectUsefulInterface. 3709s # * @invocation: A #GDBusMethodInvocation. 3709s # * 3709s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodAs">SingleArgMethodAs()</link> D-Bus method. 3709s # * 3709s # * 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. 3709s # * 3709s # * 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. 3709s # */ 3709s # g_signal_new ("handle-single-arg-method-as", 3709s # G_TYPE_FROM_INTERFACE (iface), 3709s # G_SIGNAL_RUN_LAST, 3709s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_as), 3709s # g_signal_accumulator_true_handled, 3709s # NULL, 3709s # org_project_useful_interface_method_marshal_single_arg_method_as, 3709s # G_TYPE_BOOLEAN, 3709s # 1, 3709s # G_TYPE_DBUS_METHOD_INVOCATION); 3709s # 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_as: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodAs">SingleArgMethodAs()</link> D-Bus method on @proxy. 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_call_single_arg_method_as_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_call_single_arg_method_as_sync() for the synchronous, blocking version of this method. 3709s # */ 3709s # void 3709s # org_project_useful_interface_call_single_arg_method_as ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3709s # "SingleArgMethodAs", 3709s # g_variant_new ("()"), 3709s # G_DBUS_CALL_FLAGS_NONE, 3709s # -1, 3709s # cancellable, 3709s # callback, 3709s # user_data); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_as_finish: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @out_arg_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_as(). 3709s # * @error: Return location for error or %NULL. 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_as(). 3709s # * 3709s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3709s # */ 3709s # gboolean 3709s # org_project_useful_interface_call_single_arg_method_as_finish ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # gchar ***out_arg_as, 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GVariant *_ret; 3709s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3709s # if (_ret == NULL) 3709s # goto _out; 3709s # g_variant_get (_ret, 3709s # "(^as)", 3709s # out_arg_as); 3709s # g_variant_unref (_ret); 3709s # _out: 3709s # return _ret != NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_as_sync: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @out_arg_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL. 3709s # * 3709s # * Synchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodAs">SingleArgMethodAs()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_call_single_arg_method_as() for the asynchronous version of this method. 3709s # * 3709s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3709s # */ 3709s # gboolean 3709s # org_project_useful_interface_call_single_arg_method_as_sync ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # gchar ***out_arg_as, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GVariant *_ret; 3709s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3709s # "SingleArgMethodAs", 3709s # g_variant_new ("()"), 3709s # G_DBUS_CALL_FLAGS_NONE, 3709s # -1, 3709s # cancellable, 3709s # error); 3709s # if (_ret == NULL) 3709s # goto _out; 3709s # g_variant_get (_ret, 3709s # "(^as)", 3709s # out_arg_as); 3709s # g_variant_unref (_ret); 3709s # _out: 3709s # return _ret != NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_complete_single_arg_method_as: 3709s # * @object: A #OrgProjectUsefulInterface. 3709s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3709s # * @arg_as: Parameter to return. 3709s # * 3709s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodAs">SingleArgMethodAs()</link> 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. 3709s # * 3709s # * This method will free @invocation, you cannot use it afterwards. 3709s # */ 3709s # void 3709s # org_project_useful_interface_complete_single_arg_method_as ( 3709s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 3709s # GDBusMethodInvocation *invocation, 3709s # const gchar *const *arg_as) 3709s # { 3709s # g_dbus_method_invocation_return_value (invocation, 3709s # g_variant_new ("(^as)", 3709s # arg_as)); 3709s # } 3709s # 3709s # /* ------------------------------------------------------------------------ */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceProxy: 3709s # * 3709s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceProxyClass: 3709s # * @parent_class: The parent class. 3709s # * 3709s # * Class structure for #OrgProjectUsefulInterfaceProxy. 3709s # */ 3709s # 3709s # struct _OrgProjectUsefulInterfaceProxyPrivate 3709s # { 3709s # GData *qdata; 3709s # }; 3709s # 3709s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3709s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3709s # 3709s # #else 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3709s # 3709s # #endif 3709s # static void 3709s # org_project_useful_interface_proxy_finalize (GObject *object) 3709s # { 3709s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 3709s # g_datalist_clear (&proxy->priv->qdata); 3709s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3709s # guint prop_id G_GNUC_UNUSED, 3709s # GValue *value G_GNUC_UNUSED, 3709s # GParamSpec *pspec G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3709s # guint prop_id G_GNUC_UNUSED, 3709s # const GValue *value G_GNUC_UNUSED, 3709s # GParamSpec *pspec G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 3709s # const gchar *sender_name G_GNUC_UNUSED, 3709s # const gchar *signal_name, 3709s # GVariant *parameters) 3709s # { 3709s # _ExtendedGDBusSignalInfo *info; 3709s # GVariantIter iter; 3709s # GVariant *child; 3709s # GValue *paramv; 3709s # gsize num_params; 3709s # gsize n; 3709s # guint signal_id; 3709s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 3709s # if (info == NULL) 3709s # return; 3709s # num_params = g_variant_n_children (parameters); 3709s # paramv = g_new0 (GValue, num_params + 1); 3709s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_set_object (¶mv[0], proxy); 3709s # g_variant_iter_init (&iter, parameters); 3709s # n = 1; 3709s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3709s # { 3709s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3709s # if (arg_info->use_gvariant) 3709s # { 3709s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3709s # g_value_set_variant (¶mv[n], child); 3709s # n++; 3709s # } 3709s # else 3709s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3709s # g_variant_unref (child); 3709s # } 3709s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_signal_emitv (paramv, signal_id, 0, NULL); 3709s # for (n = 0; n < num_params + 1; n++) 3709s # g_value_unset (¶mv[n]); 3709s # g_free (paramv); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 3709s # GVariant *changed_properties, 3709s # const gchar *const *invalidated_properties) 3709s # { 3709s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 3709s # guint n; 3709s # const gchar *key; 3709s # GVariantIter *iter; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # g_variant_get (changed_properties, "a{sv}", &iter); 3709s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3709s # { 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 3709s # g_datalist_remove_data (&proxy->priv->qdata, key); 3709s # if (info != NULL) 3709s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3709s # } 3709s # g_variant_iter_free (iter); 3709s # for (n = 0; invalidated_properties[n] != NULL; n++) 3709s # { 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 3709s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3709s # if (info != NULL) 3709s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3709s # } 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 3709s # { 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 3709s # #else 3709s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 3709s # #endif 3709s # 3709s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 3709s # { 3709s # GObjectClass *gobject_class; 3709s # GDBusProxyClass *proxy_class; 3709s # 3709s # gobject_class = G_OBJECT_CLASS (klass); 3709s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 3709s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 3709s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 3709s # 3709s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3709s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 3709s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3709s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 3709s # #endif 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new: 3709s # * @connection: A #GDBusConnection. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new() for more details. 3709s # * 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3709s # */ 3709s # void 3709s # org_project_useful_interface_proxy_new ( 3709s # GDBusConnection *connection, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_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); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_finish: 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_finish ( 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GObject *ret; 3709s # GObject *source_object; 3709s # source_object = g_async_result_get_source_object (res); 3709s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3709s # g_object_unref (source_object); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_sync: 3709s # * @connection: A #GDBusConnection. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new_sync() for more details. 3709s # * 3709s # * The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_sync ( 3709s # GDBusConnection *connection, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GInitable *ret; 3709s # 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); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus: 3709s # * @bus_type: A #GBusType. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: A bus name (well-known or unique). 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3709s # * 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3709s # */ 3709s # void 3709s # org_project_useful_interface_proxy_new_for_bus ( 3709s # GBusType bus_type, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_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); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus_finish: 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_for_bus_finish ( 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GObject *ret; 3709s # GObject *source_object; 3709s # source_object = g_async_result_get_source_object (res); 3709s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3709s # g_object_unref (source_object); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus_sync: 3709s # * @bus_type: A #GBusType. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: A bus name (well-known or unique). 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3709s # * 3709s # * The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_for_bus_sync ( 3709s # GBusType bus_type, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GInitable *ret; 3709s # 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); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # 3709s # /* ------------------------------------------------------------------------ */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceSkeleton: 3709s # * 3709s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceSkeletonClass: 3709s # * @parent_class: The parent class. 3709s # * 3709s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 3709s # */ 3709s # 3709s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 3709s # { 3709s # GValue *properties; 3709s # GList *changed_properties; 3709s # GSource *changed_properties_idle_source; 3709s # GMainContext *context; 3709s # GMutex lock; 3709s # }; 3709s # 3709s # static void 3709s # _org_project_useful_interface_skeleton_handle_method_call ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name, 3709s # const gchar *method_name, 3709s # GVariant *parameters, 3709s # GDBusMethodInvocation *invocation, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # _ExtendedGDBusMethodInfo *info; 3709s # GVariantIter iter; 3709s # GVariant *child; 3709s # GValue *paramv; 3709s # gsize num_params; 3709s # guint num_extra; 3709s # gsize n; 3709s # guint signal_id; 3709s # GValue return_value = G_VALUE_INIT; 3709s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3709s # g_assert (info != NULL); 3709s # num_params = g_variant_n_children (parameters); 3709s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3709s # n = 0; 3709s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_set_object (¶mv[n++], skeleton); 3709s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3709s # g_value_set_object (¶mv[n++], invocation); 3709s # if (info->pass_fdlist) 3709s # { 3709s # #ifdef G_OS_UNIX 3709s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3709s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3709s # #else 3709s # g_assert_not_reached (); 3709s # #endif 3709s # } 3709s # g_variant_iter_init (&iter, parameters); 3709s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3709s # { 3709s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3709s # if (arg_info->use_gvariant) 3709s # { 3709s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3709s # g_value_set_variant (¶mv[n], child); 3709s # n++; 3709s # } 3709s # else 3709s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3709s # g_variant_unref (child); 3709s # } 3709s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3709s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3709s # if (!g_value_get_boolean (&return_value)) 3709s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3709s # g_value_unset (&return_value); 3709s # for (n = 0; n < num_params + num_extra; n++) 3709s # g_value_unset (¶mv[n]); 3709s # g_free (paramv); 3709s # } 3709s # 3709s # static GVariant * 3709s # _org_project_useful_interface_skeleton_handle_get_property ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name G_GNUC_UNUSED, 3709s # const gchar *property_name, 3709s # GError **error, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # GValue value = G_VALUE_INIT; 3709s # GParamSpec *pspec; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # GVariant *ret; 3709s # ret = NULL; 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3709s # g_assert (info != NULL); 3709s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3709s # if (pspec == NULL) 3709s # { 3709s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3709s # } 3709s # else 3709s # { 3709s # g_value_init (&value, pspec->value_type); 3709s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3709s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3709s # g_value_unset (&value); 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static gboolean 3709s # _org_project_useful_interface_skeleton_handle_set_property ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name G_GNUC_UNUSED, 3709s # const gchar *property_name, 3709s # GVariant *variant, 3709s # GError **error, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # GValue value = G_VALUE_INIT; 3709s # GParamSpec *pspec; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # gboolean ret; 3709s # ret = FALSE; 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3709s # g_assert (info != NULL); 3709s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3709s # if (pspec == NULL) 3709s # { 3709s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3709s # } 3709s # else 3709s # { 3709s # if (info->use_gvariant) 3709s # g_value_set_variant (&value, variant); 3709s # else 3709s # g_dbus_gvariant_to_gvalue (variant, &value); 3709s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3709s # g_value_unset (&value); 3709s # ret = TRUE; 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 3709s # { 3709s # _org_project_useful_interface_skeleton_handle_method_call, 3709s # _org_project_useful_interface_skeleton_handle_get_property, 3709s # _org_project_useful_interface_skeleton_handle_set_property, 3709s # {NULL} 3709s # }; 3709s # 3709s # static GDBusInterfaceInfo * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3709s # { 3709s # return org_project_useful_interface_interface_info (); 3709s # } 3709s # 3709s # static GDBusInterfaceVTable * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3709s # { 3709s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 3709s # } 3709s # 3709s # static GVariant * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 3709s # 3709s # GVariantBuilder builder; 3709s # guint n; 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3709s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3709s # #else 3709s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3709s # #endif 3709s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 3709s # goto out; 3709s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 3709s # { 3709s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 3709s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3709s # { 3709s # GVariant *value; 3709s # 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); 3709s # if (value != NULL) 3709s # { 3709s # g_variant_take_ref (value); 3709s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3709s # g_variant_unref (value); 3709s # } 3709s # } 3709s # } 3709s # out: 3709s # return g_variant_builder_end (&builder); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3709s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3709s # 3709s # #else 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3709s # 3709s # #endif 3709s # static void 3709s # org_project_useful_interface_skeleton_finalize (GObject *object) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 3709s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3709s # if (skeleton->priv->changed_properties_idle_source != NULL) 3709s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3709s # g_main_context_unref (skeleton->priv->context); 3709s # g_mutex_clear (&skeleton->priv->lock); 3709s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 3709s # { 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 3709s # #else 3709s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 3709s # #endif 3709s # 3709s # g_mutex_init (&skeleton->priv->lock); 3709s # skeleton->priv->context = g_main_context_ref_thread_default (); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 3709s # { 3709s # GObjectClass *gobject_class; 3709s # GDBusInterfaceSkeletonClass *skeleton_class; 3709s # 3709s # gobject_class = G_OBJECT_CLASS (klass); 3709s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 3709s # 3709s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3709s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 3709s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 3709s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 3709s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3709s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 3709s # #endif 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_skeleton_new: 3709s # * 3709s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_skeleton_new (void) 3709s # { 3709s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 3709s # } 3709s # Error: 3709s # 3709s # /tmp/tmplo7nhxxl/tmp07imj_j2.xml: 3709s # <node> 3709s # <interface name="org.project.UsefulInterface"> 3709s # <method name="SingleArgMethodAo"> 3709s # <arg name="arg_ao" type="ao" direction="out"/> 3709s # </method> 3709s # </interface> 3709s # </node> 3709s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplo7nhxxl/tmp07imj_j2.xml', '--output', '-', '--body'] 3709s # Return code: 0 3709s # Output: 3709s # /* 3709s # * This file is generated by gdbus-codegen, do not modify it. 3709s # * 3709s # * The license of this code is the same as for the D-Bus interface description 3709s # * it was derived from. Note that it links to GLib, so must comply with the 3709s # * LGPL linking clauses. 3709s # */ 3709s # 3709s # #ifdef HAVE_CONFIG_H 3709s # # include "config.h" 3709s # #endif 3709s # 3709s # #include <string.h> 3709s # #ifdef G_OS_UNIX 3709s # # include <gio/gunixfdlist.h> 3709s # #endif 3709s # 3709s # #ifdef G_ENABLE_DEBUG 3709s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3709s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3709s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3709s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3709s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3709s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3709s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3709s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3709s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3709s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3709s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3709s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3709s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3709s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3709s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3709s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3709s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3709s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3709s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3709s # #else /* !G_ENABLE_DEBUG */ 3709s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3709s # * Do not access GValues directly in your code. Instead, use the 3709s # * g_value_get_*() functions 3709s # */ 3709s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3709s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3709s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3709s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3709s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3709s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3709s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3709s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3709s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3709s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3709s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3709s # #endif /* !G_ENABLE_DEBUG */ 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusArgInfo parent_struct; 3709s # gboolean use_gvariant; 3709s # } _ExtendedGDBusArgInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusMethodInfo parent_struct; 3709s # const gchar *signal_name; 3709s # gboolean pass_fdlist; 3709s # } _ExtendedGDBusMethodInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusSignalInfo parent_struct; 3709s # const gchar *signal_name; 3709s # } _ExtendedGDBusSignalInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusPropertyInfo parent_struct; 3709s # const gchar *hyphen_name; 3709s # guint use_gvariant : 1; 3709s # guint emits_changed_signal : 1; 3709s # } _ExtendedGDBusPropertyInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusInterfaceInfo parent_struct; 3709s # const gchar *hyphen_name; 3709s # } _ExtendedGDBusInterfaceInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # const _ExtendedGDBusPropertyInfo *info; 3709s # guint prop_id; 3709s # GValue orig_value; /* the value before the change */ 3709s # } ChangedProperty; 3709s # 3709s # static void 3709s # _changed_property_free (ChangedProperty *data) 3709s # { 3709s # g_value_unset (&data->orig_value); 3709s # g_free (data); 3709s # } 3709s # 3709s # static gboolean 3709s # _g_strv_equal0 (gchar **a, gchar **b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # guint n; 3709s # if (a == NULL && b == NULL) 3709s # { 3709s # ret = TRUE; 3709s # goto out; 3709s # } 3709s # if (a == NULL || b == NULL) 3709s # goto out; 3709s # if (g_strv_length (a) != g_strv_length (b)) 3709s # goto out; 3709s # for (n = 0; a[n] != NULL; n++) 3709s # if (g_strcmp0 (a[n], b[n]) != 0) 3709s # goto out; 3709s # ret = TRUE; 3709s # out: 3709s # return ret; 3709s # } 3709s # 3709s # static gboolean 3709s # _g_variant_equal0 (GVariant *a, GVariant *b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # if (a == NULL && b == NULL) 3709s # { 3709s # ret = TRUE; 3709s # goto out; 3709s # } 3709s # if (a == NULL || b == NULL) 3709s # goto out; 3709s # ret = g_variant_equal (a, b); 3709s # out: 3709s # return ret; 3709s # } 3709s # 3709s # G_GNUC_UNUSED static gboolean 3709s # _g_value_equal (const GValue *a, const GValue *b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3709s # switch (G_VALUE_TYPE (a)) 3709s # { 3709s # case G_TYPE_BOOLEAN: 3709s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3709s # break; 3709s # case G_TYPE_UCHAR: 3709s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3709s # break; 3709s # case G_TYPE_INT: 3709s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3709s # break; 3709s # case G_TYPE_UINT: 3709s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3709s # break; 3709s # case G_TYPE_INT64: 3709s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3709s # break; 3709s # case G_TYPE_UINT64: 3709s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3709s # break; 3709s # case G_TYPE_DOUBLE: 3709s # { 3709s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3709s # gdouble da = g_value_get_double (a); 3709s # gdouble db = g_value_get_double (b); 3709s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3709s # } 3709s # break; 3709s # case G_TYPE_STRING: 3709s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3709s # break; 3709s # case G_TYPE_VARIANT: 3709s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3709s # break; 3709s # default: 3709s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3709s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3709s # else 3709s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3709s # break; 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static void 3709s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 3709s # GClosure *closure, 3709s # GValue *return_value, 3709s # unsigned int n_param_values, 3709s # const GValue *param_values, 3709s # void *invocation_hint G_GNUC_UNUSED, 3709s # void *marshal_data) 3709s # { 3709s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 3709s # (void *data1, 3709s # GDBusMethodInvocation *arg_method_invocation, 3709s # void *data2); 3709s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 3709s # GCClosure *cc = (GCClosure*) closure; 3709s # void *data1, *data2; 3709s # gboolean v_return; 3709s # 3709s # g_return_if_fail (return_value != NULL); 3709s # g_return_if_fail (n_param_values == 2); 3709s # 3709s # if (G_CCLOSURE_SWAP_DATA (closure)) 3709s # { 3709s # data1 = closure->data; 3709s # data2 = g_value_peek_pointer (param_values + 0); 3709s # } 3709s # else 3709s # { 3709s # data1 = g_value_peek_pointer (param_values + 0); 3709s # data2 = closure->data; 3709s # } 3709s # 3709s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 3709s # (marshal_data ? marshal_data : cc->callback); 3709s # 3709s # v_return = 3709s # callback (data1, 3709s # g_marshal_value_peek_object (param_values + 1), 3709s # data2); 3709s # 3709s # g_value_set_boolean (return_value, v_return); 3709s # } 3709s # 3709s # /* ------------------------------------------------------------------------ 3709s # * Code for interface org.project.UsefulInterface 3709s # * ------------------------------------------------------------------------ 3709s # */ 3709s # 3709s # /** 3709s # * SECTION:OrgProjectUsefulInterface 3709s # * @title: OrgProjectUsefulInterface 3709s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 3709s # * 3709s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface in C. 3709s # */ 3709s # 3709s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 3709s # 3709s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_arg_ao = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "arg_ao", 3709s # (gchar *) "ao", 3709s # NULL 3709s # }, 3709s # FALSE 3709s # }; 3709s # 3709s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_pointers[] = 3709s # { 3709s # &_org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_arg_ao.parent_struct, 3709s # NULL 3709s # }; 3709s # 3709s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ao = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "SingleArgMethodAo", 3709s # NULL, 3709s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_pointers, 3709s # NULL 3709s # }, 3709s # "handle-single-arg-method-ao", 3709s # FALSE 3709s # }; 3709s # 3709s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 3709s # { 3709s # &_org_project_useful_interface_method_info_single_arg_method_ao.parent_struct, 3709s # NULL 3709s # }; 3709s # 3709s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "org.project.UsefulInterface", 3709s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 3709s # NULL, 3709s # NULL, 3709s # NULL 3709s # }, 3709s # "org-project-useful-interface", 3709s # }; 3709s # 3709s # 3709s # /** 3709s # * org_project_useful_interface_interface_info: 3709s # * 3709s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface. 3709s # * 3709s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3709s # */ 3709s # GDBusInterfaceInfo * 3709s # org_project_useful_interface_interface_info (void) 3709s # { 3709s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_override_properties: 3709s # * @klass: The class structure for a #GObject derived class. 3709s # * @property_id_begin: The property id to assign to the first overridden property. 3709s # * 3709s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 3709s # * The properties are overridden in the order they are defined. 3709s # * 3709s # * Returns: The last property id. 3709s # */ 3709s # guint 3709s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3709s # { 3709s # return property_id_begin - 1; 3709s # } 3709s # 3709s # 3709s # inline static void 3709s # org_project_useful_interface_method_marshal_single_arg_method_ao ( 3709s # GClosure *closure, 3709s # GValue *return_value, 3709s # unsigned int n_param_values, 3709s # const GValue *param_values, 3709s # void *invocation_hint, 3709s # void *marshal_data) 3709s # { 3709s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 3709s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3709s # } 3709s # 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterface: 3709s # * 3709s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceIface: 3709s # * @parent_iface: The parent interface. 3709s # * @handle_single_arg_method_ao: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ao signal. 3709s # * 3709s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # */ 3709s # 3709s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 3709s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 3709s # 3709s # static void 3709s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 3709s # { 3709s # /* GObject signals for incoming D-Bus method calls: */ 3709s # /** 3709s # * OrgProjectUsefulInterface::handle-single-arg-method-ao: 3709s # * @object: A #OrgProjectUsefulInterface. 3709s # * @invocation: A #GDBusMethodInvocation. 3709s # * 3709s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodAo">SingleArgMethodAo()</link> D-Bus method. 3709s # * 3709s # * 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. 3709s # * 3709s # * 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. 3709s # */ 3709s # g_signal_new ("handle-single-arg-method-ao", 3709s # G_TYPE_FROM_INTERFACE (iface), 3709s # G_SIGNAL_RUN_LAST, 3709s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ao), 3709s # g_signal_accumulator_true_handled, 3709s # NULL, 3709s # org_project_useful_interface_method_marshal_single_arg_method_ao, 3709s # G_TYPE_BOOLEAN, 3709s # 1, 3709s # G_TYPE_DBUS_METHOD_INVOCATION); 3709s # 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_ao: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodAo">SingleArgMethodAo()</link> D-Bus method on @proxy. 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_call_single_arg_method_ao_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_call_single_arg_method_ao_sync() for the synchronous, blocking version of this method. 3709s # */ 3709s # void 3709s # org_project_useful_interface_call_single_arg_method_ao ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3709s # "SingleArgMethodAo", 3709s # g_variant_new ("()"), 3709s # G_DBUS_CALL_FLAGS_NONE, 3709s # -1, 3709s # cancellable, 3709s # callback, 3709s # user_data); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_ao_finish: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @out_arg_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ao(). 3709s # * @error: Return location for error or %NULL. 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ao(). 3709s # * 3709s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3709s # */ 3709s # gboolean 3709s # org_project_useful_interface_call_single_arg_method_ao_finish ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # gchar ***out_arg_ao, 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GVariant *_ret; 3709s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3709s # if (_ret == NULL) 3709s # goto _out; 3709s # g_variant_get (_ret, 3709s # "(^ao)", 3709s # out_arg_ao); 3709s # g_variant_unref (_ret); 3709s # _out: 3709s # return _ret != NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_ao_sync: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @out_arg_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL. 3709s # * 3709s # * Synchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodAo">SingleArgMethodAo()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_call_single_arg_method_ao() for the asynchronous version of this method. 3709s # * 3709s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3709s # */ 3709s # gboolean 3709s # org_project_useful_interface_call_single_arg_method_ao_sync ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # gchar ***out_arg_ao, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GVariant *_ret; 3709s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3709s # "SingleArgMethodAo", 3709s # g_variant_new ("()"), 3709s # G_DBUS_CALL_FLAGS_NONE, 3709s # -1, 3709s # cancellable, 3709s # error); 3709s # if (_ret == NULL) 3709s # goto _out; 3709s # g_variant_get (_ret, 3709s # "(^ao)", 3709s # out_arg_ao); 3709s # g_variant_unref (_ret); 3709s # _out: 3709s # return _ret != NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_complete_single_arg_method_ao: 3709s # * @object: A #OrgProjectUsefulInterface. 3709s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3709s # * @arg_ao: Parameter to return. 3709s # * 3709s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodAo">SingleArgMethodAo()</link> 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. 3709s # * 3709s # * This method will free @invocation, you cannot use it afterwards. 3709s # */ 3709s # void 3709s # org_project_useful_interface_complete_single_arg_method_ao ( 3709s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 3709s # GDBusMethodInvocation *invocation, 3709s # const gchar *const *arg_ao) 3709s # { 3709s # g_dbus_method_invocation_return_value (invocation, 3709s # g_variant_new ("(^ao)", 3709s # arg_ao)); 3709s # } 3709s # 3709s # /* ------------------------------------------------------------------------ */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceProxy: 3709s # * 3709s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceProxyClass: 3709s # * @parent_class: The parent class. 3709s # * 3709s # * Class structure for #OrgProjectUsefulInterfaceProxy. 3709s # */ 3709s # 3709s # struct _OrgProjectUsefulInterfaceProxyPrivate 3709s # { 3709s # GData *qdata; 3709s # }; 3709s # 3709s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3709s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3709s # 3709s # #else 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3709s # 3709s # #endif 3709s # static void 3709s # org_project_useful_interface_proxy_finalize (GObject *object) 3709s # { 3709s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 3709s # g_datalist_clear (&proxy->priv->qdata); 3709s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3709s # guint prop_id G_GNUC_UNUSED, 3709s # GValue *value G_GNUC_UNUSED, 3709s # GParamSpec *pspec G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3709s # guint prop_id G_GNUC_UNUSED, 3709s # const GValue *value G_GNUC_UNUSED, 3709s # GParamSpec *pspec G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 3709s # const gchar *sender_name G_GNUC_UNUSED, 3709s # const gchar *signal_name, 3709s # GVariant *parameters) 3709s # { 3709s # _ExtendedGDBusSignalInfo *info; 3709s # GVariantIter iter; 3709s # GVariant *child; 3709s # GValue *paramv; 3709s # gsize num_params; 3709s # gsize n; 3709s # guint signal_id; 3709s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 3709s # if (info == NULL) 3709s # return; 3709s # num_params = g_variant_n_children (parameters); 3709s # paramv = g_new0 (GValue, num_params + 1); 3709s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_set_object (¶mv[0], proxy); 3709s # g_variant_iter_init (&iter, parameters); 3709s # n = 1; 3709s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3709s # { 3709s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3709s # if (arg_info->use_gvariant) 3709s # { 3709s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3709s # g_value_set_variant (¶mv[n], child); 3709s # n++; 3709s # } 3709s # else 3709s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3709s # g_variant_unref (child); 3709s # } 3709s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_signal_emitv (paramv, signal_id, 0, NULL); 3709s # for (n = 0; n < num_params + 1; n++) 3709s # g_value_unset (¶mv[n]); 3709s # g_free (paramv); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 3709s # GVariant *changed_properties, 3709s # const gchar *const *invalidated_properties) 3709s # { 3709s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 3709s # guint n; 3709s # const gchar *key; 3709s # GVariantIter *iter; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # g_variant_get (changed_properties, "a{sv}", &iter); 3709s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3709s # { 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 3709s # g_datalist_remove_data (&proxy->priv->qdata, key); 3709s # if (info != NULL) 3709s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3709s # } 3709s # g_variant_iter_free (iter); 3709s # for (n = 0; invalidated_properties[n] != NULL; n++) 3709s # { 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 3709s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3709s # if (info != NULL) 3709s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3709s # } 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 3709s # { 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 3709s # #else 3709s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 3709s # #endif 3709s # 3709s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 3709s # { 3709s # GObjectClass *gobject_class; 3709s # GDBusProxyClass *proxy_class; 3709s # 3709s # gobject_class = G_OBJECT_CLASS (klass); 3709s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 3709s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 3709s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 3709s # 3709s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3709s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 3709s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3709s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 3709s # #endif 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new: 3709s # * @connection: A #GDBusConnection. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new() for more details. 3709s # * 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3709s # */ 3709s # void 3709s # org_project_useful_interface_proxy_new ( 3709s # GDBusConnection *connection, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_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); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_finish: 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_finish ( 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GObject *ret; 3709s # GObject *source_object; 3709s # source_object = g_async_result_get_source_object (res); 3709s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3709s # g_object_unref (source_object); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_sync: 3709s # * @connection: A #GDBusConnection. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new_sync() for more details. 3709s # * 3709s # * The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_sync ( 3709s # GDBusConnection *connection, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GInitable *ret; 3709s # 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); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus: 3709s # * @bus_type: A #GBusType. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: A bus name (well-known or unique). 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3709s # * 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3709s # */ 3709s # void 3709s # org_project_useful_interface_proxy_new_for_bus ( 3709s # GBusType bus_type, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_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); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus_finish: 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_for_bus_finish ( 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GObject *ret; 3709s # GObject *source_object; 3709s # source_object = g_async_result_get_source_object (res); 3709s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3709s # g_object_unref (source_object); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus_sync: 3709s # * @bus_type: A #GBusType. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: A bus name (well-known or unique). 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3709s # * 3709s # * The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_for_bus_sync ( 3709s # GBusType bus_type, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GInitable *ret; 3709s # 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); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # 3709s # /* ------------------------------------------------------------------------ */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceSkeleton: 3709s # * 3709s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceSkeletonClass: 3709s # * @parent_class: The parent class. 3709s # * 3709s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 3709s # */ 3709s # 3709s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 3709s # { 3709s # GValue *properties; 3709s # GList *changed_properties; 3709s # GSource *changed_properties_idle_source; 3709s # GMainContext *context; 3709s # GMutex lock; 3709s # }; 3709s # 3709s # static void 3709s # _org_project_useful_interface_skeleton_handle_method_call ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name, 3709s # const gchar *method_name, 3709s # GVariant *parameters, 3709s # GDBusMethodInvocation *invocation, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # _ExtendedGDBusMethodInfo *info; 3709s # GVariantIter iter; 3709s # GVariant *child; 3709s # GValue *paramv; 3709s # gsize num_params; 3709s # guint num_extra; 3709s # gsize n; 3709s # guint signal_id; 3709s # GValue return_value = G_VALUE_INIT; 3709s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3709s # g_assert (info != NULL); 3709s # num_params = g_variant_n_children (parameters); 3709s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3709s # n = 0; 3709s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_set_object (¶mv[n++], skeleton); 3709s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3709s # g_value_set_object (¶mv[n++], invocation); 3709s # if (info->pass_fdlist) 3709s # { 3709s # #ifdef G_OS_UNIX 3709s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3709s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3709s # #else 3709s # g_assert_not_reached (); 3709s # #endif 3709s # } 3709s # g_variant_iter_init (&iter, parameters); 3709s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3709s # { 3709s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3709s # if (arg_info->use_gvariant) 3709s # { 3709s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3709s # g_value_set_variant (¶mv[n], child); 3709s # n++; 3709s # } 3709s # else 3709s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3709s # g_variant_unref (child); 3709s # } 3709s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3709s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3709s # if (!g_value_get_boolean (&return_value)) 3709s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3709s # g_value_unset (&return_value); 3709s # for (n = 0; n < num_params + num_extra; n++) 3709s # g_value_unset (¶mv[n]); 3709s # g_free (paramv); 3709s # } 3709s # 3709s # static GVariant * 3709s # _org_project_useful_interface_skeleton_handle_get_property ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name G_GNUC_UNUSED, 3709s # const gchar *property_name, 3709s # GError **error, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # GValue value = G_VALUE_INIT; 3709s # GParamSpec *pspec; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # GVariant *ret; 3709s # ret = NULL; 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3709s # g_assert (info != NULL); 3709s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3709s # if (pspec == NULL) 3709s # { 3709s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3709s # } 3709s # else 3709s # { 3709s # g_value_init (&value, pspec->value_type); 3709s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3709s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3709s # g_value_unset (&value); 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static gboolean 3709s # _org_project_useful_interface_skeleton_handle_set_property ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name G_GNUC_UNUSED, 3709s # const gchar *property_name, 3709s # GVariant *variant, 3709s # GError **error, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # GValue value = G_VALUE_INIT; 3709s # GParamSpec *pspec; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # gboolean ret; 3709s # ret = FALSE; 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3709s # g_assert (info != NULL); 3709s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3709s # if (pspec == NULL) 3709s # { 3709s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3709s # } 3709s # else 3709s # { 3709s # if (info->use_gvariant) 3709s # g_value_set_variant (&value, variant); 3709s # else 3709s # g_dbus_gvariant_to_gvalue (variant, &value); 3709s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3709s # g_value_unset (&value); 3709s # ret = TRUE; 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 3709s # { 3709s # _org_project_useful_interface_skeleton_handle_method_call, 3709s # _org_project_useful_interface_skeleton_handle_get_property, 3709s # _org_project_useful_interface_skeleton_handle_set_property, 3709s # {NULL} 3709s # }; 3709s # 3709s # static GDBusInterfaceInfo * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3709s # { 3709s # return org_project_useful_interface_interface_info (); 3709s # } 3709s # 3709s # static GDBusInterfaceVTable * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3709s # { 3709s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 3709s # } 3709s # 3709s # static GVariant * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 3709s # 3709s # GVariantBuilder builder; 3709s # guint n; 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3709s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3709s # #else 3709s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3709s # #endif 3709s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 3709s # goto out; 3709s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 3709s # { 3709s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 3709s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3709s # { 3709s # GVariant *value; 3709s # 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); 3709s # if (value != NULL) 3709s # { 3709s # g_variant_take_ref (value); 3709s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3709s # g_variant_unref (value); 3709s # } 3709s # } 3709s # } 3709s # out: 3709s # return g_variant_builder_end (&builder); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3709s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3709s # 3709s # #else 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3709s # 3709s # #endif 3709s # static void 3709s # org_project_useful_interface_skeleton_finalize (GObject *object) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 3709s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3709s # if (skeleton->priv->changed_properties_idle_source != NULL) 3709s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3709s # g_main_context_unref (skeleton->priv->context); 3709s # g_mutex_clear (&skeleton->priv->lock); 3709s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 3709s # { 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 3709s # #else 3709s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 3709s # #endif 3709s # 3709s # g_mutex_init (&skeleton->priv->lock); 3709s # skeleton->priv->context = g_main_context_ref_thread_default (); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 3709s # { 3709s # GObjectClass *gobject_class; 3709s # GDBusInterfaceSkeletonClass *skeleton_class; 3709s # 3709s # gobject_class = G_OBJECT_CLASS (klass); 3709s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 3709s # 3709s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3709s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 3709s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 3709s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 3709s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3709s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 3709s # #endif 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_skeleton_new: 3709s # * 3709s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_skeleton_new (void) 3709s # { 3709s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 3709s # } 3709s # Error: 3709s # 3709s # /tmp/tmplo7nhxxl/tmpv41ims2s.xml: 3709s # <node> 3709s # <interface name="org.project.UsefulInterface"> 3709s # <method name="SingleArgMethodAay"> 3709s # <arg name="arg_aay" type="aay" direction="out"/> 3709s # </method> 3709s # </interface> 3709s # </node> 3709s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplo7nhxxl/tmpv41ims2s.xml', '--output', '-', '--body'] 3709s # Return code: 0 3709s # Output: 3709s # /* 3709s # * This file is generated by gdbus-codegen, do not modify it. 3709s # * 3709s # * The license of this code is the same as for the D-Bus interface description 3709s # * it was derived from. Note that it links to GLib, so must comply with the 3709s # * LGPL linking clauses. 3709s # */ 3709s # 3709s # #ifdef HAVE_CONFIG_H 3709s # # include "config.h" 3709s # #endif 3709s # 3709s # #include <string.h> 3709s # #ifdef G_OS_UNIX 3709s # # include <gio/gunixfdlist.h> 3709s # #endif 3709s # 3709s # #ifdef G_ENABLE_DEBUG 3709s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3709s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3709s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3709s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3709s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3709s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3709s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3709s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3709s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3709s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3709s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3709s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3709s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3709s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3709s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3709s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3709s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3709s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3709s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3709s # #else /* !G_ENABLE_DEBUG */ 3709s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3709s # * Do not access GValues directly in your code. Instead, use the 3709s # * g_value_get_*() functions 3709s # */ 3709s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3709s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3709s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3709s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3709s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3709s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3709s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3709s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3709s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3709s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3709s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3709s # #endif /* !G_ENABLE_DEBUG */ 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusArgInfo parent_struct; 3709s # gboolean use_gvariant; 3709s # } _ExtendedGDBusArgInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusMethodInfo parent_struct; 3709s # const gchar *signal_name; 3709s # gboolean pass_fdlist; 3709s # } _ExtendedGDBusMethodInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusSignalInfo parent_struct; 3709s # const gchar *signal_name; 3709s # } _ExtendedGDBusSignalInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusPropertyInfo parent_struct; 3709s # const gchar *hyphen_name; 3709s # guint use_gvariant : 1; 3709s # guint emits_changed_signal : 1; 3709s # } _ExtendedGDBusPropertyInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusInterfaceInfo parent_struct; 3709s # const gchar *hyphen_name; 3709s # } _ExtendedGDBusInterfaceInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # const _ExtendedGDBusPropertyInfo *info; 3709s # guint prop_id; 3709s # GValue orig_value; /* the value before the change */ 3709s # } ChangedProperty; 3709s # 3709s # static void 3709s # _changed_property_free (ChangedProperty *data) 3709s # { 3709s # g_value_unset (&data->orig_value); 3709s # g_free (data); 3709s # } 3709s # 3709s # static gboolean 3709s # _g_strv_equal0 (gchar **a, gchar **b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # guint n; 3709s # if (a == NULL && b == NULL) 3709s # { 3709s # ret = TRUE; 3709s # goto out; 3709s # } 3709s # if (a == NULL || b == NULL) 3709s # goto out; 3709s # if (g_strv_length (a) != g_strv_length (b)) 3709s # goto out; 3709s # for (n = 0; a[n] != NULL; n++) 3709s # if (g_strcmp0 (a[n], b[n]) != 0) 3709s # goto out; 3709s # ret = TRUE; 3709s # out: 3709s # return ret; 3709s # } 3709s # 3709s # static gboolean 3709s # _g_variant_equal0 (GVariant *a, GVariant *b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # if (a == NULL && b == NULL) 3709s # { 3709s # ret = TRUE; 3709s # goto out; 3709s # } 3709s # if (a == NULL || b == NULL) 3709s # goto out; 3709s # ret = g_variant_equal (a, b); 3709s # out: 3709s # return ret; 3709s # } 3709s # 3709s # G_GNUC_UNUSED static gboolean 3709s # _g_value_equal (const GValue *a, const GValue *b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3709s # switch (G_VALUE_TYPE (a)) 3709s # { 3709s # case G_TYPE_BOOLEAN: 3709s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3709s # break; 3709s # case G_TYPE_UCHAR: 3709s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3709s # break; 3709s # case G_TYPE_INT: 3709s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3709s # break; 3709s # case G_TYPE_UINT: 3709s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3709s # break; 3709s # case G_TYPE_INT64: 3709s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3709s # break; 3709s # case G_TYPE_UINT64: 3709s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3709s # break; 3709s # case G_TYPE_DOUBLE: 3709s # { 3709s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3709s # gdouble da = g_value_get_double (a); 3709s # gdouble db = g_value_get_double (b); 3709s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3709s # } 3709s # break; 3709s # case G_TYPE_STRING: 3709s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3709s # break; 3709s # case G_TYPE_VARIANT: 3709s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3709s # break; 3709s # default: 3709s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3709s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3709s # else 3709s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3709s # break; 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static void 3709s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 3709s # GClosure *closure, 3709s # GValue *return_value, 3709s # unsigned int n_param_values, 3709s # const GValue *param_values, 3709s # void *invocation_hint G_GNUC_UNUSED, 3709s # void *marshal_data) 3709s # { 3709s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 3709s # (void *data1, 3709s # GDBusMethodInvocation *arg_method_invocation, 3709s # void *data2); 3709s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 3709s # GCClosure *cc = (GCClosure*) closure; 3709s # void *data1, *data2; 3709s # gboolean v_return; 3709s # 3709s # g_return_if_fail (return_value != NULL); 3709s # g_return_if_fail (n_param_values == 2); 3709s # 3709s # if (G_CCLOSURE_SWAP_DATA (closure)) 3709s # { 3709s # data1 = closure->data; 3709s # data2 = g_value_peek_pointer (param_values + 0); 3709s # } 3709s # else 3709s # { 3709s # data1 = g_value_peek_pointer (param_values + 0); 3709s # data2 = closure->data; 3709s # } 3709s # 3709s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 3709s # (marshal_data ? marshal_data : cc->callback); 3709s # 3709s # v_return = 3709s # callback (data1, 3709s # g_marshal_value_peek_object (param_values + 1), 3709s # data2); 3709s # 3709s # g_value_set_boolean (return_value, v_return); 3709s # } 3709s # 3709s # /* ------------------------------------------------------------------------ 3709s # * Code for interface org.project.UsefulInterface 3709s # * ------------------------------------------------------------------------ 3709s # */ 3709s # 3709s # /** 3709s # * SECTION:OrgProjectUsefulInterface 3709s # * @title: OrgProjectUsefulInterface 3709s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 3709s # * 3709s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface in C. 3709s # */ 3709s # 3709s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 3709s # 3709s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_arg_aay = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "arg_aay", 3709s # (gchar *) "aay", 3709s # NULL 3709s # }, 3709s # FALSE 3709s # }; 3709s # 3709s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_pointers[] = 3709s # { 3709s # &_org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_arg_aay.parent_struct, 3709s # NULL 3709s # }; 3709s # 3709s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_aay = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "SingleArgMethodAay", 3709s # NULL, 3709s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_pointers, 3709s # NULL 3709s # }, 3709s # "handle-single-arg-method-aay", 3709s # FALSE 3709s # }; 3709s # 3709s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 3709s # { 3709s # &_org_project_useful_interface_method_info_single_arg_method_aay.parent_struct, 3709s # NULL 3709s # }; 3709s # 3709s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "org.project.UsefulInterface", 3709s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 3709s # NULL, 3709s # NULL, 3709s # NULL 3709s # }, 3709s # "org-project-useful-interface", 3709s # }; 3709s # 3709s # 3709s # /** 3709s # * org_project_useful_interface_interface_info: 3709s # * 3709s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface. 3709s # * 3709s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3709s # */ 3709s # GDBusInterfaceInfo * 3709s # org_project_useful_interface_interface_info (void) 3709s # { 3709s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_override_properties: 3709s # * @klass: The class structure for a #GObject derived class. 3709s # * @property_id_begin: The property id to assign to the first overridden property. 3709s # * 3709s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 3709s # * The properties are overridden in the order they are defined. 3709s # * 3709s # * Returns: The last property id. 3709s # */ 3709s # guint 3709s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3709s # { 3709s # return property_id_begin - 1; 3709s # } 3709s # 3709s # 3709s # inline static void 3709s # org_project_useful_interface_method_marshal_single_arg_method_aay ( 3709s # GClosure *closure, 3709s # GValue *return_value, 3709s # unsigned int n_param_values, 3709s # const GValue *param_values, 3709s # void *invocation_hint, 3709s # void *marshal_data) 3709s # { 3709s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 3709s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3709s # } 3709s # 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterface: 3709s # * 3709s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceIface: 3709s # * @parent_iface: The parent interface. 3709s # * @handle_single_arg_method_aay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-aay signal. 3709s # * 3709s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # */ 3709s # 3709s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 3709s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 3709s # 3709s # static void 3709s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 3709s # { 3709s # /* GObject signals for incoming D-Bus method calls: */ 3709s # /** 3709s # * OrgProjectUsefulInterface::handle-single-arg-method-aay: 3709s # * @object: A #OrgProjectUsefulInterface. 3709s # * @invocation: A #GDBusMethodInvocation. 3709s # * 3709s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodAay">SingleArgMethodAay()</link> D-Bus method. 3709s # * 3709s # * 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. 3709s # * 3709s # * 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. 3709s # */ 3709s # g_signal_new ("handle-single-arg-method-aay", 3709s # G_TYPE_FROM_INTERFACE (iface), 3709s # G_SIGNAL_RUN_LAST, 3709s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_aay), 3709s # g_signal_accumulator_true_handled, 3709s # NULL, 3709s # org_project_useful_interface_method_marshal_single_arg_method_aay, 3709s # G_TYPE_BOOLEAN, 3709s # 1, 3709s # G_TYPE_DBUS_METHOD_INVOCATION); 3709s # 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_aay: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodAay">SingleArgMethodAay()</link> D-Bus method on @proxy. 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_call_single_arg_method_aay_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_call_single_arg_method_aay_sync() for the synchronous, blocking version of this method. 3709s # */ 3709s # void 3709s # org_project_useful_interface_call_single_arg_method_aay ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3709s # "SingleArgMethodAay", 3709s # g_variant_new ("()"), 3709s # G_DBUS_CALL_FLAGS_NONE, 3709s # -1, 3709s # cancellable, 3709s # callback, 3709s # user_data); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_aay_finish: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @out_arg_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_aay(). 3709s # * @error: Return location for error or %NULL. 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_aay(). 3709s # * 3709s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3709s # */ 3709s # gboolean 3709s # org_project_useful_interface_call_single_arg_method_aay_finish ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # gchar ***out_arg_aay, 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GVariant *_ret; 3709s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3709s # if (_ret == NULL) 3709s # goto _out; 3709s # g_variant_get (_ret, 3709s # "(^aay)", 3709s # out_arg_aay); 3709s # g_variant_unref (_ret); 3709s # _out: 3709s # return _ret != NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_aay_sync: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @out_arg_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL. 3709s # * 3709s # * Synchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodAay">SingleArgMethodAay()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_call_single_arg_method_aay() for the asynchronous version of this method. 3709s # * 3709s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3709s # */ 3709s # gboolean 3709s # org_project_useful_interface_call_single_arg_method_aay_sync ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # gchar ***out_arg_aay, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GVariant *_ret; 3709s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3709s # "SingleArgMethodAay", 3709s # g_variant_new ("()"), 3709s # G_DBUS_CALL_FLAGS_NONE, 3709s # -1, 3709s # cancellable, 3709s # error); 3709s # if (_ret == NULL) 3709s # goto _out; 3709s # g_variant_get (_ret, 3709s # "(^aay)", 3709s # out_arg_aay); 3709s # g_variant_unref (_ret); 3709s # _out: 3709s # return _ret != NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_complete_single_arg_method_aay: 3709s # * @object: A #OrgProjectUsefulInterface. 3709s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3709s # * @arg_aay: Parameter to return. 3709s # * 3709s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodAay">SingleArgMethodAay()</link> 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. 3709s # * 3709s # * This method will free @invocation, you cannot use it afterwards. 3709s # */ 3709s # void 3709s # org_project_useful_interface_complete_single_arg_method_aay ( 3709s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 3709s # GDBusMethodInvocation *invocation, 3709s # const gchar *const *arg_aay) 3709s # { 3709s # g_dbus_method_invocation_return_value (invocation, 3709s # g_variant_new ("(^aay)", 3709s # arg_aay)); 3709s # } 3709s # 3709s # /* ------------------------------------------------------------------------ */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceProxy: 3709s # * 3709s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceProxyClass: 3709s # * @parent_class: The parent class. 3709s # * 3709s # * Class structure for #OrgProjectUsefulInterfaceProxy. 3709s # */ 3709s # 3709s # struct _OrgProjectUsefulInterfaceProxyPrivate 3709s # { 3709s # GData *qdata; 3709s # }; 3709s # 3709s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3709s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3709s # 3709s # #else 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3709s # 3709s # #endif 3709s # static void 3709s # org_project_useful_interface_proxy_finalize (GObject *object) 3709s # { 3709s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 3709s # g_datalist_clear (&proxy->priv->qdata); 3709s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3709s # guint prop_id G_GNUC_UNUSED, 3709s # GValue *value G_GNUC_UNUSED, 3709s # GParamSpec *pspec G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3709s # guint prop_id G_GNUC_UNUSED, 3709s # const GValue *value G_GNUC_UNUSED, 3709s # GParamSpec *pspec G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 3709s # const gchar *sender_name G_GNUC_UNUSED, 3709s # const gchar *signal_name, 3709s # GVariant *parameters) 3709s # { 3709s # _ExtendedGDBusSignalInfo *info; 3709s # GVariantIter iter; 3709s # GVariant *child; 3709s # GValue *paramv; 3709s # gsize num_params; 3709s # gsize n; 3709s # guint signal_id; 3709s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 3709s # if (info == NULL) 3709s # return; 3709s # num_params = g_variant_n_children (parameters); 3709s # paramv = g_new0 (GValue, num_params + 1); 3709s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_set_object (¶mv[0], proxy); 3709s # g_variant_iter_init (&iter, parameters); 3709s # n = 1; 3709s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3709s # { 3709s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3709s # if (arg_info->use_gvariant) 3709s # { 3709s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3709s # g_value_set_variant (¶mv[n], child); 3709s # n++; 3709s # } 3709s # else 3709s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3709s # g_variant_unref (child); 3709s # } 3709s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_signal_emitv (paramv, signal_id, 0, NULL); 3709s # for (n = 0; n < num_params + 1; n++) 3709s # g_value_unset (¶mv[n]); 3709s # g_free (paramv); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 3709s # GVariant *changed_properties, 3709s # const gchar *const *invalidated_properties) 3709s # { 3709s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 3709s # guint n; 3709s # const gchar *key; 3709s # GVariantIter *iter; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # g_variant_get (changed_properties, "a{sv}", &iter); 3709s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3709s # { 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 3709s # g_datalist_remove_data (&proxy->priv->qdata, key); 3709s # if (info != NULL) 3709s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3709s # } 3709s # g_variant_iter_free (iter); 3709s # for (n = 0; invalidated_properties[n] != NULL; n++) 3709s # { 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 3709s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3709s # if (info != NULL) 3709s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3709s # } 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 3709s # { 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 3709s # #else 3709s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 3709s # #endif 3709s # 3709s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 3709s # { 3709s # GObjectClass *gobject_class; 3709s # GDBusProxyClass *proxy_class; 3709s # 3709s # gobject_class = G_OBJECT_CLASS (klass); 3709s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 3709s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 3709s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 3709s # 3709s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3709s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 3709s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3709s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 3709s # #endif 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new: 3709s # * @connection: A #GDBusConnection. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new() for more details. 3709s # * 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3709s # */ 3709s # void 3709s # org_project_useful_interface_proxy_new ( 3709s # GDBusConnection *connection, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_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); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_finish: 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_finish ( 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GObject *ret; 3709s # GObject *source_object; 3709s # source_object = g_async_result_get_source_object (res); 3709s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3709s # g_object_unref (source_object); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_sync: 3709s # * @connection: A #GDBusConnection. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new_sync() for more details. 3709s # * 3709s # * The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_sync ( 3709s # GDBusConnection *connection, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GInitable *ret; 3709s # 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); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus: 3709s # * @bus_type: A #GBusType. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: A bus name (well-known or unique). 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3709s # * 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3709s # */ 3709s # void 3709s # org_project_useful_interface_proxy_new_for_bus ( 3709s # GBusType bus_type, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_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); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus_finish: 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_for_bus_finish ( 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GObject *ret; 3709s # GObject *source_object; 3709s # source_object = g_async_result_get_source_object (res); 3709s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3709s # g_object_unref (source_object); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus_sync: 3709s # * @bus_type: A #GBusType. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: A bus name (well-known or unique). 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3709s # * 3709s # * The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_for_bus_sync ( 3709s # GBusType bus_type, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GInitable *ret; 3709s # 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); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # 3709s # /* ------------------------------------------------------------------------ */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceSkeleton: 3709s # * 3709s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceSkeletonClass: 3709s # * @parent_class: The parent class. 3709s # * 3709s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 3709s # */ 3709s # 3709s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 3709s # { 3709s # GValue *properties; 3709s # GList *changed_properties; 3709s # GSource *changed_properties_idle_source; 3709s # GMainContext *context; 3709s # GMutex lock; 3709s # }; 3709s # 3709s # static void 3709s # _org_project_useful_interface_skeleton_handle_method_call ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name, 3709s # const gchar *method_name, 3709s # GVariant *parameters, 3709s # GDBusMethodInvocation *invocation, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # _ExtendedGDBusMethodInfo *info; 3709s # GVariantIter iter; 3709s # GVariant *child; 3709s # GValue *paramv; 3709s # gsize num_params; 3709s # guint num_extra; 3709s # gsize n; 3709s # guint signal_id; 3709s # GValue return_value = G_VALUE_INIT; 3709s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3709s # g_assert (info != NULL); 3709s # num_params = g_variant_n_children (parameters); 3709s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3709s # n = 0; 3709s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_set_object (¶mv[n++], skeleton); 3709s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3709s # g_value_set_object (¶mv[n++], invocation); 3709s # if (info->pass_fdlist) 3709s # { 3709s # #ifdef G_OS_UNIX 3709s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3709s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3709s # #else 3709s # g_assert_not_reached (); 3709s # #endif 3709s # } 3709s # g_variant_iter_init (&iter, parameters); 3709s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3709s # { 3709s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3709s # if (arg_info->use_gvariant) 3709s # { 3709s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3709s # g_value_set_variant (¶mv[n], child); 3709s # n++; 3709s # } 3709s # else 3709s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3709s # g_variant_unref (child); 3709s # } 3709s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3709s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3709s # if (!g_value_get_boolean (&return_value)) 3709s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3709s # g_value_unset (&return_value); 3709s # for (n = 0; n < num_params + num_extra; n++) 3709s # g_value_unset (¶mv[n]); 3709s # g_free (paramv); 3709s # } 3709s # 3709s # static GVariant * 3709s # _org_project_useful_interface_skeleton_handle_get_property ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name G_GNUC_UNUSED, 3709s # const gchar *property_name, 3709s # GError **error, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # GValue value = G_VALUE_INIT; 3709s # GParamSpec *pspec; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # GVariant *ret; 3709s # ret = NULL; 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3709s # g_assert (info != NULL); 3709s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3709s # if (pspec == NULL) 3709s # { 3709s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3709s # } 3709s # else 3709s # { 3709s # g_value_init (&value, pspec->value_type); 3709s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3709s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3709s # g_value_unset (&value); 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static gboolean 3709s # _org_project_useful_interface_skeleton_handle_set_property ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name G_GNUC_UNUSED, 3709s # const gchar *property_name, 3709s # GVariant *variant, 3709s # GError **error, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # GValue value = G_VALUE_INIT; 3709s # GParamSpec *pspec; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # gboolean ret; 3709s # ret = FALSE; 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3709s # g_assert (info != NULL); 3709s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3709s # if (pspec == NULL) 3709s # { 3709s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3709s # } 3709s # else 3709s # { 3709s # if (info->use_gvariant) 3709s # g_value_set_variant (&value, variant); 3709s # else 3709s # g_dbus_gvariant_to_gvalue (variant, &value); 3709s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3709s # g_value_unset (&value); 3709s # ret = TRUE; 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 3709s # { 3709s # _org_project_useful_interface_skeleton_handle_method_call, 3709s # _org_project_useful_interface_skeleton_handle_get_property, 3709s # _org_project_useful_interface_skeleton_handle_set_property, 3709s # {NULL} 3709s # }; 3709s # 3709s # static GDBusInterfaceInfo * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3709s # { 3709s # return org_project_useful_interface_interface_info (); 3709s # } 3709s # 3709s # static GDBusInterfaceVTable * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3709s # { 3709s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 3709s # } 3709s # 3709s # static GVariant * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 3709s # 3709s # GVariantBuilder builder; 3709s # guint n; 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3709s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3709s # #else 3709s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3709s # #endif 3709s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 3709s # goto out; 3709s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 3709s # { 3709s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 3709s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3709s # { 3709s # GVariant *value; 3709s # 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); 3709s # if (value != NULL) 3709s # { 3709s # g_variant_take_ref (value); 3709s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3709s # g_variant_unref (value); 3709s # } 3709s # } 3709s # } 3709s # out: 3709s # return g_variant_builder_end (&builder); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3709s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3709s # 3709s # #else 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3709s # 3709s # #endif 3709s # static void 3709s # org_project_useful_interface_skeleton_finalize (GObject *object) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 3709s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3709s # if (skeleton->priv->changed_properties_idle_source != NULL) 3709s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3709s # g_main_context_unref (skeleton->priv->context); 3709s # g_mutex_clear (&skeleton->priv->lock); 3709s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 3709s # { 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 3709s # #else 3709s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 3709s # #endif 3709s # 3709s # g_mutex_init (&skeleton->priv->lock); 3709s # skeleton->priv->context = g_main_context_ref_thread_default (); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 3709s # { 3709s # GObjectClass *gobject_class; 3709s # GDBusInterfaceSkeletonClass *skeleton_class; 3709s # 3709s # gobject_class = G_OBJECT_CLASS (klass); 3709s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 3709s # 3709s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3709s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 3709s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 3709s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 3709s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3709s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 3709s # #endif 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_skeleton_new: 3709s # * 3709s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_skeleton_new (void) 3709s # { 3709s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 3709s # } 3709s # Error: 3709s # 3709s # /tmp/tmplo7nhxxl/tmp7n9pbxnc.xml: 3709s # <node> 3709s # <interface name="org.project.UsefulInterface"> 3709s # <method name="SingleArgMethodAsv"> 3709s # <arg name="arg_asv" type="a{sv}" direction="out"/> 3709s # </method> 3709s # </interface> 3709s # </node> 3709s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplo7nhxxl/tmp7n9pbxnc.xml', '--output', '-', '--body'] 3709s # Return code: 0 3709s # Output: 3709s # /* 3709s # * This file is generated by gdbus-codegen, do not modify it. 3709s # * 3709s # * The license of this code is the same as for the D-Bus interface description 3709s # * it was derived from. Note that it links to GLib, so must comply with the 3709s # * LGPL linking clauses. 3709s # */ 3709s # 3709s # #ifdef HAVE_CONFIG_H 3709s # # include "config.h" 3709s # #endif 3709s # 3709s # #include <string.h> 3709s # #ifdef G_OS_UNIX 3709s # # include <gio/gunixfdlist.h> 3709s # #endif 3709s # 3709s # #ifdef G_ENABLE_DEBUG 3709s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3709s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3709s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3709s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3709s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3709s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3709s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3709s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3709s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3709s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3709s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3709s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3709s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3709s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3709s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3709s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3709s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3709s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3709s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3709s # #else /* !G_ENABLE_DEBUG */ 3709s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3709s # * Do not access GValues directly in your code. Instead, use the 3709s # * g_value_get_*() functions 3709s # */ 3709s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3709s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3709s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3709s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3709s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3709s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3709s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3709s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3709s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3709s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3709s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3709s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3709s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3709s # #endif /* !G_ENABLE_DEBUG */ 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusArgInfo parent_struct; 3709s # gboolean use_gvariant; 3709s # } _ExtendedGDBusArgInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusMethodInfo parent_struct; 3709s # const gchar *signal_name; 3709s # gboolean pass_fdlist; 3709s # } _ExtendedGDBusMethodInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusSignalInfo parent_struct; 3709s # const gchar *signal_name; 3709s # } _ExtendedGDBusSignalInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusPropertyInfo parent_struct; 3709s # const gchar *hyphen_name; 3709s # guint use_gvariant : 1; 3709s # guint emits_changed_signal : 1; 3709s # } _ExtendedGDBusPropertyInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # GDBusInterfaceInfo parent_struct; 3709s # const gchar *hyphen_name; 3709s # } _ExtendedGDBusInterfaceInfo; 3709s # 3709s # typedef struct 3709s # { 3709s # const _ExtendedGDBusPropertyInfo *info; 3709s # guint prop_id; 3709s # GValue orig_value; /* the value before the change */ 3709s # } ChangedProperty; 3709s # 3709s # static void 3709s # _changed_property_free (ChangedProperty *data) 3709s # { 3709s # g_value_unset (&data->orig_value); 3709s # g_free (data); 3709s # } 3709s # 3709s # static gboolean 3709s # _g_strv_equal0 (gchar **a, gchar **b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # guint n; 3709s # if (a == NULL && b == NULL) 3709s # { 3709s # ret = TRUE; 3709s # goto out; 3709s # } 3709s # if (a == NULL || b == NULL) 3709s # goto out; 3709s # if (g_strv_length (a) != g_strv_length (b)) 3709s # goto out; 3709s # for (n = 0; a[n] != NULL; n++) 3709s # if (g_strcmp0 (a[n], b[n]) != 0) 3709s # goto out; 3709s # ret = TRUE; 3709s # out: 3709s # return ret; 3709s # } 3709s # 3709s # static gboolean 3709s # _g_variant_equal0 (GVariant *a, GVariant *b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # if (a == NULL && b == NULL) 3709s # { 3709s # ret = TRUE; 3709s # goto out; 3709s # } 3709s # if (a == NULL || b == NULL) 3709s # goto out; 3709s # ret = g_variant_equal (a, b); 3709s # out: 3709s # return ret; 3709s # } 3709s # 3709s # G_GNUC_UNUSED static gboolean 3709s # _g_value_equal (const GValue *a, const GValue *b) 3709s # { 3709s # gboolean ret = FALSE; 3709s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3709s # switch (G_VALUE_TYPE (a)) 3709s # { 3709s # case G_TYPE_BOOLEAN: 3709s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3709s # break; 3709s # case G_TYPE_UCHAR: 3709s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3709s # break; 3709s # case G_TYPE_INT: 3709s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3709s # break; 3709s # case G_TYPE_UINT: 3709s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3709s # break; 3709s # case G_TYPE_INT64: 3709s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3709s # break; 3709s # case G_TYPE_UINT64: 3709s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3709s # break; 3709s # case G_TYPE_DOUBLE: 3709s # { 3709s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3709s # gdouble da = g_value_get_double (a); 3709s # gdouble db = g_value_get_double (b); 3709s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3709s # } 3709s # break; 3709s # case G_TYPE_STRING: 3709s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3709s # break; 3709s # case G_TYPE_VARIANT: 3709s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3709s # break; 3709s # default: 3709s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3709s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3709s # else 3709s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3709s # break; 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static void 3709s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 3709s # GClosure *closure, 3709s # GValue *return_value, 3709s # unsigned int n_param_values, 3709s # const GValue *param_values, 3709s # void *invocation_hint G_GNUC_UNUSED, 3709s # void *marshal_data) 3709s # { 3709s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 3709s # (void *data1, 3709s # GDBusMethodInvocation *arg_method_invocation, 3709s # void *data2); 3709s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 3709s # GCClosure *cc = (GCClosure*) closure; 3709s # void *data1, *data2; 3709s # gboolean v_return; 3709s # 3709s # g_return_if_fail (return_value != NULL); 3709s # g_return_if_fail (n_param_values == 2); 3709s # 3709s # if (G_CCLOSURE_SWAP_DATA (closure)) 3709s # { 3709s # data1 = closure->data; 3709s # data2 = g_value_peek_pointer (param_values + 0); 3709s # } 3709s # else 3709s # { 3709s # data1 = g_value_peek_pointer (param_values + 0); 3709s # data2 = closure->data; 3709s # } 3709s # 3709s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 3709s # (marshal_data ? marshal_data : cc->callback); 3709s # 3709s # v_return = 3709s # callback (data1, 3709s # g_marshal_value_peek_object (param_values + 1), 3709s # data2); 3709s # 3709s # g_value_set_boolean (return_value, v_return); 3709s # } 3709s # 3709s # /* ------------------------------------------------------------------------ 3709s # * Code for interface org.project.UsefulInterface 3709s # * ------------------------------------------------------------------------ 3709s # */ 3709s # 3709s # /** 3709s # * SECTION:OrgProjectUsefulInterface 3709s # * @title: OrgProjectUsefulInterface 3709s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 3709s # * 3709s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface in C. 3709s # */ 3709s # 3709s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 3709s # 3709s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_arg_asv = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "arg_asv", 3709s # (gchar *) "a{sv}", 3709s # NULL 3709s # }, 3709s # FALSE 3709s # }; 3709s # 3709s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_pointers[] = 3709s # { 3709s # &_org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_arg_asv.parent_struct, 3709s # NULL 3709s # }; 3709s # 3709s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_asv = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "SingleArgMethodAsv", 3709s # NULL, 3709s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_pointers, 3709s # NULL 3709s # }, 3709s # "handle-single-arg-method-asv", 3709s # FALSE 3709s # }; 3709s # 3709s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 3709s # { 3709s # &_org_project_useful_interface_method_info_single_arg_method_asv.parent_struct, 3709s # NULL 3709s # }; 3709s # 3709s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 3709s # { 3709s # { 3709s # -1, 3709s # (gchar *) "org.project.UsefulInterface", 3709s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 3709s # NULL, 3709s # NULL, 3709s # NULL 3709s # }, 3709s # "org-project-useful-interface", 3709s # }; 3709s # 3709s # 3709s # /** 3709s # * org_project_useful_interface_interface_info: 3709s # * 3709s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface. 3709s # * 3709s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3709s # */ 3709s # GDBusInterfaceInfo * 3709s # org_project_useful_interface_interface_info (void) 3709s # { 3709s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_override_properties: 3709s # * @klass: The class structure for a #GObject derived class. 3709s # * @property_id_begin: The property id to assign to the first overridden property. 3709s # * 3709s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 3709s # * The properties are overridden in the order they are defined. 3709s # * 3709s # * Returns: The last property id. 3709s # */ 3709s # guint 3709s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3709s # { 3709s # return property_id_begin - 1; 3709s # } 3709s # 3709s # 3709s # inline static void 3709s # org_project_useful_interface_method_marshal_single_arg_method_asv ( 3709s # GClosure *closure, 3709s # GValue *return_value, 3709s # unsigned int n_param_values, 3709s # const GValue *param_values, 3709s # void *invocation_hint, 3709s # void *marshal_data) 3709s # { 3709s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 3709s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3709s # } 3709s # 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterface: 3709s # * 3709s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceIface: 3709s # * @parent_iface: The parent interface. 3709s # * @handle_single_arg_method_asv: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-asv signal. 3709s # * 3709s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # */ 3709s # 3709s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 3709s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 3709s # 3709s # static void 3709s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 3709s # { 3709s # /* GObject signals for incoming D-Bus method calls: */ 3709s # /** 3709s # * OrgProjectUsefulInterface::handle-single-arg-method-asv: 3709s # * @object: A #OrgProjectUsefulInterface. 3709s # * @invocation: A #GDBusMethodInvocation. 3709s # * 3709s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodAsv">SingleArgMethodAsv()</link> D-Bus method. 3709s # * 3709s # * 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. 3709s # * 3709s # * 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. 3709s # */ 3709s # g_signal_new ("handle-single-arg-method-asv", 3709s # G_TYPE_FROM_INTERFACE (iface), 3709s # G_SIGNAL_RUN_LAST, 3709s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_asv), 3709s # g_signal_accumulator_true_handled, 3709s # NULL, 3709s # org_project_useful_interface_method_marshal_single_arg_method_asv, 3709s # G_TYPE_BOOLEAN, 3709s # 1, 3709s # G_TYPE_DBUS_METHOD_INVOCATION); 3709s # 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_asv: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodAsv">SingleArgMethodAsv()</link> D-Bus method on @proxy. 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_call_single_arg_method_asv_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_call_single_arg_method_asv_sync() for the synchronous, blocking version of this method. 3709s # */ 3709s # void 3709s # org_project_useful_interface_call_single_arg_method_asv ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3709s # "SingleArgMethodAsv", 3709s # g_variant_new ("()"), 3709s # G_DBUS_CALL_FLAGS_NONE, 3709s # -1, 3709s # cancellable, 3709s # callback, 3709s # user_data); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_asv_finish: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @out_arg_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_asv(). 3709s # * @error: Return location for error or %NULL. 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_asv(). 3709s # * 3709s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3709s # */ 3709s # gboolean 3709s # org_project_useful_interface_call_single_arg_method_asv_finish ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # GVariant **out_arg_asv, 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GVariant *_ret; 3709s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3709s # if (_ret == NULL) 3709s # goto _out; 3709s # g_variant_get (_ret, 3709s # "(@a{sv})", 3709s # out_arg_asv); 3709s # g_variant_unref (_ret); 3709s # _out: 3709s # return _ret != NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_call_single_arg_method_asv_sync: 3709s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 3709s # * @out_arg_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL. 3709s # * 3709s # * Synchronously invokes the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodAsv">SingleArgMethodAsv()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_call_single_arg_method_asv() for the asynchronous version of this method. 3709s # * 3709s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3709s # */ 3709s # gboolean 3709s # org_project_useful_interface_call_single_arg_method_asv_sync ( 3709s # OrgProjectUsefulInterface *proxy, 3709s # GVariant **out_arg_asv, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GVariant *_ret; 3709s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3709s # "SingleArgMethodAsv", 3709s # g_variant_new ("()"), 3709s # G_DBUS_CALL_FLAGS_NONE, 3709s # -1, 3709s # cancellable, 3709s # error); 3709s # if (_ret == NULL) 3709s # goto _out; 3709s # g_variant_get (_ret, 3709s # "(@a{sv})", 3709s # out_arg_asv); 3709s # g_variant_unref (_ret); 3709s # _out: 3709s # return _ret != NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_complete_single_arg_method_asv: 3709s # * @object: A #OrgProjectUsefulInterface. 3709s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3709s # * @arg_asv: Parameter to return. 3709s # * 3709s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-UsefulInterface.SingleArgMethodAsv">SingleArgMethodAsv()</link> 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. 3709s # * 3709s # * This method will free @invocation, you cannot use it afterwards. 3709s # */ 3709s # void 3709s # org_project_useful_interface_complete_single_arg_method_asv ( 3709s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 3709s # GDBusMethodInvocation *invocation, 3709s # GVariant *arg_asv) 3709s # { 3709s # g_dbus_method_invocation_return_value (invocation, 3709s # g_variant_new ("(@a{sv})", 3709s # arg_asv)); 3709s # } 3709s # 3709s # /* ------------------------------------------------------------------------ */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceProxy: 3709s # * 3709s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceProxyClass: 3709s # * @parent_class: The parent class. 3709s # * 3709s # * Class structure for #OrgProjectUsefulInterfaceProxy. 3709s # */ 3709s # 3709s # struct _OrgProjectUsefulInterfaceProxyPrivate 3709s # { 3709s # GData *qdata; 3709s # }; 3709s # 3709s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3709s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3709s # 3709s # #else 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3709s # 3709s # #endif 3709s # static void 3709s # org_project_useful_interface_proxy_finalize (GObject *object) 3709s # { 3709s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 3709s # g_datalist_clear (&proxy->priv->qdata); 3709s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3709s # guint prop_id G_GNUC_UNUSED, 3709s # GValue *value G_GNUC_UNUSED, 3709s # GParamSpec *pspec G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3709s # guint prop_id G_GNUC_UNUSED, 3709s # const GValue *value G_GNUC_UNUSED, 3709s # GParamSpec *pspec G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 3709s # const gchar *sender_name G_GNUC_UNUSED, 3709s # const gchar *signal_name, 3709s # GVariant *parameters) 3709s # { 3709s # _ExtendedGDBusSignalInfo *info; 3709s # GVariantIter iter; 3709s # GVariant *child; 3709s # GValue *paramv; 3709s # gsize num_params; 3709s # gsize n; 3709s # guint signal_id; 3709s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 3709s # if (info == NULL) 3709s # return; 3709s # num_params = g_variant_n_children (parameters); 3709s # paramv = g_new0 (GValue, num_params + 1); 3709s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_set_object (¶mv[0], proxy); 3709s # g_variant_iter_init (&iter, parameters); 3709s # n = 1; 3709s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3709s # { 3709s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3709s # if (arg_info->use_gvariant) 3709s # { 3709s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3709s # g_value_set_variant (¶mv[n], child); 3709s # n++; 3709s # } 3709s # else 3709s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3709s # g_variant_unref (child); 3709s # } 3709s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_signal_emitv (paramv, signal_id, 0, NULL); 3709s # for (n = 0; n < num_params + 1; n++) 3709s # g_value_unset (¶mv[n]); 3709s # g_free (paramv); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 3709s # GVariant *changed_properties, 3709s # const gchar *const *invalidated_properties) 3709s # { 3709s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 3709s # guint n; 3709s # const gchar *key; 3709s # GVariantIter *iter; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # g_variant_get (changed_properties, "a{sv}", &iter); 3709s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3709s # { 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 3709s # g_datalist_remove_data (&proxy->priv->qdata, key); 3709s # if (info != NULL) 3709s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3709s # } 3709s # g_variant_iter_free (iter); 3709s # for (n = 0; invalidated_properties[n] != NULL; n++) 3709s # { 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 3709s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3709s # if (info != NULL) 3709s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3709s # } 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 3709s # { 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 3709s # #else 3709s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 3709s # #endif 3709s # 3709s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 3709s # { 3709s # GObjectClass *gobject_class; 3709s # GDBusProxyClass *proxy_class; 3709s # 3709s # gobject_class = G_OBJECT_CLASS (klass); 3709s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 3709s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 3709s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 3709s # 3709s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3709s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 3709s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3709s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 3709s # #endif 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new: 3709s # * @connection: A #GDBusConnection. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new() for more details. 3709s # * 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3709s # */ 3709s # void 3709s # org_project_useful_interface_proxy_new ( 3709s # GDBusConnection *connection, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_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); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_finish: 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_finish ( 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GObject *ret; 3709s # GObject *source_object; 3709s # source_object = g_async_result_get_source_object (res); 3709s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3709s # g_object_unref (source_object); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_sync: 3709s # * @connection: A #GDBusConnection. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new_sync() for more details. 3709s # * 3709s # * The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_sync ( 3709s # GDBusConnection *connection, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GInitable *ret; 3709s # 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); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus: 3709s # * @bus_type: A #GBusType. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: A bus name (well-known or unique). 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3709s # * @user_data: User data to pass to @callback. 3709s # * 3709s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3709s # * 3709s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3709s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3709s # */ 3709s # void 3709s # org_project_useful_interface_proxy_new_for_bus ( 3709s # GBusType bus_type, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GAsyncReadyCallback callback, 3709s # gpointer user_data) 3709s # { 3709s # g_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); 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus_finish: 3709s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_for_bus_finish ( 3709s # GAsyncResult *res, 3709s # GError **error) 3709s # { 3709s # GObject *ret; 3709s # GObject *source_object; 3709s # source_object = g_async_result_get_source_object (res); 3709s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3709s # g_object_unref (source_object); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_proxy_new_for_bus_sync: 3709s # * @bus_type: A #GBusType. 3709s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3709s # * @name: A bus name (well-known or unique). 3709s # * @object_path: An object path. 3709s # * @cancellable: (nullable): A #GCancellable or %NULL. 3709s # * @error: Return location for error or %NULL 3709s # * 3709s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3709s # * 3709s # * The calling thread is blocked until a reply is received. 3709s # * 3709s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_proxy_new_for_bus_sync ( 3709s # GBusType bus_type, 3709s # GDBusProxyFlags flags, 3709s # const gchar *name, 3709s # const gchar *object_path, 3709s # GCancellable *cancellable, 3709s # GError **error) 3709s # { 3709s # GInitable *ret; 3709s # 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); 3709s # if (ret != NULL) 3709s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3709s # else 3709s # return NULL; 3709s # } 3709s # 3709s # 3709s # /* ------------------------------------------------------------------------ */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceSkeleton: 3709s # * 3709s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3709s # */ 3709s # 3709s # /** 3709s # * OrgProjectUsefulInterfaceSkeletonClass: 3709s # * @parent_class: The parent class. 3709s # * 3709s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 3709s # */ 3709s # 3709s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 3709s # { 3709s # GValue *properties; 3709s # GList *changed_properties; 3709s # GSource *changed_properties_idle_source; 3709s # GMainContext *context; 3709s # GMutex lock; 3709s # }; 3709s # 3709s # static void 3709s # _org_project_useful_interface_skeleton_handle_method_call ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name, 3709s # const gchar *method_name, 3709s # GVariant *parameters, 3709s # GDBusMethodInvocation *invocation, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # _ExtendedGDBusMethodInfo *info; 3709s # GVariantIter iter; 3709s # GVariant *child; 3709s # GValue *paramv; 3709s # gsize num_params; 3709s # guint num_extra; 3709s # gsize n; 3709s # guint signal_id; 3709s # GValue return_value = G_VALUE_INIT; 3709s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3709s # g_assert (info != NULL); 3709s # num_params = g_variant_n_children (parameters); 3709s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3709s # n = 0; 3709s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_set_object (¶mv[n++], skeleton); 3709s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3709s # g_value_set_object (¶mv[n++], invocation); 3709s # if (info->pass_fdlist) 3709s # { 3709s # #ifdef G_OS_UNIX 3709s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3709s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3709s # #else 3709s # g_assert_not_reached (); 3709s # #endif 3709s # } 3709s # g_variant_iter_init (&iter, parameters); 3709s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3709s # { 3709s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3709s # if (arg_info->use_gvariant) 3709s # { 3709s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3709s # g_value_set_variant (¶mv[n], child); 3709s # n++; 3709s # } 3709s # else 3709s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3709s # g_variant_unref (child); 3709s # } 3709s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3709s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3709s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3709s # if (!g_value_get_boolean (&return_value)) 3709s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3709s # g_value_unset (&return_value); 3709s # for (n = 0; n < num_params + num_extra; n++) 3709s # g_value_unset (¶mv[n]); 3709s # g_free (paramv); 3709s # } 3709s # 3709s # static GVariant * 3709s # _org_project_useful_interface_skeleton_handle_get_property ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name G_GNUC_UNUSED, 3709s # const gchar *property_name, 3709s # GError **error, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # GValue value = G_VALUE_INIT; 3709s # GParamSpec *pspec; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # GVariant *ret; 3709s # ret = NULL; 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3709s # g_assert (info != NULL); 3709s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3709s # if (pspec == NULL) 3709s # { 3709s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3709s # } 3709s # else 3709s # { 3709s # g_value_init (&value, pspec->value_type); 3709s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3709s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3709s # g_value_unset (&value); 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static gboolean 3709s # _org_project_useful_interface_skeleton_handle_set_property ( 3709s # GDBusConnection *connection G_GNUC_UNUSED, 3709s # const gchar *sender G_GNUC_UNUSED, 3709s # const gchar *object_path G_GNUC_UNUSED, 3709s # const gchar *interface_name G_GNUC_UNUSED, 3709s # const gchar *property_name, 3709s # GVariant *variant, 3709s # GError **error, 3709s # gpointer user_data) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3709s # GValue value = G_VALUE_INIT; 3709s # GParamSpec *pspec; 3709s # _ExtendedGDBusPropertyInfo *info; 3709s # gboolean ret; 3709s # ret = FALSE; 3709s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3709s # g_assert (info != NULL); 3709s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3709s # if (pspec == NULL) 3709s # { 3709s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3709s # } 3709s # else 3709s # { 3709s # if (info->use_gvariant) 3709s # g_value_set_variant (&value, variant); 3709s # else 3709s # g_dbus_gvariant_to_gvalue (variant, &value); 3709s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3709s # g_value_unset (&value); 3709s # ret = TRUE; 3709s # } 3709s # return ret; 3709s # } 3709s # 3709s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 3709s # { 3709s # _org_project_useful_interface_skeleton_handle_method_call, 3709s # _org_project_useful_interface_skeleton_handle_get_property, 3709s # _org_project_useful_interface_skeleton_handle_set_property, 3709s # {NULL} 3709s # }; 3709s # 3709s # static GDBusInterfaceInfo * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3709s # { 3709s # return org_project_useful_interface_interface_info (); 3709s # } 3709s # 3709s # static GDBusInterfaceVTable * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3709s # { 3709s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 3709s # } 3709s # 3709s # static GVariant * 3709s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 3709s # 3709s # GVariantBuilder builder; 3709s # guint n; 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3709s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3709s # #else 3709s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3709s # #endif 3709s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 3709s # goto out; 3709s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 3709s # { 3709s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 3709s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3709s # { 3709s # GVariant *value; 3709s # 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); 3709s # if (value != NULL) 3709s # { 3709s # g_variant_take_ref (value); 3709s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3709s # g_variant_unref (value); 3709s # } 3709s # } 3709s # } 3709s # out: 3709s # return g_variant_builder_end (&builder); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3709s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3709s # 3709s # #else 3709s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3709s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3709s # 3709s # #endif 3709s # static void 3709s # org_project_useful_interface_skeleton_finalize (GObject *object) 3709s # { 3709s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 3709s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3709s # if (skeleton->priv->changed_properties_idle_source != NULL) 3709s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3709s # g_main_context_unref (skeleton->priv->context); 3709s # g_mutex_clear (&skeleton->priv->lock); 3709s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 3709s # { 3709s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3709s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 3709s # #else 3709s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 3709s # #endif 3709s # 3709s # g_mutex_init (&skeleton->priv->lock); 3709s # skeleton->priv->context = g_main_context_ref_thread_default (); 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 3709s # { 3709s # GObjectClass *gobject_class; 3709s # GDBusInterfaceSkeletonClass *skeleton_class; 3709s # 3709s # gobject_class = G_OBJECT_CLASS (klass); 3709s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 3709s # 3709s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3709s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 3709s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 3709s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 3709s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 3709s # 3709s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3709s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 3709s # #endif 3709s # } 3709s # 3709s # static void 3709s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3709s # { 3709s # } 3709s # 3709s # /** 3709s # * org_project_useful_interface_skeleton_new: 3709s # * 3709s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3709s # * 3709s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 3709s # */ 3709s # OrgProjectUsefulInterface * 3709s # org_project_useful_interface_skeleton_new (void) 3709s # { 3709s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 3709s # } 3709s # Error: 3710s ok 12 __main__.TestCodegen.test_generate_methods_marshallers_multiple_in_args 3710s # gdbus-codegen: /usr/bin/gdbus-codegen 3710s # tmpdir: /tmp/tmpvoz3a3oe 3710s # /tmp/tmpvoz3a3oe/tmpbb5xos10.xml: 3710s # <node> 3710s # <interface name="org.project.CallableIface"> 3710s # <method name="MethodWithManyArgs"> 3710s # <arg name='an_b' type='b'/> 3710s # <arg name='an_y' type='y'/> 3710s # <arg name='an_n' type='n'/> 3710s # <arg name='an_q' type='q'/> 3710s # <arg name='an_i' type='i'/> 3710s # <arg name='an_u' type='u'/> 3710s # <arg name='an_x' type='x'/> 3710s # <arg name='an_t' type='t'/> 3710s # <arg name='an_d' type='d'/> 3710s # <arg name='an_s' type='s'/> 3710s # <arg name='an_o' type='o'/> 3710s # <arg name='an_g' type='g'/> 3710s # <arg name='an_h' type='h'/> 3710s # <arg name='an_ay' type='ay'/> 3710s # <arg name='an_as' type='as'/> 3710s # <arg name='an_ao' type='ao'/> 3710s # <arg name='an_aay' type='aay'/> 3710s # <arg name='an_asv' type='a{sv}'/> 3710s # 3710s # </method> 3710s # <method name="SameMethodWithManyArgs"> 3710s # <arg name='an_b' type='b'/> 3710s # <arg name='an_y' type='y'/> 3710s # <arg name='an_n' type='n'/> 3710s # <arg name='an_q' type='q'/> 3710s # <arg name='an_i' type='i'/> 3710s # <arg name='an_u' type='u'/> 3710s # <arg name='an_x' type='x'/> 3710s # <arg name='an_t' type='t'/> 3710s # <arg name='an_d' type='d'/> 3710s # <arg name='an_s' type='s'/> 3710s # <arg name='an_o' type='o'/> 3710s # <arg name='an_g' type='g'/> 3710s # <arg name='an_h' type='h'/> 3710s # <arg name='an_ay' type='ay'/> 3710s # <arg name='an_as' type='as'/> 3710s # <arg name='an_ao' type='ao'/> 3710s # <arg name='an_aay' type='aay'/> 3710s # <arg name='an_asv' type='a{sv}'/> 3710s # 3710s # </method> 3710s # </interface> 3710s # <interface name="org.project.OtherCallableIface"> 3710s # <method name="MethodWithManyArgs"> 3710s # <arg name='an_b' type='b'/> 3710s # <arg name='an_y' type='y'/> 3710s # <arg name='an_n' type='n'/> 3710s # <arg name='an_q' type='q'/> 3710s # <arg name='an_i' type='i'/> 3710s # <arg name='an_u' type='u'/> 3710s # <arg name='an_x' type='x'/> 3710s # <arg name='an_t' type='t'/> 3710s # <arg name='an_d' type='d'/> 3710s # <arg name='an_s' type='s'/> 3710s # <arg name='an_o' type='o'/> 3710s # <arg name='an_g' type='g'/> 3710s # <arg name='an_h' type='h'/> 3710s # <arg name='an_ay' type='ay'/> 3710s # <arg name='an_as' type='as'/> 3710s # <arg name='an_ao' type='ao'/> 3710s # <arg name='an_aay' type='aay'/> 3710s # <arg name='an_asv' type='a{sv}'/> 3710s # 3710s # </method> 3710s # </interface> 3710s # </node> 3710s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpvoz3a3oe/tmpbb5xos10.xml', '--output', '-', '--body'] 3710s # Return code: 0 3710s # Output: 3710s # /* 3710s # * This file is generated by gdbus-codegen, do not modify it. 3710s # * 3710s # * The license of this code is the same as for the D-Bus interface description 3710s # * it was derived from. Note that it links to GLib, so must comply with the 3710s # * LGPL linking clauses. 3710s # */ 3710s # 3710s # #ifdef HAVE_CONFIG_H 3710s # # include "config.h" 3710s # #endif 3710s # 3710s # #include <string.h> 3710s # #ifdef G_OS_UNIX 3710s # # include <gio/gunixfdlist.h> 3710s # #endif 3710s # 3710s # #ifdef G_ENABLE_DEBUG 3710s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3710s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3710s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3710s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3710s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3710s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3710s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3710s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3710s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3710s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3710s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3710s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3710s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3710s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3710s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3710s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3710s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3710s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3710s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3710s # #else /* !G_ENABLE_DEBUG */ 3710s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3710s # * Do not access GValues directly in your code. Instead, use the 3710s # * g_value_get_*() functions 3710s # */ 3710s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3710s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3710s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3710s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3710s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3710s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3710s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3710s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3710s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3710s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3710s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3710s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3710s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3710s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3710s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3710s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3710s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3710s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3710s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3710s # #endif /* !G_ENABLE_DEBUG */ 3710s # 3710s # typedef struct 3710s # { 3710s # GDBusArgInfo parent_struct; 3710s # gboolean use_gvariant; 3710s # } _ExtendedGDBusArgInfo; 3710s # 3710s # typedef struct 3710s # { 3710s # GDBusMethodInfo parent_struct; 3710s # const gchar *signal_name; 3710s # gboolean pass_fdlist; 3710s # } _ExtendedGDBusMethodInfo; 3710s # 3710s # typedef struct 3710s # { 3710s # GDBusSignalInfo parent_struct; 3710s # const gchar *signal_name; 3710s # } _ExtendedGDBusSignalInfo; 3710s # 3710s # typedef struct 3710s # { 3710s # GDBusPropertyInfo parent_struct; 3710s # const gchar *hyphen_name; 3710s # guint use_gvariant : 1; 3710s # guint emits_changed_signal : 1; 3710s # } _ExtendedGDBusPropertyInfo; 3710s # 3710s # typedef struct 3710s # { 3710s # GDBusInterfaceInfo parent_struct; 3710s # const gchar *hyphen_name; 3710s # } _ExtendedGDBusInterfaceInfo; 3710s # 3710s # typedef struct 3710s # { 3710s # const _ExtendedGDBusPropertyInfo *info; 3710s # guint prop_id; 3710s # GValue orig_value; /* the value before the change */ 3710s # } ChangedProperty; 3710s # 3710s # static void 3710s # _changed_property_free (ChangedProperty *data) 3710s # { 3710s # g_value_unset (&data->orig_value); 3710s # g_free (data); 3710s # } 3710s # 3710s # static gboolean 3710s # _g_strv_equal0 (gchar **a, gchar **b) 3710s # { 3710s # gboolean ret = FALSE; 3710s # guint n; 3710s # if (a == NULL && b == NULL) 3710s # { 3710s # ret = TRUE; 3710s # goto out; 3710s # } 3710s # if (a == NULL || b == NULL) 3710s # goto out; 3710s # if (g_strv_length (a) != g_strv_length (b)) 3710s # goto out; 3710s # for (n = 0; a[n] != NULL; n++) 3710s # if (g_strcmp0 (a[n], b[n]) != 0) 3710s # goto out; 3710s # ret = TRUE; 3710s # out: 3710s # return ret; 3710s # } 3710s # 3710s # static gboolean 3710s # _g_variant_equal0 (GVariant *a, GVariant *b) 3710s # { 3710s # gboolean ret = FALSE; 3710s # if (a == NULL && b == NULL) 3710s # { 3710s # ret = TRUE; 3710s # goto out; 3710s # } 3710s # if (a == NULL || b == NULL) 3710s # goto out; 3710s # ret = g_variant_equal (a, b); 3710s # out: 3710s # return ret; 3710s # } 3710s # 3710s # G_GNUC_UNUSED static gboolean 3710s # _g_value_equal (const GValue *a, const GValue *b) 3710s # { 3710s # gboolean ret = FALSE; 3710s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3710s # switch (G_VALUE_TYPE (a)) 3710s # { 3710s # case G_TYPE_BOOLEAN: 3710s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3710s # break; 3710s # case G_TYPE_UCHAR: 3710s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3710s # break; 3710s # case G_TYPE_INT: 3710s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3710s # break; 3710s # case G_TYPE_UINT: 3710s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3710s # break; 3710s # case G_TYPE_INT64: 3710s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3710s # break; 3710s # case G_TYPE_UINT64: 3710s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3710s # break; 3710s # case G_TYPE_DOUBLE: 3710s # { 3710s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3710s # gdouble da = g_value_get_double (a); 3710s # gdouble db = g_value_get_double (b); 3710s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3710s # } 3710s # break; 3710s # case G_TYPE_STRING: 3710s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3710s # break; 3710s # case G_TYPE_VARIANT: 3710s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3710s # break; 3710s # default: 3710s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3710s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3710s # else 3710s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3710s # break; 3710s # } 3710s # return ret; 3710s # } 3710s # 3710s # static void 3710s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 3710s # GClosure *closure, 3710s # GValue *return_value, 3710s # unsigned int n_param_values, 3710s # const GValue *param_values, 3710s # void *invocation_hint G_GNUC_UNUSED, 3710s # void *marshal_data) 3710s # { 3710s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 3710s # (void *data1, 3710s # GDBusMethodInvocation *arg_method_invocation, 3710s # gboolean arg_an_b, 3710s # guchar arg_an_y, 3710s # gint16 arg_an_n, 3710s # guint16 arg_an_q, 3710s # gint arg_an_i, 3710s # guint arg_an_u, 3710s # gint64 arg_an_x, 3710s # guint64 arg_an_t, 3710s # gdouble arg_an_d, 3710s # const gchar *arg_an_s, 3710s # const gchar *arg_an_o, 3710s # const gchar *arg_an_g, 3710s # GVariant *arg_an_h, 3710s # const gchar *arg_an_ay, 3710s # const gchar *const *arg_an_as, 3710s # const gchar *const *arg_an_ao, 3710s # const gchar *const *arg_an_aay, 3710s # GVariant *arg_an_asv, 3710s # void *data2); 3710s # _GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 3710s # GCClosure *cc = (GCClosure*) closure; 3710s # void *data1, *data2; 3710s # gboolean v_return; 3710s # 3710s # g_return_if_fail (return_value != NULL); 3710s # g_return_if_fail (n_param_values == 20); 3710s # 3710s # if (G_CCLOSURE_SWAP_DATA (closure)) 3710s # { 3710s # data1 = closure->data; 3710s # data2 = g_value_peek_pointer (param_values + 0); 3710s # } 3710s # else 3710s # { 3710s # data1 = g_value_peek_pointer (param_values + 0); 3710s # data2 = closure->data; 3710s # } 3710s # 3710s # callback = (_GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 3710s # (marshal_data ? marshal_data : cc->callback); 3710s # 3710s # v_return = 3710s # callback (data1, 3710s # g_marshal_value_peek_object (param_values + 1), 3710s # g_marshal_value_peek_boolean (param_values + 2), 3710s # g_marshal_value_peek_uchar (param_values + 3), 3710s # g_marshal_value_peek_int (param_values + 4), 3710s # g_marshal_value_peek_uint (param_values + 5), 3710s # g_marshal_value_peek_int (param_values + 6), 3710s # g_marshal_value_peek_uint (param_values + 7), 3710s # g_marshal_value_peek_int64 (param_values + 8), 3710s # g_marshal_value_peek_uint64 (param_values + 9), 3710s # g_marshal_value_peek_double (param_values + 10), 3710s # g_marshal_value_peek_string (param_values + 11), 3710s # g_marshal_value_peek_string (param_values + 12), 3710s # g_marshal_value_peek_string (param_values + 13), 3710s # g_marshal_value_peek_variant (param_values + 14), 3710s # g_marshal_value_peek_string (param_values + 15), 3710s # g_marshal_value_peek_boxed (param_values + 16), 3710s # g_marshal_value_peek_boxed (param_values + 17), 3710s # g_marshal_value_peek_boxed (param_values + 18), 3710s # g_marshal_value_peek_variant (param_values + 19), 3710s # data2); 3710s # 3710s # g_value_set_boolean (return_value, v_return); 3710s # } 3710s # 3710s # /* ------------------------------------------------------------------------ 3710s # * Code for interface org.project.CallableIface 3710s # * ------------------------------------------------------------------------ 3710s # */ 3710s # 3710s # /** 3710s # * SECTION:OrgProjectCallableIface 3710s # * @title: OrgProjectCallableIface 3710s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 3710s # * 3710s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-CallableIface.top_of_page">org.project.CallableIface</link> D-Bus interface in C. 3710s # */ 3710s # 3710s # /* ---- Introspection data for org.project.CallableIface ---- */ 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_b = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_b", 3710s # (gchar *) "b", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_y = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_y", 3710s # (gchar *) "y", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_n = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_n", 3710s # (gchar *) "n", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_q = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_q", 3710s # (gchar *) "q", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_i = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_i", 3710s # (gchar *) "i", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_u = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_u", 3710s # (gchar *) "u", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_x = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_x", 3710s # (gchar *) "x", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_t = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_t", 3710s # (gchar *) "t", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_d = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_d", 3710s # (gchar *) "d", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_s = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_s", 3710s # (gchar *) "s", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_o = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_o", 3710s # (gchar *) "o", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_g = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_g", 3710s # (gchar *) "g", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_h = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_h", 3710s # (gchar *) "h", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_ay", 3710s # (gchar *) "ay", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_as = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_as", 3710s # (gchar *) "as", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_ao", 3710s # (gchar *) "ao", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_aay", 3710s # (gchar *) "aay", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_asv", 3710s # (gchar *) "a{sv}", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_pointers[] = 3710s # { 3710s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_b.parent_struct, 3710s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_y.parent_struct, 3710s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_n.parent_struct, 3710s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_q.parent_struct, 3710s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_i.parent_struct, 3710s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_u.parent_struct, 3710s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_x.parent_struct, 3710s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_t.parent_struct, 3710s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_d.parent_struct, 3710s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_s.parent_struct, 3710s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_o.parent_struct, 3710s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_g.parent_struct, 3710s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_h.parent_struct, 3710s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay.parent_struct, 3710s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_as.parent_struct, 3710s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao.parent_struct, 3710s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay.parent_struct, 3710s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv.parent_struct, 3710s # NULL 3710s # }; 3710s # 3710s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_method_with_many_args = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "MethodWithManyArgs", 3710s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_pointers, 3710s # NULL, 3710s # NULL 3710s # }, 3710s # "handle-method-with-many-args", 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_b = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_b", 3710s # (gchar *) "b", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_y = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_y", 3710s # (gchar *) "y", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_n = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_n", 3710s # (gchar *) "n", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_q = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_q", 3710s # (gchar *) "q", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_i = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_i", 3710s # (gchar *) "i", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_u = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_u", 3710s # (gchar *) "u", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_x = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_x", 3710s # (gchar *) "x", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_t = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_t", 3710s # (gchar *) "t", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_d = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_d", 3710s # (gchar *) "d", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_s = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_s", 3710s # (gchar *) "s", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_o = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_o", 3710s # (gchar *) "o", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_g = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_g", 3710s # (gchar *) "g", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_h = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_h", 3710s # (gchar *) "h", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ay = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_ay", 3710s # (gchar *) "ay", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_as = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_as", 3710s # (gchar *) "as", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ao = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_ao", 3710s # (gchar *) "ao", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_aay = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_aay", 3710s # (gchar *) "aay", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_asv = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_asv", 3710s # (gchar *) "a{sv}", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_pointers[] = 3710s # { 3710s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_b.parent_struct, 3710s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_y.parent_struct, 3710s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_n.parent_struct, 3710s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_q.parent_struct, 3710s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_i.parent_struct, 3710s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_u.parent_struct, 3710s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_x.parent_struct, 3710s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_t.parent_struct, 3710s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_d.parent_struct, 3710s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_s.parent_struct, 3710s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_o.parent_struct, 3710s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_g.parent_struct, 3710s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_h.parent_struct, 3710s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ay.parent_struct, 3710s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_as.parent_struct, 3710s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ao.parent_struct, 3710s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_aay.parent_struct, 3710s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_asv.parent_struct, 3710s # NULL 3710s # }; 3710s # 3710s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_same_method_with_many_args = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "SameMethodWithManyArgs", 3710s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_pointers, 3710s # NULL, 3710s # NULL 3710s # }, 3710s # "handle-same-method-with-many-args", 3710s # FALSE 3710s # }; 3710s # 3710s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 3710s # { 3710s # &_org_project_callable_iface_method_info_method_with_many_args.parent_struct, 3710s # &_org_project_callable_iface_method_info_same_method_with_many_args.parent_struct, 3710s # NULL 3710s # }; 3710s # 3710s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "org.project.CallableIface", 3710s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 3710s # NULL, 3710s # NULL, 3710s # NULL 3710s # }, 3710s # "org-project-callable-iface", 3710s # }; 3710s # 3710s # 3710s # /** 3710s # * org_project_callable_iface_interface_info: 3710s # * 3710s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-CallableIface.top_of_page">org.project.CallableIface</link> D-Bus interface. 3710s # * 3710s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3710s # */ 3710s # GDBusInterfaceInfo * 3710s # org_project_callable_iface_interface_info (void) 3710s # { 3710s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 3710s # } 3710s # 3710s # /** 3710s # * org_project_callable_iface_override_properties: 3710s # * @klass: The class structure for a #GObject derived class. 3710s # * @property_id_begin: The property id to assign to the first overridden property. 3710s # * 3710s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 3710s # * The properties are overridden in the order they are defined. 3710s # * 3710s # * Returns: The last property id. 3710s # */ 3710s # guint 3710s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3710s # { 3710s # return property_id_begin - 1; 3710s # } 3710s # 3710s # 3710s # inline static void 3710s # org_project_callable_iface_method_marshal_method_with_many_args ( 3710s # GClosure *closure, 3710s # GValue *return_value, 3710s # unsigned int n_param_values, 3710s # const GValue *param_values, 3710s # void *invocation_hint, 3710s # void *marshal_data) 3710s # { 3710s # _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, 3710s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3710s # } 3710s # 3710s # inline static void 3710s # org_project_callable_iface_method_marshal_same_method_with_many_args ( 3710s # GClosure *closure, 3710s # GValue *return_value, 3710s # unsigned int n_param_values, 3710s # const GValue *param_values, 3710s # void *invocation_hint, 3710s # void *marshal_data) 3710s # { 3710s # _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, 3710s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3710s # } 3710s # 3710s # 3710s # /** 3710s # * OrgProjectCallableIface: 3710s # * 3710s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-CallableIface.top_of_page">org.project.CallableIface</link>. 3710s # */ 3710s # 3710s # /** 3710s # * OrgProjectCallableIfaceIface: 3710s # * @parent_iface: The parent interface. 3710s # * @handle_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-method-with-many-args signal. 3710s # * @handle_same_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-same-method-with-many-args signal. 3710s # * 3710s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-CallableIface.top_of_page">org.project.CallableIface</link>. 3710s # */ 3710s # 3710s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 3710s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 3710s # 3710s # static void 3710s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 3710s # { 3710s # /* GObject signals for incoming D-Bus method calls: */ 3710s # /** 3710s # * OrgProjectCallableIface::handle-method-with-many-args: 3710s # * @object: A #OrgProjectCallableIface. 3710s # * @invocation: A #GDBusMethodInvocation. 3710s # * @arg_an_b: Argument passed by remote caller. 3710s # * @arg_an_y: Argument passed by remote caller. 3710s # * @arg_an_n: Argument passed by remote caller. 3710s # * @arg_an_q: Argument passed by remote caller. 3710s # * @arg_an_i: Argument passed by remote caller. 3710s # * @arg_an_u: Argument passed by remote caller. 3710s # * @arg_an_x: Argument passed by remote caller. 3710s # * @arg_an_t: Argument passed by remote caller. 3710s # * @arg_an_d: Argument passed by remote caller. 3710s # * @arg_an_s: Argument passed by remote caller. 3710s # * @arg_an_o: Argument passed by remote caller. 3710s # * @arg_an_g: Argument passed by remote caller. 3710s # * @arg_an_h: Argument passed by remote caller. 3710s # * @arg_an_ay: Argument passed by remote caller. 3710s # * @arg_an_as: Argument passed by remote caller. 3710s # * @arg_an_ao: Argument passed by remote caller. 3710s # * @arg_an_aay: Argument passed by remote caller. 3710s # * @arg_an_asv: Argument passed by remote caller. 3710s # * 3710s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-CallableIface.MethodWithManyArgs">MethodWithManyArgs()</link> D-Bus method. 3710s # * 3710s # * 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. 3710s # * 3710s # * 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. 3710s # */ 3710s # g_signal_new ("handle-method-with-many-args", 3710s # G_TYPE_FROM_INTERFACE (iface), 3710s # G_SIGNAL_RUN_LAST, 3710s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_method_with_many_args), 3710s # g_signal_accumulator_true_handled, 3710s # NULL, 3710s # org_project_callable_iface_method_marshal_method_with_many_args, 3710s # G_TYPE_BOOLEAN, 3710s # 19, 3710s # 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); 3710s # 3710s # /** 3710s # * OrgProjectCallableIface::handle-same-method-with-many-args: 3710s # * @object: A #OrgProjectCallableIface. 3710s # * @invocation: A #GDBusMethodInvocation. 3710s # * @arg_an_b: Argument passed by remote caller. 3710s # * @arg_an_y: Argument passed by remote caller. 3710s # * @arg_an_n: Argument passed by remote caller. 3710s # * @arg_an_q: Argument passed by remote caller. 3710s # * @arg_an_i: Argument passed by remote caller. 3710s # * @arg_an_u: Argument passed by remote caller. 3710s # * @arg_an_x: Argument passed by remote caller. 3710s # * @arg_an_t: Argument passed by remote caller. 3710s # * @arg_an_d: Argument passed by remote caller. 3710s # * @arg_an_s: Argument passed by remote caller. 3710s # * @arg_an_o: Argument passed by remote caller. 3710s # * @arg_an_g: Argument passed by remote caller. 3710s # * @arg_an_h: Argument passed by remote caller. 3710s # * @arg_an_ay: Argument passed by remote caller. 3710s # * @arg_an_as: Argument passed by remote caller. 3710s # * @arg_an_ao: Argument passed by remote caller. 3710s # * @arg_an_aay: Argument passed by remote caller. 3710s # * @arg_an_asv: Argument passed by remote caller. 3710s # * 3710s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-CallableIface.SameMethodWithManyArgs">SameMethodWithManyArgs()</link> D-Bus method. 3710s # * 3710s # * 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. 3710s # * 3710s # * 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. 3710s # */ 3710s # g_signal_new ("handle-same-method-with-many-args", 3710s # G_TYPE_FROM_INTERFACE (iface), 3710s # G_SIGNAL_RUN_LAST, 3710s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_same_method_with_many_args), 3710s # g_signal_accumulator_true_handled, 3710s # NULL, 3710s # org_project_callable_iface_method_marshal_same_method_with_many_args, 3710s # G_TYPE_BOOLEAN, 3710s # 19, 3710s # 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); 3710s # 3710s # } 3710s # 3710s # /** 3710s # * org_project_callable_iface_call_method_with_many_args: 3710s # * @proxy: A #OrgProjectCallableIfaceProxy. 3710s # * @arg_an_b: Argument to pass with the method invocation. 3710s # * @arg_an_y: Argument to pass with the method invocation. 3710s # * @arg_an_n: Argument to pass with the method invocation. 3710s # * @arg_an_q: Argument to pass with the method invocation. 3710s # * @arg_an_i: Argument to pass with the method invocation. 3710s # * @arg_an_u: Argument to pass with the method invocation. 3710s # * @arg_an_x: Argument to pass with the method invocation. 3710s # * @arg_an_t: Argument to pass with the method invocation. 3710s # * @arg_an_d: Argument to pass with the method invocation. 3710s # * @arg_an_s: Argument to pass with the method invocation. 3710s # * @arg_an_o: Argument to pass with the method invocation. 3710s # * @arg_an_g: Argument to pass with the method invocation. 3710s # * @arg_an_h: Argument to pass with the method invocation. 3710s # * @arg_an_ay: Argument to pass with the method invocation. 3710s # * @arg_an_as: Argument to pass with the method invocation. 3710s # * @arg_an_ao: Argument to pass with the method invocation. 3710s # * @arg_an_aay: Argument to pass with the method invocation. 3710s # * @arg_an_asv: Argument to pass with the method invocation. 3710s # * @cancellable: (nullable): A #GCancellable or %NULL. 3710s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3710s # * @user_data: User data to pass to @callback. 3710s # * 3710s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-CallableIface.MethodWithManyArgs">MethodWithManyArgs()</link> D-Bus method on @proxy. 3710s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3710s # * You can then call org_project_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 3710s # * 3710s # * See org_project_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 3710s # */ 3710s # void 3710s # org_project_callable_iface_call_method_with_many_args ( 3710s # OrgProjectCallableIface *proxy, 3710s # gboolean arg_an_b, 3710s # guchar arg_an_y, 3710s # gint16 arg_an_n, 3710s # guint16 arg_an_q, 3710s # gint arg_an_i, 3710s # guint arg_an_u, 3710s # gint64 arg_an_x, 3710s # guint64 arg_an_t, 3710s # gdouble arg_an_d, 3710s # const gchar *arg_an_s, 3710s # const gchar *arg_an_o, 3710s # const gchar *arg_an_g, 3710s # GVariant *arg_an_h, 3710s # const gchar *arg_an_ay, 3710s # const gchar *const *arg_an_as, 3710s # const gchar *const *arg_an_ao, 3710s # const gchar *const *arg_an_aay, 3710s # GVariant *arg_an_asv, 3710s # GCancellable *cancellable, 3710s # GAsyncReadyCallback callback, 3710s # gpointer user_data) 3710s # { 3710s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3710s # "MethodWithManyArgs", 3710s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 3710s # arg_an_b, 3710s # arg_an_y, 3710s # arg_an_n, 3710s # arg_an_q, 3710s # arg_an_i, 3710s # arg_an_u, 3710s # arg_an_x, 3710s # arg_an_t, 3710s # arg_an_d, 3710s # arg_an_s, 3710s # arg_an_o, 3710s # arg_an_g, 3710s # arg_an_h, 3710s # arg_an_ay, 3710s # arg_an_as, 3710s # arg_an_ao, 3710s # arg_an_aay, 3710s # arg_an_asv), 3710s # G_DBUS_CALL_FLAGS_NONE, 3710s # -1, 3710s # cancellable, 3710s # callback, 3710s # user_data); 3710s # } 3710s # 3710s # /** 3710s # * org_project_callable_iface_call_method_with_many_args_finish: 3710s # * @proxy: A #OrgProjectCallableIfaceProxy. 3710s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_method_with_many_args(). 3710s # * @error: Return location for error or %NULL. 3710s # * 3710s # * Finishes an operation started with org_project_callable_iface_call_method_with_many_args(). 3710s # * 3710s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3710s # */ 3710s # gboolean 3710s # org_project_callable_iface_call_method_with_many_args_finish ( 3710s # OrgProjectCallableIface *proxy, 3710s # GAsyncResult *res, 3710s # GError **error) 3710s # { 3710s # GVariant *_ret; 3710s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3710s # if (_ret == NULL) 3710s # goto _out; 3710s # g_variant_get (_ret, 3710s # "()"); 3710s # g_variant_unref (_ret); 3710s # _out: 3710s # return _ret != NULL; 3710s # } 3710s # 3710s # /** 3710s # * org_project_callable_iface_call_method_with_many_args_sync: 3710s # * @proxy: A #OrgProjectCallableIfaceProxy. 3710s # * @arg_an_b: Argument to pass with the method invocation. 3710s # * @arg_an_y: Argument to pass with the method invocation. 3710s # * @arg_an_n: Argument to pass with the method invocation. 3710s # * @arg_an_q: Argument to pass with the method invocation. 3710s # * @arg_an_i: Argument to pass with the method invocation. 3710s # * @arg_an_u: Argument to pass with the method invocation. 3710s # * @arg_an_x: Argument to pass with the method invocation. 3710s # * @arg_an_t: Argument to pass with the method invocation. 3710s # * @arg_an_d: Argument to pass with the method invocation. 3710s # * @arg_an_s: Argument to pass with the method invocation. 3710s # * @arg_an_o: Argument to pass with the method invocation. 3710s # * @arg_an_g: Argument to pass with the method invocation. 3710s # * @arg_an_h: Argument to pass with the method invocation. 3710s # * @arg_an_ay: Argument to pass with the method invocation. 3710s # * @arg_an_as: Argument to pass with the method invocation. 3710s # * @arg_an_ao: Argument to pass with the method invocation. 3710s # * @arg_an_aay: Argument to pass with the method invocation. 3710s # * @arg_an_asv: Argument to pass with the method invocation. 3710s # * @cancellable: (nullable): A #GCancellable or %NULL. 3710s # * @error: Return location for error or %NULL. 3710s # * 3710s # * Synchronously invokes the <link linkend="gdbus-method-org-project-CallableIface.MethodWithManyArgs">MethodWithManyArgs()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3710s # * 3710s # * See org_project_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 3710s # * 3710s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3710s # */ 3710s # gboolean 3710s # org_project_callable_iface_call_method_with_many_args_sync ( 3710s # OrgProjectCallableIface *proxy, 3710s # gboolean arg_an_b, 3710s # guchar arg_an_y, 3710s # gint16 arg_an_n, 3710s # guint16 arg_an_q, 3710s # gint arg_an_i, 3710s # guint arg_an_u, 3710s # gint64 arg_an_x, 3710s # guint64 arg_an_t, 3710s # gdouble arg_an_d, 3710s # const gchar *arg_an_s, 3710s # const gchar *arg_an_o, 3710s # const gchar *arg_an_g, 3710s # GVariant *arg_an_h, 3710s # const gchar *arg_an_ay, 3710s # const gchar *const *arg_an_as, 3710s # const gchar *const *arg_an_ao, 3710s # const gchar *const *arg_an_aay, 3710s # GVariant *arg_an_asv, 3710s # GCancellable *cancellable, 3710s # GError **error) 3710s # { 3710s # GVariant *_ret; 3710s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3710s # "MethodWithManyArgs", 3710s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 3710s # arg_an_b, 3710s # arg_an_y, 3710s # arg_an_n, 3710s # arg_an_q, 3710s # arg_an_i, 3710s # arg_an_u, 3710s # arg_an_x, 3710s # arg_an_t, 3710s # arg_an_d, 3710s # arg_an_s, 3710s # arg_an_o, 3710s # arg_an_g, 3710s # arg_an_h, 3710s # arg_an_ay, 3710s # arg_an_as, 3710s # arg_an_ao, 3710s # arg_an_aay, 3710s # arg_an_asv), 3710s # G_DBUS_CALL_FLAGS_NONE, 3710s # -1, 3710s # cancellable, 3710s # error); 3710s # if (_ret == NULL) 3710s # goto _out; 3710s # g_variant_get (_ret, 3710s # "()"); 3710s # g_variant_unref (_ret); 3710s # _out: 3710s # return _ret != NULL; 3710s # } 3710s # 3710s # /** 3710s # * org_project_callable_iface_call_same_method_with_many_args: 3710s # * @proxy: A #OrgProjectCallableIfaceProxy. 3710s # * @arg_an_b: Argument to pass with the method invocation. 3710s # * @arg_an_y: Argument to pass with the method invocation. 3710s # * @arg_an_n: Argument to pass with the method invocation. 3710s # * @arg_an_q: Argument to pass with the method invocation. 3710s # * @arg_an_i: Argument to pass with the method invocation. 3710s # * @arg_an_u: Argument to pass with the method invocation. 3710s # * @arg_an_x: Argument to pass with the method invocation. 3710s # * @arg_an_t: Argument to pass with the method invocation. 3710s # * @arg_an_d: Argument to pass with the method invocation. 3710s # * @arg_an_s: Argument to pass with the method invocation. 3710s # * @arg_an_o: Argument to pass with the method invocation. 3710s # * @arg_an_g: Argument to pass with the method invocation. 3710s # * @arg_an_h: Argument to pass with the method invocation. 3710s # * @arg_an_ay: Argument to pass with the method invocation. 3710s # * @arg_an_as: Argument to pass with the method invocation. 3710s # * @arg_an_ao: Argument to pass with the method invocation. 3710s # * @arg_an_aay: Argument to pass with the method invocation. 3710s # * @arg_an_asv: Argument to pass with the method invocation. 3710s # * @cancellable: (nullable): A #GCancellable or %NULL. 3710s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3710s # * @user_data: User data to pass to @callback. 3710s # * 3710s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-CallableIface.SameMethodWithManyArgs">SameMethodWithManyArgs()</link> D-Bus method on @proxy. 3710s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3710s # * You can then call org_project_callable_iface_call_same_method_with_many_args_finish() to get the result of the operation. 3710s # * 3710s # * See org_project_callable_iface_call_same_method_with_many_args_sync() for the synchronous, blocking version of this method. 3710s # */ 3710s # void 3710s # org_project_callable_iface_call_same_method_with_many_args ( 3710s # OrgProjectCallableIface *proxy, 3710s # gboolean arg_an_b, 3710s # guchar arg_an_y, 3710s # gint16 arg_an_n, 3710s # guint16 arg_an_q, 3710s # gint arg_an_i, 3710s # guint arg_an_u, 3710s # gint64 arg_an_x, 3710s # guint64 arg_an_t, 3710s # gdouble arg_an_d, 3710s # const gchar *arg_an_s, 3710s # const gchar *arg_an_o, 3710s # const gchar *arg_an_g, 3710s # GVariant *arg_an_h, 3710s # const gchar *arg_an_ay, 3710s # const gchar *const *arg_an_as, 3710s # const gchar *const *arg_an_ao, 3710s # const gchar *const *arg_an_aay, 3710s # GVariant *arg_an_asv, 3710s # GCancellable *cancellable, 3710s # GAsyncReadyCallback callback, 3710s # gpointer user_data) 3710s # { 3710s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3710s # "SameMethodWithManyArgs", 3710s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 3710s # arg_an_b, 3710s # arg_an_y, 3710s # arg_an_n, 3710s # arg_an_q, 3710s # arg_an_i, 3710s # arg_an_u, 3710s # arg_an_x, 3710s # arg_an_t, 3710s # arg_an_d, 3710s # arg_an_s, 3710s # arg_an_o, 3710s # arg_an_g, 3710s # arg_an_h, 3710s # arg_an_ay, 3710s # arg_an_as, 3710s # arg_an_ao, 3710s # arg_an_aay, 3710s # arg_an_asv), 3710s # G_DBUS_CALL_FLAGS_NONE, 3710s # -1, 3710s # cancellable, 3710s # callback, 3710s # user_data); 3710s # } 3710s # 3710s # /** 3710s # * org_project_callable_iface_call_same_method_with_many_args_finish: 3710s # * @proxy: A #OrgProjectCallableIfaceProxy. 3710s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_same_method_with_many_args(). 3710s # * @error: Return location for error or %NULL. 3710s # * 3710s # * Finishes an operation started with org_project_callable_iface_call_same_method_with_many_args(). 3710s # * 3710s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3710s # */ 3710s # gboolean 3710s # org_project_callable_iface_call_same_method_with_many_args_finish ( 3710s # OrgProjectCallableIface *proxy, 3710s # GAsyncResult *res, 3710s # GError **error) 3710s # { 3710s # GVariant *_ret; 3710s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3710s # if (_ret == NULL) 3710s # goto _out; 3710s # g_variant_get (_ret, 3710s # "()"); 3710s # g_variant_unref (_ret); 3710s # _out: 3710s # return _ret != NULL; 3710s # } 3710s # 3710s # /** 3710s # * org_project_callable_iface_call_same_method_with_many_args_sync: 3710s # * @proxy: A #OrgProjectCallableIfaceProxy. 3710s # * @arg_an_b: Argument to pass with the method invocation. 3710s # * @arg_an_y: Argument to pass with the method invocation. 3710s # * @arg_an_n: Argument to pass with the method invocation. 3710s # * @arg_an_q: Argument to pass with the method invocation. 3710s # * @arg_an_i: Argument to pass with the method invocation. 3710s # * @arg_an_u: Argument to pass with the method invocation. 3710s # * @arg_an_x: Argument to pass with the method invocation. 3710s # * @arg_an_t: Argument to pass with the method invocation. 3710s # * @arg_an_d: Argument to pass with the method invocation. 3710s # * @arg_an_s: Argument to pass with the method invocation. 3710s # * @arg_an_o: Argument to pass with the method invocation. 3710s # * @arg_an_g: Argument to pass with the method invocation. 3710s # * @arg_an_h: Argument to pass with the method invocation. 3710s # * @arg_an_ay: Argument to pass with the method invocation. 3710s # * @arg_an_as: Argument to pass with the method invocation. 3710s # * @arg_an_ao: Argument to pass with the method invocation. 3710s # * @arg_an_aay: Argument to pass with the method invocation. 3710s # * @arg_an_asv: Argument to pass with the method invocation. 3710s # * @cancellable: (nullable): A #GCancellable or %NULL. 3710s # * @error: Return location for error or %NULL. 3710s # * 3710s # * Synchronously invokes the <link linkend="gdbus-method-org-project-CallableIface.SameMethodWithManyArgs">SameMethodWithManyArgs()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3710s # * 3710s # * See org_project_callable_iface_call_same_method_with_many_args() for the asynchronous version of this method. 3710s # * 3710s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3710s # */ 3710s # gboolean 3710s # org_project_callable_iface_call_same_method_with_many_args_sync ( 3710s # OrgProjectCallableIface *proxy, 3710s # gboolean arg_an_b, 3710s # guchar arg_an_y, 3710s # gint16 arg_an_n, 3710s # guint16 arg_an_q, 3710s # gint arg_an_i, 3710s # guint arg_an_u, 3710s # gint64 arg_an_x, 3710s # guint64 arg_an_t, 3710s # gdouble arg_an_d, 3710s # const gchar *arg_an_s, 3710s # const gchar *arg_an_o, 3710s # const gchar *arg_an_g, 3710s # GVariant *arg_an_h, 3710s # const gchar *arg_an_ay, 3710s # const gchar *const *arg_an_as, 3710s # const gchar *const *arg_an_ao, 3710s # const gchar *const *arg_an_aay, 3710s # GVariant *arg_an_asv, 3710s # GCancellable *cancellable, 3710s # GError **error) 3710s # { 3710s # GVariant *_ret; 3710s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3710s # "SameMethodWithManyArgs", 3710s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 3710s # arg_an_b, 3710s # arg_an_y, 3710s # arg_an_n, 3710s # arg_an_q, 3710s # arg_an_i, 3710s # arg_an_u, 3710s # arg_an_x, 3710s # arg_an_t, 3710s # arg_an_d, 3710s # arg_an_s, 3710s # arg_an_o, 3710s # arg_an_g, 3710s # arg_an_h, 3710s # arg_an_ay, 3710s # arg_an_as, 3710s # arg_an_ao, 3710s # arg_an_aay, 3710s # arg_an_asv), 3710s # G_DBUS_CALL_FLAGS_NONE, 3710s # -1, 3710s # cancellable, 3710s # error); 3710s # if (_ret == NULL) 3710s # goto _out; 3710s # g_variant_get (_ret, 3710s # "()"); 3710s # g_variant_unref (_ret); 3710s # _out: 3710s # return _ret != NULL; 3710s # } 3710s # 3710s # /** 3710s # * org_project_callable_iface_complete_method_with_many_args: 3710s # * @object: A #OrgProjectCallableIface. 3710s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3710s # * 3710s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-CallableIface.MethodWithManyArgs">MethodWithManyArgs()</link> 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. 3710s # * 3710s # * This method will free @invocation, you cannot use it afterwards. 3710s # */ 3710s # void 3710s # org_project_callable_iface_complete_method_with_many_args ( 3710s # OrgProjectCallableIface *object G_GNUC_UNUSED, 3710s # GDBusMethodInvocation *invocation) 3710s # { 3710s # g_dbus_method_invocation_return_value (invocation, 3710s # g_variant_new ("()")); 3710s # } 3710s # 3710s # /** 3710s # * org_project_callable_iface_complete_same_method_with_many_args: 3710s # * @object: A #OrgProjectCallableIface. 3710s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3710s # * 3710s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-CallableIface.SameMethodWithManyArgs">SameMethodWithManyArgs()</link> 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. 3710s # * 3710s # * This method will free @invocation, you cannot use it afterwards. 3710s # */ 3710s # void 3710s # org_project_callable_iface_complete_same_method_with_many_args ( 3710s # OrgProjectCallableIface *object G_GNUC_UNUSED, 3710s # GDBusMethodInvocation *invocation) 3710s # { 3710s # g_dbus_method_invocation_return_value (invocation, 3710s # g_variant_new ("()")); 3710s # } 3710s # 3710s # /* ------------------------------------------------------------------------ */ 3710s # 3710s # /** 3710s # * OrgProjectCallableIfaceProxy: 3710s # * 3710s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 3710s # */ 3710s # 3710s # /** 3710s # * OrgProjectCallableIfaceProxyClass: 3710s # * @parent_class: The parent class. 3710s # * 3710s # * Class structure for #OrgProjectCallableIfaceProxy. 3710s # */ 3710s # 3710s # struct _OrgProjectCallableIfaceProxyPrivate 3710s # { 3710s # GData *qdata; 3710s # }; 3710s # 3710s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 3710s # 3710s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3710s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 3710s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 3710s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 3710s # 3710s # #else 3710s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 3710s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 3710s # 3710s # #endif 3710s # static void 3710s # org_project_callable_iface_proxy_finalize (GObject *object) 3710s # { 3710s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 3710s # g_datalist_clear (&proxy->priv->qdata); 3710s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 3710s # } 3710s # 3710s # static void 3710s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3710s # guint prop_id G_GNUC_UNUSED, 3710s # GValue *value G_GNUC_UNUSED, 3710s # GParamSpec *pspec G_GNUC_UNUSED) 3710s # { 3710s # } 3710s # 3710s # static void 3710s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3710s # guint prop_id G_GNUC_UNUSED, 3710s # const GValue *value G_GNUC_UNUSED, 3710s # GParamSpec *pspec G_GNUC_UNUSED) 3710s # { 3710s # } 3710s # 3710s # static void 3710s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 3710s # const gchar *sender_name G_GNUC_UNUSED, 3710s # const gchar *signal_name, 3710s # GVariant *parameters) 3710s # { 3710s # _ExtendedGDBusSignalInfo *info; 3710s # GVariantIter iter; 3710s # GVariant *child; 3710s # GValue *paramv; 3710s # gsize num_params; 3710s # gsize n; 3710s # guint signal_id; 3710s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 3710s # if (info == NULL) 3710s # return; 3710s # num_params = g_variant_n_children (parameters); 3710s # paramv = g_new0 (GValue, num_params + 1); 3710s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 3710s # g_value_set_object (¶mv[0], proxy); 3710s # g_variant_iter_init (&iter, parameters); 3710s # n = 1; 3710s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3710s # { 3710s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3710s # if (arg_info->use_gvariant) 3710s # { 3710s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3710s # g_value_set_variant (¶mv[n], child); 3710s # n++; 3710s # } 3710s # else 3710s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3710s # g_variant_unref (child); 3710s # } 3710s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 3710s # g_signal_emitv (paramv, signal_id, 0, NULL); 3710s # for (n = 0; n < num_params + 1; n++) 3710s # g_value_unset (¶mv[n]); 3710s # g_free (paramv); 3710s # } 3710s # 3710s # static void 3710s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 3710s # GVariant *changed_properties, 3710s # const gchar *const *invalidated_properties) 3710s # { 3710s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 3710s # guint n; 3710s # const gchar *key; 3710s # GVariantIter *iter; 3710s # _ExtendedGDBusPropertyInfo *info; 3710s # g_variant_get (changed_properties, "a{sv}", &iter); 3710s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3710s # { 3710s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 3710s # g_datalist_remove_data (&proxy->priv->qdata, key); 3710s # if (info != NULL) 3710s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3710s # } 3710s # g_variant_iter_free (iter); 3710s # for (n = 0; invalidated_properties[n] != NULL; n++) 3710s # { 3710s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 3710s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3710s # if (info != NULL) 3710s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3710s # } 3710s # } 3710s # 3710s # static void 3710s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 3710s # { 3710s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3710s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 3710s # #else 3710s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 3710s # #endif 3710s # 3710s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 3710s # } 3710s # 3710s # static void 3710s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 3710s # { 3710s # GObjectClass *gobject_class; 3710s # GDBusProxyClass *proxy_class; 3710s # 3710s # gobject_class = G_OBJECT_CLASS (klass); 3710s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 3710s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 3710s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 3710s # 3710s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3710s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 3710s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 3710s # 3710s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3710s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 3710s # #endif 3710s # } 3710s # 3710s # static void 3710s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 3710s # { 3710s # } 3710s # 3710s # /** 3710s # * org_project_callable_iface_proxy_new: 3710s # * @connection: A #GDBusConnection. 3710s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3710s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3710s # * @object_path: An object path. 3710s # * @cancellable: (nullable): A #GCancellable or %NULL. 3710s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3710s # * @user_data: User data to pass to @callback. 3710s # * 3710s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-CallableIface.top_of_page">org.project.CallableIface</link>. See g_dbus_proxy_new() for more details. 3710s # * 3710s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3710s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 3710s # * 3710s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3710s # */ 3710s # void 3710s # org_project_callable_iface_proxy_new ( 3710s # GDBusConnection *connection, 3710s # GDBusProxyFlags flags, 3710s # const gchar *name, 3710s # const gchar *object_path, 3710s # GCancellable *cancellable, 3710s # GAsyncReadyCallback callback, 3710s # gpointer user_data) 3710s # { 3710s # 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); 3710s # } 3710s # 3710s # /** 3710s # * org_project_callable_iface_proxy_new_finish: 3710s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 3710s # * @error: Return location for error or %NULL 3710s # * 3710s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 3710s # * 3710s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 3710s # */ 3710s # OrgProjectCallableIface * 3710s # org_project_callable_iface_proxy_new_finish ( 3710s # GAsyncResult *res, 3710s # GError **error) 3710s # { 3710s # GObject *ret; 3710s # GObject *source_object; 3710s # source_object = g_async_result_get_source_object (res); 3710s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3710s # g_object_unref (source_object); 3710s # if (ret != NULL) 3710s # return ORG_PROJECT_CALLABLE_IFACE (ret); 3710s # else 3710s # return NULL; 3710s # } 3710s # 3710s # /** 3710s # * org_project_callable_iface_proxy_new_sync: 3710s # * @connection: A #GDBusConnection. 3710s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3710s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3710s # * @object_path: An object path. 3710s # * @cancellable: (nullable): A #GCancellable or %NULL. 3710s # * @error: Return location for error or %NULL 3710s # * 3710s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-CallableIface.top_of_page">org.project.CallableIface</link>. See g_dbus_proxy_new_sync() for more details. 3710s # * 3710s # * The calling thread is blocked until a reply is received. 3710s # * 3710s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 3710s # * 3710s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 3710s # */ 3710s # OrgProjectCallableIface * 3710s # org_project_callable_iface_proxy_new_sync ( 3710s # GDBusConnection *connection, 3710s # GDBusProxyFlags flags, 3710s # const gchar *name, 3710s # const gchar *object_path, 3710s # GCancellable *cancellable, 3710s # GError **error) 3710s # { 3710s # GInitable *ret; 3710s # 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); 3710s # if (ret != NULL) 3710s # return ORG_PROJECT_CALLABLE_IFACE (ret); 3710s # else 3710s # return NULL; 3710s # } 3710s # 3710s # 3710s # /** 3710s # * org_project_callable_iface_proxy_new_for_bus: 3710s # * @bus_type: A #GBusType. 3710s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3710s # * @name: A bus name (well-known or unique). 3710s # * @object_path: An object path. 3710s # * @cancellable: (nullable): A #GCancellable or %NULL. 3710s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3710s # * @user_data: User data to pass to @callback. 3710s # * 3710s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3710s # * 3710s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3710s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 3710s # * 3710s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3710s # */ 3710s # void 3710s # org_project_callable_iface_proxy_new_for_bus ( 3710s # GBusType bus_type, 3710s # GDBusProxyFlags flags, 3710s # const gchar *name, 3710s # const gchar *object_path, 3710s # GCancellable *cancellable, 3710s # GAsyncReadyCallback callback, 3710s # gpointer user_data) 3710s # { 3710s # 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); 3710s # } 3710s # 3710s # /** 3710s # * org_project_callable_iface_proxy_new_for_bus_finish: 3710s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 3710s # * @error: Return location for error or %NULL 3710s # * 3710s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 3710s # * 3710s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 3710s # */ 3710s # OrgProjectCallableIface * 3710s # org_project_callable_iface_proxy_new_for_bus_finish ( 3710s # GAsyncResult *res, 3710s # GError **error) 3710s # { 3710s # GObject *ret; 3710s # GObject *source_object; 3710s # source_object = g_async_result_get_source_object (res); 3710s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3710s # g_object_unref (source_object); 3710s # if (ret != NULL) 3710s # return ORG_PROJECT_CALLABLE_IFACE (ret); 3710s # else 3710s # return NULL; 3710s # } 3710s # 3710s # /** 3710s # * org_project_callable_iface_proxy_new_for_bus_sync: 3710s # * @bus_type: A #GBusType. 3710s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3710s # * @name: A bus name (well-known or unique). 3710s # * @object_path: An object path. 3710s # * @cancellable: (nullable): A #GCancellable or %NULL. 3710s # * @error: Return location for error or %NULL 3710s # * 3710s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3710s # * 3710s # * The calling thread is blocked until a reply is received. 3710s # * 3710s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 3710s # * 3710s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 3710s # */ 3710s # OrgProjectCallableIface * 3710s # org_project_callable_iface_proxy_new_for_bus_sync ( 3710s # GBusType bus_type, 3710s # GDBusProxyFlags flags, 3710s # const gchar *name, 3710s # const gchar *object_path, 3710s # GCancellable *cancellable, 3710s # GError **error) 3710s # { 3710s # GInitable *ret; 3710s # 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); 3710s # if (ret != NULL) 3710s # return ORG_PROJECT_CALLABLE_IFACE (ret); 3710s # else 3710s # return NULL; 3710s # } 3710s # 3710s # 3710s # /* ------------------------------------------------------------------------ */ 3710s # 3710s # /** 3710s # * OrgProjectCallableIfaceSkeleton: 3710s # * 3710s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3710s # */ 3710s # 3710s # /** 3710s # * OrgProjectCallableIfaceSkeletonClass: 3710s # * @parent_class: The parent class. 3710s # * 3710s # * Class structure for #OrgProjectCallableIfaceSkeleton. 3710s # */ 3710s # 3710s # struct _OrgProjectCallableIfaceSkeletonPrivate 3710s # { 3710s # GValue *properties; 3710s # GList *changed_properties; 3710s # GSource *changed_properties_idle_source; 3710s # GMainContext *context; 3710s # GMutex lock; 3710s # }; 3710s # 3710s # static void 3710s # _org_project_callable_iface_skeleton_handle_method_call ( 3710s # GDBusConnection *connection G_GNUC_UNUSED, 3710s # const gchar *sender G_GNUC_UNUSED, 3710s # const gchar *object_path G_GNUC_UNUSED, 3710s # const gchar *interface_name, 3710s # const gchar *method_name, 3710s # GVariant *parameters, 3710s # GDBusMethodInvocation *invocation, 3710s # gpointer user_data) 3710s # { 3710s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 3710s # _ExtendedGDBusMethodInfo *info; 3710s # GVariantIter iter; 3710s # GVariant *child; 3710s # GValue *paramv; 3710s # gsize num_params; 3710s # guint num_extra; 3710s # gsize n; 3710s # guint signal_id; 3710s # GValue return_value = G_VALUE_INIT; 3710s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3710s # g_assert (info != NULL); 3710s # num_params = g_variant_n_children (parameters); 3710s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3710s # n = 0; 3710s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 3710s # g_value_set_object (¶mv[n++], skeleton); 3710s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3710s # g_value_set_object (¶mv[n++], invocation); 3710s # if (info->pass_fdlist) 3710s # { 3710s # #ifdef G_OS_UNIX 3710s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3710s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3710s # #else 3710s # g_assert_not_reached (); 3710s # #endif 3710s # } 3710s # g_variant_iter_init (&iter, parameters); 3710s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3710s # { 3710s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3710s # if (arg_info->use_gvariant) 3710s # { 3710s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3710s # g_value_set_variant (¶mv[n], child); 3710s # n++; 3710s # } 3710s # else 3710s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3710s # g_variant_unref (child); 3710s # } 3710s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 3710s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3710s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3710s # if (!g_value_get_boolean (&return_value)) 3710s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3710s # g_value_unset (&return_value); 3710s # for (n = 0; n < num_params + num_extra; n++) 3710s # g_value_unset (¶mv[n]); 3710s # g_free (paramv); 3710s # } 3710s # 3710s # static GVariant * 3710s # _org_project_callable_iface_skeleton_handle_get_property ( 3710s # GDBusConnection *connection G_GNUC_UNUSED, 3710s # const gchar *sender G_GNUC_UNUSED, 3710s # const gchar *object_path G_GNUC_UNUSED, 3710s # const gchar *interface_name G_GNUC_UNUSED, 3710s # const gchar *property_name, 3710s # GError **error, 3710s # gpointer user_data) 3710s # { 3710s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 3710s # GValue value = G_VALUE_INIT; 3710s # GParamSpec *pspec; 3710s # _ExtendedGDBusPropertyInfo *info; 3710s # GVariant *ret; 3710s # ret = NULL; 3710s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 3710s # g_assert (info != NULL); 3710s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3710s # if (pspec == NULL) 3710s # { 3710s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3710s # } 3710s # else 3710s # { 3710s # g_value_init (&value, pspec->value_type); 3710s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3710s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3710s # g_value_unset (&value); 3710s # } 3710s # return ret; 3710s # } 3710s # 3710s # static gboolean 3710s # _org_project_callable_iface_skeleton_handle_set_property ( 3710s # GDBusConnection *connection G_GNUC_UNUSED, 3710s # const gchar *sender G_GNUC_UNUSED, 3710s # const gchar *object_path G_GNUC_UNUSED, 3710s # const gchar *interface_name G_GNUC_UNUSED, 3710s # const gchar *property_name, 3710s # GVariant *variant, 3710s # GError **error, 3710s # gpointer user_data) 3710s # { 3710s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 3710s # GValue value = G_VALUE_INIT; 3710s # GParamSpec *pspec; 3710s # _ExtendedGDBusPropertyInfo *info; 3710s # gboolean ret; 3710s # ret = FALSE; 3710s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 3710s # g_assert (info != NULL); 3710s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3710s # if (pspec == NULL) 3710s # { 3710s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3710s # } 3710s # else 3710s # { 3710s # if (info->use_gvariant) 3710s # g_value_set_variant (&value, variant); 3710s # else 3710s # g_dbus_gvariant_to_gvalue (variant, &value); 3710s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3710s # g_value_unset (&value); 3710s # ret = TRUE; 3710s # } 3710s # return ret; 3710s # } 3710s # 3710s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 3710s # { 3710s # _org_project_callable_iface_skeleton_handle_method_call, 3710s # _org_project_callable_iface_skeleton_handle_get_property, 3710s # _org_project_callable_iface_skeleton_handle_set_property, 3710s # {NULL} 3710s # }; 3710s # 3710s # static GDBusInterfaceInfo * 3710s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3710s # { 3710s # return org_project_callable_iface_interface_info (); 3710s # } 3710s # 3710s # static GDBusInterfaceVTable * 3710s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3710s # { 3710s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 3710s # } 3710s # 3710s # static GVariant * 3710s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3710s # { 3710s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 3710s # 3710s # GVariantBuilder builder; 3710s # guint n; 3710s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3710s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3710s # #else 3710s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3710s # #endif 3710s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 3710s # goto out; 3710s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 3710s # { 3710s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 3710s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3710s # { 3710s # GVariant *value; 3710s # 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); 3710s # if (value != NULL) 3710s # { 3710s # g_variant_take_ref (value); 3710s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3710s # g_variant_unref (value); 3710s # } 3710s # } 3710s # } 3710s # out: 3710s # return g_variant_builder_end (&builder); 3710s # } 3710s # 3710s # static void 3710s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3710s # { 3710s # } 3710s # 3710s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 3710s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3710s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3710s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 3710s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 3710s # 3710s # #else 3710s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3710s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 3710s # 3710s # #endif 3710s # static void 3710s # org_project_callable_iface_skeleton_finalize (GObject *object) 3710s # { 3710s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 3710s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3710s # if (skeleton->priv->changed_properties_idle_source != NULL) 3710s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3710s # g_main_context_unref (skeleton->priv->context); 3710s # g_mutex_clear (&skeleton->priv->lock); 3710s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 3710s # } 3710s # 3710s # static void 3710s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 3710s # { 3710s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3710s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 3710s # #else 3710s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 3710s # #endif 3710s # 3710s # g_mutex_init (&skeleton->priv->lock); 3710s # skeleton->priv->context = g_main_context_ref_thread_default (); 3710s # } 3710s # 3710s # static void 3710s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 3710s # { 3710s # GObjectClass *gobject_class; 3710s # GDBusInterfaceSkeletonClass *skeleton_class; 3710s # 3710s # gobject_class = G_OBJECT_CLASS (klass); 3710s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 3710s # 3710s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3710s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 3710s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 3710s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 3710s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 3710s # 3710s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3710s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 3710s # #endif 3710s # } 3710s # 3710s # static void 3710s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 3710s # { 3710s # } 3710s # 3710s # /** 3710s # * org_project_callable_iface_skeleton_new: 3710s # * 3710s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-CallableIface.top_of_page">org.project.CallableIface</link>. 3710s # * 3710s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 3710s # */ 3710s # OrgProjectCallableIface * 3710s # org_project_callable_iface_skeleton_new (void) 3710s # { 3710s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 3710s # } 3710s # 3710s # /* ------------------------------------------------------------------------ 3710s # * Code for interface org.project.OtherCallableIface 3710s # * ------------------------------------------------------------------------ 3710s # */ 3710s # 3710s # /** 3710s # * SECTION:OrgProjectOtherCallableIface 3710s # * @title: OrgProjectOtherCallableIface 3710s # * @short_description: Generated C code for the org.project.OtherCallableIface D-Bus interface 3710s # * 3710s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-OtherCallableIface.top_of_page">org.project.OtherCallableIface</link> D-Bus interface in C. 3710s # */ 3710s # 3710s # /* ---- Introspection data for org.project.OtherCallableIface ---- */ 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_b = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_b", 3710s # (gchar *) "b", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_y = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_y", 3710s # (gchar *) "y", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_n = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_n", 3710s # (gchar *) "n", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_q = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_q", 3710s # (gchar *) "q", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_i = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_i", 3710s # (gchar *) "i", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_u = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_u", 3710s # (gchar *) "u", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_x = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_x", 3710s # (gchar *) "x", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_t = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_t", 3710s # (gchar *) "t", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_d = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_d", 3710s # (gchar *) "d", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_s = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_s", 3710s # (gchar *) "s", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_o = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_o", 3710s # (gchar *) "o", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_g = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_g", 3710s # (gchar *) "g", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_h = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_h", 3710s # (gchar *) "h", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_ay", 3710s # (gchar *) "ay", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_as = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_as", 3710s # (gchar *) "as", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_ao", 3710s # (gchar *) "ao", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_aay", 3710s # (gchar *) "aay", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_asv", 3710s # (gchar *) "a{sv}", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const GDBusArgInfo * const _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_pointers[] = 3710s # { 3710s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_b.parent_struct, 3710s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_y.parent_struct, 3710s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_n.parent_struct, 3710s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_q.parent_struct, 3710s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_i.parent_struct, 3710s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_u.parent_struct, 3710s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_x.parent_struct, 3710s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_t.parent_struct, 3710s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_d.parent_struct, 3710s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_s.parent_struct, 3710s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_o.parent_struct, 3710s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_g.parent_struct, 3710s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_h.parent_struct, 3710s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay.parent_struct, 3710s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_as.parent_struct, 3710s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao.parent_struct, 3710s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay.parent_struct, 3710s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv.parent_struct, 3710s # NULL 3710s # }; 3710s # 3710s # static const _ExtendedGDBusMethodInfo _org_project_other_callable_iface_method_info_method_with_many_args = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "MethodWithManyArgs", 3710s # (GDBusArgInfo **) &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_pointers, 3710s # NULL, 3710s # NULL 3710s # }, 3710s # "handle-method-with-many-args", 3710s # FALSE 3710s # }; 3710s # 3710s # static const GDBusMethodInfo * const _org_project_other_callable_iface_method_info_pointers[] = 3710s # { 3710s # &_org_project_other_callable_iface_method_info_method_with_many_args.parent_struct, 3710s # NULL 3710s # }; 3710s # 3710s # static const _ExtendedGDBusInterfaceInfo _org_project_other_callable_iface_interface_info = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "org.project.OtherCallableIface", 3710s # (GDBusMethodInfo **) &_org_project_other_callable_iface_method_info_pointers, 3710s # NULL, 3710s # NULL, 3710s # NULL 3710s # }, 3710s # "org-project-other-callable-iface", 3710s # }; 3710s # 3710s # 3710s # /** 3710s # * org_project_other_callable_iface_interface_info: 3710s # * 3710s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-OtherCallableIface.top_of_page">org.project.OtherCallableIface</link> D-Bus interface. 3710s # * 3710s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3710s # */ 3710s # GDBusInterfaceInfo * 3710s # org_project_other_callable_iface_interface_info (void) 3710s # { 3710s # return (GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct; 3710s # } 3710s # 3710s # /** 3710s # * org_project_other_callable_iface_override_properties: 3710s # * @klass: The class structure for a #GObject derived class. 3710s # * @property_id_begin: The property id to assign to the first overridden property. 3710s # * 3710s # * Overrides all #GObject properties in the #OrgProjectOtherCallableIface interface for a concrete class. 3710s # * The properties are overridden in the order they are defined. 3710s # * 3710s # * Returns: The last property id. 3710s # */ 3710s # guint 3710s # org_project_other_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3710s # { 3710s # return property_id_begin - 1; 3710s # } 3710s # 3710s # 3710s # inline static void 3710s # org_project_other_callable_iface_method_marshal_method_with_many_args ( 3710s # GClosure *closure, 3710s # GValue *return_value, 3710s # unsigned int n_param_values, 3710s # const GValue *param_values, 3710s # void *invocation_hint, 3710s # void *marshal_data) 3710s # { 3710s # _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, 3710s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3710s # } 3710s # 3710s # 3710s # /** 3710s # * OrgProjectOtherCallableIface: 3710s # * 3710s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-OtherCallableIface.top_of_page">org.project.OtherCallableIface</link>. 3710s # */ 3710s # 3710s # /** 3710s # * OrgProjectOtherCallableIfaceIface: 3710s # * @parent_iface: The parent interface. 3710s # * @handle_method_with_many_args: Handler for the #OrgProjectOtherCallableIface::handle-method-with-many-args signal. 3710s # * 3710s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-OtherCallableIface.top_of_page">org.project.OtherCallableIface</link>. 3710s # */ 3710s # 3710s # typedef OrgProjectOtherCallableIfaceIface OrgProjectOtherCallableIfaceInterface; 3710s # G_DEFINE_INTERFACE (OrgProjectOtherCallableIface, org_project_other_callable_iface, G_TYPE_OBJECT) 3710s # 3710s # static void 3710s # org_project_other_callable_iface_default_init (OrgProjectOtherCallableIfaceIface *iface) 3710s # { 3710s # /* GObject signals for incoming D-Bus method calls: */ 3710s # /** 3710s # * OrgProjectOtherCallableIface::handle-method-with-many-args: 3710s # * @object: A #OrgProjectOtherCallableIface. 3710s # * @invocation: A #GDBusMethodInvocation. 3710s # * @arg_an_b: Argument passed by remote caller. 3710s # * @arg_an_y: Argument passed by remote caller. 3710s # * @arg_an_n: Argument passed by remote caller. 3710s # * @arg_an_q: Argument passed by remote caller. 3710s # * @arg_an_i: Argument passed by remote caller. 3710s # * @arg_an_u: Argument passed by remote caller. 3710s # * @arg_an_x: Argument passed by remote caller. 3710s # * @arg_an_t: Argument passed by remote caller. 3710s # * @arg_an_d: Argument passed by remote caller. 3710s # * @arg_an_s: Argument passed by remote caller. 3710s # * @arg_an_o: Argument passed by remote caller. 3710s # * @arg_an_g: Argument passed by remote caller. 3710s # * @arg_an_h: Argument passed by remote caller. 3710s # * @arg_an_ay: Argument passed by remote caller. 3710s # * @arg_an_as: Argument passed by remote caller. 3710s # * @arg_an_ao: Argument passed by remote caller. 3710s # * @arg_an_aay: Argument passed by remote caller. 3710s # * @arg_an_asv: Argument passed by remote caller. 3710s # * 3710s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-OtherCallableIface.MethodWithManyArgs">MethodWithManyArgs()</link> D-Bus method. 3710s # * 3710s # * 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. 3710s # * 3710s # * 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. 3710s # */ 3710s # g_signal_new ("handle-method-with-many-args", 3710s # G_TYPE_FROM_INTERFACE (iface), 3710s # G_SIGNAL_RUN_LAST, 3710s # G_STRUCT_OFFSET (OrgProjectOtherCallableIfaceIface, handle_method_with_many_args), 3710s # g_signal_accumulator_true_handled, 3710s # NULL, 3710s # org_project_other_callable_iface_method_marshal_method_with_many_args, 3710s # G_TYPE_BOOLEAN, 3710s # 19, 3710s # 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); 3710s # 3710s # } 3710s # 3710s # /** 3710s # * org_project_other_callable_iface_call_method_with_many_args: 3710s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 3710s # * @arg_an_b: Argument to pass with the method invocation. 3710s # * @arg_an_y: Argument to pass with the method invocation. 3710s # * @arg_an_n: Argument to pass with the method invocation. 3710s # * @arg_an_q: Argument to pass with the method invocation. 3710s # * @arg_an_i: Argument to pass with the method invocation. 3710s # * @arg_an_u: Argument to pass with the method invocation. 3710s # * @arg_an_x: Argument to pass with the method invocation. 3710s # * @arg_an_t: Argument to pass with the method invocation. 3710s # * @arg_an_d: Argument to pass with the method invocation. 3710s # * @arg_an_s: Argument to pass with the method invocation. 3710s # * @arg_an_o: Argument to pass with the method invocation. 3710s # * @arg_an_g: Argument to pass with the method invocation. 3710s # * @arg_an_h: Argument to pass with the method invocation. 3710s # * @arg_an_ay: Argument to pass with the method invocation. 3710s # * @arg_an_as: Argument to pass with the method invocation. 3710s # * @arg_an_ao: Argument to pass with the method invocation. 3710s # * @arg_an_aay: Argument to pass with the method invocation. 3710s # * @arg_an_asv: Argument to pass with the method invocation. 3710s # * @cancellable: (nullable): A #GCancellable or %NULL. 3710s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3710s # * @user_data: User data to pass to @callback. 3710s # * 3710s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-OtherCallableIface.MethodWithManyArgs">MethodWithManyArgs()</link> D-Bus method on @proxy. 3710s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3710s # * You can then call org_project_other_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 3710s # * 3710s # * See org_project_other_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 3710s # */ 3710s # void 3710s # org_project_other_callable_iface_call_method_with_many_args ( 3710s # OrgProjectOtherCallableIface *proxy, 3710s # gboolean arg_an_b, 3710s # guchar arg_an_y, 3710s # gint16 arg_an_n, 3710s # guint16 arg_an_q, 3710s # gint arg_an_i, 3710s # guint arg_an_u, 3710s # gint64 arg_an_x, 3710s # guint64 arg_an_t, 3710s # gdouble arg_an_d, 3710s # const gchar *arg_an_s, 3710s # const gchar *arg_an_o, 3710s # const gchar *arg_an_g, 3710s # GVariant *arg_an_h, 3710s # const gchar *arg_an_ay, 3710s # const gchar *const *arg_an_as, 3710s # const gchar *const *arg_an_ao, 3710s # const gchar *const *arg_an_aay, 3710s # GVariant *arg_an_asv, 3710s # GCancellable *cancellable, 3710s # GAsyncReadyCallback callback, 3710s # gpointer user_data) 3710s # { 3710s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3710s # "MethodWithManyArgs", 3710s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 3710s # arg_an_b, 3710s # arg_an_y, 3710s # arg_an_n, 3710s # arg_an_q, 3710s # arg_an_i, 3710s # arg_an_u, 3710s # arg_an_x, 3710s # arg_an_t, 3710s # arg_an_d, 3710s # arg_an_s, 3710s # arg_an_o, 3710s # arg_an_g, 3710s # arg_an_h, 3710s # arg_an_ay, 3710s # arg_an_as, 3710s # arg_an_ao, 3710s # arg_an_aay, 3710s # arg_an_asv), 3710s # G_DBUS_CALL_FLAGS_NONE, 3710s # -1, 3710s # cancellable, 3710s # callback, 3710s # user_data); 3710s # } 3710s # 3710s # /** 3710s # * org_project_other_callable_iface_call_method_with_many_args_finish: 3710s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 3710s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_call_method_with_many_args(). 3710s # * @error: Return location for error or %NULL. 3710s # * 3710s # * Finishes an operation started with org_project_other_callable_iface_call_method_with_many_args(). 3710s # * 3710s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3710s # */ 3710s # gboolean 3710s # org_project_other_callable_iface_call_method_with_many_args_finish ( 3710s # OrgProjectOtherCallableIface *proxy, 3710s # GAsyncResult *res, 3710s # GError **error) 3710s # { 3710s # GVariant *_ret; 3710s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3710s # if (_ret == NULL) 3710s # goto _out; 3710s # g_variant_get (_ret, 3710s # "()"); 3710s # g_variant_unref (_ret); 3710s # _out: 3710s # return _ret != NULL; 3710s # } 3710s # 3710s # /** 3710s # * org_project_other_callable_iface_call_method_with_many_args_sync: 3710s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 3710s # * @arg_an_b: Argument to pass with the method invocation. 3710s # * @arg_an_y: Argument to pass with the method invocation. 3710s # * @arg_an_n: Argument to pass with the method invocation. 3710s # * @arg_an_q: Argument to pass with the method invocation. 3710s # * @arg_an_i: Argument to pass with the method invocation. 3710s # * @arg_an_u: Argument to pass with the method invocation. 3710s # * @arg_an_x: Argument to pass with the method invocation. 3710s # * @arg_an_t: Argument to pass with the method invocation. 3710s # * @arg_an_d: Argument to pass with the method invocation. 3710s # * @arg_an_s: Argument to pass with the method invocation. 3710s # * @arg_an_o: Argument to pass with the method invocation. 3710s # * @arg_an_g: Argument to pass with the method invocation. 3710s # * @arg_an_h: Argument to pass with the method invocation. 3710s # * @arg_an_ay: Argument to pass with the method invocation. 3710s # * @arg_an_as: Argument to pass with the method invocation. 3710s # * @arg_an_ao: Argument to pass with the method invocation. 3710s # * @arg_an_aay: Argument to pass with the method invocation. 3710s # * @arg_an_asv: Argument to pass with the method invocation. 3710s # * @cancellable: (nullable): A #GCancellable or %NULL. 3710s # * @error: Return location for error or %NULL. 3710s # * 3710s # * Synchronously invokes the <link linkend="gdbus-method-org-project-OtherCallableIface.MethodWithManyArgs">MethodWithManyArgs()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3710s # * 3710s # * See org_project_other_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 3710s # * 3710s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3710s # */ 3710s # gboolean 3710s # org_project_other_callable_iface_call_method_with_many_args_sync ( 3710s # OrgProjectOtherCallableIface *proxy, 3710s # gboolean arg_an_b, 3710s # guchar arg_an_y, 3710s # gint16 arg_an_n, 3710s # guint16 arg_an_q, 3710s # gint arg_an_i, 3710s # guint arg_an_u, 3710s # gint64 arg_an_x, 3710s # guint64 arg_an_t, 3710s # gdouble arg_an_d, 3710s # const gchar *arg_an_s, 3710s # const gchar *arg_an_o, 3710s # const gchar *arg_an_g, 3710s # GVariant *arg_an_h, 3710s # const gchar *arg_an_ay, 3710s # const gchar *const *arg_an_as, 3710s # const gchar *const *arg_an_ao, 3710s # const gchar *const *arg_an_aay, 3710s # GVariant *arg_an_asv, 3710s # GCancellable *cancellable, 3710s # GError **error) 3710s # { 3710s # GVariant *_ret; 3710s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3710s # "MethodWithManyArgs", 3710s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 3710s # arg_an_b, 3710s # arg_an_y, 3710s # arg_an_n, 3710s # arg_an_q, 3710s # arg_an_i, 3710s # arg_an_u, 3710s # arg_an_x, 3710s # arg_an_t, 3710s # arg_an_d, 3710s # arg_an_s, 3710s # arg_an_o, 3710s # arg_an_g, 3710s # arg_an_h, 3710s # arg_an_ay, 3710s # arg_an_as, 3710s # arg_an_ao, 3710s # arg_an_aay, 3710s # arg_an_asv), 3710s # G_DBUS_CALL_FLAGS_NONE, 3710s # -1, 3710s # cancellable, 3710s # error); 3710s # if (_ret == NULL) 3710s # goto _out; 3710s # g_variant_get (_ret, 3710s # "()"); 3710s # g_variant_unref (_ret); 3710s # _out: 3710s # return _ret != NULL; 3710s # } 3710s # 3710s # /** 3710s # * org_project_other_callable_iface_complete_method_with_many_args: 3710s # * @object: A #OrgProjectOtherCallableIface. 3710s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3710s # * 3710s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-OtherCallableIface.MethodWithManyArgs">MethodWithManyArgs()</link> 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. 3710s # * 3710s # * This method will free @invocation, you cannot use it afterwards. 3710s # */ 3710s # void 3710s # org_project_other_callable_iface_complete_method_with_many_args ( 3710s # OrgProjectOtherCallableIface *object G_GNUC_UNUSED, 3710s # GDBusMethodInvocation *invocation) 3710s # { 3710s # g_dbus_method_invocation_return_value (invocation, 3710s # g_variant_new ("()")); 3710s # } 3710s # 3710s # /* ------------------------------------------------------------------------ */ 3710s # 3710s # /** 3710s # * OrgProjectOtherCallableIfaceProxy: 3710s # * 3710s # * The #OrgProjectOtherCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 3710s # */ 3710s # 3710s # /** 3710s # * OrgProjectOtherCallableIfaceProxyClass: 3710s # * @parent_class: The parent class. 3710s # * 3710s # * Class structure for #OrgProjectOtherCallableIfaceProxy. 3710s # */ 3710s # 3710s # struct _OrgProjectOtherCallableIfaceProxyPrivate 3710s # { 3710s # GData *qdata; 3710s # }; 3710s # 3710s # static void org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface); 3710s # 3710s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3710s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 3710s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceProxy) 3710s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 3710s # 3710s # #else 3710s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 3710s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 3710s # 3710s # #endif 3710s # static void 3710s # org_project_other_callable_iface_proxy_finalize (GObject *object) 3710s # { 3710s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (object); 3710s # g_datalist_clear (&proxy->priv->qdata); 3710s # G_OBJECT_CLASS (org_project_other_callable_iface_proxy_parent_class)->finalize (object); 3710s # } 3710s # 3710s # static void 3710s # org_project_other_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3710s # guint prop_id G_GNUC_UNUSED, 3710s # GValue *value G_GNUC_UNUSED, 3710s # GParamSpec *pspec G_GNUC_UNUSED) 3710s # { 3710s # } 3710s # 3710s # static void 3710s # org_project_other_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3710s # guint prop_id G_GNUC_UNUSED, 3710s # const GValue *value G_GNUC_UNUSED, 3710s # GParamSpec *pspec G_GNUC_UNUSED) 3710s # { 3710s # } 3710s # 3710s # static void 3710s # org_project_other_callable_iface_proxy_g_signal (GDBusProxy *proxy, 3710s # const gchar *sender_name G_GNUC_UNUSED, 3710s # const gchar *signal_name, 3710s # GVariant *parameters) 3710s # { 3710s # _ExtendedGDBusSignalInfo *info; 3710s # GVariantIter iter; 3710s # GVariant *child; 3710s # GValue *paramv; 3710s # gsize num_params; 3710s # gsize n; 3710s # guint signal_id; 3710s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, signal_name); 3710s # if (info == NULL) 3710s # return; 3710s # num_params = g_variant_n_children (parameters); 3710s # paramv = g_new0 (GValue, num_params + 1); 3710s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 3710s # g_value_set_object (¶mv[0], proxy); 3710s # g_variant_iter_init (&iter, parameters); 3710s # n = 1; 3710s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3710s # { 3710s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3710s # if (arg_info->use_gvariant) 3710s # { 3710s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3710s # g_value_set_variant (¶mv[n], child); 3710s # n++; 3710s # } 3710s # else 3710s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3710s # g_variant_unref (child); 3710s # } 3710s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 3710s # g_signal_emitv (paramv, signal_id, 0, NULL); 3710s # for (n = 0; n < num_params + 1; n++) 3710s # g_value_unset (¶mv[n]); 3710s # g_free (paramv); 3710s # } 3710s # 3710s # static void 3710s # org_project_other_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 3710s # GVariant *changed_properties, 3710s # const gchar *const *invalidated_properties) 3710s # { 3710s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (_proxy); 3710s # guint n; 3710s # const gchar *key; 3710s # GVariantIter *iter; 3710s # _ExtendedGDBusPropertyInfo *info; 3710s # g_variant_get (changed_properties, "a{sv}", &iter); 3710s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3710s # { 3710s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, key); 3710s # g_datalist_remove_data (&proxy->priv->qdata, key); 3710s # if (info != NULL) 3710s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3710s # } 3710s # g_variant_iter_free (iter); 3710s # for (n = 0; invalidated_properties[n] != NULL; n++) 3710s # { 3710s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 3710s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3710s # if (info != NULL) 3710s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3710s # } 3710s # } 3710s # 3710s # static void 3710s # org_project_other_callable_iface_proxy_init (OrgProjectOtherCallableIfaceProxy *proxy) 3710s # { 3710s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3710s # proxy->priv = org_project_other_callable_iface_proxy_get_instance_private (proxy); 3710s # #else 3710s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY, OrgProjectOtherCallableIfaceProxyPrivate); 3710s # #endif 3710s # 3710s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_callable_iface_interface_info ()); 3710s # } 3710s # 3710s # static void 3710s # org_project_other_callable_iface_proxy_class_init (OrgProjectOtherCallableIfaceProxyClass *klass) 3710s # { 3710s # GObjectClass *gobject_class; 3710s # GDBusProxyClass *proxy_class; 3710s # 3710s # gobject_class = G_OBJECT_CLASS (klass); 3710s # gobject_class->finalize = org_project_other_callable_iface_proxy_finalize; 3710s # gobject_class->get_property = org_project_other_callable_iface_proxy_get_property; 3710s # gobject_class->set_property = org_project_other_callable_iface_proxy_set_property; 3710s # 3710s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3710s # proxy_class->g_signal = org_project_other_callable_iface_proxy_g_signal; 3710s # proxy_class->g_properties_changed = org_project_other_callable_iface_proxy_g_properties_changed; 3710s # 3710s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3710s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceProxyPrivate)); 3710s # #endif 3710s # } 3710s # 3710s # static void 3710s # org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 3710s # { 3710s # } 3710s # 3710s # /** 3710s # * org_project_other_callable_iface_proxy_new: 3710s # * @connection: A #GDBusConnection. 3710s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3710s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3710s # * @object_path: An object path. 3710s # * @cancellable: (nullable): A #GCancellable or %NULL. 3710s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3710s # * @user_data: User data to pass to @callback. 3710s # * 3710s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-OtherCallableIface.top_of_page">org.project.OtherCallableIface</link>. See g_dbus_proxy_new() for more details. 3710s # * 3710s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3710s # * You can then call org_project_other_callable_iface_proxy_new_finish() to get the result of the operation. 3710s # * 3710s # * See org_project_other_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3710s # */ 3710s # void 3710s # org_project_other_callable_iface_proxy_new ( 3710s # GDBusConnection *connection, 3710s # GDBusProxyFlags flags, 3710s # const gchar *name, 3710s # const gchar *object_path, 3710s # GCancellable *cancellable, 3710s # GAsyncReadyCallback callback, 3710s # gpointer user_data) 3710s # { 3710s # 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); 3710s # } 3710s # 3710s # /** 3710s # * org_project_other_callable_iface_proxy_new_finish: 3710s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new(). 3710s # * @error: Return location for error or %NULL 3710s # * 3710s # * Finishes an operation started with org_project_other_callable_iface_proxy_new(). 3710s # * 3710s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 3710s # */ 3710s # OrgProjectOtherCallableIface * 3710s # org_project_other_callable_iface_proxy_new_finish ( 3710s # GAsyncResult *res, 3710s # GError **error) 3710s # { 3710s # GObject *ret; 3710s # GObject *source_object; 3710s # source_object = g_async_result_get_source_object (res); 3710s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3710s # g_object_unref (source_object); 3710s # if (ret != NULL) 3710s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 3710s # else 3710s # return NULL; 3710s # } 3710s # 3710s # /** 3710s # * org_project_other_callable_iface_proxy_new_sync: 3710s # * @connection: A #GDBusConnection. 3710s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3710s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3710s # * @object_path: An object path. 3710s # * @cancellable: (nullable): A #GCancellable or %NULL. 3710s # * @error: Return location for error or %NULL 3710s # * 3710s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-OtherCallableIface.top_of_page">org.project.OtherCallableIface</link>. See g_dbus_proxy_new_sync() for more details. 3710s # * 3710s # * The calling thread is blocked until a reply is received. 3710s # * 3710s # * See org_project_other_callable_iface_proxy_new() for the asynchronous version of this constructor. 3710s # * 3710s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 3710s # */ 3710s # OrgProjectOtherCallableIface * 3710s # org_project_other_callable_iface_proxy_new_sync ( 3710s # GDBusConnection *connection, 3710s # GDBusProxyFlags flags, 3710s # const gchar *name, 3710s # const gchar *object_path, 3710s # GCancellable *cancellable, 3710s # GError **error) 3710s # { 3710s # GInitable *ret; 3710s # 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); 3710s # if (ret != NULL) 3710s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 3710s # else 3710s # return NULL; 3710s # } 3710s # 3710s # 3710s # /** 3710s # * org_project_other_callable_iface_proxy_new_for_bus: 3710s # * @bus_type: A #GBusType. 3710s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3710s # * @name: A bus name (well-known or unique). 3710s # * @object_path: An object path. 3710s # * @cancellable: (nullable): A #GCancellable or %NULL. 3710s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3710s # * @user_data: User data to pass to @callback. 3710s # * 3710s # * Like org_project_other_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3710s # * 3710s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3710s # * You can then call org_project_other_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 3710s # * 3710s # * See org_project_other_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3710s # */ 3710s # void 3710s # org_project_other_callable_iface_proxy_new_for_bus ( 3710s # GBusType bus_type, 3710s # GDBusProxyFlags flags, 3710s # const gchar *name, 3710s # const gchar *object_path, 3710s # GCancellable *cancellable, 3710s # GAsyncReadyCallback callback, 3710s # gpointer user_data) 3710s # { 3710s # 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); 3710s # } 3710s # 3710s # /** 3710s # * org_project_other_callable_iface_proxy_new_for_bus_finish: 3710s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new_for_bus(). 3710s # * @error: Return location for error or %NULL 3710s # * 3710s # * Finishes an operation started with org_project_other_callable_iface_proxy_new_for_bus(). 3710s # * 3710s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 3710s # */ 3710s # OrgProjectOtherCallableIface * 3710s # org_project_other_callable_iface_proxy_new_for_bus_finish ( 3710s # GAsyncResult *res, 3710s # GError **error) 3710s # { 3710s # GObject *ret; 3710s # GObject *source_object; 3710s # source_object = g_async_result_get_source_object (res); 3710s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3710s # g_object_unref (source_object); 3710s # if (ret != NULL) 3710s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 3710s # else 3710s # return NULL; 3710s # } 3710s # 3710s # /** 3710s # * org_project_other_callable_iface_proxy_new_for_bus_sync: 3710s # * @bus_type: A #GBusType. 3710s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3710s # * @name: A bus name (well-known or unique). 3710s # * @object_path: An object path. 3710s # * @cancellable: (nullable): A #GCancellable or %NULL. 3710s # * @error: Return location for error or %NULL 3710s # * 3710s # * Like org_project_other_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3710s # * 3710s # * The calling thread is blocked until a reply is received. 3710s # * 3710s # * See org_project_other_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 3710s # * 3710s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 3710s # */ 3710s # OrgProjectOtherCallableIface * 3710s # org_project_other_callable_iface_proxy_new_for_bus_sync ( 3710s # GBusType bus_type, 3710s # GDBusProxyFlags flags, 3710s # const gchar *name, 3710s # const gchar *object_path, 3710s # GCancellable *cancellable, 3710s # GError **error) 3710s # { 3710s # GInitable *ret; 3710s # 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); 3710s # if (ret != NULL) 3710s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 3710s # else 3710s # return NULL; 3710s # } 3710s # 3710s # 3710s # /* ------------------------------------------------------------------------ */ 3710s # 3710s # /** 3710s # * OrgProjectOtherCallableIfaceSkeleton: 3710s # * 3710s # * The #OrgProjectOtherCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3710s # */ 3710s # 3710s # /** 3710s # * OrgProjectOtherCallableIfaceSkeletonClass: 3710s # * @parent_class: The parent class. 3710s # * 3710s # * Class structure for #OrgProjectOtherCallableIfaceSkeleton. 3710s # */ 3710s # 3710s # struct _OrgProjectOtherCallableIfaceSkeletonPrivate 3710s # { 3710s # GValue *properties; 3710s # GList *changed_properties; 3710s # GSource *changed_properties_idle_source; 3710s # GMainContext *context; 3710s # GMutex lock; 3710s # }; 3710s # 3710s # static void 3710s # _org_project_other_callable_iface_skeleton_handle_method_call ( 3710s # GDBusConnection *connection G_GNUC_UNUSED, 3710s # const gchar *sender G_GNUC_UNUSED, 3710s # const gchar *object_path G_GNUC_UNUSED, 3710s # const gchar *interface_name, 3710s # const gchar *method_name, 3710s # GVariant *parameters, 3710s # GDBusMethodInvocation *invocation, 3710s # gpointer user_data) 3710s # { 3710s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 3710s # _ExtendedGDBusMethodInfo *info; 3710s # GVariantIter iter; 3710s # GVariant *child; 3710s # GValue *paramv; 3710s # gsize num_params; 3710s # guint num_extra; 3710s # gsize n; 3710s # guint signal_id; 3710s # GValue return_value = G_VALUE_INIT; 3710s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3710s # g_assert (info != NULL); 3710s # num_params = g_variant_n_children (parameters); 3710s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3710s # n = 0; 3710s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 3710s # g_value_set_object (¶mv[n++], skeleton); 3710s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3710s # g_value_set_object (¶mv[n++], invocation); 3710s # if (info->pass_fdlist) 3710s # { 3710s # #ifdef G_OS_UNIX 3710s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3710s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3710s # #else 3710s # g_assert_not_reached (); 3710s # #endif 3710s # } 3710s # g_variant_iter_init (&iter, parameters); 3710s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3710s # { 3710s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3710s # if (arg_info->use_gvariant) 3710s # { 3710s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3710s # g_value_set_variant (¶mv[n], child); 3710s # n++; 3710s # } 3710s # else 3710s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3710s # g_variant_unref (child); 3710s # } 3710s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 3710s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3710s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3710s # if (!g_value_get_boolean (&return_value)) 3710s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3710s # g_value_unset (&return_value); 3710s # for (n = 0; n < num_params + num_extra; n++) 3710s # g_value_unset (¶mv[n]); 3710s # g_free (paramv); 3710s # } 3710s # 3710s # static GVariant * 3710s # _org_project_other_callable_iface_skeleton_handle_get_property ( 3710s # GDBusConnection *connection G_GNUC_UNUSED, 3710s # const gchar *sender G_GNUC_UNUSED, 3710s # const gchar *object_path G_GNUC_UNUSED, 3710s # const gchar *interface_name G_GNUC_UNUSED, 3710s # const gchar *property_name, 3710s # GError **error, 3710s # gpointer user_data) 3710s # { 3710s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 3710s # GValue value = G_VALUE_INIT; 3710s # GParamSpec *pspec; 3710s # _ExtendedGDBusPropertyInfo *info; 3710s # GVariant *ret; 3710s # ret = NULL; 3710s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 3710s # g_assert (info != NULL); 3710s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3710s # if (pspec == NULL) 3710s # { 3710s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3710s # } 3710s # else 3710s # { 3710s # g_value_init (&value, pspec->value_type); 3710s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3710s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3710s # g_value_unset (&value); 3710s # } 3710s # return ret; 3710s # } 3710s # 3710s # static gboolean 3710s # _org_project_other_callable_iface_skeleton_handle_set_property ( 3710s # GDBusConnection *connection G_GNUC_UNUSED, 3710s # const gchar *sender G_GNUC_UNUSED, 3710s # const gchar *object_path G_GNUC_UNUSED, 3710s # const gchar *interface_name G_GNUC_UNUSED, 3710s # const gchar *property_name, 3710s # GVariant *variant, 3710s # GError **error, 3710s # gpointer user_data) 3710s # { 3710s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 3710s # GValue value = G_VALUE_INIT; 3710s # GParamSpec *pspec; 3710s # _ExtendedGDBusPropertyInfo *info; 3710s # gboolean ret; 3710s # ret = FALSE; 3710s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 3710s # g_assert (info != NULL); 3710s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3710s # if (pspec == NULL) 3710s # { 3710s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3710s # } 3710s # else 3710s # { 3710s # if (info->use_gvariant) 3710s # g_value_set_variant (&value, variant); 3710s # else 3710s # g_dbus_gvariant_to_gvalue (variant, &value); 3710s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3710s # g_value_unset (&value); 3710s # ret = TRUE; 3710s # } 3710s # return ret; 3710s # } 3710s # 3710s # static const GDBusInterfaceVTable _org_project_other_callable_iface_skeleton_vtable = 3710s # { 3710s # _org_project_other_callable_iface_skeleton_handle_method_call, 3710s # _org_project_other_callable_iface_skeleton_handle_get_property, 3710s # _org_project_other_callable_iface_skeleton_handle_set_property, 3710s # {NULL} 3710s # }; 3710s # 3710s # static GDBusInterfaceInfo * 3710s # org_project_other_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3710s # { 3710s # return org_project_other_callable_iface_interface_info (); 3710s # } 3710s # 3710s # static GDBusInterfaceVTable * 3710s # org_project_other_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3710s # { 3710s # return (GDBusInterfaceVTable *) &_org_project_other_callable_iface_skeleton_vtable; 3710s # } 3710s # 3710s # static GVariant * 3710s # org_project_other_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3710s # { 3710s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (_skeleton); 3710s # 3710s # GVariantBuilder builder; 3710s # guint n; 3710s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3710s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3710s # #else 3710s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3710s # #endif 3710s # if (_org_project_other_callable_iface_interface_info.parent_struct.properties == NULL) 3710s # goto out; 3710s # for (n = 0; _org_project_other_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 3710s # { 3710s # GDBusPropertyInfo *info = _org_project_other_callable_iface_interface_info.parent_struct.properties[n]; 3710s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3710s # { 3710s # GVariant *value; 3710s # 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); 3710s # if (value != NULL) 3710s # { 3710s # g_variant_take_ref (value); 3710s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3710s # g_variant_unref (value); 3710s # } 3710s # } 3710s # } 3710s # out: 3710s # return g_variant_builder_end (&builder); 3710s # } 3710s # 3710s # static void 3710s # org_project_other_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3710s # { 3710s # } 3710s # 3710s # static void org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface); 3710s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3710s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3710s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceSkeleton) 3710s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 3710s # 3710s # #else 3710s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3710s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 3710s # 3710s # #endif 3710s # static void 3710s # org_project_other_callable_iface_skeleton_finalize (GObject *object) 3710s # { 3710s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (object); 3710s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3710s # if (skeleton->priv->changed_properties_idle_source != NULL) 3710s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3710s # g_main_context_unref (skeleton->priv->context); 3710s # g_mutex_clear (&skeleton->priv->lock); 3710s # G_OBJECT_CLASS (org_project_other_callable_iface_skeleton_parent_class)->finalize (object); 3710s # } 3710s # 3710s # static void 3710s # org_project_other_callable_iface_skeleton_init (OrgProjectOtherCallableIfaceSkeleton *skeleton) 3710s # { 3710s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3710s # skeleton->priv = org_project_other_callable_iface_skeleton_get_instance_private (skeleton); 3710s # #else 3710s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, OrgProjectOtherCallableIfaceSkeletonPrivate); 3710s # #endif 3710s # 3710s # g_mutex_init (&skeleton->priv->lock); 3710s # skeleton->priv->context = g_main_context_ref_thread_default (); 3710s # } 3710s # 3710s # static void 3710s # org_project_other_callable_iface_skeleton_class_init (OrgProjectOtherCallableIfaceSkeletonClass *klass) 3710s # { 3710s # GObjectClass *gobject_class; 3710s # GDBusInterfaceSkeletonClass *skeleton_class; 3710s # 3710s # gobject_class = G_OBJECT_CLASS (klass); 3710s # gobject_class->finalize = org_project_other_callable_iface_skeleton_finalize; 3710s # 3710s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3710s # skeleton_class->get_info = org_project_other_callable_iface_skeleton_dbus_interface_get_info; 3710s # skeleton_class->get_properties = org_project_other_callable_iface_skeleton_dbus_interface_get_properties; 3710s # skeleton_class->flush = org_project_other_callable_iface_skeleton_dbus_interface_flush; 3710s # skeleton_class->get_vtable = org_project_other_callable_iface_skeleton_dbus_interface_get_vtable; 3710s # 3710s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3710s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceSkeletonPrivate)); 3710s # #endif 3710s # } 3710s # 3710s # static void 3710s # org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 3710s # { 3710s # } 3710s # 3710s # /** 3710s # * org_project_other_callable_iface_skeleton_new: 3710s # * 3710s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-OtherCallableIface.top_of_page">org.project.OtherCallableIface</link>. 3710s # * 3710s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceSkeleton): The skeleton object. 3710s # */ 3710s # OrgProjectOtherCallableIface * 3710s # org_project_other_callable_iface_skeleton_new (void) 3710s # { 3710s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, NULL)); 3710s # } 3710s # Error: 3710s ok 13 __main__.TestCodegen.test_generate_methods_marshallers_multiple_out_args 3710s # gdbus-codegen: /usr/bin/gdbus-codegen 3710s # tmpdir: /tmp/tmpaklffoos 3710s # /tmp/tmpaklffoos/tmpj23sy41w.xml: 3710s # <node> 3710s # <interface name="org.project.CallableIface"> 3710s # <method name="MethodWithManyArgs"> 3710s # <arg name='an_b' type='b' direction='out'/> 3710s # <arg name='an_y' type='y' direction='out'/> 3710s # <arg name='an_n' type='n' direction='out'/> 3710s # <arg name='an_q' type='q' direction='out'/> 3710s # <arg name='an_i' type='i' direction='out'/> 3710s # <arg name='an_u' type='u' direction='out'/> 3710s # <arg name='an_x' type='x' direction='out'/> 3710s # <arg name='an_t' type='t' direction='out'/> 3710s # <arg name='an_d' type='d' direction='out'/> 3710s # <arg name='an_s' type='s' direction='out'/> 3710s # <arg name='an_o' type='o' direction='out'/> 3710s # <arg name='an_g' type='g' direction='out'/> 3710s # <arg name='an_h' type='h' direction='out'/> 3710s # <arg name='an_ay' type='ay' direction='out'/> 3710s # <arg name='an_as' type='as' direction='out'/> 3710s # <arg name='an_ao' type='ao' direction='out'/> 3710s # <arg name='an_aay' type='aay' direction='out'/> 3710s # <arg name='an_asv' type='a{sv}' direction='out'/> 3710s # 3710s # </method> 3710s # </interface> 3710s # </node> 3710s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpaklffoos/tmpj23sy41w.xml', '--output', '-', '--body'] 3710s # Return code: 0 3710s # Output: 3710s # /* 3710s # * This file is generated by gdbus-codegen, do not modify it. 3710s # * 3710s # * The license of this code is the same as for the D-Bus interface description 3710s # * it was derived from. Note that it links to GLib, so must comply with the 3710s # * LGPL linking clauses. 3710s # */ 3710s # 3710s # #ifdef HAVE_CONFIG_H 3710s # # include "config.h" 3710s # #endif 3710s # 3710s # #include <string.h> 3710s # #ifdef G_OS_UNIX 3710s # # include <gio/gunixfdlist.h> 3710s # #endif 3710s # 3710s # #ifdef G_ENABLE_DEBUG 3710s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3710s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3710s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3710s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3710s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3710s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3710s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3710s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3710s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3710s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3710s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3710s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3710s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3710s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3710s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3710s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3710s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3710s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3710s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3710s # #else /* !G_ENABLE_DEBUG */ 3710s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3710s # * Do not access GValues directly in your code. Instead, use the 3710s # * g_value_get_*() functions 3710s # */ 3710s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3710s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3710s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3710s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3710s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3710s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3710s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3710s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3710s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3710s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3710s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3710s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3710s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3710s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3710s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3710s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3710s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3710s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3710s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3710s # #endif /* !G_ENABLE_DEBUG */ 3710s # 3710s # typedef struct 3710s # { 3710s # GDBusArgInfo parent_struct; 3710s # gboolean use_gvariant; 3710s # } _ExtendedGDBusArgInfo; 3710s # 3710s # typedef struct 3710s # { 3710s # GDBusMethodInfo parent_struct; 3710s # const gchar *signal_name; 3710s # gboolean pass_fdlist; 3710s # } _ExtendedGDBusMethodInfo; 3710s # 3710s # typedef struct 3710s # { 3710s # GDBusSignalInfo parent_struct; 3710s # const gchar *signal_name; 3710s # } _ExtendedGDBusSignalInfo; 3710s # 3710s # typedef struct 3710s # { 3710s # GDBusPropertyInfo parent_struct; 3710s # const gchar *hyphen_name; 3710s # guint use_gvariant : 1; 3710s # guint emits_changed_signal : 1; 3710s # } _ExtendedGDBusPropertyInfo; 3710s # 3710s # typedef struct 3710s # { 3710s # GDBusInterfaceInfo parent_struct; 3710s # const gchar *hyphen_name; 3710s # } _ExtendedGDBusInterfaceInfo; 3710s # 3710s # typedef struct 3710s # { 3710s # const _ExtendedGDBusPropertyInfo *info; 3710s # guint prop_id; 3710s # GValue orig_value; /* the value before the change */ 3710s # } ChangedProperty; 3710s # 3710s # static void 3710s # _changed_property_free (ChangedProperty *data) 3710s # { 3710s # g_value_unset (&data->orig_value); 3710s # g_free (data); 3710s # } 3710s # 3710s # static gboolean 3710s # _g_strv_equal0 (gchar **a, gchar **b) 3710s # { 3710s # gboolean ret = FALSE; 3710s # guint n; 3710s # if (a == NULL && b == NULL) 3710s # { 3710s # ret = TRUE; 3710s # goto out; 3710s # } 3710s # if (a == NULL || b == NULL) 3710s # goto out; 3710s # if (g_strv_length (a) != g_strv_length (b)) 3710s # goto out; 3710s # for (n = 0; a[n] != NULL; n++) 3710s # if (g_strcmp0 (a[n], b[n]) != 0) 3710s # goto out; 3710s # ret = TRUE; 3710s # out: 3710s # return ret; 3710s # } 3710s # 3710s # static gboolean 3710s # _g_variant_equal0 (GVariant *a, GVariant *b) 3710s # { 3710s # gboolean ret = FALSE; 3710s # if (a == NULL && b == NULL) 3710s # { 3710s # ret = TRUE; 3710s # goto out; 3710s # } 3710s # if (a == NULL || b == NULL) 3710s # goto out; 3710s # ret = g_variant_equal (a, b); 3710s # out: 3710s # return ret; 3710s # } 3710s # 3710s # G_GNUC_UNUSED static gboolean 3710s # _g_value_equal (const GValue *a, const GValue *b) 3710s # { 3710s # gboolean ret = FALSE; 3710s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3710s # switch (G_VALUE_TYPE (a)) 3710s # { 3710s # case G_TYPE_BOOLEAN: 3710s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3710s # break; 3710s # case G_TYPE_UCHAR: 3710s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3710s # break; 3710s # case G_TYPE_INT: 3710s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3710s # break; 3710s # case G_TYPE_UINT: 3710s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3710s # break; 3710s # case G_TYPE_INT64: 3710s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3710s # break; 3710s # case G_TYPE_UINT64: 3710s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3710s # break; 3710s # case G_TYPE_DOUBLE: 3710s # { 3710s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3710s # gdouble da = g_value_get_double (a); 3710s # gdouble db = g_value_get_double (b); 3710s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3710s # } 3710s # break; 3710s # case G_TYPE_STRING: 3710s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3710s # break; 3710s # case G_TYPE_VARIANT: 3710s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3710s # break; 3710s # default: 3710s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3710s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3710s # else 3710s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3710s # break; 3710s # } 3710s # return ret; 3710s # } 3710s # 3710s # static void 3710s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 3710s # GClosure *closure, 3710s # GValue *return_value, 3710s # unsigned int n_param_values, 3710s # const GValue *param_values, 3710s # void *invocation_hint G_GNUC_UNUSED, 3710s # void *marshal_data) 3710s # { 3710s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 3710s # (void *data1, 3710s # GDBusMethodInvocation *arg_method_invocation, 3710s # void *data2); 3710s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 3710s # GCClosure *cc = (GCClosure*) closure; 3710s # void *data1, *data2; 3710s # gboolean v_return; 3710s # 3710s # g_return_if_fail (return_value != NULL); 3710s # g_return_if_fail (n_param_values == 2); 3710s # 3710s # if (G_CCLOSURE_SWAP_DATA (closure)) 3710s # { 3710s # data1 = closure->data; 3710s # data2 = g_value_peek_pointer (param_values + 0); 3710s # } 3710s # else 3710s # { 3710s # data1 = g_value_peek_pointer (param_values + 0); 3710s # data2 = closure->data; 3710s # } 3710s # 3710s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 3710s # (marshal_data ? marshal_data : cc->callback); 3710s # 3710s # v_return = 3710s # callback (data1, 3710s # g_marshal_value_peek_object (param_values + 1), 3710s # data2); 3710s # 3710s # g_value_set_boolean (return_value, v_return); 3710s # } 3710s # 3710s # /* ------------------------------------------------------------------------ 3710s # * Code for interface org.project.CallableIface 3710s # * ------------------------------------------------------------------------ 3710s # */ 3710s # 3710s # /** 3710s # * SECTION:OrgProjectCallableIface 3710s # * @title: OrgProjectCallableIface 3710s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 3710s # * 3710s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-CallableIface.top_of_page">org.project.CallableIface</link> D-Bus interface in C. 3710s # */ 3710s # 3710s # /* ---- Introspection data for org.project.CallableIface ---- */ 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_b = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_b", 3710s # (gchar *) "b", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_y = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_y", 3710s # (gchar *) "y", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_n = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_n", 3710s # (gchar *) "n", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_q = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_q", 3710s # (gchar *) "q", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_i = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_i", 3710s # (gchar *) "i", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_u = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_u", 3710s # (gchar *) "u", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_x = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_x", 3710s # (gchar *) "x", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_t = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_t", 3710s # (gchar *) "t", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_d = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_d", 3710s # (gchar *) "d", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_s = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_s", 3710s # (gchar *) "s", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_o = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_o", 3710s # (gchar *) "o", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_g = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_g", 3710s # (gchar *) "g", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_h = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_h", 3710s # (gchar *) "h", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ay = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_ay", 3710s # (gchar *) "ay", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_as = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_as", 3710s # (gchar *) "as", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ao = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_ao", 3710s # (gchar *) "ao", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_aay = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_aay", 3710s # (gchar *) "aay", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_asv = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "an_asv", 3710s # (gchar *) "a{sv}", 3710s # NULL 3710s # }, 3710s # FALSE 3710s # }; 3710s # 3710s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_pointers[] = 3710s # { 3710s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_b.parent_struct, 3710s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_y.parent_struct, 3710s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_n.parent_struct, 3710s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_q.parent_struct, 3710s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_i.parent_struct, 3710s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_u.parent_struct, 3710s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_x.parent_struct, 3710s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_t.parent_struct, 3710s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_d.parent_struct, 3710s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_s.parent_struct, 3710s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_o.parent_struct, 3710s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_g.parent_struct, 3710s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_h.parent_struct, 3710s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ay.parent_struct, 3710s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_as.parent_struct, 3710s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ao.parent_struct, 3710s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_aay.parent_struct, 3710s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_asv.parent_struct, 3710s # NULL 3710s # }; 3710s # 3710s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_method_with_many_args = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "MethodWithManyArgs", 3710s # NULL, 3710s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_pointers, 3710s # NULL 3710s # }, 3710s # "handle-method-with-many-args", 3710s # FALSE 3710s # }; 3710s # 3710s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 3710s # { 3710s # &_org_project_callable_iface_method_info_method_with_many_args.parent_struct, 3710s # NULL 3710s # }; 3710s # 3710s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 3710s # { 3710s # { 3710s # -1, 3710s # (gchar *) "org.project.CallableIface", 3710s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 3710s # NULL, 3710s # NULL, 3710s # NULL 3710s # }, 3710s # "org-project-callable-iface", 3710s # }; 3710s # 3710s # 3710s # /** 3710s # * org_project_callable_iface_interface_info: 3710s # * 3710s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-CallableIface.top_of_page">org.project.CallableIface</link> D-Bus interface. 3710s # * 3710s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3710s # */ 3710s # GDBusInterfaceInfo * 3710s # org_project_callable_iface_interface_info (void) 3710s # { 3710s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 3710s # } 3710s # 3710s # /** 3710s # * org_project_callable_iface_override_properties: 3710s # * @klass: The class structure for a #GObject derived class. 3710s # * @property_id_begin: The property id to assign to the first overridden property. 3710s # * 3710s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 3710s # * The properties are overridden in the order they are defined. 3710s # * 3710s # * Returns: The last property id. 3710s # */ 3710s # guint 3710s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3710s # { 3710s # return property_id_begin - 1; 3710s # } 3710s # 3710s # 3710s # inline static void 3710s # org_project_callable_iface_method_marshal_method_with_many_args ( 3710s # GClosure *closure, 3710s # GValue *return_value, 3710s # unsigned int n_param_values, 3710s # const GValue *param_values, 3710s # void *invocation_hint, 3710s # void *marshal_data) 3710s # { 3710s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 3710s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3710s # } 3710s # 3710s # 3710s # /** 3710s # * OrgProjectCallableIface: 3710s # * 3710s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-CallableIface.top_of_page">org.project.CallableIface</link>. 3710s # */ 3710s # 3710s # /** 3710s # * OrgProjectCallableIfaceIface: 3710s # * @parent_iface: The parent interface. 3710s # * @handle_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-method-with-many-args signal. 3710s # * 3710s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-CallableIface.top_of_page">org.project.CallableIface</link>. 3710s # */ 3710s # 3710s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 3710s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 3710s # 3710s # static void 3710s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 3710s # { 3710s # /* GObject signals for incoming D-Bus method calls: */ 3710s # /** 3710s # * OrgProjectCallableIface::handle-method-with-many-args: 3710s # * @object: A #OrgProjectCallableIface. 3710s # * @invocation: A #GDBusMethodInvocation. 3710s # * 3710s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-CallableIface.MethodWithManyArgs">MethodWithManyArgs()</link> D-Bus method. 3710s # * 3710s # * 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. 3710s # * 3710s # * 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. 3710s # */ 3710s # g_signal_new ("handle-method-with-many-args", 3710s # G_TYPE_FROM_INTERFACE (iface), 3710s # G_SIGNAL_RUN_LAST, 3710s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_method_with_many_args), 3710s # g_signal_accumulator_true_handled, 3710s # NULL, 3710s # org_project_callable_iface_method_marshal_method_with_many_args, 3710s # G_TYPE_BOOLEAN, 3710s # 1, 3710s # G_TYPE_DBUS_METHOD_INVOCATION); 3710s # 3710s # } 3710s # 3710s # /** 3710s # * org_project_callable_iface_call_method_with_many_args: 3710s # * @proxy: A #OrgProjectCallableIfaceProxy. 3710s # * @cancellable: (nullable): A #GCancellable or %NULL. 3710s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3710s # * @user_data: User data to pass to @callback. 3710s # * 3710s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-CallableIface.MethodWithManyArgs">MethodWithManyArgs()</link> D-Bus method on @proxy. 3710s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3710s # * You can then call org_project_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 3710s # * 3710s # * See org_project_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 3710s # */ 3710s # void 3710s # org_project_callable_iface_call_method_with_many_args ( 3710s # OrgProjectCallableIface *proxy, 3710s # GCancellable *cancellable, 3710s # GAsyncReadyCallback callback, 3710s # gpointer user_data) 3710s # { 3710s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3710s # "MethodWithManyArgs", 3710s # g_variant_new ("()"), 3710s # G_DBUS_CALL_FLAGS_NONE, 3710s # -1, 3710s # cancellable, 3710s # callback, 3710s # user_data); 3710s # } 3710s # 3710s # /** 3710s # * org_project_callable_iface_call_method_with_many_args_finish: 3710s # * @proxy: A #OrgProjectCallableIfaceProxy. 3710s # * @out_an_b: (out) (optional): Return location for return parameter or %NULL to ignore. 3710s # * @out_an_y: (out) (optional): Return location for return parameter or %NULL to ignore. 3710s # * @out_an_n: (out) (optional): Return location for return parameter or %NULL to ignore. 3710s # * @out_an_q: (out) (optional): Return location for return parameter or %NULL to ignore. 3710s # * @out_an_i: (out) (optional): Return location for return parameter or %NULL to ignore. 3710s # * @out_an_u: (out) (optional): Return location for return parameter or %NULL to ignore. 3710s # * @out_an_x: (out) (optional): Return location for return parameter or %NULL to ignore. 3710s # * @out_an_t: (out) (optional): Return location for return parameter or %NULL to ignore. 3710s # * @out_an_d: (out) (optional): Return location for return parameter or %NULL to ignore. 3710s # * @out_an_s: (out) (optional): Return location for return parameter or %NULL to ignore. 3710s # * @out_an_o: (out) (optional): Return location for return parameter or %NULL to ignore. 3710s # * @out_an_g: (out) (optional): Return location for return parameter or %NULL to ignore. 3710s # * @out_an_h: (out) (optional): Return location for return parameter or %NULL to ignore. 3710s # * @out_an_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 3710s # * @out_an_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 3710s # * @out_an_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 3710s # * @out_an_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 3710s # * @out_an_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 3710s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_method_with_many_args(). 3710s # * @error: Return location for error or %NULL. 3710s # * 3710s # * Finishes an operation started with org_project_callable_iface_call_method_with_many_args(). 3710s # * 3710s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3710s # */ 3710s # gboolean 3710s # org_project_callable_iface_call_method_with_many_args_finish ( 3710s # OrgProjectCallableIface *proxy, 3710s # gboolean *out_an_b, 3710s # guchar *out_an_y, 3710s # gint16 *out_an_n, 3710s # guint16 *out_an_q, 3710s # gint *out_an_i, 3710s # guint *out_an_u, 3710s # gint64 *out_an_x, 3710s # guint64 *out_an_t, 3710s # gdouble *out_an_d, 3710s # gchar **out_an_s, 3710s # gchar **out_an_o, 3710s # gchar **out_an_g, 3710s # GVariant **out_an_h, 3710s # gchar **out_an_ay, 3710s # gchar ***out_an_as, 3710s # gchar ***out_an_ao, 3710s # gchar ***out_an_aay, 3710s # GVariant **out_an_asv, 3710s # GAsyncResult *res, 3710s # GError **error) 3710s # { 3710s # GVariant *_ret; 3710s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3710s # if (_ret == NULL) 3710s # goto _out; 3710s # g_variant_get (_ret, 3710s # "(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 3710s # out_an_b, 3710s # out_an_y, 3710s # out_an_n, 3710s # out_an_q, 3710s # out_an_i, 3710s # out_an_u, 3710s # out_an_x, 3710s # out_an_t, 3710s # out_an_d, 3710s # out_an_s, 3710s # out_an_o, 3710s # out_an_g, 3710s # out_an_h, 3710s # out_an_ay, 3710s # out_an_as, 3710s # out_an_ao, 3710s # out_an_aay, 3710s # out_an_asv); 3710s # g_variant_unref (_ret); 3710s # _out: 3710s # return _ret != NULL; 3710s # } 3710s # 3710s # /** 3710s # * org_project_callable_iface_call_method_with_many_args_sync: 3710s # * @proxy: A #OrgProjectCallableIfaceProxy. 3710s # * @out_an_b: (out) (optional): Return location for return parameter or %NULL to ignore. 3710s # * @out_an_y: (out) (optional): Return location for return parameter or %NULL to ignore. 3710s # * @out_an_n: (out) (optional): Return location for return parameter or %NULL to ignore. 3710s # * @out_an_q: (out) (optional): Return location for return parameter or %NULL to ignore. 3710s # * @out_an_i: (out) (optional): Return location for return parameter or %NULL to ignore. 3710s # * @out_an_u: (out) (optional): Return location for return parameter or %NULL to ignore. 3710s # * @out_an_x: (out) (optional): Return location for return parameter or %NULL to ignore. 3710s # * @out_an_t: (out) (optional): Return location for return parameter or %NULL to ignore. 3710s # * @out_an_d: (out) (optional): Return location for return parameter or %NULL to ignore. 3710s # * @out_an_s: (out) (optional): Return location for return parameter or %NULL to ignore. 3710s # * @out_an_o: (out) (optional): Return location for return parameter or %NULL to ignore. 3710s # * @out_an_g: (out) (optional): Return location for return parameter or %NULL to ignore. 3710s # * @out_an_h: (out) (optional): Return location for return parameter or %NULL to ignore. 3710s # * @out_an_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 3710s # * @out_an_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 3710s # * @out_an_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 3710s # * @out_an_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 3710s # * @out_an_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 3710s # * @cancellable: (nullable): A #GCancellable or %NULL. 3710s # * @error: Return location for error or %NULL. 3710s # * 3710s # * Synchronously invokes the <link linkend="gdbus-method-org-project-CallableIface.MethodWithManyArgs">MethodWithManyArgs()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3710s # * 3710s # * See org_project_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 3710s # * 3710s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3710s # */ 3710s # gboolean 3710s # org_project_callable_iface_call_method_with_many_args_sync ( 3710s # OrgProjectCallableIface *proxy, 3710s # gboolean *out_an_b, 3710s # guchar *out_an_y, 3710s # gint16 *out_an_n, 3710s # guint16 *out_an_q, 3710s # gint *out_an_i, 3710s # guint *out_an_u, 3710s # gint64 *out_an_x, 3710s # guint64 *out_an_t, 3710s # gdouble *out_an_d, 3710s # gchar **out_an_s, 3710s # gchar **out_an_o, 3710s # gchar **out_an_g, 3710s # GVariant **out_an_h, 3710s # gchar **out_an_ay, 3710s # gchar ***out_an_as, 3710s # gchar ***out_an_ao, 3710s # gchar ***out_an_aay, 3710s # GVariant **out_an_asv, 3710s # GCancellable *cancellable, 3710s # GError **error) 3710s # { 3710s # GVariant *_ret; 3710s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3710s # "MethodWithManyArgs", 3710s # g_variant_new ("()"), 3710s # G_DBUS_CALL_FLAGS_NONE, 3710s # -1, 3710s # cancellable, 3710s # error); 3710s # if (_ret == NULL) 3710s # goto _out; 3710s # g_variant_get (_ret, 3710s # "(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 3710s # out_an_b, 3710s # out_an_y, 3710s # out_an_n, 3710s # out_an_q, 3710s # out_an_i, 3710s # out_an_u, 3710s # out_an_x, 3710s # out_an_t, 3710s # out_an_d, 3710s # out_an_s, 3710s # out_an_o, 3710s # out_an_g, 3710s # out_an_h, 3710s # out_an_ay, 3710s # out_an_as, 3710s # out_an_ao, 3710s # out_an_aay, 3710s # out_an_asv); 3710s # g_variant_unref (_ret); 3710s # _out: 3710s # return _ret != NULL; 3710s # } 3710s # 3710s # /** 3710s # * org_project_callable_iface_complete_method_with_many_args: 3710s # * @object: A #OrgProjectCallableIface. 3710s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3710s # * @an_b: Parameter to return. 3710s # * @an_y: Parameter to return. 3710s # * @an_n: Parameter to return. 3710s # * @an_q: Parameter to return. 3710s # * @an_i: Parameter to return. 3710s # * @an_u: Parameter to return. 3710s # * @an_x: Parameter to return. 3710s # * @an_t: Parameter to return. 3710s # * @an_d: Parameter to return. 3710s # * @an_s: Parameter to return. 3710s # * @an_o: Parameter to return. 3710s # * @an_g: Parameter to return. 3710s # * @an_h: Parameter to return. 3710s # * @an_ay: Parameter to return. 3710s # * @an_as: Parameter to return. 3710s # * @an_ao: Parameter to return. 3710s # * @an_aay: Parameter to return. 3710s # * @an_asv: Parameter to return. 3710s # * 3710s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-CallableIface.MethodWithManyArgs">MethodWithManyArgs()</link> 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. 3710s # * 3710s # * This method will free @invocation, you cannot use it afterwards. 3710s # */ 3710s # void 3710s # org_project_callable_iface_complete_method_with_many_args ( 3710s # OrgProjectCallableIface *object G_GNUC_UNUSED, 3710s # GDBusMethodInvocation *invocation, 3710s # gboolean an_b, 3710s # guchar an_y, 3710s # gint16 an_n, 3710s # guint16 an_q, 3710s # gint an_i, 3710s # guint an_u, 3710s # gint64 an_x, 3710s # guint64 an_t, 3710s # gdouble an_d, 3710s # const gchar *an_s, 3710s # const gchar *an_o, 3710s # const gchar *an_g, 3710s # GVariant *an_h, 3710s # const gchar *an_ay, 3710s # const gchar *const *an_as, 3710s # const gchar *const *an_ao, 3710s # const gchar *const *an_aay, 3710s # GVariant *an_asv) 3710s # { 3710s # g_dbus_method_invocation_return_value (invocation, 3710s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 3710s # an_b, 3710s # an_y, 3710s # an_n, 3710s # an_q, 3710s # an_i, 3710s # an_u, 3710s # an_x, 3710s # an_t, 3710s # an_d, 3710s # an_s, 3710s # an_o, 3710s # an_g, 3710s # an_h, 3710s # an_ay, 3710s # an_as, 3710s # an_ao, 3710s # an_aay, 3710s # an_asv)); 3710s # } 3710s # 3710s # /* ------------------------------------------------------------------------ */ 3710s # 3710s # /** 3710s # * OrgProjectCallableIfaceProxy: 3710s # * 3710s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 3710s # */ 3710s # 3710s # /** 3710s # * OrgProjectCallableIfaceProxyClass: 3710s # * @parent_class: The parent class. 3710s # * 3710s # * Class structure for #OrgProjectCallableIfaceProxy. 3710s # */ 3710s # 3710s # struct _OrgProjectCallableIfaceProxyPrivate 3710s # { 3710s # GData *qdata; 3710s # }; 3710s # 3710s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 3710s # 3710s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3710s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 3710s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 3710s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 3710s # 3710s # #else 3710s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 3710s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 3710s # 3710s # #endif 3710s # static void 3710s # org_project_callable_iface_proxy_finalize (GObject *object) 3710s # { 3710s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 3710s # g_datalist_clear (&proxy->priv->qdata); 3710s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 3710s # } 3710s # 3710s # static void 3710s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3710s # guint prop_id G_GNUC_UNUSED, 3710s # GValue *value G_GNUC_UNUSED, 3710s # GParamSpec *pspec G_GNUC_UNUSED) 3710s # { 3710s # } 3710s # 3710s # static void 3710s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3710s # guint prop_id G_GNUC_UNUSED, 3710s # const GValue *value G_GNUC_UNUSED, 3710s # GParamSpec *pspec G_GNUC_UNUSED) 3710s # { 3710s # } 3710s # 3710s # static void 3710s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 3710s # const gchar *sender_name G_GNUC_UNUSED, 3710s # const gchar *signal_name, 3710s # GVariant *parameters) 3710s # { 3710s # _ExtendedGDBusSignalInfo *info; 3710s # GVariantIter iter; 3710s # GVariant *child; 3710s # GValue *paramv; 3710s # gsize num_params; 3710s # gsize n; 3710s # guint signal_id; 3710s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 3710s # if (info == NULL) 3710s # return; 3710s # num_params = g_variant_n_children (parameters); 3710s # paramv = g_new0 (GValue, num_params + 1); 3710s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 3710s # g_value_set_object (¶mv[0], proxy); 3710s # g_variant_iter_init (&iter, parameters); 3710s # n = 1; 3710s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3710s # { 3710s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3710s # if (arg_info->use_gvariant) 3710s # { 3710s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3710s # g_value_set_variant (¶mv[n], child); 3710s # n++; 3710s # } 3710s # else 3710s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3710s # g_variant_unref (child); 3710s # } 3710s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 3710s # g_signal_emitv (paramv, signal_id, 0, NULL); 3710s # for (n = 0; n < num_params + 1; n++) 3710s # g_value_unset (¶mv[n]); 3710s # g_free (paramv); 3710s # } 3710s # 3710s # static void 3710s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 3710s # GVariant *changed_properties, 3710s # const gchar *const *invalidated_properties) 3710s # { 3710s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 3710s # guint n; 3710s # const gchar *key; 3710s # GVariantIter *iter; 3710s # _ExtendedGDBusPropertyInfo *info; 3710s # g_variant_get (changed_properties, "a{sv}", &iter); 3710s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3710s # { 3710s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 3710s # g_datalist_remove_data (&proxy->priv->qdata, key); 3710s # if (info != NULL) 3710s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3710s # } 3710s # g_variant_iter_free (iter); 3710s # for (n = 0; invalidated_properties[n] != NULL; n++) 3710s # { 3710s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 3710s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3710s # if (info != NULL) 3710s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3710s # } 3710s # } 3710s # 3710s # static void 3710s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 3710s # { 3710s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3710s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 3710s # #else 3710s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 3710s # #endif 3710s # 3710s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 3710s # } 3710s # 3710s # static void 3710s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 3710s # { 3710s # GObjectClass *gobject_class; 3710s # GDBusProxyClass *proxy_class; 3710s # 3710s # gobject_class = G_OBJECT_CLASS (klass); 3710s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 3710s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 3710s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 3710s # 3710s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3710s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 3710s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 3710s # 3710s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3710s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 3710s # #endif 3710s # } 3710s # 3710s # static void 3710s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 3710s # { 3710s # } 3710s # 3710s # /** 3710s # * org_project_callable_iface_proxy_new: 3710s # * @connection: A #GDBusConnection. 3710s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3710s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3710s # * @object_path: An object path. 3710s # * @cancellable: (nullable): A #GCancellable or %NULL. 3710s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3710s # * @user_data: User data to pass to @callback. 3710s # * 3710s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-CallableIface.top_of_page">org.project.CallableIface</link>. See g_dbus_proxy_new() for more details. 3710s # * 3710s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3710s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 3710s # * 3710s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3710s # */ 3710s # void 3710s # org_project_callable_iface_proxy_new ( 3710s # GDBusConnection *connection, 3710s # GDBusProxyFlags flags, 3710s # const gchar *name, 3710s # const gchar *object_path, 3710s # GCancellable *cancellable, 3710s # GAsyncReadyCallback callback, 3710s # gpointer user_data) 3710s # { 3710s # 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); 3710s # } 3710s # 3710s # /** 3710s # * org_project_callable_iface_proxy_new_finish: 3710s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 3710s # * @error: Return location for error or %NULL 3710s # * 3710s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 3710s # * 3710s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 3710s # */ 3710s # OrgProjectCallableIface * 3710s # org_project_callable_iface_proxy_new_finish ( 3710s # GAsyncResult *res, 3710s # GError **error) 3710s # { 3710s # GObject *ret; 3710s # GObject *source_object; 3710s # source_object = g_async_result_get_source_object (res); 3710s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3710s # g_object_unref (source_object); 3710s # if (ret != NULL) 3710s # return ORG_PROJECT_CALLABLE_IFACE (ret); 3710s # else 3710s # return NULL; 3710s # } 3710s # 3710s # /** 3710s # * org_project_callable_iface_proxy_new_sync: 3710s # * @connection: A #GDBusConnection. 3710s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3710s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3710s # * @object_path: An object path. 3710s # * @cancellable: (nullable): A #GCancellable or %NULL. 3710s # * @error: Return location for error or %NULL 3710s # * 3710s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-CallableIface.top_of_page">org.project.CallableIface</link>. See g_dbus_proxy_new_sync() for more details. 3710s # * 3710s # * The calling thread is blocked until a reply is received. 3710s # * 3710s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 3710s # * 3710s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 3710s # */ 3710s # OrgProjectCallableIface * 3710s # org_project_callable_iface_proxy_new_sync ( 3710s # GDBusConnection *connection, 3710s # GDBusProxyFlags flags, 3710s # const gchar *name, 3710s # const gchar *object_path, 3710s # GCancellable *cancellable, 3710s # GError **error) 3710s # { 3710s # GInitable *ret; 3710s # 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); 3710s # if (ret != NULL) 3710s # return ORG_PROJECT_CALLABLE_IFACE (ret); 3710s # else 3710s # return NULL; 3710s # } 3710s # 3710s # 3710s # /** 3710s # * org_project_callable_iface_proxy_new_for_bus: 3710s # * @bus_type: A #GBusType. 3710s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3710s # * @name: A bus name (well-known or unique). 3710s # * @object_path: An object path. 3710s # * @cancellable: (nullable): A #GCancellable or %NULL. 3710s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3710s # * @user_data: User data to pass to @callback. 3710s # * 3710s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3710s # * 3710s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3710s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 3710s # * 3710s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3710s # */ 3710s # void 3710s # org_project_callable_iface_proxy_new_for_bus ( 3710s # GBusType bus_type, 3710s # GDBusProxyFlags flags, 3710s # const gchar *name, 3710s # const gchar *object_path, 3710s # GCancellable *cancellable, 3710s # GAsyncReadyCallback callback, 3710s # gpointer user_data) 3710s # { 3710s # 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); 3710s # } 3710s # 3710s # /** 3710s # * org_project_callable_iface_proxy_new_for_bus_finish: 3710s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 3710s # * @error: Return location for error or %NULL 3710s # * 3710s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 3710s # * 3710s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 3710s # */ 3710s # OrgProjectCallableIface * 3710s # org_project_callable_iface_proxy_new_for_bus_finish ( 3710s # GAsyncResult *res, 3710s # GError **error) 3710s # { 3710s # GObject *ret; 3710s # GObject *source_object; 3710s # source_object = g_async_result_get_source_object (res); 3710s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3710s # g_object_unref (source_object); 3710s # if (ret != NULL) 3710s # return ORG_PROJECT_CALLABLE_IFACE (ret); 3710s # else 3710s # return NULL; 3710s # } 3710s # 3710s # /** 3710s # * org_project_callable_iface_proxy_new_for_bus_sync: 3710s # * @bus_type: A #GBusType. 3710s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3710s # * @name: A bus name (well-known or unique). 3710s # * @object_path: An object path. 3710s # * @cancellable: (nullable): A #GCancellable or %NULL. 3710s # * @error: Return location for error or %NULL 3710s # * 3710s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3710s # * 3710s # * The calling thread is blocked until a reply is received. 3710s # * 3710s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 3710s # * 3710s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 3710s # */ 3710s # OrgProjectCallableIface * 3710s # org_project_callable_iface_proxy_new_for_bus_sync ( 3710s # GBusType bus_type, 3710s # GDBusProxyFlags flags, 3710s # const gchar *name, 3710s # const gchar *object_path, 3710s # GCancellable *cancellable, 3710s # GError **error) 3710s # { 3710s # GInitable *ret; 3710s # 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); 3710s # if (ret != NULL) 3710s # return ORG_PROJECT_CALLABLE_IFACE (ret); 3710s # else 3710s # return NULL; 3710s # } 3710s # 3710s # 3710s # /* ------------------------------------------------------------------------ */ 3710s # 3710s # /** 3710s # * OrgProjectCallableIfaceSkeleton: 3710s # * 3710s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3710s # */ 3710s # 3710s # /** 3710s # * OrgProjectCallableIfaceSkeletonClass: 3710s # * @parent_class: The parent class. 3710s # * 3710s # * Class structure for #OrgProjectCallableIfaceSkeleton. 3710s # */ 3710s # 3710s # struct _OrgProjectCallableIfaceSkeletonPrivate 3710s # { 3710s # GValue *properties; 3710s # GList *changed_properties; 3710s # GSource *changed_properties_idle_source; 3710s # GMainContext *context; 3710s # GMutex lock; 3710s # }; 3710s # 3710s # static void 3710s # _org_project_callable_iface_skeleton_handle_method_call ( 3710s # GDBusConnection *connection G_GNUC_UNUSED, 3710s # const gchar *sender G_GNUC_UNUSED, 3710s # const gchar *object_path G_GNUC_UNUSED, 3710s # const gchar *interface_name, 3710s # const gchar *method_name, 3710s # GVariant *parameters, 3710s # GDBusMethodInvocation *invocation, 3710s # gpointer user_data) 3710s # { 3710s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 3710s # _ExtendedGDBusMethodInfo *info; 3710s # GVariantIter iter; 3710s # GVariant *child; 3710s # GValue *paramv; 3710s # gsize num_params; 3710s # guint num_extra; 3710s # gsize n; 3710s # guint signal_id; 3710s # GValue return_value = G_VALUE_INIT; 3710s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3710s # g_assert (info != NULL); 3710s # num_params = g_variant_n_children (parameters); 3710s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3710s # n = 0; 3710s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 3710s # g_value_set_object (¶mv[n++], skeleton); 3710s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3710s # g_value_set_object (¶mv[n++], invocation); 3710s # if (info->pass_fdlist) 3710s # { 3710s # #ifdef G_OS_UNIX 3710s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3710s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3710s # #else 3710s # g_assert_not_reached (); 3710s # #endif 3710s # } 3710s # g_variant_iter_init (&iter, parameters); 3710s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3710s # { 3710s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3710s # if (arg_info->use_gvariant) 3710s # { 3710s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3710s # g_value_set_variant (¶mv[n], child); 3710s # n++; 3710s # } 3710s # else 3710s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3710s # g_variant_unref (child); 3710s # } 3710s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 3710s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3710s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3710s # if (!g_value_get_boolean (&return_value)) 3710s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3710s # g_value_unset (&return_value); 3710s # for (n = 0; n < num_params + num_extra; n++) 3710s # g_value_unset (¶mv[n]); 3710s # g_free (paramv); 3710s # } 3710s # 3710s # static GVariant * 3710s # _org_project_callable_iface_skeleton_handle_get_property ( 3710s # GDBusConnection *connection G_GNUC_UNUSED, 3710s # const gchar *sender G_GNUC_UNUSED, 3710s # const gchar *object_path G_GNUC_UNUSED, 3710s # const gchar *interface_name G_GNUC_UNUSED, 3710s # const gchar *property_name, 3710s # GError **error, 3710s # gpointer user_data) 3710s # { 3710s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 3710s # GValue value = G_VALUE_INIT; 3710s # GParamSpec *pspec; 3710s # _ExtendedGDBusPropertyInfo *info; 3710s # GVariant *ret; 3710s # ret = NULL; 3710s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 3710s # g_assert (info != NULL); 3710s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3710s # if (pspec == NULL) 3710s # { 3710s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3710s # } 3710s # else 3710s # { 3710s # g_value_init (&value, pspec->value_type); 3710s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3710s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3710s # g_value_unset (&value); 3710s # } 3710s # return ret; 3710s # } 3710s # 3710s # static gboolean 3710s # _org_project_callable_iface_skeleton_handle_set_property ( 3710s # GDBusConnection *connection G_GNUC_UNUSED, 3710s # const gchar *sender G_GNUC_UNUSED, 3710s # const gchar *object_path G_GNUC_UNUSED, 3710s # const gchar *interface_name G_GNUC_UNUSED, 3710s # const gchar *property_name, 3710s # GVariant *variant, 3710s # GError **error, 3710s # gpointer user_data) 3710s # { 3710s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 3710s # GValue value = G_VALUE_INIT; 3710s # GParamSpec *pspec; 3710s # _ExtendedGDBusPropertyInfo *info; 3710s # gboolean ret; 3710s # ret = FALSE; 3710s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 3710s # g_assert (info != NULL); 3710s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3710s # if (pspec == NULL) 3710s # { 3710s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3710s # } 3710s # else 3710s # { 3710s # if (info->use_gvariant) 3710s # g_value_set_variant (&value, variant); 3710s # else 3710s # g_dbus_gvariant_to_gvalue (variant, &value); 3710s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3710s # g_value_unset (&value); 3710s # ret = TRUE; 3710s # } 3710s # return ret; 3710s # } 3710s # 3710s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 3710s # { 3710s # _org_project_callable_iface_skeleton_handle_method_call, 3710s # _org_project_callable_iface_skeleton_handle_get_property, 3710s # _org_project_callable_iface_skeleton_handle_set_property, 3710s # {NULL} 3710s # }; 3710s # 3710s # static GDBusInterfaceInfo * 3710s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3710s # { 3710s # return org_project_callable_iface_interface_info (); 3710s # } 3710s # 3710s # static GDBusInterfaceVTable * 3710s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3710s # { 3710s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 3710s # } 3710s # 3710s # static GVariant * 3710s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3710s # { 3710s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 3710s # 3710s # GVariantBuilder builder; 3710s # guint n; 3710s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3710s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3710s # #else 3710s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3710s # #endif 3710s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 3710s # goto out; 3710s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 3710s # { 3710s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 3710s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3710s # { 3710s # GVariant *value; 3710s # 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); 3710s # if (value != NULL) 3710s # { 3710s # g_variant_take_ref (value); 3710s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3710s # g_variant_unref (value); 3710s # } 3710s # } 3710s # } 3710s # out: 3710s # return g_variant_builder_end (&builder); 3710s # } 3710s # 3710s # static void 3710s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3710s # { 3710s # } 3710s # 3710s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 3710s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3710s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3710s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 3710s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 3710s # 3710s # #else 3710s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3710s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 3710s # 3710s # #endif 3710s # static void 3710s # org_project_callable_iface_skeleton_finalize (GObject *object) 3710s # { 3710s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 3710s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3710s # if (skeleton->priv->changed_properties_idle_source != NULL) 3710s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3710s # g_main_context_unref (skeleton->priv->context); 3710s # g_mutex_clear (&skeleton->priv->lock); 3710s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 3710s # } 3710s # 3710s # static void 3710s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 3710s # { 3710s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3710s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 3710s # #else 3710s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 3710s # #endif 3710s # 3710s # g_mutex_init (&skeleton->priv->lock); 3710s # skeleton->priv->context = g_main_context_ref_thread_default (); 3710s # } 3710s # 3710s # static void 3710s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 3710s # { 3710s # GObjectClass *gobject_class; 3710s # GDBusInterfaceSkeletonClass *skeleton_class; 3710s # 3710s # gobject_class = G_OBJECT_CLASS (klass); 3710s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 3710s # 3710s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3710s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 3710s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 3710s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 3710s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 3710s # 3710s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3710s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 3710s # #endif 3710s # } 3710s # 3710s # static void 3710s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 3710s # { 3710s # } 3710s # 3710s # /** 3710s # * org_project_callable_iface_skeleton_new: 3710s # * 3710s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-CallableIface.top_of_page">org.project.CallableIface</link>. 3710s # * 3710s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 3710s # */ 3710s # OrgProjectCallableIface * 3710s # org_project_callable_iface_skeleton_new (void) 3710s # { 3710s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 3710s # } 3710s # Error: 3711s ok 14 __main__.TestCodegen.test_generate_methods_marshallers_with_unix_fds 3711s # gdbus-codegen: /usr/bin/gdbus-codegen 3711s # tmpdir: /tmp/tmp426ccz2x 3711s # /tmp/tmp426ccz2x/tmptvz5kle4.xml: 3711s # <node> 3711s # <interface name="test.FDPassing"> 3711s # <method name="HelloFD"> 3711s # <annotation name="org.gtk.GDBus.C.UnixFD" value="1"/> 3711s # <arg name="greeting" direction="in" type="s"/> 3711s # <arg name="response" direction="out" type="s"/> 3711s # </method> 3711s # </interface> 3711s # </node> 3711s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp426ccz2x/tmptvz5kle4.xml', '--output', '-', '--body'] 3711s # Return code: 0 3711s # Output: 3711s # /* 3711s # * This file is generated by gdbus-codegen, do not modify it. 3711s # * 3711s # * The license of this code is the same as for the D-Bus interface description 3711s # * it was derived from. Note that it links to GLib, so must comply with the 3711s # * LGPL linking clauses. 3711s # */ 3711s # 3711s # #ifdef HAVE_CONFIG_H 3711s # # include "config.h" 3711s # #endif 3711s # 3711s # #include <string.h> 3711s # #ifdef G_OS_UNIX 3711s # # include <gio/gunixfdlist.h> 3711s # #endif 3711s # 3711s # #ifdef G_ENABLE_DEBUG 3711s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3711s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3711s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3711s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3711s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3711s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3711s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3711s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3711s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3711s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3711s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3711s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3711s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3711s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3711s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3711s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3711s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3711s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3711s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3711s # #else /* !G_ENABLE_DEBUG */ 3711s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3711s # * Do not access GValues directly in your code. Instead, use the 3711s # * g_value_get_*() functions 3711s # */ 3711s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3711s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3711s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3711s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3711s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3711s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3711s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3711s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3711s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3711s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3711s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3711s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3711s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3711s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3711s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3711s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3711s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3711s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3711s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3711s # #endif /* !G_ENABLE_DEBUG */ 3711s # 3711s # typedef struct 3711s # { 3711s # GDBusArgInfo parent_struct; 3711s # gboolean use_gvariant; 3711s # } _ExtendedGDBusArgInfo; 3711s # 3711s # typedef struct 3711s # { 3711s # GDBusMethodInfo parent_struct; 3711s # const gchar *signal_name; 3711s # gboolean pass_fdlist; 3711s # } _ExtendedGDBusMethodInfo; 3711s # 3711s # typedef struct 3711s # { 3711s # GDBusSignalInfo parent_struct; 3711s # const gchar *signal_name; 3711s # } _ExtendedGDBusSignalInfo; 3711s # 3711s # typedef struct 3711s # { 3711s # GDBusPropertyInfo parent_struct; 3711s # const gchar *hyphen_name; 3711s # guint use_gvariant : 1; 3711s # guint emits_changed_signal : 1; 3711s # } _ExtendedGDBusPropertyInfo; 3711s # 3711s # typedef struct 3711s # { 3711s # GDBusInterfaceInfo parent_struct; 3711s # const gchar *hyphen_name; 3711s # } _ExtendedGDBusInterfaceInfo; 3711s # 3711s # typedef struct 3711s # { 3711s # const _ExtendedGDBusPropertyInfo *info; 3711s # guint prop_id; 3711s # GValue orig_value; /* the value before the change */ 3711s # } ChangedProperty; 3711s # 3711s # static void 3711s # _changed_property_free (ChangedProperty *data) 3711s # { 3711s # g_value_unset (&data->orig_value); 3711s # g_free (data); 3711s # } 3711s # 3711s # static gboolean 3711s # _g_strv_equal0 (gchar **a, gchar **b) 3711s # { 3711s # gboolean ret = FALSE; 3711s # guint n; 3711s # if (a == NULL && b == NULL) 3711s # { 3711s # ret = TRUE; 3711s # goto out; 3711s # } 3711s # if (a == NULL || b == NULL) 3711s # goto out; 3711s # if (g_strv_length (a) != g_strv_length (b)) 3711s # goto out; 3711s # for (n = 0; a[n] != NULL; n++) 3711s # if (g_strcmp0 (a[n], b[n]) != 0) 3711s # goto out; 3711s # ret = TRUE; 3711s # out: 3711s # return ret; 3711s # } 3711s # 3711s # static gboolean 3711s # _g_variant_equal0 (GVariant *a, GVariant *b) 3711s # { 3711s # gboolean ret = FALSE; 3711s # if (a == NULL && b == NULL) 3711s # { 3711s # ret = TRUE; 3711s # goto out; 3711s # } 3711s # if (a == NULL || b == NULL) 3711s # goto out; 3711s # ret = g_variant_equal (a, b); 3711s # out: 3711s # return ret; 3711s # } 3711s # 3711s # G_GNUC_UNUSED static gboolean 3711s # _g_value_equal (const GValue *a, const GValue *b) 3711s # { 3711s # gboolean ret = FALSE; 3711s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3711s # switch (G_VALUE_TYPE (a)) 3711s # { 3711s # case G_TYPE_BOOLEAN: 3711s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3711s # break; 3711s # case G_TYPE_UCHAR: 3711s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3711s # break; 3711s # case G_TYPE_INT: 3711s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3711s # break; 3711s # case G_TYPE_UINT: 3711s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3711s # break; 3711s # case G_TYPE_INT64: 3711s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3711s # break; 3711s # case G_TYPE_UINT64: 3711s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3711s # break; 3711s # case G_TYPE_DOUBLE: 3711s # { 3711s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3711s # gdouble da = g_value_get_double (a); 3711s # gdouble db = g_value_get_double (b); 3711s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3711s # } 3711s # break; 3711s # case G_TYPE_STRING: 3711s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3711s # break; 3711s # case G_TYPE_VARIANT: 3711s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3711s # break; 3711s # default: 3711s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3711s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3711s # else 3711s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3711s # break; 3711s # } 3711s # return ret; 3711s # } 3711s # 3711s # static void 3711s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_OBJECT_STRING ( 3711s # GClosure *closure, 3711s # GValue *return_value, 3711s # unsigned int n_param_values, 3711s # const GValue *param_values, 3711s # void *invocation_hint G_GNUC_UNUSED, 3711s # void *marshal_data) 3711s # { 3711s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectObjectStringFunc) 3711s # (void *data1, 3711s # GDBusMethodInvocation *arg_method_invocation, 3711s # GUnixFDList *arg_fd_list, 3711s # const gchar *arg_greeting, 3711s # void *data2); 3711s # _GDbusCodegenMarshalBoolean_ObjectObjectStringFunc callback; 3711s # GCClosure *cc = (GCClosure*) closure; 3711s # void *data1, *data2; 3711s # gboolean v_return; 3711s # 3711s # g_return_if_fail (return_value != NULL); 3711s # g_return_if_fail (n_param_values == 4); 3711s # 3711s # if (G_CCLOSURE_SWAP_DATA (closure)) 3711s # { 3711s # data1 = closure->data; 3711s # data2 = g_value_peek_pointer (param_values + 0); 3711s # } 3711s # else 3711s # { 3711s # data1 = g_value_peek_pointer (param_values + 0); 3711s # data2 = closure->data; 3711s # } 3711s # 3711s # callback = (_GDbusCodegenMarshalBoolean_ObjectObjectStringFunc) 3711s # (marshal_data ? marshal_data : cc->callback); 3711s # 3711s # v_return = 3711s # callback (data1, 3711s # g_marshal_value_peek_object (param_values + 1), 3711s # g_marshal_value_peek_object (param_values + 2), 3711s # g_marshal_value_peek_string (param_values + 3), 3711s # data2); 3711s # 3711s # g_value_set_boolean (return_value, v_return); 3711s # } 3711s # 3711s # /* ------------------------------------------------------------------------ 3711s # * Code for interface test.FDPassing 3711s # * ------------------------------------------------------------------------ 3711s # */ 3711s # 3711s # /** 3711s # * SECTION:TestFDPassing 3711s # * @title: TestFDPassing 3711s # * @short_description: Generated C code for the test.FDPassing D-Bus interface 3711s # * 3711s # * This section contains code for working with the <link linkend="gdbus-interface-test-FDPassing.top_of_page">test.FDPassing</link> D-Bus interface in C. 3711s # */ 3711s # 3711s # /* ---- Introspection data for test.FDPassing ---- */ 3711s # 3711s # static const _ExtendedGDBusArgInfo _test_fdpassing_method_info_hello_fd_IN_ARG_greeting = 3711s # { 3711s # { 3711s # -1, 3711s # (gchar *) "greeting", 3711s # (gchar *) "s", 3711s # NULL 3711s # }, 3711s # FALSE 3711s # }; 3711s # 3711s # static const GDBusArgInfo * const _test_fdpassing_method_info_hello_fd_IN_ARG_pointers[] = 3711s # { 3711s # &_test_fdpassing_method_info_hello_fd_IN_ARG_greeting.parent_struct, 3711s # NULL 3711s # }; 3711s # 3711s # static const _ExtendedGDBusArgInfo _test_fdpassing_method_info_hello_fd_OUT_ARG_response = 3711s # { 3711s # { 3711s # -1, 3711s # (gchar *) "response", 3711s # (gchar *) "s", 3711s # NULL 3711s # }, 3711s # FALSE 3711s # }; 3711s # 3711s # static const GDBusArgInfo * const _test_fdpassing_method_info_hello_fd_OUT_ARG_pointers[] = 3711s # { 3711s # &_test_fdpassing_method_info_hello_fd_OUT_ARG_response.parent_struct, 3711s # NULL 3711s # }; 3711s # 3711s # static const _ExtendedGDBusMethodInfo _test_fdpassing_method_info_hello_fd = 3711s # { 3711s # { 3711s # -1, 3711s # (gchar *) "HelloFD", 3711s # (GDBusArgInfo **) &_test_fdpassing_method_info_hello_fd_IN_ARG_pointers, 3711s # (GDBusArgInfo **) &_test_fdpassing_method_info_hello_fd_OUT_ARG_pointers, 3711s # NULL 3711s # }, 3711s # "handle-hello-fd", 3711s # TRUE 3711s # }; 3711s # 3711s # static const GDBusMethodInfo * const _test_fdpassing_method_info_pointers[] = 3711s # { 3711s # &_test_fdpassing_method_info_hello_fd.parent_struct, 3711s # NULL 3711s # }; 3711s # 3711s # static const _ExtendedGDBusInterfaceInfo _test_fdpassing_interface_info = 3711s # { 3711s # { 3711s # -1, 3711s # (gchar *) "test.FDPassing", 3711s # (GDBusMethodInfo **) &_test_fdpassing_method_info_pointers, 3711s # NULL, 3711s # NULL, 3711s # NULL 3711s # }, 3711s # "test-fdpassing", 3711s # }; 3711s # 3711s # 3711s # /** 3711s # * test_fdpassing_interface_info: 3711s # * 3711s # * Gets a machine-readable description of the <link linkend="gdbus-interface-test-FDPassing.top_of_page">test.FDPassing</link> D-Bus interface. 3711s # * 3711s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3711s # */ 3711s # GDBusInterfaceInfo * 3711s # test_fdpassing_interface_info (void) 3711s # { 3711s # return (GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct; 3711s # } 3711s # 3711s # /** 3711s # * test_fdpassing_override_properties: 3711s # * @klass: The class structure for a #GObject derived class. 3711s # * @property_id_begin: The property id to assign to the first overridden property. 3711s # * 3711s # * Overrides all #GObject properties in the #TestFDPassing interface for a concrete class. 3711s # * The properties are overridden in the order they are defined. 3711s # * 3711s # * Returns: The last property id. 3711s # */ 3711s # guint 3711s # test_fdpassing_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3711s # { 3711s # return property_id_begin - 1; 3711s # } 3711s # 3711s # 3711s # inline static void 3711s # test_fdpassing_method_marshal_hello_fd ( 3711s # GClosure *closure, 3711s # GValue *return_value, 3711s # unsigned int n_param_values, 3711s # const GValue *param_values, 3711s # void *invocation_hint, 3711s # void *marshal_data) 3711s # { 3711s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_OBJECT_STRING (closure, 3711s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3711s # } 3711s # 3711s # 3711s # /** 3711s # * TestFDPassing: 3711s # * 3711s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-test-FDPassing.top_of_page">test.FDPassing</link>. 3711s # */ 3711s # 3711s # /** 3711s # * TestFDPassingIface: 3711s # * @parent_iface: The parent interface. 3711s # * @handle_hello_fd: Handler for the #TestFDPassing::handle-hello-fd signal. 3711s # * 3711s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-test-FDPassing.top_of_page">test.FDPassing</link>. 3711s # */ 3711s # 3711s # typedef TestFDPassingIface TestFDPassingInterface; 3711s # G_DEFINE_INTERFACE (TestFDPassing, test_fdpassing, G_TYPE_OBJECT) 3711s # 3711s # static void 3711s # test_fdpassing_default_init (TestFDPassingIface *iface) 3711s # { 3711s # /* GObject signals for incoming D-Bus method calls: */ 3711s # /** 3711s # * TestFDPassing::handle-hello-fd: 3711s # * @object: A #TestFDPassing. 3711s # * @invocation: A #GDBusMethodInvocation. 3711s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 3711s # * @arg_greeting: Argument passed by remote caller. 3711s # * 3711s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-test-FDPassing.HelloFD">HelloFD()</link> D-Bus method. 3711s # * 3711s # * 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. 3711s # * 3711s # * 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. 3711s # */ 3711s # g_signal_new ("handle-hello-fd", 3711s # G_TYPE_FROM_INTERFACE (iface), 3711s # G_SIGNAL_RUN_LAST, 3711s # G_STRUCT_OFFSET (TestFDPassingIface, handle_hello_fd), 3711s # g_signal_accumulator_true_handled, 3711s # NULL, 3711s # test_fdpassing_method_marshal_hello_fd, 3711s # G_TYPE_BOOLEAN, 3711s # 3, 3711s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UNIX_FD_LIST, G_TYPE_STRING); 3711s # 3711s # } 3711s # 3711s # /** 3711s # * test_fdpassing_call_hello_fd: 3711s # * @proxy: A #TestFDPassingProxy. 3711s # * @arg_greeting: Argument to pass with the method invocation. 3711s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 3711s # * @cancellable: (nullable): A #GCancellable or %NULL. 3711s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3711s # * @user_data: User data to pass to @callback. 3711s # * 3711s # * Asynchronously invokes the <link linkend="gdbus-method-test-FDPassing.HelloFD">HelloFD()</link> D-Bus method on @proxy. 3711s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3711s # * You can then call test_fdpassing_call_hello_fd_finish() to get the result of the operation. 3711s # * 3711s # * See test_fdpassing_call_hello_fd_sync() for the synchronous, blocking version of this method. 3711s # */ 3711s # void 3711s # test_fdpassing_call_hello_fd ( 3711s # TestFDPassing *proxy, 3711s # const gchar *arg_greeting, 3711s # GUnixFDList *fd_list, 3711s # GCancellable *cancellable, 3711s # GAsyncReadyCallback callback, 3711s # gpointer user_data) 3711s # { 3711s # g_dbus_proxy_call_with_unix_fd_list (G_DBUS_PROXY (proxy), 3711s # "HelloFD", 3711s # g_variant_new ("(s)", 3711s # arg_greeting), 3711s # G_DBUS_CALL_FLAGS_NONE, 3711s # -1, 3711s # fd_list, 3711s # cancellable, 3711s # callback, 3711s # user_data); 3711s # } 3711s # 3711s # /** 3711s # * test_fdpassing_call_hello_fd_finish: 3711s # * @proxy: A #TestFDPassingProxy. 3711s # * @out_response: (out) (optional): Return location for return parameter or %NULL to ignore. 3711s # * @out_fd_list: (out) (optional) (nullable): Return location for a #GUnixFDList or %NULL to ignore. 3711s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_call_hello_fd(). 3711s # * @error: Return location for error or %NULL. 3711s # * 3711s # * Finishes an operation started with test_fdpassing_call_hello_fd(). 3711s # * 3711s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3711s # */ 3711s # gboolean 3711s # test_fdpassing_call_hello_fd_finish ( 3711s # TestFDPassing *proxy, 3711s # gchar **out_response, 3711s # GUnixFDList **out_fd_list, 3711s # GAsyncResult *res, 3711s # GError **error) 3711s # { 3711s # GVariant *_ret; 3711s # _ret = g_dbus_proxy_call_with_unix_fd_list_finish (G_DBUS_PROXY (proxy), out_fd_list, res, error); 3711s # if (_ret == NULL) 3711s # goto _out; 3711s # g_variant_get (_ret, 3711s # "(s)", 3711s # out_response); 3711s # g_variant_unref (_ret); 3711s # _out: 3711s # return _ret != NULL; 3711s # } 3711s # 3711s # /** 3711s # * test_fdpassing_call_hello_fd_sync: 3711s # * @proxy: A #TestFDPassingProxy. 3711s # * @arg_greeting: Argument to pass with the method invocation. 3711s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 3711s # * @out_response: (out) (optional): Return location for return parameter or %NULL to ignore. 3711s # * @out_fd_list: (out) (optional) (nullable): Return location for a #GUnixFDList or %NULL. 3711s # * @cancellable: (nullable): A #GCancellable or %NULL. 3711s # * @error: Return location for error or %NULL. 3711s # * 3711s # * Synchronously invokes the <link linkend="gdbus-method-test-FDPassing.HelloFD">HelloFD()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3711s # * 3711s # * See test_fdpassing_call_hello_fd() for the asynchronous version of this method. 3711s # * 3711s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3711s # */ 3711s # gboolean 3711s # test_fdpassing_call_hello_fd_sync ( 3711s # TestFDPassing *proxy, 3711s # const gchar *arg_greeting, 3711s # GUnixFDList *fd_list, 3711s # gchar **out_response, 3711s # GUnixFDList **out_fd_list, 3711s # GCancellable *cancellable, 3711s # GError **error) 3711s # { 3711s # GVariant *_ret; 3711s # _ret = g_dbus_proxy_call_with_unix_fd_list_sync (G_DBUS_PROXY (proxy), 3711s # "HelloFD", 3711s # g_variant_new ("(s)", 3711s # arg_greeting), 3711s # G_DBUS_CALL_FLAGS_NONE, 3711s # -1, 3711s # fd_list, 3711s # out_fd_list, 3711s # cancellable, 3711s # error); 3711s # if (_ret == NULL) 3711s # goto _out; 3711s # g_variant_get (_ret, 3711s # "(s)", 3711s # out_response); 3711s # g_variant_unref (_ret); 3711s # _out: 3711s # return _ret != NULL; 3711s # } 3711s # 3711s # /** 3711s # * test_fdpassing_complete_hello_fd: 3711s # * @object: A #TestFDPassing. 3711s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3711s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 3711s # * @response: Parameter to return. 3711s # * 3711s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-test-FDPassing.HelloFD">HelloFD()</link> 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. 3711s # * 3711s # * This method will free @invocation, you cannot use it afterwards. 3711s # */ 3711s # void 3711s # test_fdpassing_complete_hello_fd ( 3711s # TestFDPassing *object G_GNUC_UNUSED, 3711s # GDBusMethodInvocation *invocation, 3711s # GUnixFDList *fd_list, 3711s # const gchar *response) 3711s # { 3711s # g_dbus_method_invocation_return_value_with_unix_fd_list (invocation, 3711s # g_variant_new ("(s)", 3711s # response), 3711s # fd_list); 3711s # } 3711s # 3711s # /* ------------------------------------------------------------------------ */ 3711s # 3711s # /** 3711s # * TestFDPassingProxy: 3711s # * 3711s # * The #TestFDPassingProxy structure contains only private data and should only be accessed using the provided API. 3711s # */ 3711s # 3711s # /** 3711s # * TestFDPassingProxyClass: 3711s # * @parent_class: The parent class. 3711s # * 3711s # * Class structure for #TestFDPassingProxy. 3711s # */ 3711s # 3711s # struct _TestFDPassingProxyPrivate 3711s # { 3711s # GData *qdata; 3711s # }; 3711s # 3711s # static void test_fdpassing_proxy_iface_init (TestFDPassingIface *iface); 3711s # 3711s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3711s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingProxy, test_fdpassing_proxy, G_TYPE_DBUS_PROXY, 3711s # G_ADD_PRIVATE (TestFDPassingProxy) 3711s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_proxy_iface_init)) 3711s # 3711s # #else 3711s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingProxy, test_fdpassing_proxy, G_TYPE_DBUS_PROXY, 3711s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_proxy_iface_init)) 3711s # 3711s # #endif 3711s # static void 3711s # test_fdpassing_proxy_finalize (GObject *object) 3711s # { 3711s # TestFDPassingProxy *proxy = TEST_FDPASSING_PROXY (object); 3711s # g_datalist_clear (&proxy->priv->qdata); 3711s # G_OBJECT_CLASS (test_fdpassing_proxy_parent_class)->finalize (object); 3711s # } 3711s # 3711s # static void 3711s # test_fdpassing_proxy_get_property (GObject *object G_GNUC_UNUSED, 3711s # guint prop_id G_GNUC_UNUSED, 3711s # GValue *value G_GNUC_UNUSED, 3711s # GParamSpec *pspec G_GNUC_UNUSED) 3711s # { 3711s # } 3711s # 3711s # static void 3711s # test_fdpassing_proxy_set_property (GObject *object G_GNUC_UNUSED, 3711s # guint prop_id G_GNUC_UNUSED, 3711s # const GValue *value G_GNUC_UNUSED, 3711s # GParamSpec *pspec G_GNUC_UNUSED) 3711s # { 3711s # } 3711s # 3711s # static void 3711s # test_fdpassing_proxy_g_signal (GDBusProxy *proxy, 3711s # const gchar *sender_name G_GNUC_UNUSED, 3711s # const gchar *signal_name, 3711s # GVariant *parameters) 3711s # { 3711s # _ExtendedGDBusSignalInfo *info; 3711s # GVariantIter iter; 3711s # GVariant *child; 3711s # GValue *paramv; 3711s # gsize num_params; 3711s # gsize n; 3711s # guint signal_id; 3711s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, signal_name); 3711s # if (info == NULL) 3711s # return; 3711s # num_params = g_variant_n_children (parameters); 3711s # paramv = g_new0 (GValue, num_params + 1); 3711s # g_value_init (¶mv[0], TYPE_TEST_FDPASSING); 3711s # g_value_set_object (¶mv[0], proxy); 3711s # g_variant_iter_init (&iter, parameters); 3711s # n = 1; 3711s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3711s # { 3711s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3711s # if (arg_info->use_gvariant) 3711s # { 3711s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3711s # g_value_set_variant (¶mv[n], child); 3711s # n++; 3711s # } 3711s # else 3711s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3711s # g_variant_unref (child); 3711s # } 3711s # signal_id = g_signal_lookup (info->signal_name, TYPE_TEST_FDPASSING); 3711s # g_signal_emitv (paramv, signal_id, 0, NULL); 3711s # for (n = 0; n < num_params + 1; n++) 3711s # g_value_unset (¶mv[n]); 3711s # g_free (paramv); 3711s # } 3711s # 3711s # static void 3711s # test_fdpassing_proxy_g_properties_changed (GDBusProxy *_proxy, 3711s # GVariant *changed_properties, 3711s # const gchar *const *invalidated_properties) 3711s # { 3711s # TestFDPassingProxy *proxy = TEST_FDPASSING_PROXY (_proxy); 3711s # guint n; 3711s # const gchar *key; 3711s # GVariantIter *iter; 3711s # _ExtendedGDBusPropertyInfo *info; 3711s # g_variant_get (changed_properties, "a{sv}", &iter); 3711s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3711s # { 3711s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, key); 3711s # g_datalist_remove_data (&proxy->priv->qdata, key); 3711s # if (info != NULL) 3711s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3711s # } 3711s # g_variant_iter_free (iter); 3711s # for (n = 0; invalidated_properties[n] != NULL; n++) 3711s # { 3711s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, invalidated_properties[n]); 3711s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3711s # if (info != NULL) 3711s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3711s # } 3711s # } 3711s # 3711s # static void 3711s # test_fdpassing_proxy_init (TestFDPassingProxy *proxy) 3711s # { 3711s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3711s # proxy->priv = test_fdpassing_proxy_get_instance_private (proxy); 3711s # #else 3711s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_TEST_FDPASSING_PROXY, TestFDPassingProxyPrivate); 3711s # #endif 3711s # 3711s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), test_fdpassing_interface_info ()); 3711s # } 3711s # 3711s # static void 3711s # test_fdpassing_proxy_class_init (TestFDPassingProxyClass *klass) 3711s # { 3711s # GObjectClass *gobject_class; 3711s # GDBusProxyClass *proxy_class; 3711s # 3711s # gobject_class = G_OBJECT_CLASS (klass); 3711s # gobject_class->finalize = test_fdpassing_proxy_finalize; 3711s # gobject_class->get_property = test_fdpassing_proxy_get_property; 3711s # gobject_class->set_property = test_fdpassing_proxy_set_property; 3711s # 3711s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3711s # proxy_class->g_signal = test_fdpassing_proxy_g_signal; 3711s # proxy_class->g_properties_changed = test_fdpassing_proxy_g_properties_changed; 3711s # 3711s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3711s # g_type_class_add_private (klass, sizeof (TestFDPassingProxyPrivate)); 3711s # #endif 3711s # } 3711s # 3711s # static void 3711s # test_fdpassing_proxy_iface_init (TestFDPassingIface *iface G_GNUC_UNUSED) 3711s # { 3711s # } 3711s # 3711s # /** 3711s # * test_fdpassing_proxy_new: 3711s # * @connection: A #GDBusConnection. 3711s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3711s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3711s # * @object_path: An object path. 3711s # * @cancellable: (nullable): A #GCancellable or %NULL. 3711s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3711s # * @user_data: User data to pass to @callback. 3711s # * 3711s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-test-FDPassing.top_of_page">test.FDPassing</link>. See g_dbus_proxy_new() for more details. 3711s # * 3711s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3711s # * You can then call test_fdpassing_proxy_new_finish() to get the result of the operation. 3711s # * 3711s # * See test_fdpassing_proxy_new_sync() for the synchronous, blocking version of this constructor. 3711s # */ 3711s # void 3711s # test_fdpassing_proxy_new ( 3711s # GDBusConnection *connection, 3711s # GDBusProxyFlags flags, 3711s # const gchar *name, 3711s # const gchar *object_path, 3711s # GCancellable *cancellable, 3711s # GAsyncReadyCallback callback, 3711s # gpointer user_data) 3711s # { 3711s # 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); 3711s # } 3711s # 3711s # /** 3711s # * test_fdpassing_proxy_new_finish: 3711s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_proxy_new(). 3711s # * @error: Return location for error or %NULL 3711s # * 3711s # * Finishes an operation started with test_fdpassing_proxy_new(). 3711s # * 3711s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 3711s # */ 3711s # TestFDPassing * 3711s # test_fdpassing_proxy_new_finish ( 3711s # GAsyncResult *res, 3711s # GError **error) 3711s # { 3711s # GObject *ret; 3711s # GObject *source_object; 3711s # source_object = g_async_result_get_source_object (res); 3711s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3711s # g_object_unref (source_object); 3711s # if (ret != NULL) 3711s # return TEST_FDPASSING (ret); 3711s # else 3711s # return NULL; 3711s # } 3711s # 3711s # /** 3711s # * test_fdpassing_proxy_new_sync: 3711s # * @connection: A #GDBusConnection. 3711s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3711s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3711s # * @object_path: An object path. 3711s # * @cancellable: (nullable): A #GCancellable or %NULL. 3711s # * @error: Return location for error or %NULL 3711s # * 3711s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-test-FDPassing.top_of_page">test.FDPassing</link>. See g_dbus_proxy_new_sync() for more details. 3711s # * 3711s # * The calling thread is blocked until a reply is received. 3711s # * 3711s # * See test_fdpassing_proxy_new() for the asynchronous version of this constructor. 3711s # * 3711s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 3711s # */ 3711s # TestFDPassing * 3711s # test_fdpassing_proxy_new_sync ( 3711s # GDBusConnection *connection, 3711s # GDBusProxyFlags flags, 3711s # const gchar *name, 3711s # const gchar *object_path, 3711s # GCancellable *cancellable, 3711s # GError **error) 3711s # { 3711s # GInitable *ret; 3711s # 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); 3711s # if (ret != NULL) 3711s # return TEST_FDPASSING (ret); 3711s # else 3711s # return NULL; 3711s # } 3711s # 3711s # 3711s # /** 3711s # * test_fdpassing_proxy_new_for_bus: 3711s # * @bus_type: A #GBusType. 3711s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3711s # * @name: A bus name (well-known or unique). 3711s # * @object_path: An object path. 3711s # * @cancellable: (nullable): A #GCancellable or %NULL. 3711s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3711s # * @user_data: User data to pass to @callback. 3711s # * 3711s # * Like test_fdpassing_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3711s # * 3711s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3711s # * You can then call test_fdpassing_proxy_new_for_bus_finish() to get the result of the operation. 3711s # * 3711s # * See test_fdpassing_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3711s # */ 3711s # void 3711s # test_fdpassing_proxy_new_for_bus ( 3711s # GBusType bus_type, 3711s # GDBusProxyFlags flags, 3711s # const gchar *name, 3711s # const gchar *object_path, 3711s # GCancellable *cancellable, 3711s # GAsyncReadyCallback callback, 3711s # gpointer user_data) 3711s # { 3711s # 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); 3711s # } 3711s # 3711s # /** 3711s # * test_fdpassing_proxy_new_for_bus_finish: 3711s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_proxy_new_for_bus(). 3711s # * @error: Return location for error or %NULL 3711s # * 3711s # * Finishes an operation started with test_fdpassing_proxy_new_for_bus(). 3711s # * 3711s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 3711s # */ 3711s # TestFDPassing * 3711s # test_fdpassing_proxy_new_for_bus_finish ( 3711s # GAsyncResult *res, 3711s # GError **error) 3711s # { 3711s # GObject *ret; 3711s # GObject *source_object; 3711s # source_object = g_async_result_get_source_object (res); 3711s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3711s # g_object_unref (source_object); 3711s # if (ret != NULL) 3711s # return TEST_FDPASSING (ret); 3711s # else 3711s # return NULL; 3711s # } 3711s # 3711s # /** 3711s # * test_fdpassing_proxy_new_for_bus_sync: 3711s # * @bus_type: A #GBusType. 3711s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3711s # * @name: A bus name (well-known or unique). 3711s # * @object_path: An object path. 3711s # * @cancellable: (nullable): A #GCancellable or %NULL. 3711s # * @error: Return location for error or %NULL 3711s # * 3711s # * Like test_fdpassing_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3711s # * 3711s # * The calling thread is blocked until a reply is received. 3711s # * 3711s # * See test_fdpassing_proxy_new_for_bus() for the asynchronous version of this constructor. 3711s # * 3711s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 3711s # */ 3711s # TestFDPassing * 3711s # test_fdpassing_proxy_new_for_bus_sync ( 3711s # GBusType bus_type, 3711s # GDBusProxyFlags flags, 3711s # const gchar *name, 3711s # const gchar *object_path, 3711s # GCancellable *cancellable, 3711s # GError **error) 3711s # { 3711s # GInitable *ret; 3711s # 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); 3711s # if (ret != NULL) 3711s # return TEST_FDPASSING (ret); 3711s # else 3711s # return NULL; 3711s # } 3711s # 3711s # 3711s # /* ------------------------------------------------------------------------ */ 3711s # 3711s # /** 3711s # * TestFDPassingSkeleton: 3711s # * 3711s # * The #TestFDPassingSkeleton structure contains only private data and should only be accessed using the provided API. 3711s # */ 3711s # 3711s # /** 3711s # * TestFDPassingSkeletonClass: 3711s # * @parent_class: The parent class. 3711s # * 3711s # * Class structure for #TestFDPassingSkeleton. 3711s # */ 3711s # 3711s # struct _TestFDPassingSkeletonPrivate 3711s # { 3711s # GValue *properties; 3711s # GList *changed_properties; 3711s # GSource *changed_properties_idle_source; 3711s # GMainContext *context; 3711s # GMutex lock; 3711s # }; 3711s # 3711s # static void 3711s # _test_fdpassing_skeleton_handle_method_call ( 3711s # GDBusConnection *connection G_GNUC_UNUSED, 3711s # const gchar *sender G_GNUC_UNUSED, 3711s # const gchar *object_path G_GNUC_UNUSED, 3711s # const gchar *interface_name, 3711s # const gchar *method_name, 3711s # GVariant *parameters, 3711s # GDBusMethodInvocation *invocation, 3711s # gpointer user_data) 3711s # { 3711s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 3711s # _ExtendedGDBusMethodInfo *info; 3711s # GVariantIter iter; 3711s # GVariant *child; 3711s # GValue *paramv; 3711s # gsize num_params; 3711s # guint num_extra; 3711s # gsize n; 3711s # guint signal_id; 3711s # GValue return_value = G_VALUE_INIT; 3711s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3711s # g_assert (info != NULL); 3711s # num_params = g_variant_n_children (parameters); 3711s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3711s # n = 0; 3711s # g_value_init (¶mv[n], TYPE_TEST_FDPASSING); 3711s # g_value_set_object (¶mv[n++], skeleton); 3711s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3711s # g_value_set_object (¶mv[n++], invocation); 3711s # if (info->pass_fdlist) 3711s # { 3711s # #ifdef G_OS_UNIX 3711s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3711s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3711s # #else 3711s # g_assert_not_reached (); 3711s # #endif 3711s # } 3711s # g_variant_iter_init (&iter, parameters); 3711s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3711s # { 3711s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3711s # if (arg_info->use_gvariant) 3711s # { 3711s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3711s # g_value_set_variant (¶mv[n], child); 3711s # n++; 3711s # } 3711s # else 3711s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3711s # g_variant_unref (child); 3711s # } 3711s # signal_id = g_signal_lookup (info->signal_name, TYPE_TEST_FDPASSING); 3711s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3711s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3711s # if (!g_value_get_boolean (&return_value)) 3711s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3711s # g_value_unset (&return_value); 3711s # for (n = 0; n < num_params + num_extra; n++) 3711s # g_value_unset (¶mv[n]); 3711s # g_free (paramv); 3711s # } 3711s # 3711s # static GVariant * 3711s # _test_fdpassing_skeleton_handle_get_property ( 3711s # GDBusConnection *connection G_GNUC_UNUSED, 3711s # const gchar *sender G_GNUC_UNUSED, 3711s # const gchar *object_path G_GNUC_UNUSED, 3711s # const gchar *interface_name G_GNUC_UNUSED, 3711s # const gchar *property_name, 3711s # GError **error, 3711s # gpointer user_data) 3711s # { 3711s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 3711s # GValue value = G_VALUE_INIT; 3711s # GParamSpec *pspec; 3711s # _ExtendedGDBusPropertyInfo *info; 3711s # GVariant *ret; 3711s # ret = NULL; 3711s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, property_name); 3711s # g_assert (info != NULL); 3711s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3711s # if (pspec == NULL) 3711s # { 3711s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3711s # } 3711s # else 3711s # { 3711s # g_value_init (&value, pspec->value_type); 3711s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3711s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3711s # g_value_unset (&value); 3711s # } 3711s # return ret; 3711s # } 3711s # 3711s # static gboolean 3711s # _test_fdpassing_skeleton_handle_set_property ( 3711s # GDBusConnection *connection G_GNUC_UNUSED, 3711s # const gchar *sender G_GNUC_UNUSED, 3711s # const gchar *object_path G_GNUC_UNUSED, 3711s # const gchar *interface_name G_GNUC_UNUSED, 3711s # const gchar *property_name, 3711s # GVariant *variant, 3711s # GError **error, 3711s # gpointer user_data) 3711s # { 3711s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 3711s # GValue value = G_VALUE_INIT; 3711s # GParamSpec *pspec; 3711s # _ExtendedGDBusPropertyInfo *info; 3711s # gboolean ret; 3711s # ret = FALSE; 3711s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, property_name); 3711s # g_assert (info != NULL); 3711s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3711s # if (pspec == NULL) 3711s # { 3711s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3711s # } 3711s # else 3711s # { 3711s # if (info->use_gvariant) 3711s # g_value_set_variant (&value, variant); 3711s # else 3711s # g_dbus_gvariant_to_gvalue (variant, &value); 3711s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3711s # g_value_unset (&value); 3711s # ret = TRUE; 3711s # } 3711s # return ret; 3711s # } 3711s # 3711s # static const GDBusInterfaceVTable _test_fdpassing_skeleton_vtable = 3711s # { 3711s # _test_fdpassing_skeleton_handle_method_call, 3711s # _test_fdpassing_skeleton_handle_get_property, 3711s # _test_fdpassing_skeleton_handle_set_property, 3711s # {NULL} 3711s # }; 3711s # 3711s # static GDBusInterfaceInfo * 3711s # test_fdpassing_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3711s # { 3711s # return test_fdpassing_interface_info (); 3711s # } 3711s # 3711s # static GDBusInterfaceVTable * 3711s # test_fdpassing_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3711s # { 3711s # return (GDBusInterfaceVTable *) &_test_fdpassing_skeleton_vtable; 3711s # } 3711s # 3711s # static GVariant * 3711s # test_fdpassing_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3711s # { 3711s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (_skeleton); 3711s # 3711s # GVariantBuilder builder; 3711s # guint n; 3711s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3711s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3711s # #else 3711s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3711s # #endif 3711s # if (_test_fdpassing_interface_info.parent_struct.properties == NULL) 3711s # goto out; 3711s # for (n = 0; _test_fdpassing_interface_info.parent_struct.properties[n] != NULL; n++) 3711s # { 3711s # GDBusPropertyInfo *info = _test_fdpassing_interface_info.parent_struct.properties[n]; 3711s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3711s # { 3711s # GVariant *value; 3711s # 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); 3711s # if (value != NULL) 3711s # { 3711s # g_variant_take_ref (value); 3711s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3711s # g_variant_unref (value); 3711s # } 3711s # } 3711s # } 3711s # out: 3711s # return g_variant_builder_end (&builder); 3711s # } 3711s # 3711s # static void 3711s # test_fdpassing_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3711s # { 3711s # } 3711s # 3711s # static void test_fdpassing_skeleton_iface_init (TestFDPassingIface *iface); 3711s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3711s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingSkeleton, test_fdpassing_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3711s # G_ADD_PRIVATE (TestFDPassingSkeleton) 3711s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_skeleton_iface_init)) 3711s # 3711s # #else 3711s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingSkeleton, test_fdpassing_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3711s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_skeleton_iface_init)) 3711s # 3711s # #endif 3711s # static void 3711s # test_fdpassing_skeleton_finalize (GObject *object) 3711s # { 3711s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (object); 3711s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3711s # if (skeleton->priv->changed_properties_idle_source != NULL) 3711s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3711s # g_main_context_unref (skeleton->priv->context); 3711s # g_mutex_clear (&skeleton->priv->lock); 3711s # G_OBJECT_CLASS (test_fdpassing_skeleton_parent_class)->finalize (object); 3711s # } 3711s # 3711s # static void 3711s # test_fdpassing_skeleton_init (TestFDPassingSkeleton *skeleton) 3711s # { 3711s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3711s # skeleton->priv = test_fdpassing_skeleton_get_instance_private (skeleton); 3711s # #else 3711s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_TEST_FDPASSING_SKELETON, TestFDPassingSkeletonPrivate); 3711s # #endif 3711s # 3711s # g_mutex_init (&skeleton->priv->lock); 3711s # skeleton->priv->context = g_main_context_ref_thread_default (); 3711s # } 3711s # 3711s # static void 3711s # test_fdpassing_skeleton_class_init (TestFDPassingSkeletonClass *klass) 3711s # { 3711s # GObjectClass *gobject_class; 3711s # GDBusInterfaceSkeletonClass *skeleton_class; 3711s # 3711s # gobject_class = G_OBJECT_CLASS (klass); 3711s # gobject_class->finalize = test_fdpassing_skeleton_finalize; 3711s # 3711s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3711s # skeleton_class->get_info = test_fdpassing_skeleton_dbus_interface_get_info; 3711s # skeleton_class->get_properties = test_fdpassing_skeleton_dbus_interface_get_properties; 3711s # skeleton_class->flush = test_fdpassing_skeleton_dbus_interface_flush; 3711s # skeleton_class->get_vtable = test_fdpassing_skeleton_dbus_interface_get_vtable; 3711s # 3711s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3711s # g_type_class_add_private (klass, sizeof (TestFDPassingSkeletonPrivate)); 3711s # #endif 3711s # } 3711s # 3711s # static void 3711s # test_fdpassing_skeleton_iface_init (TestFDPassingIface *iface G_GNUC_UNUSED) 3711s # { 3711s # } 3711s # 3711s # /** 3711s # * test_fdpassing_skeleton_new: 3711s # * 3711s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-test-FDPassing.top_of_page">test.FDPassing</link>. 3711s # * 3711s # * Returns: (transfer full) (type TestFDPassingSkeleton): The skeleton object. 3711s # */ 3711s # TestFDPassing * 3711s # test_fdpassing_skeleton_new (void) 3711s # { 3711s # return TEST_FDPASSING (g_object_new (TYPE_TEST_FDPASSING_SKELETON, NULL)); 3711s # } 3711s # Error: 3711s ok 15 __main__.TestCodegen.test_generate_rst 3711s # gdbus-codegen: /usr/bin/gdbus-codegen 3711s # tmpdir: /tmp/tmp2bphwem3 3711s # /tmp/tmp2bphwem3/tmpeqw9m51c.xml: 3711s # <node> 3711s # <interface name="org.project.Bar.Frobnicator"> 3711s # <method name="RandomMethod"/> 3711s # </interface> 3711s # </node> 3711s # 3711s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2bphwem3/tmpeqw9m51c.xml', '--generate-rst', 'test'] 3711s # Return code: 0 3711s # Output: 3711s # 3711s # Error: 3712s ok 16 __main__.TestCodegen.test_generate_rst_method 3712s # gdbus-codegen: /usr/bin/gdbus-codegen 3712s # tmpdir: /tmp/tmph1b8h0od 3712s # /tmp/tmph1b8h0od/tmpirntibbk.xml: 3712s # <node> 3712s # <interface name="org.project.Bar.Frobnicator"> 3712s # <!-- RandomMethod: 3712s # 3712s # A random test method. 3712s # --> 3712s # <method name="RandomMethod"/> 3712s # </interface> 3712s # </node> 3712s # 3712s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmph1b8h0od/tmpirntibbk.xml', '--generate-rst', 'test'] 3712s # Return code: 0 3712s # Output: 3712s # 3712s # Error: 3713s ok 17 __main__.TestCodegen.test_generate_rst_property 3713s # gdbus-codegen: /usr/bin/gdbus-codegen 3713s # tmpdir: /tmp/tmpwexk18kt 3713s # /tmp/tmpwexk18kt/tmpa0d7z4qz.xml: 3713s # <node> 3713s # <interface name="org.project.Bar.Frobnicator"> 3713s # <!-- RandomProperty: 3713s # 3713s # A random test property. 3713s # --> 3713s # <property type="s" name="RandomProperty" access="read"/> 3713s # </interface> 3713s # </node> 3713s # 3713s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwexk18kt/tmpa0d7z4qz.xml', '--generate-rst', 'test'] 3713s # Return code: 0 3713s # Output: 3713s # 3713s # Error: 3713s ok 18 __main__.TestCodegen.test_generate_rst_signal 3713s # gdbus-codegen: /usr/bin/gdbus-codegen 3713s # tmpdir: /tmp/tmpu9u5y_ar 3713s # /tmp/tmpu9u5y_ar/tmpymth73ey.xml: 3713s # <node> 3713s # <interface name="org.project.Bar.Frobnicator"> 3713s # <!-- RandomSignal: 3713s # 3713s # A random test signal. 3713s # --> 3713s # <signal name="RandomSignal"/> 3713s # </interface> 3713s # </node> 3713s # 3713s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpu9u5y_ar/tmpymth73ey.xml', '--generate-rst', 'test'] 3713s # Return code: 0 3713s # Output: 3713s # 3713s # Error: 3714s # Executing: glib/codegen.py.test 3714s ok 19 __main__.TestCodegen.test_generate_signal_id_multiple_signal_args_types 3714s # gdbus-codegen: /usr/bin/gdbus-codegen 3714s # tmpdir: /tmp/tmpw52ypk7j 3714s # /tmp/tmpw52ypk7j/tmpg0c2hs1l.xml: 3714s # <node> 3714s # <interface name="org.project.SignalingIface"> 3714s # <signal name="SignalWithManyArgs"> 3714s # <arg name='an_b' type='b'/> 3714s # <arg name='an_y' type='y'/> 3714s # <arg name='an_n' type='n'/> 3714s # <arg name='an_q' type='q'/> 3714s # <arg name='an_i' type='i'/> 3714s # <arg name='an_u' type='u'/> 3714s # <arg name='an_x' type='x'/> 3714s # <arg name='an_t' type='t'/> 3714s # <arg name='an_d' type='d'/> 3714s # <arg name='an_s' type='s'/> 3714s # <arg name='an_o' type='o'/> 3714s # <arg name='an_g' type='g'/> 3714s # <arg name='an_h' type='h'/> 3714s # <arg name='an_ay' type='ay'/> 3714s # <arg name='an_as' type='as'/> 3714s # <arg name='an_ao' type='ao'/> 3714s # <arg name='an_aay' type='aay'/> 3714s # <arg name='an_asv' type='a{sv}'/> 3714s # 3714s # </signal> 3714s # </interface> 3714s # </node> 3714s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpw52ypk7j/tmpg0c2hs1l.xml', '--output', '-', '--body'] 3714s # Return code: 0 3714s # Output: 3714s # /* 3714s # * This file is generated by gdbus-codegen, do not modify it. 3714s # * 3714s # * The license of this code is the same as for the D-Bus interface description 3714s # * it was derived from. Note that it links to GLib, so must comply with the 3714s # * LGPL linking clauses. 3714s # */ 3714s # 3714s # #ifdef HAVE_CONFIG_H 3714s # # include "config.h" 3714s # #endif 3714s # 3714s # #include <string.h> 3714s # #ifdef G_OS_UNIX 3714s # # include <gio/gunixfdlist.h> 3714s # #endif 3714s # 3714s # #ifdef G_ENABLE_DEBUG 3714s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3714s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3714s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3714s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3714s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3714s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3714s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3714s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3714s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3714s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3714s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3714s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3714s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3714s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3714s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3714s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3714s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3714s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3714s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3714s # #else /* !G_ENABLE_DEBUG */ 3714s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3714s # * Do not access GValues directly in your code. Instead, use the 3714s # * g_value_get_*() functions 3714s # */ 3714s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3714s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3714s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3714s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3714s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3714s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3714s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3714s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3714s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3714s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3714s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3714s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3714s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3714s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3714s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3714s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3714s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3714s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3714s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3714s # #endif /* !G_ENABLE_DEBUG */ 3714s # 3714s # typedef struct 3714s # { 3714s # GDBusArgInfo parent_struct; 3714s # gboolean use_gvariant; 3714s # } _ExtendedGDBusArgInfo; 3714s # 3714s # typedef struct 3714s # { 3714s # GDBusMethodInfo parent_struct; 3714s # const gchar *signal_name; 3714s # gboolean pass_fdlist; 3714s # } _ExtendedGDBusMethodInfo; 3714s # 3714s # typedef struct 3714s # { 3714s # GDBusSignalInfo parent_struct; 3714s # const gchar *signal_name; 3714s # } _ExtendedGDBusSignalInfo; 3714s # 3714s # typedef struct 3714s # { 3714s # GDBusPropertyInfo parent_struct; 3714s # const gchar *hyphen_name; 3714s # guint use_gvariant : 1; 3714s # guint emits_changed_signal : 1; 3714s # } _ExtendedGDBusPropertyInfo; 3714s # 3714s # typedef struct 3714s # { 3714s # GDBusInterfaceInfo parent_struct; 3714s # const gchar *hyphen_name; 3714s # } _ExtendedGDBusInterfaceInfo; 3714s # 3714s # typedef struct 3714s # { 3714s # const _ExtendedGDBusPropertyInfo *info; 3714s # guint prop_id; 3714s # GValue orig_value; /* the value before the change */ 3714s # } ChangedProperty; 3714s # 3714s # static void 3714s # _changed_property_free (ChangedProperty *data) 3714s # { 3714s # g_value_unset (&data->orig_value); 3714s # g_free (data); 3714s # } 3714s # 3714s # static gboolean 3714s # _g_strv_equal0 (gchar **a, gchar **b) 3714s # { 3714s # gboolean ret = FALSE; 3714s # guint n; 3714s # if (a == NULL && b == NULL) 3714s # { 3714s # ret = TRUE; 3714s # goto out; 3714s # } 3714s # if (a == NULL || b == NULL) 3714s # goto out; 3714s # if (g_strv_length (a) != g_strv_length (b)) 3714s # goto out; 3714s # for (n = 0; a[n] != NULL; n++) 3714s # if (g_strcmp0 (a[n], b[n]) != 0) 3714s # goto out; 3714s # ret = TRUE; 3714s # out: 3714s # return ret; 3714s # } 3714s # 3714s # static gboolean 3714s # _g_variant_equal0 (GVariant *a, GVariant *b) 3714s # { 3714s # gboolean ret = FALSE; 3714s # if (a == NULL && b == NULL) 3714s # { 3714s # ret = TRUE; 3714s # goto out; 3714s # } 3714s # if (a == NULL || b == NULL) 3714s # goto out; 3714s # ret = g_variant_equal (a, b); 3714s # out: 3714s # return ret; 3714s # } 3714s # 3714s # G_GNUC_UNUSED static gboolean 3714s # _g_value_equal (const GValue *a, const GValue *b) 3714s # { 3714s # gboolean ret = FALSE; 3714s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3714s # switch (G_VALUE_TYPE (a)) 3714s # { 3714s # case G_TYPE_BOOLEAN: 3714s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3714s # break; 3714s # case G_TYPE_UCHAR: 3714s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3714s # break; 3714s # case G_TYPE_INT: 3714s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3714s # break; 3714s # case G_TYPE_UINT: 3714s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3714s # break; 3714s # case G_TYPE_INT64: 3714s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3714s # break; 3714s # case G_TYPE_UINT64: 3714s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3714s # break; 3714s # case G_TYPE_DOUBLE: 3714s # { 3714s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3714s # gdouble da = g_value_get_double (a); 3714s # gdouble db = g_value_get_double (b); 3714s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3714s # } 3714s # break; 3714s # case G_TYPE_STRING: 3714s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3714s # break; 3714s # case G_TYPE_VARIANT: 3714s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3714s # break; 3714s # default: 3714s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3714s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3714s # else 3714s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3714s # break; 3714s # } 3714s # return ret; 3714s # } 3714s # 3714s # static void 3714s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 3714s # GClosure *closure, 3714s # GValue *return_value G_GNUC_UNUSED, 3714s # unsigned int n_param_values, 3714s # const GValue *param_values, 3714s # void *invocation_hint G_GNUC_UNUSED, 3714s # void *marshal_data) 3714s # { 3714s # typedef void (*_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 3714s # (void *data1, 3714s # gboolean arg_an_b, 3714s # guchar arg_an_y, 3714s # gint16 arg_an_n, 3714s # guint16 arg_an_q, 3714s # gint arg_an_i, 3714s # guint arg_an_u, 3714s # gint64 arg_an_x, 3714s # guint64 arg_an_t, 3714s # gdouble arg_an_d, 3714s # const gchar *arg_an_s, 3714s # const gchar *arg_an_o, 3714s # const gchar *arg_an_g, 3714s # GVariant *arg_an_h, 3714s # const gchar *arg_an_ay, 3714s # const gchar *const *arg_an_as, 3714s # const gchar *const *arg_an_ao, 3714s # const gchar *const *arg_an_aay, 3714s # GVariant *arg_an_asv, 3714s # void *data2); 3714s # _GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 3714s # GCClosure *cc = (GCClosure*) closure; 3714s # void *data1, *data2; 3714s # 3714s # g_return_if_fail (n_param_values == 19); 3714s # 3714s # if (G_CCLOSURE_SWAP_DATA (closure)) 3714s # { 3714s # data1 = closure->data; 3714s # data2 = g_value_peek_pointer (param_values + 0); 3714s # } 3714s # else 3714s # { 3714s # data1 = g_value_peek_pointer (param_values + 0); 3714s # data2 = closure->data; 3714s # } 3714s # 3714s # callback = (_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 3714s # (marshal_data ? marshal_data : cc->callback); 3714s # 3714s # callback (data1, 3714s # g_marshal_value_peek_boolean (param_values + 1), 3714s # g_marshal_value_peek_uchar (param_values + 2), 3714s # g_marshal_value_peek_int (param_values + 3), 3714s # g_marshal_value_peek_uint (param_values + 4), 3714s # g_marshal_value_peek_int (param_values + 5), 3714s # g_marshal_value_peek_uint (param_values + 6), 3714s # g_marshal_value_peek_int64 (param_values + 7), 3714s # g_marshal_value_peek_uint64 (param_values + 8), 3714s # g_marshal_value_peek_double (param_values + 9), 3714s # g_marshal_value_peek_string (param_values + 10), 3714s # g_marshal_value_peek_string (param_values + 11), 3714s # g_marshal_value_peek_string (param_values + 12), 3714s # g_marshal_value_peek_variant (param_values + 13), 3714s # g_marshal_value_peek_string (param_values + 14), 3714s # g_marshal_value_peek_boxed (param_values + 15), 3714s # g_marshal_value_peek_boxed (param_values + 16), 3714s # g_marshal_value_peek_boxed (param_values + 17), 3714s # g_marshal_value_peek_variant (param_values + 18), 3714s # data2); 3714s # } 3714s # 3714s # /* ------------------------------------------------------------------------ 3714s # * Code for interface org.project.SignalingIface 3714s # * ------------------------------------------------------------------------ 3714s # */ 3714s # 3714s # /** 3714s # * SECTION:OrgProjectSignalingIface 3714s # * @title: OrgProjectSignalingIface 3714s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 3714s # * 3714s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface in C. 3714s # */ 3714s # 3714s # enum 3714s # { 3714s # _ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS, 3714s # }; 3714s # 3714s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 3714s # 3714s # /* ---- Introspection data for org.project.SignalingIface ---- */ 3714s # 3714s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "an_b", 3714s # (gchar *) "b", 3714s # NULL 3714s # }, 3714s # FALSE 3714s # }; 3714s # 3714s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "an_y", 3714s # (gchar *) "y", 3714s # NULL 3714s # }, 3714s # FALSE 3714s # }; 3714s # 3714s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "an_n", 3714s # (gchar *) "n", 3714s # NULL 3714s # }, 3714s # FALSE 3714s # }; 3714s # 3714s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "an_q", 3714s # (gchar *) "q", 3714s # NULL 3714s # }, 3714s # FALSE 3714s # }; 3714s # 3714s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "an_i", 3714s # (gchar *) "i", 3714s # NULL 3714s # }, 3714s # FALSE 3714s # }; 3714s # 3714s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "an_u", 3714s # (gchar *) "u", 3714s # NULL 3714s # }, 3714s # FALSE 3714s # }; 3714s # 3714s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "an_x", 3714s # (gchar *) "x", 3714s # NULL 3714s # }, 3714s # FALSE 3714s # }; 3714s # 3714s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "an_t", 3714s # (gchar *) "t", 3714s # NULL 3714s # }, 3714s # FALSE 3714s # }; 3714s # 3714s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "an_d", 3714s # (gchar *) "d", 3714s # NULL 3714s # }, 3714s # FALSE 3714s # }; 3714s # 3714s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "an_s", 3714s # (gchar *) "s", 3714s # NULL 3714s # }, 3714s # FALSE 3714s # }; 3714s # 3714s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "an_o", 3714s # (gchar *) "o", 3714s # NULL 3714s # }, 3714s # FALSE 3714s # }; 3714s # 3714s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "an_g", 3714s # (gchar *) "g", 3714s # NULL 3714s # }, 3714s # FALSE 3714s # }; 3714s # 3714s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "an_h", 3714s # (gchar *) "h", 3714s # NULL 3714s # }, 3714s # FALSE 3714s # }; 3714s # 3714s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "an_ay", 3714s # (gchar *) "ay", 3714s # NULL 3714s # }, 3714s # FALSE 3714s # }; 3714s # 3714s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "an_as", 3714s # (gchar *) "as", 3714s # NULL 3714s # }, 3714s # FALSE 3714s # }; 3714s # 3714s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "an_ao", 3714s # (gchar *) "ao", 3714s # NULL 3714s # }, 3714s # FALSE 3714s # }; 3714s # 3714s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "an_aay", 3714s # (gchar *) "aay", 3714s # NULL 3714s # }, 3714s # FALSE 3714s # }; 3714s # 3714s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "an_asv", 3714s # (gchar *) "a{sv}", 3714s # NULL 3714s # }, 3714s # FALSE 3714s # }; 3714s # 3714s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers[] = 3714s # { 3714s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b.parent_struct, 3714s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y.parent_struct, 3714s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n.parent_struct, 3714s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q.parent_struct, 3714s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i.parent_struct, 3714s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u.parent_struct, 3714s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x.parent_struct, 3714s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t.parent_struct, 3714s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d.parent_struct, 3714s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s.parent_struct, 3714s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o.parent_struct, 3714s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g.parent_struct, 3714s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h.parent_struct, 3714s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay.parent_struct, 3714s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as.parent_struct, 3714s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao.parent_struct, 3714s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay.parent_struct, 3714s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv.parent_struct, 3714s # NULL 3714s # }; 3714s # 3714s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_signal_with_many_args = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "SignalWithManyArgs", 3714s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers, 3714s # NULL 3714s # }, 3714s # "signal-with-many-args" 3714s # }; 3714s # 3714s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 3714s # { 3714s # &_org_project_signaling_iface_signal_info_signal_with_many_args.parent_struct, 3714s # NULL 3714s # }; 3714s # 3714s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "org.project.SignalingIface", 3714s # NULL, 3714s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 3714s # NULL, 3714s # NULL 3714s # }, 3714s # "org-project-signaling-iface", 3714s # }; 3714s # 3714s # 3714s # /** 3714s # * org_project_signaling_iface_interface_info: 3714s # * 3714s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface. 3714s # * 3714s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3714s # */ 3714s # GDBusInterfaceInfo * 3714s # org_project_signaling_iface_interface_info (void) 3714s # { 3714s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 3714s # } 3714s # 3714s # /** 3714s # * org_project_signaling_iface_override_properties: 3714s # * @klass: The class structure for a #GObject derived class. 3714s # * @property_id_begin: The property id to assign to the first overridden property. 3714s # * 3714s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 3714s # * The properties are overridden in the order they are defined. 3714s # * 3714s # * Returns: The last property id. 3714s # */ 3714s # guint 3714s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3714s # { 3714s # return property_id_begin - 1; 3714s # } 3714s # 3714s # 3714s # inline static void 3714s # org_project_signaling_iface_signal_marshal_signal_with_many_args ( 3714s # GClosure *closure, 3714s # GValue *return_value, 3714s # unsigned int n_param_values, 3714s # const GValue *param_values, 3714s # void *invocation_hint, 3714s # void *marshal_data) 3714s # { 3714s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT (closure, 3714s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3714s # } 3714s # 3714s # 3714s # /** 3714s # * OrgProjectSignalingIface: 3714s # * 3714s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3714s # */ 3714s # 3714s # /** 3714s # * OrgProjectSignalingIfaceIface: 3714s # * @parent_iface: The parent interface. 3714s # * @signal_with_many_args: Handler for the #OrgProjectSignalingIface::signal-with-many-args signal. 3714s # * 3714s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3714s # */ 3714s # 3714s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 3714s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 3714s # 3714s # static void 3714s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 3714s # { 3714s # /* GObject signals for received D-Bus signals: */ 3714s # /** 3714s # * OrgProjectSignalingIface::signal-with-many-args: 3714s # * @object: A #OrgProjectSignalingIface. 3714s # * @arg_an_b: Argument. 3714s # * @arg_an_y: Argument. 3714s # * @arg_an_n: Argument. 3714s # * @arg_an_q: Argument. 3714s # * @arg_an_i: Argument. 3714s # * @arg_an_u: Argument. 3714s # * @arg_an_x: Argument. 3714s # * @arg_an_t: Argument. 3714s # * @arg_an_d: Argument. 3714s # * @arg_an_s: Argument. 3714s # * @arg_an_o: Argument. 3714s # * @arg_an_g: Argument. 3714s # * @arg_an_h: Argument. 3714s # * @arg_an_ay: Argument. 3714s # * @arg_an_as: Argument. 3714s # * @arg_an_ao: Argument. 3714s # * @arg_an_aay: Argument. 3714s # * @arg_an_asv: Argument. 3714s # * 3714s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SignalWithManyArgs">"SignalWithManyArgs"</link> is received. 3714s # * 3714s # * 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. 3714s # */ 3714s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS] = 3714s # g_signal_new ("signal-with-many-args", 3714s # G_TYPE_FROM_INTERFACE (iface), 3714s # G_SIGNAL_RUN_LAST, 3714s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, signal_with_many_args), 3714s # NULL, 3714s # NULL, 3714s # org_project_signaling_iface_signal_marshal_signal_with_many_args, 3714s # G_TYPE_NONE, 3714s # 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); 3714s # 3714s # } 3714s # 3714s # /** 3714s # * org_project_signaling_iface_emit_signal_with_many_args: 3714s # * @object: A #OrgProjectSignalingIface. 3714s # * @arg_an_b: Argument to pass with the signal. 3714s # * @arg_an_y: Argument to pass with the signal. 3714s # * @arg_an_n: Argument to pass with the signal. 3714s # * @arg_an_q: Argument to pass with the signal. 3714s # * @arg_an_i: Argument to pass with the signal. 3714s # * @arg_an_u: Argument to pass with the signal. 3714s # * @arg_an_x: Argument to pass with the signal. 3714s # * @arg_an_t: Argument to pass with the signal. 3714s # * @arg_an_d: Argument to pass with the signal. 3714s # * @arg_an_s: Argument to pass with the signal. 3714s # * @arg_an_o: Argument to pass with the signal. 3714s # * @arg_an_g: Argument to pass with the signal. 3714s # * @arg_an_h: Argument to pass with the signal. 3714s # * @arg_an_ay: Argument to pass with the signal. 3714s # * @arg_an_as: Argument to pass with the signal. 3714s # * @arg_an_ao: Argument to pass with the signal. 3714s # * @arg_an_aay: Argument to pass with the signal. 3714s # * @arg_an_asv: Argument to pass with the signal. 3714s # * 3714s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SignalWithManyArgs">"SignalWithManyArgs"</link> D-Bus signal. 3714s # */ 3714s # void 3714s # org_project_signaling_iface_emit_signal_with_many_args ( 3714s # OrgProjectSignalingIface *object, 3714s # gboolean arg_an_b, 3714s # guchar arg_an_y, 3714s # gint16 arg_an_n, 3714s # guint16 arg_an_q, 3714s # gint arg_an_i, 3714s # guint arg_an_u, 3714s # gint64 arg_an_x, 3714s # guint64 arg_an_t, 3714s # gdouble arg_an_d, 3714s # const gchar *arg_an_s, 3714s # const gchar *arg_an_o, 3714s # const gchar *arg_an_g, 3714s # GVariant *arg_an_h, 3714s # const gchar *arg_an_ay, 3714s # const gchar *const *arg_an_as, 3714s # const gchar *const *arg_an_ao, 3714s # const gchar *const *arg_an_aay, 3714s # GVariant *arg_an_asv) 3714s # { 3714s # 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); 3714s # } 3714s # 3714s # /* ------------------------------------------------------------------------ */ 3714s # 3714s # /** 3714s # * OrgProjectSignalingIfaceProxy: 3714s # * 3714s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 3714s # */ 3714s # 3714s # /** 3714s # * OrgProjectSignalingIfaceProxyClass: 3714s # * @parent_class: The parent class. 3714s # * 3714s # * Class structure for #OrgProjectSignalingIfaceProxy. 3714s # */ 3714s # 3714s # struct _OrgProjectSignalingIfaceProxyPrivate 3714s # { 3714s # GData *qdata; 3714s # }; 3714s # 3714s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 3714s # 3714s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3714s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3714s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 3714s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3714s # 3714s # #else 3714s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3714s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3714s # 3714s # #endif 3714s # static void 3714s # org_project_signaling_iface_proxy_finalize (GObject *object) 3714s # { 3714s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 3714s # g_datalist_clear (&proxy->priv->qdata); 3714s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 3714s # } 3714s # 3714s # static void 3714s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3714s # guint prop_id G_GNUC_UNUSED, 3714s # GValue *value G_GNUC_UNUSED, 3714s # GParamSpec *pspec G_GNUC_UNUSED) 3714s # { 3714s # } 3714s # 3714s # static void 3714s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3714s # guint prop_id G_GNUC_UNUSED, 3714s # const GValue *value G_GNUC_UNUSED, 3714s # GParamSpec *pspec G_GNUC_UNUSED) 3714s # { 3714s # } 3714s # 3714s # static void 3714s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 3714s # const gchar *sender_name G_GNUC_UNUSED, 3714s # const gchar *signal_name, 3714s # GVariant *parameters) 3714s # { 3714s # _ExtendedGDBusSignalInfo *info; 3714s # GVariantIter iter; 3714s # GVariant *child; 3714s # GValue *paramv; 3714s # gsize num_params; 3714s # gsize n; 3714s # guint signal_id; 3714s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 3714s # if (info == NULL) 3714s # return; 3714s # num_params = g_variant_n_children (parameters); 3714s # paramv = g_new0 (GValue, num_params + 1); 3714s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3714s # g_value_set_object (¶mv[0], proxy); 3714s # g_variant_iter_init (&iter, parameters); 3714s # n = 1; 3714s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3714s # { 3714s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3714s # if (arg_info->use_gvariant) 3714s # { 3714s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3714s # g_value_set_variant (¶mv[n], child); 3714s # n++; 3714s # } 3714s # else 3714s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3714s # g_variant_unref (child); 3714s # } 3714s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3714s # g_signal_emitv (paramv, signal_id, 0, NULL); 3714s # for (n = 0; n < num_params + 1; n++) 3714s # g_value_unset (¶mv[n]); 3714s # g_free (paramv); 3714s # } 3714s # 3714s # static void 3714s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 3714s # GVariant *changed_properties, 3714s # const gchar *const *invalidated_properties) 3714s # { 3714s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 3714s # guint n; 3714s # const gchar *key; 3714s # GVariantIter *iter; 3714s # _ExtendedGDBusPropertyInfo *info; 3714s # g_variant_get (changed_properties, "a{sv}", &iter); 3714s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3714s # { 3714s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 3714s # g_datalist_remove_data (&proxy->priv->qdata, key); 3714s # if (info != NULL) 3714s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3714s # } 3714s # g_variant_iter_free (iter); 3714s # for (n = 0; invalidated_properties[n] != NULL; n++) 3714s # { 3714s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 3714s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3714s # if (info != NULL) 3714s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3714s # } 3714s # } 3714s # 3714s # static void 3714s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 3714s # { 3714s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3714s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 3714s # #else 3714s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 3714s # #endif 3714s # 3714s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 3714s # } 3714s # 3714s # static void 3714s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 3714s # { 3714s # GObjectClass *gobject_class; 3714s # GDBusProxyClass *proxy_class; 3714s # 3714s # gobject_class = G_OBJECT_CLASS (klass); 3714s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 3714s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 3714s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 3714s # 3714s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3714s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 3714s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 3714s # 3714s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3714s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 3714s # #endif 3714s # } 3714s # 3714s # static void 3714s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 3714s # { 3714s # } 3714s # 3714s # /** 3714s # * org_project_signaling_iface_proxy_new: 3714s # * @connection: A #GDBusConnection. 3714s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3714s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3714s # * @object_path: An object path. 3714s # * @cancellable: (nullable): A #GCancellable or %NULL. 3714s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3714s # * @user_data: User data to pass to @callback. 3714s # * 3714s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new() for more details. 3714s # * 3714s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3714s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 3714s # * 3714s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3714s # */ 3714s # void 3714s # org_project_signaling_iface_proxy_new ( 3714s # GDBusConnection *connection, 3714s # GDBusProxyFlags flags, 3714s # const gchar *name, 3714s # const gchar *object_path, 3714s # GCancellable *cancellable, 3714s # GAsyncReadyCallback callback, 3714s # gpointer user_data) 3714s # { 3714s # 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); 3714s # } 3714s # 3714s # /** 3714s # * org_project_signaling_iface_proxy_new_finish: 3714s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 3714s # * @error: Return location for error or %NULL 3714s # * 3714s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 3714s # * 3714s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3714s # */ 3714s # OrgProjectSignalingIface * 3714s # org_project_signaling_iface_proxy_new_finish ( 3714s # GAsyncResult *res, 3714s # GError **error) 3714s # { 3714s # GObject *ret; 3714s # GObject *source_object; 3714s # source_object = g_async_result_get_source_object (res); 3714s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3714s # g_object_unref (source_object); 3714s # if (ret != NULL) 3714s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3714s # else 3714s # return NULL; 3714s # } 3714s # 3714s # /** 3714s # * org_project_signaling_iface_proxy_new_sync: 3714s # * @connection: A #GDBusConnection. 3714s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3714s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3714s # * @object_path: An object path. 3714s # * @cancellable: (nullable): A #GCancellable or %NULL. 3714s # * @error: Return location for error or %NULL 3714s # * 3714s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new_sync() for more details. 3714s # * 3714s # * The calling thread is blocked until a reply is received. 3714s # * 3714s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 3714s # * 3714s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3714s # */ 3714s # OrgProjectSignalingIface * 3714s # org_project_signaling_iface_proxy_new_sync ( 3714s # GDBusConnection *connection, 3714s # GDBusProxyFlags flags, 3714s # const gchar *name, 3714s # const gchar *object_path, 3714s # GCancellable *cancellable, 3714s # GError **error) 3714s # { 3714s # GInitable *ret; 3714s # 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); 3714s # if (ret != NULL) 3714s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3714s # else 3714s # return NULL; 3714s # } 3714s # 3714s # 3714s # /** 3714s # * org_project_signaling_iface_proxy_new_for_bus: 3714s # * @bus_type: A #GBusType. 3714s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3714s # * @name: A bus name (well-known or unique). 3714s # * @object_path: An object path. 3714s # * @cancellable: (nullable): A #GCancellable or %NULL. 3714s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3714s # * @user_data: User data to pass to @callback. 3714s # * 3714s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3714s # * 3714s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3714s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 3714s # * 3714s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3714s # */ 3714s # void 3714s # org_project_signaling_iface_proxy_new_for_bus ( 3714s # GBusType bus_type, 3714s # GDBusProxyFlags flags, 3714s # const gchar *name, 3714s # const gchar *object_path, 3714s # GCancellable *cancellable, 3714s # GAsyncReadyCallback callback, 3714s # gpointer user_data) 3714s # { 3714s # 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); 3714s # } 3714s # 3714s # /** 3714s # * org_project_signaling_iface_proxy_new_for_bus_finish: 3714s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 3714s # * @error: Return location for error or %NULL 3714s # * 3714s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 3714s # * 3714s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3714s # */ 3714s # OrgProjectSignalingIface * 3714s # org_project_signaling_iface_proxy_new_for_bus_finish ( 3714s # GAsyncResult *res, 3714s # GError **error) 3714s # { 3714s # GObject *ret; 3714s # GObject *source_object; 3714s # source_object = g_async_result_get_source_object (res); 3714s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3714s # g_object_unref (source_object); 3714s # if (ret != NULL) 3714s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3714s # else 3714s # return NULL; 3714s # } 3714s # 3714s # /** 3714s # * org_project_signaling_iface_proxy_new_for_bus_sync: 3714s # * @bus_type: A #GBusType. 3714s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3714s # * @name: A bus name (well-known or unique). 3714s # * @object_path: An object path. 3714s # * @cancellable: (nullable): A #GCancellable or %NULL. 3714s # * @error: Return location for error or %NULL 3714s # * 3714s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3714s # * 3714s # * The calling thread is blocked until a reply is received. 3714s # * 3714s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 3714s # * 3714s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3714s # */ 3714s # OrgProjectSignalingIface * 3714s # org_project_signaling_iface_proxy_new_for_bus_sync ( 3714s # GBusType bus_type, 3714s # GDBusProxyFlags flags, 3714s # const gchar *name, 3714s # const gchar *object_path, 3714s # GCancellable *cancellable, 3714s # GError **error) 3714s # { 3714s # GInitable *ret; 3714s # 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); 3714s # if (ret != NULL) 3714s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3714s # else 3714s # return NULL; 3714s # } 3714s # 3714s # 3714s # /* ------------------------------------------------------------------------ */ 3714s # 3714s # /** 3714s # * OrgProjectSignalingIfaceSkeleton: 3714s # * 3714s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3714s # */ 3714s # 3714s # /** 3714s # * OrgProjectSignalingIfaceSkeletonClass: 3714s # * @parent_class: The parent class. 3714s # * 3714s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 3714s # */ 3714s # 3714s # struct _OrgProjectSignalingIfaceSkeletonPrivate 3714s # { 3714s # GValue *properties; 3714s # GList *changed_properties; 3714s # GSource *changed_properties_idle_source; 3714s # GMainContext *context; 3714s # GMutex lock; 3714s # }; 3714s # 3714s # static void 3714s # _org_project_signaling_iface_skeleton_handle_method_call ( 3714s # GDBusConnection *connection G_GNUC_UNUSED, 3714s # const gchar *sender G_GNUC_UNUSED, 3714s # const gchar *object_path G_GNUC_UNUSED, 3714s # const gchar *interface_name, 3714s # const gchar *method_name, 3714s # GVariant *parameters, 3714s # GDBusMethodInvocation *invocation, 3714s # gpointer user_data) 3714s # { 3714s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3714s # _ExtendedGDBusMethodInfo *info; 3714s # GVariantIter iter; 3714s # GVariant *child; 3714s # GValue *paramv; 3714s # gsize num_params; 3714s # guint num_extra; 3714s # gsize n; 3714s # guint signal_id; 3714s # GValue return_value = G_VALUE_INIT; 3714s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3714s # g_assert (info != NULL); 3714s # num_params = g_variant_n_children (parameters); 3714s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3714s # n = 0; 3714s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3714s # g_value_set_object (¶mv[n++], skeleton); 3714s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3714s # g_value_set_object (¶mv[n++], invocation); 3714s # if (info->pass_fdlist) 3714s # { 3714s # #ifdef G_OS_UNIX 3714s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3714s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3714s # #else 3714s # g_assert_not_reached (); 3714s # #endif 3714s # } 3714s # g_variant_iter_init (&iter, parameters); 3714s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3714s # { 3714s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3714s # if (arg_info->use_gvariant) 3714s # { 3714s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3714s # g_value_set_variant (¶mv[n], child); 3714s # n++; 3714s # } 3714s # else 3714s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3714s # g_variant_unref (child); 3714s # } 3714s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3714s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3714s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3714s # if (!g_value_get_boolean (&return_value)) 3714s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3714s # g_value_unset (&return_value); 3714s # for (n = 0; n < num_params + num_extra; n++) 3714s # g_value_unset (¶mv[n]); 3714s # g_free (paramv); 3714s # } 3714s # 3714s # static GVariant * 3714s # _org_project_signaling_iface_skeleton_handle_get_property ( 3714s # GDBusConnection *connection G_GNUC_UNUSED, 3714s # const gchar *sender G_GNUC_UNUSED, 3714s # const gchar *object_path G_GNUC_UNUSED, 3714s # const gchar *interface_name G_GNUC_UNUSED, 3714s # const gchar *property_name, 3714s # GError **error, 3714s # gpointer user_data) 3714s # { 3714s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3714s # GValue value = G_VALUE_INIT; 3714s # GParamSpec *pspec; 3714s # _ExtendedGDBusPropertyInfo *info; 3714s # GVariant *ret; 3714s # ret = NULL; 3714s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3714s # g_assert (info != NULL); 3714s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3714s # if (pspec == NULL) 3714s # { 3714s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3714s # } 3714s # else 3714s # { 3714s # g_value_init (&value, pspec->value_type); 3714s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3714s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3714s # g_value_unset (&value); 3714s # } 3714s # return ret; 3714s # } 3714s # 3714s # static gboolean 3714s # _org_project_signaling_iface_skeleton_handle_set_property ( 3714s # GDBusConnection *connection G_GNUC_UNUSED, 3714s # const gchar *sender G_GNUC_UNUSED, 3714s # const gchar *object_path G_GNUC_UNUSED, 3714s # const gchar *interface_name G_GNUC_UNUSED, 3714s # const gchar *property_name, 3714s # GVariant *variant, 3714s # GError **error, 3714s # gpointer user_data) 3714s # { 3714s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3714s # GValue value = G_VALUE_INIT; 3714s # GParamSpec *pspec; 3714s # _ExtendedGDBusPropertyInfo *info; 3714s # gboolean ret; 3714s # ret = FALSE; 3714s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3714s # g_assert (info != NULL); 3714s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3714s # if (pspec == NULL) 3714s # { 3714s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3714s # } 3714s # else 3714s # { 3714s # if (info->use_gvariant) 3714s # g_value_set_variant (&value, variant); 3714s # else 3714s # g_dbus_gvariant_to_gvalue (variant, &value); 3714s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3714s # g_value_unset (&value); 3714s # ret = TRUE; 3714s # } 3714s # return ret; 3714s # } 3714s # 3714s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 3714s # { 3714s # _org_project_signaling_iface_skeleton_handle_method_call, 3714s # _org_project_signaling_iface_skeleton_handle_get_property, 3714s # _org_project_signaling_iface_skeleton_handle_set_property, 3714s # {NULL} 3714s # }; 3714s # 3714s # static GDBusInterfaceInfo * 3714s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3714s # { 3714s # return org_project_signaling_iface_interface_info (); 3714s # } 3714s # 3714s # static GDBusInterfaceVTable * 3714s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3714s # { 3714s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 3714s # } 3714s # 3714s # static GVariant * 3714s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3714s # { 3714s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 3714s # 3714s # GVariantBuilder builder; 3714s # guint n; 3714s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3714s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3714s # #else 3714s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3714s # #endif 3714s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 3714s # goto out; 3714s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 3714s # { 3714s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 3714s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3714s # { 3714s # GVariant *value; 3714s # 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); 3714s # if (value != NULL) 3714s # { 3714s # g_variant_take_ref (value); 3714s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3714s # g_variant_unref (value); 3714s # } 3714s # } 3714s # } 3714s # out: 3714s # return g_variant_builder_end (&builder); 3714s # } 3714s # 3714s # static void 3714s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3714s # { 3714s # } 3714s # 3714s # static void 3714s # _org_project_signaling_iface_on_signal_signal_with_many_args ( 3714s # OrgProjectSignalingIface *object, 3714s # gboolean arg_an_b, 3714s # guchar arg_an_y, 3714s # gint16 arg_an_n, 3714s # guint16 arg_an_q, 3714s # gint arg_an_i, 3714s # guint arg_an_u, 3714s # gint64 arg_an_x, 3714s # guint64 arg_an_t, 3714s # gdouble arg_an_d, 3714s # const gchar *arg_an_s, 3714s # const gchar *arg_an_o, 3714s # const gchar *arg_an_g, 3714s # GVariant *arg_an_h, 3714s # const gchar *arg_an_ay, 3714s # const gchar *const *arg_an_as, 3714s # const gchar *const *arg_an_ao, 3714s # const gchar *const *arg_an_aay, 3714s # GVariant *arg_an_asv) 3714s # { 3714s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3714s # 3714s # GList *connections, *l; 3714s # GVariant *signal_variant; 3714s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3714s # 3714s # signal_variant = g_variant_ref_sink (g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 3714s # arg_an_b, 3714s # arg_an_y, 3714s # arg_an_n, 3714s # arg_an_q, 3714s # arg_an_i, 3714s # arg_an_u, 3714s # arg_an_x, 3714s # arg_an_t, 3714s # arg_an_d, 3714s # arg_an_s, 3714s # arg_an_o, 3714s # arg_an_g, 3714s # arg_an_h, 3714s # arg_an_ay, 3714s # arg_an_as, 3714s # arg_an_ao, 3714s # arg_an_aay, 3714s # arg_an_asv)); 3714s # for (l = connections; l != NULL; l = l->next) 3714s # { 3714s # GDBusConnection *connection = l->data; 3714s # g_dbus_connection_emit_signal (connection, 3714s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SignalWithManyArgs", 3714s # signal_variant, NULL); 3714s # } 3714s # g_variant_unref (signal_variant); 3714s # g_list_free_full (connections, g_object_unref); 3714s # } 3714s # 3714s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 3714s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3714s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3714s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 3714s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3714s # 3714s # #else 3714s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3714s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3714s # 3714s # #endif 3714s # static void 3714s # org_project_signaling_iface_skeleton_finalize (GObject *object) 3714s # { 3714s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3714s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3714s # if (skeleton->priv->changed_properties_idle_source != NULL) 3714s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3714s # g_main_context_unref (skeleton->priv->context); 3714s # g_mutex_clear (&skeleton->priv->lock); 3714s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 3714s # } 3714s # 3714s # static void 3714s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 3714s # { 3714s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3714s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 3714s # #else 3714s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 3714s # #endif 3714s # 3714s # g_mutex_init (&skeleton->priv->lock); 3714s # skeleton->priv->context = g_main_context_ref_thread_default (); 3714s # } 3714s # 3714s # static void 3714s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 3714s # { 3714s # GObjectClass *gobject_class; 3714s # GDBusInterfaceSkeletonClass *skeleton_class; 3714s # 3714s # gobject_class = G_OBJECT_CLASS (klass); 3714s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 3714s # 3714s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3714s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 3714s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 3714s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 3714s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 3714s # 3714s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3714s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 3714s # #endif 3714s # } 3714s # 3714s # static void 3714s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 3714s # { 3714s # iface->signal_with_many_args = _org_project_signaling_iface_on_signal_signal_with_many_args; 3714s # } 3714s # 3714s # /** 3714s # * org_project_signaling_iface_skeleton_new: 3714s # * 3714s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3714s # * 3714s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 3714s # */ 3714s # OrgProjectSignalingIface * 3714s # org_project_signaling_iface_skeleton_new (void) 3714s # { 3714s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 3714s # } 3714s # Error: 3714s ok 20 __main__.TestCodegen.test_generate_signal_id_multiple_signals_types 3714s # gdbus-codegen: /usr/bin/gdbus-codegen 3714s # tmpdir: /tmp/tmpvt9lr4e0 3714s # /tmp/tmpvt9lr4e0/tmpn92p5u10.xml: 3714s # <node> 3714s # <interface name="org.project.SignalingIface"> 3714s # <signal name="NoArgSignal" /> 3714s # <signal name='SingleArgSignalB'><arg name='an_b' type='b'/></signal><signal name='SingleArgSignalY'><arg name='an_y' type='y'/></signal><signal name='SingleArgSignalN'><arg name='an_n' type='n'/></signal><signal name='SingleArgSignalQ'><arg name='an_q' type='q'/></signal><signal name='SingleArgSignalI'><arg name='an_i' type='i'/></signal><signal name='SingleArgSignalU'><arg name='an_u' type='u'/></signal><signal name='SingleArgSignalX'><arg name='an_x' type='x'/></signal><signal name='SingleArgSignalT'><arg name='an_t' type='t'/></signal><signal name='SingleArgSignalD'><arg name='an_d' type='d'/></signal><signal name='SingleArgSignalS'><arg name='an_s' type='s'/></signal><signal name='SingleArgSignalO'><arg name='an_o' type='o'/></signal><signal name='SingleArgSignalG'><arg name='an_g' type='g'/></signal><signal name='SingleArgSignalH'><arg name='an_h' type='h'/></signal><signal name='SingleArgSignalAY'><arg name='an_ay' type='ay'/></signal><signal name='SingleArgSignalAS'><arg name='an_as' type='as'/></signal><signal name='SingleArgSignalAO'><arg name='an_ao' type='ao'/></signal><signal name='SingleArgSignalAAY'><arg name='an_aay' type='aay'/></signal><signal name='SingleArgSignalASV'><arg name='an_asv' type='a{sv}'/></signal> 3714s # </interface> 3714s # </node> 3714s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpvt9lr4e0/tmpn92p5u10.xml', '--output', '-', '--body'] 3714s # Return code: 0 3714s # Output: 3714s # /* 3714s # * This file is generated by gdbus-codegen, do not modify it. 3714s # * 3714s # * The license of this code is the same as for the D-Bus interface description 3714s # * it was derived from. Note that it links to GLib, so must comply with the 3714s # * LGPL linking clauses. 3714s # */ 3714s # 3714s # #ifdef HAVE_CONFIG_H 3714s # # include "config.h" 3714s # #endif 3714s # 3714s # #include <string.h> 3714s # #ifdef G_OS_UNIX 3714s # # include <gio/gunixfdlist.h> 3714s # #endif 3714s # 3714s # #ifdef G_ENABLE_DEBUG 3714s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3714s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3714s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3714s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3714s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3714s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3714s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3714s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3714s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3714s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3714s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3714s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3714s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3714s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3714s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3714s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3714s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3714s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3714s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3714s # #else /* !G_ENABLE_DEBUG */ 3714s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3714s # * Do not access GValues directly in your code. Instead, use the 3714s # * g_value_get_*() functions 3714s # */ 3714s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3714s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3714s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3714s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3714s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3714s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3714s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3714s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3714s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3714s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3714s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3714s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3714s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3714s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3714s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3714s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3714s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3714s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3714s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3714s # #endif /* !G_ENABLE_DEBUG */ 3714s # 3714s # typedef struct 3714s # { 3714s # GDBusArgInfo parent_struct; 3714s # gboolean use_gvariant; 3714s # } _ExtendedGDBusArgInfo; 3714s # 3714s # typedef struct 3714s # { 3714s # GDBusMethodInfo parent_struct; 3714s # const gchar *signal_name; 3714s # gboolean pass_fdlist; 3714s # } _ExtendedGDBusMethodInfo; 3714s # 3714s # typedef struct 3714s # { 3714s # GDBusSignalInfo parent_struct; 3714s # const gchar *signal_name; 3714s # } _ExtendedGDBusSignalInfo; 3714s # 3714s # typedef struct 3714s # { 3714s # GDBusPropertyInfo parent_struct; 3714s # const gchar *hyphen_name; 3714s # guint use_gvariant : 1; 3714s # guint emits_changed_signal : 1; 3714s # } _ExtendedGDBusPropertyInfo; 3714s # 3714s # typedef struct 3714s # { 3714s # GDBusInterfaceInfo parent_struct; 3714s # const gchar *hyphen_name; 3714s # } _ExtendedGDBusInterfaceInfo; 3714s # 3714s # typedef struct 3714s # { 3714s # const _ExtendedGDBusPropertyInfo *info; 3714s # guint prop_id; 3714s # GValue orig_value; /* the value before the change */ 3714s # } ChangedProperty; 3714s # 3714s # static void 3714s # _changed_property_free (ChangedProperty *data) 3714s # { 3714s # g_value_unset (&data->orig_value); 3714s # g_free (data); 3714s # } 3714s # 3714s # static gboolean 3714s # _g_strv_equal0 (gchar **a, gchar **b) 3714s # { 3714s # gboolean ret = FALSE; 3714s # guint n; 3714s # if (a == NULL && b == NULL) 3714s # { 3714s # ret = TRUE; 3714s # goto out; 3714s # } 3714s # if (a == NULL || b == NULL) 3714s # goto out; 3714s # if (g_strv_length (a) != g_strv_length (b)) 3714s # goto out; 3714s # for (n = 0; a[n] != NULL; n++) 3714s # if (g_strcmp0 (a[n], b[n]) != 0) 3714s # goto out; 3714s # ret = TRUE; 3714s # out: 3714s # return ret; 3714s # } 3714s # 3714s # static gboolean 3714s # _g_variant_equal0 (GVariant *a, GVariant *b) 3714s # { 3714s # gboolean ret = FALSE; 3714s # if (a == NULL && b == NULL) 3714s # { 3714s # ret = TRUE; 3714s # goto out; 3714s # } 3714s # if (a == NULL || b == NULL) 3714s # goto out; 3714s # ret = g_variant_equal (a, b); 3714s # out: 3714s # return ret; 3714s # } 3714s # 3714s # G_GNUC_UNUSED static gboolean 3714s # _g_value_equal (const GValue *a, const GValue *b) 3714s # { 3714s # gboolean ret = FALSE; 3714s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3714s # switch (G_VALUE_TYPE (a)) 3714s # { 3714s # case G_TYPE_BOOLEAN: 3714s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3714s # break; 3714s # case G_TYPE_UCHAR: 3714s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3714s # break; 3714s # case G_TYPE_INT: 3714s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3714s # break; 3714s # case G_TYPE_UINT: 3714s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3714s # break; 3714s # case G_TYPE_INT64: 3714s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3714s # break; 3714s # case G_TYPE_UINT64: 3714s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3714s # break; 3714s # case G_TYPE_DOUBLE: 3714s # { 3714s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3714s # gdouble da = g_value_get_double (a); 3714s # gdouble db = g_value_get_double (b); 3714s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3714s # } 3714s # break; 3714s # case G_TYPE_STRING: 3714s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3714s # break; 3714s # case G_TYPE_VARIANT: 3714s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3714s # break; 3714s # default: 3714s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3714s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3714s # else 3714s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3714s # break; 3714s # } 3714s # return ret; 3714s # } 3714s # 3714s # static void 3714s # _g_dbus_codegen_marshal_VOID__INT64 ( 3714s # GClosure *closure, 3714s # GValue *return_value G_GNUC_UNUSED, 3714s # unsigned int n_param_values, 3714s # const GValue *param_values, 3714s # void *invocation_hint G_GNUC_UNUSED, 3714s # void *marshal_data) 3714s # { 3714s # typedef void (*_GDbusCodegenMarshalVoid_Int64Func) 3714s # (void *data1, 3714s # gint64 arg_an_x, 3714s # void *data2); 3714s # _GDbusCodegenMarshalVoid_Int64Func callback; 3714s # GCClosure *cc = (GCClosure*) closure; 3714s # void *data1, *data2; 3714s # 3714s # g_return_if_fail (n_param_values == 2); 3714s # 3714s # if (G_CCLOSURE_SWAP_DATA (closure)) 3714s # { 3714s # data1 = closure->data; 3714s # data2 = g_value_peek_pointer (param_values + 0); 3714s # } 3714s # else 3714s # { 3714s # data1 = g_value_peek_pointer (param_values + 0); 3714s # data2 = closure->data; 3714s # } 3714s # 3714s # callback = (_GDbusCodegenMarshalVoid_Int64Func) 3714s # (marshal_data ? marshal_data : cc->callback); 3714s # 3714s # callback (data1, 3714s # g_marshal_value_peek_int64 (param_values + 1), 3714s # data2); 3714s # } 3714s # 3714s # static void 3714s # _g_dbus_codegen_marshal_VOID__UINT64 ( 3714s # GClosure *closure, 3714s # GValue *return_value G_GNUC_UNUSED, 3714s # unsigned int n_param_values, 3714s # const GValue *param_values, 3714s # void *invocation_hint G_GNUC_UNUSED, 3714s # void *marshal_data) 3714s # { 3714s # typedef void (*_GDbusCodegenMarshalVoid_Uint64Func) 3714s # (void *data1, 3714s # guint64 arg_an_t, 3714s # void *data2); 3714s # _GDbusCodegenMarshalVoid_Uint64Func callback; 3714s # GCClosure *cc = (GCClosure*) closure; 3714s # void *data1, *data2; 3714s # 3714s # g_return_if_fail (n_param_values == 2); 3714s # 3714s # if (G_CCLOSURE_SWAP_DATA (closure)) 3714s # { 3714s # data1 = closure->data; 3714s # data2 = g_value_peek_pointer (param_values + 0); 3714s # } 3714s # else 3714s # { 3714s # data1 = g_value_peek_pointer (param_values + 0); 3714s # data2 = closure->data; 3714s # } 3714s # 3714s # callback = (_GDbusCodegenMarshalVoid_Uint64Func) 3714s # (marshal_data ? marshal_data : cc->callback); 3714s # 3714s # callback (data1, 3714s # g_marshal_value_peek_uint64 (param_values + 1), 3714s # data2); 3714s # } 3714s # 3714s # /* ------------------------------------------------------------------------ 3714s # * Code for interface org.project.SignalingIface 3714s # * ------------------------------------------------------------------------ 3714s # */ 3714s # 3714s # /** 3714s # * SECTION:OrgProjectSignalingIface 3714s # * @title: OrgProjectSignalingIface 3714s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 3714s # * 3714s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface in C. 3714s # */ 3714s # 3714s # enum 3714s # { 3714s # _ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL, 3714s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B, 3714s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y, 3714s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N, 3714s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q, 3714s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I, 3714s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U, 3714s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X, 3714s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T, 3714s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D, 3714s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S, 3714s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O, 3714s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G, 3714s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H, 3714s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY, 3714s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS, 3714s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO, 3714s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY, 3714s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV, 3714s # }; 3714s # 3714s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[19] = { 0 }; 3714s # 3714s # /* ---- Introspection data for org.project.SignalingIface ---- */ 3714s # 3714s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_no_arg_signal = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "NoArgSignal", 3714s # NULL, 3714s # NULL 3714s # }, 3714s # "no-arg-signal" 3714s # }; 3714s # 3714s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_an_b = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "an_b", 3714s # (gchar *) "b", 3714s # NULL 3714s # }, 3714s # FALSE 3714s # }; 3714s # 3714s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers[] = 3714s # { 3714s # &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_an_b.parent_struct, 3714s # NULL 3714s # }; 3714s # 3714s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_b = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "SingleArgSignalB", 3714s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers, 3714s # NULL 3714s # }, 3714s # "single-arg-signal-b" 3714s # }; 3714s # 3714s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_an_y = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "an_y", 3714s # (gchar *) "y", 3714s # NULL 3714s # }, 3714s # FALSE 3714s # }; 3714s # 3714s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers[] = 3714s # { 3714s # &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_an_y.parent_struct, 3714s # NULL 3714s # }; 3714s # 3714s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_y = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "SingleArgSignalY", 3714s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers, 3714s # NULL 3714s # }, 3714s # "single-arg-signal-y" 3714s # }; 3714s # 3714s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_an_n = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "an_n", 3714s # (gchar *) "n", 3714s # NULL 3714s # }, 3714s # FALSE 3714s # }; 3714s # 3714s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers[] = 3714s # { 3714s # &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_an_n.parent_struct, 3714s # NULL 3714s # }; 3714s # 3714s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_n = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "SingleArgSignalN", 3714s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers, 3714s # NULL 3714s # }, 3714s # "single-arg-signal-n" 3714s # }; 3714s # 3714s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_an_q = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "an_q", 3714s # (gchar *) "q", 3714s # NULL 3714s # }, 3714s # FALSE 3714s # }; 3714s # 3714s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers[] = 3714s # { 3714s # &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_an_q.parent_struct, 3714s # NULL 3714s # }; 3714s # 3714s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_q = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "SingleArgSignalQ", 3714s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers, 3714s # NULL 3714s # }, 3714s # "single-arg-signal-q" 3714s # }; 3714s # 3714s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_an_i = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "an_i", 3714s # (gchar *) "i", 3714s # NULL 3714s # }, 3714s # FALSE 3714s # }; 3714s # 3714s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers[] = 3714s # { 3714s # &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_an_i.parent_struct, 3714s # NULL 3714s # }; 3714s # 3714s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_i = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "SingleArgSignalI", 3714s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers, 3714s # NULL 3714s # }, 3714s # "single-arg-signal-i" 3714s # }; 3714s # 3714s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_an_u = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "an_u", 3714s # (gchar *) "u", 3714s # NULL 3714s # }, 3714s # FALSE 3714s # }; 3714s # 3714s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers[] = 3714s # { 3714s # &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_an_u.parent_struct, 3714s # NULL 3714s # }; 3714s # 3714s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_u = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "SingleArgSignalU", 3714s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers, 3714s # NULL 3714s # }, 3714s # "single-arg-signal-u" 3714s # }; 3714s # 3714s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_an_x = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "an_x", 3714s # (gchar *) "x", 3714s # NULL 3714s # }, 3714s # FALSE 3714s # }; 3714s # 3714s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers[] = 3714s # { 3714s # &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_an_x.parent_struct, 3714s # NULL 3714s # }; 3714s # 3714s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_x = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "SingleArgSignalX", 3714s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers, 3714s # NULL 3714s # }, 3714s # "single-arg-signal-x" 3714s # }; 3714s # 3714s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_an_t = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "an_t", 3714s # (gchar *) "t", 3714s # NULL 3714s # }, 3714s # FALSE 3714s # }; 3714s # 3714s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers[] = 3714s # { 3714s # &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_an_t.parent_struct, 3714s # NULL 3714s # }; 3714s # 3714s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_t = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "SingleArgSignalT", 3714s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers, 3714s # NULL 3714s # }, 3714s # "single-arg-signal-t" 3714s # }; 3714s # 3714s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_an_d = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "an_d", 3714s # (gchar *) "d", 3714s # NULL 3714s # }, 3714s # FALSE 3714s # }; 3714s # 3714s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers[] = 3714s # { 3714s # &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_an_d.parent_struct, 3714s # NULL 3714s # }; 3714s # 3714s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_d = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "SingleArgSignalD", 3714s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers, 3714s # NULL 3714s # }, 3714s # "single-arg-signal-d" 3714s # }; 3714s # 3714s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_an_s = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "an_s", 3714s # (gchar *) "s", 3714s # NULL 3714s # }, 3714s # FALSE 3714s # }; 3714s # 3714s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers[] = 3714s # { 3714s # &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_an_s.parent_struct, 3714s # NULL 3714s # }; 3714s # 3714s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_s = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "SingleArgSignalS", 3714s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers, 3714s # NULL 3714s # }, 3714s # "single-arg-signal-s" 3714s # }; 3714s # 3714s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_an_o = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "an_o", 3714s # (gchar *) "o", 3714s # NULL 3714s # }, 3714s # FALSE 3714s # }; 3714s # 3714s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers[] = 3714s # { 3714s # &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_an_o.parent_struct, 3714s # NULL 3714s # }; 3714s # 3714s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_o = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "SingleArgSignalO", 3714s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers, 3714s # NULL 3714s # }, 3714s # "single-arg-signal-o" 3714s # }; 3714s # 3714s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_an_g = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "an_g", 3714s # (gchar *) "g", 3714s # NULL 3714s # }, 3714s # FALSE 3714s # }; 3714s # 3714s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers[] = 3714s # { 3714s # &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_an_g.parent_struct, 3714s # NULL 3714s # }; 3714s # 3714s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_g = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "SingleArgSignalG", 3714s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers, 3714s # NULL 3714s # }, 3714s # "single-arg-signal-g" 3714s # }; 3714s # 3714s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_an_h = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "an_h", 3714s # (gchar *) "h", 3714s # NULL 3714s # }, 3714s # FALSE 3714s # }; 3714s # 3714s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers[] = 3714s # { 3714s # &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_an_h.parent_struct, 3714s # NULL 3714s # }; 3714s # 3714s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_h = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "SingleArgSignalH", 3714s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers, 3714s # NULL 3714s # }, 3714s # "single-arg-signal-h" 3714s # }; 3714s # 3714s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_an_ay = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "an_ay", 3714s # (gchar *) "ay", 3714s # NULL 3714s # }, 3714s # FALSE 3714s # }; 3714s # 3714s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers[] = 3714s # { 3714s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_an_ay.parent_struct, 3714s # NULL 3714s # }; 3714s # 3714s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "SingleArgSignalAY", 3714s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers, 3714s # NULL 3714s # }, 3714s # "single-arg-signal-ay" 3714s # }; 3714s # 3714s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_an_as = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "an_as", 3714s # (gchar *) "as", 3714s # NULL 3714s # }, 3714s # FALSE 3714s # }; 3714s # 3714s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers[] = 3714s # { 3714s # &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_an_as.parent_struct, 3714s # NULL 3714s # }; 3714s # 3714s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_as = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "SingleArgSignalAS", 3714s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers, 3714s # NULL 3714s # }, 3714s # "single-arg-signal-as" 3714s # }; 3714s # 3714s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_an_ao = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "an_ao", 3714s # (gchar *) "ao", 3714s # NULL 3714s # }, 3714s # FALSE 3714s # }; 3714s # 3714s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers[] = 3714s # { 3714s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_an_ao.parent_struct, 3714s # NULL 3714s # }; 3714s # 3714s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "SingleArgSignalAO", 3714s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers, 3714s # NULL 3714s # }, 3714s # "single-arg-signal-ao" 3714s # }; 3714s # 3714s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_an_aay = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "an_aay", 3714s # (gchar *) "aay", 3714s # NULL 3714s # }, 3714s # FALSE 3714s # }; 3714s # 3714s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers[] = 3714s # { 3714s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_an_aay.parent_struct, 3714s # NULL 3714s # }; 3714s # 3714s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "SingleArgSignalAAY", 3714s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers, 3714s # NULL 3714s # }, 3714s # "single-arg-signal-aay" 3714s # }; 3714s # 3714s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_an_asv = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "an_asv", 3714s # (gchar *) "a{sv}", 3714s # NULL 3714s # }, 3714s # FALSE 3714s # }; 3714s # 3714s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers[] = 3714s # { 3714s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_an_asv.parent_struct, 3714s # NULL 3714s # }; 3714s # 3714s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "SingleArgSignalASV", 3714s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers, 3714s # NULL 3714s # }, 3714s # "single-arg-signal-asv" 3714s # }; 3714s # 3714s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 3714s # { 3714s # &_org_project_signaling_iface_signal_info_no_arg_signal.parent_struct, 3714s # &_org_project_signaling_iface_signal_info_single_arg_signal_b.parent_struct, 3714s # &_org_project_signaling_iface_signal_info_single_arg_signal_y.parent_struct, 3714s # &_org_project_signaling_iface_signal_info_single_arg_signal_n.parent_struct, 3714s # &_org_project_signaling_iface_signal_info_single_arg_signal_q.parent_struct, 3714s # &_org_project_signaling_iface_signal_info_single_arg_signal_i.parent_struct, 3714s # &_org_project_signaling_iface_signal_info_single_arg_signal_u.parent_struct, 3714s # &_org_project_signaling_iface_signal_info_single_arg_signal_x.parent_struct, 3714s # &_org_project_signaling_iface_signal_info_single_arg_signal_t.parent_struct, 3714s # &_org_project_signaling_iface_signal_info_single_arg_signal_d.parent_struct, 3714s # &_org_project_signaling_iface_signal_info_single_arg_signal_s.parent_struct, 3714s # &_org_project_signaling_iface_signal_info_single_arg_signal_o.parent_struct, 3714s # &_org_project_signaling_iface_signal_info_single_arg_signal_g.parent_struct, 3714s # &_org_project_signaling_iface_signal_info_single_arg_signal_h.parent_struct, 3714s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay.parent_struct, 3714s # &_org_project_signaling_iface_signal_info_single_arg_signal_as.parent_struct, 3714s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao.parent_struct, 3714s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay.parent_struct, 3714s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv.parent_struct, 3714s # NULL 3714s # }; 3714s # 3714s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 3714s # { 3714s # { 3714s # -1, 3714s # (gchar *) "org.project.SignalingIface", 3714s # NULL, 3714s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 3714s # NULL, 3714s # NULL 3714s # }, 3714s # "org-project-signaling-iface", 3714s # }; 3714s # 3714s # 3714s # /** 3714s # * org_project_signaling_iface_interface_info: 3714s # * 3714s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface. 3714s # * 3714s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3714s # */ 3714s # GDBusInterfaceInfo * 3714s # org_project_signaling_iface_interface_info (void) 3714s # { 3714s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 3714s # } 3714s # 3714s # /** 3714s # * org_project_signaling_iface_override_properties: 3714s # * @klass: The class structure for a #GObject derived class. 3714s # * @property_id_begin: The property id to assign to the first overridden property. 3714s # * 3714s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 3714s # * The properties are overridden in the order they are defined. 3714s # * 3714s # * Returns: The last property id. 3714s # */ 3714s # guint 3714s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3714s # { 3714s # return property_id_begin - 1; 3714s # } 3714s # 3714s # 3714s # inline static void 3714s # org_project_signaling_iface_signal_marshal_no_arg_signal ( 3714s # GClosure *closure, 3714s # GValue *return_value, 3714s # unsigned int n_param_values, 3714s # const GValue *param_values, 3714s # void *invocation_hint, 3714s # void *marshal_data) 3714s # { 3714s # g_cclosure_marshal_VOID__VOID (closure, 3714s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3714s # } 3714s # 3714s # inline static void 3714s # org_project_signaling_iface_signal_marshal_single_arg_signal_b ( 3714s # GClosure *closure, 3714s # GValue *return_value, 3714s # unsigned int n_param_values, 3714s # const GValue *param_values, 3714s # void *invocation_hint, 3714s # void *marshal_data) 3714s # { 3714s # g_cclosure_marshal_VOID__BOOLEAN (closure, 3714s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3714s # } 3714s # 3714s # inline static void 3714s # org_project_signaling_iface_signal_marshal_single_arg_signal_y ( 3714s # GClosure *closure, 3714s # GValue *return_value, 3714s # unsigned int n_param_values, 3714s # const GValue *param_values, 3714s # void *invocation_hint, 3714s # void *marshal_data) 3714s # { 3714s # g_cclosure_marshal_VOID__UCHAR (closure, 3714s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3714s # } 3714s # 3714s # inline static void 3714s # org_project_signaling_iface_signal_marshal_single_arg_signal_n ( 3714s # GClosure *closure, 3714s # GValue *return_value, 3714s # unsigned int n_param_values, 3714s # const GValue *param_values, 3714s # void *invocation_hint, 3714s # void *marshal_data) 3714s # { 3714s # g_cclosure_marshal_VOID__INT (closure, 3714s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3714s # } 3714s # 3714s # inline static void 3714s # org_project_signaling_iface_signal_marshal_single_arg_signal_q ( 3714s # GClosure *closure, 3714s # GValue *return_value, 3714s # unsigned int n_param_values, 3714s # const GValue *param_values, 3714s # void *invocation_hint, 3714s # void *marshal_data) 3714s # { 3714s # g_cclosure_marshal_VOID__UINT (closure, 3714s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3714s # } 3714s # 3714s # inline static void 3714s # org_project_signaling_iface_signal_marshal_single_arg_signal_i ( 3714s # GClosure *closure, 3714s # GValue *return_value, 3714s # unsigned int n_param_values, 3714s # const GValue *param_values, 3714s # void *invocation_hint, 3714s # void *marshal_data) 3714s # { 3714s # g_cclosure_marshal_VOID__INT (closure, 3714s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3714s # } 3714s # 3714s # inline static void 3714s # org_project_signaling_iface_signal_marshal_single_arg_signal_u ( 3714s # GClosure *closure, 3714s # GValue *return_value, 3714s # unsigned int n_param_values, 3714s # const GValue *param_values, 3714s # void *invocation_hint, 3714s # void *marshal_data) 3714s # { 3714s # g_cclosure_marshal_VOID__UINT (closure, 3714s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3714s # } 3714s # 3714s # inline static void 3714s # org_project_signaling_iface_signal_marshal_single_arg_signal_x ( 3714s # GClosure *closure, 3714s # GValue *return_value, 3714s # unsigned int n_param_values, 3714s # const GValue *param_values, 3714s # void *invocation_hint, 3714s # void *marshal_data) 3714s # { 3714s # _g_dbus_codegen_marshal_VOID__INT64 (closure, 3714s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3714s # } 3714s # 3714s # inline static void 3714s # org_project_signaling_iface_signal_marshal_single_arg_signal_t ( 3714s # GClosure *closure, 3714s # GValue *return_value, 3714s # unsigned int n_param_values, 3714s # const GValue *param_values, 3714s # void *invocation_hint, 3714s # void *marshal_data) 3714s # { 3714s # _g_dbus_codegen_marshal_VOID__UINT64 (closure, 3714s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3714s # } 3714s # 3714s # inline static void 3714s # org_project_signaling_iface_signal_marshal_single_arg_signal_d ( 3714s # GClosure *closure, 3714s # GValue *return_value, 3714s # unsigned int n_param_values, 3714s # const GValue *param_values, 3714s # void *invocation_hint, 3714s # void *marshal_data) 3714s # { 3714s # g_cclosure_marshal_VOID__DOUBLE (closure, 3714s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3714s # } 3714s # 3714s # inline static void 3714s # org_project_signaling_iface_signal_marshal_single_arg_signal_s ( 3714s # GClosure *closure, 3714s # GValue *return_value, 3714s # unsigned int n_param_values, 3714s # const GValue *param_values, 3714s # void *invocation_hint, 3714s # void *marshal_data) 3714s # { 3714s # g_cclosure_marshal_VOID__STRING (closure, 3714s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3714s # } 3714s # 3714s # inline static void 3714s # org_project_signaling_iface_signal_marshal_single_arg_signal_o ( 3714s # GClosure *closure, 3714s # GValue *return_value, 3714s # unsigned int n_param_values, 3714s # const GValue *param_values, 3714s # void *invocation_hint, 3714s # void *marshal_data) 3714s # { 3714s # g_cclosure_marshal_VOID__STRING (closure, 3714s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3714s # } 3714s # 3714s # inline static void 3714s # org_project_signaling_iface_signal_marshal_single_arg_signal_g ( 3714s # GClosure *closure, 3714s # GValue *return_value, 3714s # unsigned int n_param_values, 3714s # const GValue *param_values, 3714s # void *invocation_hint, 3714s # void *marshal_data) 3714s # { 3714s # g_cclosure_marshal_VOID__STRING (closure, 3714s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3714s # } 3714s # 3714s # inline static void 3714s # org_project_signaling_iface_signal_marshal_single_arg_signal_h ( 3714s # GClosure *closure, 3714s # GValue *return_value, 3714s # unsigned int n_param_values, 3714s # const GValue *param_values, 3714s # void *invocation_hint, 3714s # void *marshal_data) 3714s # { 3714s # g_cclosure_marshal_VOID__VARIANT (closure, 3714s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3714s # } 3714s # 3714s # inline static void 3714s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay ( 3714s # GClosure *closure, 3714s # GValue *return_value, 3714s # unsigned int n_param_values, 3714s # const GValue *param_values, 3714s # void *invocation_hint, 3714s # void *marshal_data) 3714s # { 3714s # g_cclosure_marshal_VOID__STRING (closure, 3714s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3714s # } 3714s # 3714s # inline static void 3714s # org_project_signaling_iface_signal_marshal_single_arg_signal_as ( 3714s # GClosure *closure, 3714s # GValue *return_value, 3714s # unsigned int n_param_values, 3714s # const GValue *param_values, 3714s # void *invocation_hint, 3714s # void *marshal_data) 3714s # { 3714s # g_cclosure_marshal_VOID__BOXED (closure, 3714s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3714s # } 3714s # 3714s # inline static void 3714s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao ( 3714s # GClosure *closure, 3714s # GValue *return_value, 3714s # unsigned int n_param_values, 3714s # const GValue *param_values, 3714s # void *invocation_hint, 3714s # void *marshal_data) 3714s # { 3714s # g_cclosure_marshal_VOID__BOXED (closure, 3714s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3714s # } 3714s # 3714s # inline static void 3714s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay ( 3714s # GClosure *closure, 3714s # GValue *return_value, 3714s # unsigned int n_param_values, 3714s # const GValue *param_values, 3714s # void *invocation_hint, 3714s # void *marshal_data) 3714s # { 3714s # g_cclosure_marshal_VOID__BOXED (closure, 3714s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3714s # } 3714s # 3714s # inline static void 3714s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv ( 3714s # GClosure *closure, 3714s # GValue *return_value, 3714s # unsigned int n_param_values, 3714s # const GValue *param_values, 3714s # void *invocation_hint, 3714s # void *marshal_data) 3714s # { 3714s # g_cclosure_marshal_VOID__VARIANT (closure, 3714s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3714s # } 3714s # 3714s # 3714s # /** 3714s # * OrgProjectSignalingIface: 3714s # * 3714s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3714s # */ 3714s # 3714s # /** 3714s # * OrgProjectSignalingIfaceIface: 3714s # * @parent_iface: The parent interface. 3714s # * @no_arg_signal: Handler for the #OrgProjectSignalingIface::no-arg-signal signal. 3714s # * @single_arg_signal_aay: Handler for the #OrgProjectSignalingIface::single-arg-signal-aay signal. 3714s # * @single_arg_signal_ao: Handler for the #OrgProjectSignalingIface::single-arg-signal-ao signal. 3714s # * @single_arg_signal_as: Handler for the #OrgProjectSignalingIface::single-arg-signal-as signal. 3714s # * @single_arg_signal_asv: Handler for the #OrgProjectSignalingIface::single-arg-signal-asv signal. 3714s # * @single_arg_signal_ay: Handler for the #OrgProjectSignalingIface::single-arg-signal-ay signal. 3714s # * @single_arg_signal_b: Handler for the #OrgProjectSignalingIface::single-arg-signal-b signal. 3714s # * @single_arg_signal_d: Handler for the #OrgProjectSignalingIface::single-arg-signal-d signal. 3714s # * @single_arg_signal_g: Handler for the #OrgProjectSignalingIface::single-arg-signal-g signal. 3714s # * @single_arg_signal_h: Handler for the #OrgProjectSignalingIface::single-arg-signal-h signal. 3714s # * @single_arg_signal_i: Handler for the #OrgProjectSignalingIface::single-arg-signal-i signal. 3714s # * @single_arg_signal_n: Handler for the #OrgProjectSignalingIface::single-arg-signal-n signal. 3714s # * @single_arg_signal_o: Handler for the #OrgProjectSignalingIface::single-arg-signal-o signal. 3714s # * @single_arg_signal_q: Handler for the #OrgProjectSignalingIface::single-arg-signal-q signal. 3714s # * @single_arg_signal_s: Handler for the #OrgProjectSignalingIface::single-arg-signal-s signal. 3714s # * @single_arg_signal_t: Handler for the #OrgProjectSignalingIface::single-arg-signal-t signal. 3714s # * @single_arg_signal_u: Handler for the #OrgProjectSignalingIface::single-arg-signal-u signal. 3714s # * @single_arg_signal_x: Handler for the #OrgProjectSignalingIface::single-arg-signal-x signal. 3714s # * @single_arg_signal_y: Handler for the #OrgProjectSignalingIface::single-arg-signal-y signal. 3714s # * 3714s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3714s # */ 3714s # 3714s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 3714s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 3714s # 3714s # static void 3714s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 3714s # { 3714s # /* GObject signals for received D-Bus signals: */ 3714s # /** 3714s # * OrgProjectSignalingIface::no-arg-signal: 3714s # * @object: A #OrgProjectSignalingIface. 3714s # * 3714s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.NoArgSignal">"NoArgSignal"</link> is received. 3714s # * 3714s # * 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. 3714s # */ 3714s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL] = 3714s # g_signal_new ("no-arg-signal", 3714s # G_TYPE_FROM_INTERFACE (iface), 3714s # G_SIGNAL_RUN_LAST, 3714s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, no_arg_signal), 3714s # NULL, 3714s # NULL, 3714s # org_project_signaling_iface_signal_marshal_no_arg_signal, 3714s # G_TYPE_NONE, 3714s # 0); 3714s # 3714s # /** 3714s # * OrgProjectSignalingIface::single-arg-signal-b: 3714s # * @object: A #OrgProjectSignalingIface. 3714s # * @arg_an_b: Argument. 3714s # * 3714s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalB">"SingleArgSignalB"</link> is received. 3714s # * 3714s # * 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. 3714s # */ 3714s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B] = 3714s # g_signal_new ("single-arg-signal-b", 3714s # G_TYPE_FROM_INTERFACE (iface), 3714s # G_SIGNAL_RUN_LAST, 3714s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_b), 3714s # NULL, 3714s # NULL, 3714s # org_project_signaling_iface_signal_marshal_single_arg_signal_b, 3714s # G_TYPE_NONE, 3714s # 1, G_TYPE_BOOLEAN); 3714s # 3714s # /** 3714s # * OrgProjectSignalingIface::single-arg-signal-y: 3714s # * @object: A #OrgProjectSignalingIface. 3714s # * @arg_an_y: Argument. 3714s # * 3714s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalY">"SingleArgSignalY"</link> is received. 3714s # * 3714s # * 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. 3714s # */ 3714s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y] = 3714s # g_signal_new ("single-arg-signal-y", 3714s # G_TYPE_FROM_INTERFACE (iface), 3714s # G_SIGNAL_RUN_LAST, 3714s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_y), 3714s # NULL, 3714s # NULL, 3714s # org_project_signaling_iface_signal_marshal_single_arg_signal_y, 3714s # G_TYPE_NONE, 3714s # 1, G_TYPE_UCHAR); 3714s # 3714s # /** 3714s # * OrgProjectSignalingIface::single-arg-signal-n: 3714s # * @object: A #OrgProjectSignalingIface. 3714s # * @arg_an_n: Argument. 3714s # * 3714s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalN">"SingleArgSignalN"</link> is received. 3714s # * 3714s # * 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. 3714s # */ 3714s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N] = 3714s # g_signal_new ("single-arg-signal-n", 3714s # G_TYPE_FROM_INTERFACE (iface), 3714s # G_SIGNAL_RUN_LAST, 3714s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_n), 3714s # NULL, 3714s # NULL, 3714s # org_project_signaling_iface_signal_marshal_single_arg_signal_n, 3714s # G_TYPE_NONE, 3714s # 1, G_TYPE_INT); 3714s # 3714s # /** 3714s # * OrgProjectSignalingIface::single-arg-signal-q: 3714s # * @object: A #OrgProjectSignalingIface. 3714s # * @arg_an_q: Argument. 3714s # * 3714s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalQ">"SingleArgSignalQ"</link> is received. 3714s # * 3714s # * 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. 3714s # */ 3714s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q] = 3714s # g_signal_new ("single-arg-signal-q", 3714s # G_TYPE_FROM_INTERFACE (iface), 3714s # G_SIGNAL_RUN_LAST, 3714s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_q), 3714s # NULL, 3714s # NULL, 3714s # org_project_signaling_iface_signal_marshal_single_arg_signal_q, 3714s # G_TYPE_NONE, 3714s # 1, G_TYPE_UINT); 3714s # 3714s # /** 3714s # * OrgProjectSignalingIface::single-arg-signal-i: 3714s # * @object: A #OrgProjectSignalingIface. 3714s # * @arg_an_i: Argument. 3714s # * 3714s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalI">"SingleArgSignalI"</link> is received. 3714s # * 3714s # * 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. 3714s # */ 3714s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I] = 3714s # g_signal_new ("single-arg-signal-i", 3714s # G_TYPE_FROM_INTERFACE (iface), 3714s # G_SIGNAL_RUN_LAST, 3714s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_i), 3714s # NULL, 3714s # NULL, 3714s # org_project_signaling_iface_signal_marshal_single_arg_signal_i, 3714s # G_TYPE_NONE, 3714s # 1, G_TYPE_INT); 3714s # 3714s # /** 3714s # * OrgProjectSignalingIface::single-arg-signal-u: 3714s # * @object: A #OrgProjectSignalingIface. 3714s # * @arg_an_u: Argument. 3714s # * 3714s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalU">"SingleArgSignalU"</link> is received. 3714s # * 3714s # * 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. 3714s # */ 3714s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U] = 3714s # g_signal_new ("single-arg-signal-u", 3714s # G_TYPE_FROM_INTERFACE (iface), 3714s # G_SIGNAL_RUN_LAST, 3714s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_u), 3714s # NULL, 3714s # NULL, 3714s # org_project_signaling_iface_signal_marshal_single_arg_signal_u, 3714s # G_TYPE_NONE, 3714s # 1, G_TYPE_UINT); 3714s # 3714s # /** 3714s # * OrgProjectSignalingIface::single-arg-signal-x: 3714s # * @object: A #OrgProjectSignalingIface. 3714s # * @arg_an_x: Argument. 3714s # * 3714s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalX">"SingleArgSignalX"</link> is received. 3714s # * 3714s # * 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. 3714s # */ 3714s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X] = 3714s # g_signal_new ("single-arg-signal-x", 3714s # G_TYPE_FROM_INTERFACE (iface), 3714s # G_SIGNAL_RUN_LAST, 3714s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_x), 3714s # NULL, 3714s # NULL, 3714s # org_project_signaling_iface_signal_marshal_single_arg_signal_x, 3714s # G_TYPE_NONE, 3714s # 1, G_TYPE_INT64); 3714s # 3714s # /** 3714s # * OrgProjectSignalingIface::single-arg-signal-t: 3714s # * @object: A #OrgProjectSignalingIface. 3714s # * @arg_an_t: Argument. 3714s # * 3714s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalT">"SingleArgSignalT"</link> is received. 3714s # * 3714s # * 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. 3714s # */ 3714s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T] = 3714s # g_signal_new ("single-arg-signal-t", 3714s # G_TYPE_FROM_INTERFACE (iface), 3714s # G_SIGNAL_RUN_LAST, 3714s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_t), 3714s # NULL, 3714s # NULL, 3714s # org_project_signaling_iface_signal_marshal_single_arg_signal_t, 3714s # G_TYPE_NONE, 3714s # 1, G_TYPE_UINT64); 3714s # 3714s # /** 3714s # * OrgProjectSignalingIface::single-arg-signal-d: 3714s # * @object: A #OrgProjectSignalingIface. 3714s # * @arg_an_d: Argument. 3714s # * 3714s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalD">"SingleArgSignalD"</link> is received. 3714s # * 3714s # * 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. 3714s # */ 3714s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D] = 3714s # g_signal_new ("single-arg-signal-d", 3714s # G_TYPE_FROM_INTERFACE (iface), 3714s # G_SIGNAL_RUN_LAST, 3714s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_d), 3714s # NULL, 3714s # NULL, 3714s # org_project_signaling_iface_signal_marshal_single_arg_signal_d, 3714s # G_TYPE_NONE, 3714s # 1, G_TYPE_DOUBLE); 3714s # 3714s # /** 3714s # * OrgProjectSignalingIface::single-arg-signal-s: 3714s # * @object: A #OrgProjectSignalingIface. 3714s # * @arg_an_s: Argument. 3714s # * 3714s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalS">"SingleArgSignalS"</link> is received. 3714s # * 3714s # * 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. 3714s # */ 3714s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S] = 3714s # g_signal_new ("single-arg-signal-s", 3714s # G_TYPE_FROM_INTERFACE (iface), 3714s # G_SIGNAL_RUN_LAST, 3714s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_s), 3714s # NULL, 3714s # NULL, 3714s # org_project_signaling_iface_signal_marshal_single_arg_signal_s, 3714s # G_TYPE_NONE, 3714s # 1, G_TYPE_STRING); 3714s # 3714s # /** 3714s # * OrgProjectSignalingIface::single-arg-signal-o: 3714s # * @object: A #OrgProjectSignalingIface. 3714s # * @arg_an_o: Argument. 3714s # * 3714s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalO">"SingleArgSignalO"</link> is received. 3714s # * 3714s # * 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. 3714s # */ 3714s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O] = 3714s # g_signal_new ("single-arg-signal-o", 3714s # G_TYPE_FROM_INTERFACE (iface), 3714s # G_SIGNAL_RUN_LAST, 3714s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_o), 3714s # NULL, 3714s # NULL, 3714s # org_project_signaling_iface_signal_marshal_single_arg_signal_o, 3714s # G_TYPE_NONE, 3714s # 1, G_TYPE_STRING); 3714s # 3714s # /** 3714s # * OrgProjectSignalingIface::single-arg-signal-g: 3714s # * @object: A #OrgProjectSignalingIface. 3714s # * @arg_an_g: Argument. 3714s # * 3714s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalG">"SingleArgSignalG"</link> is received. 3714s # * 3714s # * 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. 3714s # */ 3714s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G] = 3714s # g_signal_new ("single-arg-signal-g", 3714s # G_TYPE_FROM_INTERFACE (iface), 3714s # G_SIGNAL_RUN_LAST, 3714s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_g), 3714s # NULL, 3714s # NULL, 3714s # org_project_signaling_iface_signal_marshal_single_arg_signal_g, 3714s # G_TYPE_NONE, 3714s # 1, G_TYPE_STRING); 3714s # 3714s # /** 3714s # * OrgProjectSignalingIface::single-arg-signal-h: 3714s # * @object: A #OrgProjectSignalingIface. 3714s # * @arg_an_h: Argument. 3714s # * 3714s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalH">"SingleArgSignalH"</link> is received. 3714s # * 3714s # * 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. 3714s # */ 3714s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H] = 3714s # g_signal_new ("single-arg-signal-h", 3714s # G_TYPE_FROM_INTERFACE (iface), 3714s # G_SIGNAL_RUN_LAST, 3714s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_h), 3714s # NULL, 3714s # NULL, 3714s # org_project_signaling_iface_signal_marshal_single_arg_signal_h, 3714s # G_TYPE_NONE, 3714s # 1, G_TYPE_VARIANT); 3714s # 3714s # /** 3714s # * OrgProjectSignalingIface::single-arg-signal-ay: 3714s # * @object: A #OrgProjectSignalingIface. 3714s # * @arg_an_ay: Argument. 3714s # * 3714s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalAY">"SingleArgSignalAY"</link> is received. 3714s # * 3714s # * 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. 3714s # */ 3714s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY] = 3714s # g_signal_new ("single-arg-signal-ay", 3714s # G_TYPE_FROM_INTERFACE (iface), 3714s # G_SIGNAL_RUN_LAST, 3714s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ay), 3714s # NULL, 3714s # NULL, 3714s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay, 3714s # G_TYPE_NONE, 3714s # 1, G_TYPE_STRING); 3714s # 3714s # /** 3714s # * OrgProjectSignalingIface::single-arg-signal-as: 3714s # * @object: A #OrgProjectSignalingIface. 3714s # * @arg_an_as: Argument. 3714s # * 3714s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalAS">"SingleArgSignalAS"</link> is received. 3714s # * 3714s # * 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. 3714s # */ 3714s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS] = 3714s # g_signal_new ("single-arg-signal-as", 3714s # G_TYPE_FROM_INTERFACE (iface), 3714s # G_SIGNAL_RUN_LAST, 3714s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_as), 3714s # NULL, 3714s # NULL, 3714s # org_project_signaling_iface_signal_marshal_single_arg_signal_as, 3714s # G_TYPE_NONE, 3714s # 1, G_TYPE_STRV); 3714s # 3714s # /** 3714s # * OrgProjectSignalingIface::single-arg-signal-ao: 3714s # * @object: A #OrgProjectSignalingIface. 3714s # * @arg_an_ao: Argument. 3714s # * 3714s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalAO">"SingleArgSignalAO"</link> is received. 3714s # * 3714s # * 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. 3714s # */ 3714s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO] = 3714s # g_signal_new ("single-arg-signal-ao", 3714s # G_TYPE_FROM_INTERFACE (iface), 3714s # G_SIGNAL_RUN_LAST, 3714s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ao), 3714s # NULL, 3714s # NULL, 3714s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao, 3714s # G_TYPE_NONE, 3714s # 1, G_TYPE_STRV); 3714s # 3714s # /** 3714s # * OrgProjectSignalingIface::single-arg-signal-aay: 3714s # * @object: A #OrgProjectSignalingIface. 3714s # * @arg_an_aay: Argument. 3714s # * 3714s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalAAY">"SingleArgSignalAAY"</link> is received. 3714s # * 3714s # * 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. 3714s # */ 3714s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY] = 3714s # g_signal_new ("single-arg-signal-aay", 3714s # G_TYPE_FROM_INTERFACE (iface), 3714s # G_SIGNAL_RUN_LAST, 3714s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_aay), 3714s # NULL, 3714s # NULL, 3714s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay, 3714s # G_TYPE_NONE, 3714s # 1, G_TYPE_STRV); 3714s # 3714s # /** 3714s # * OrgProjectSignalingIface::single-arg-signal-asv: 3714s # * @object: A #OrgProjectSignalingIface. 3714s # * @arg_an_asv: Argument. 3714s # * 3714s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalASV">"SingleArgSignalASV"</link> is received. 3714s # * 3714s # * 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. 3714s # */ 3714s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV] = 3714s # g_signal_new ("single-arg-signal-asv", 3714s # G_TYPE_FROM_INTERFACE (iface), 3714s # G_SIGNAL_RUN_LAST, 3714s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_asv), 3714s # NULL, 3714s # NULL, 3714s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv, 3714s # G_TYPE_NONE, 3714s # 1, G_TYPE_VARIANT); 3714s # 3714s # } 3714s # 3714s # /** 3714s # * org_project_signaling_iface_emit_no_arg_signal: 3714s # * @object: A #OrgProjectSignalingIface. 3714s # * 3714s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.NoArgSignal">"NoArgSignal"</link> D-Bus signal. 3714s # */ 3714s # void 3714s # org_project_signaling_iface_emit_no_arg_signal ( 3714s # OrgProjectSignalingIface *object) 3714s # { 3714s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL], 0); 3714s # } 3714s # 3714s # /** 3714s # * org_project_signaling_iface_emit_single_arg_signal_b: 3714s # * @object: A #OrgProjectSignalingIface. 3714s # * @arg_an_b: Argument to pass with the signal. 3714s # * 3714s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalB">"SingleArgSignalB"</link> D-Bus signal. 3714s # */ 3714s # void 3714s # org_project_signaling_iface_emit_single_arg_signal_b ( 3714s # OrgProjectSignalingIface *object, 3714s # gboolean arg_an_b) 3714s # { 3714s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B], 0, arg_an_b); 3714s # } 3714s # 3714s # /** 3714s # * org_project_signaling_iface_emit_single_arg_signal_y: 3714s # * @object: A #OrgProjectSignalingIface. 3714s # * @arg_an_y: Argument to pass with the signal. 3714s # * 3714s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalY">"SingleArgSignalY"</link> D-Bus signal. 3714s # */ 3714s # void 3714s # org_project_signaling_iface_emit_single_arg_signal_y ( 3714s # OrgProjectSignalingIface *object, 3714s # guchar arg_an_y) 3714s # { 3714s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y], 0, arg_an_y); 3714s # } 3714s # 3714s # /** 3714s # * org_project_signaling_iface_emit_single_arg_signal_n: 3714s # * @object: A #OrgProjectSignalingIface. 3714s # * @arg_an_n: Argument to pass with the signal. 3714s # * 3714s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalN">"SingleArgSignalN"</link> D-Bus signal. 3714s # */ 3714s # void 3714s # org_project_signaling_iface_emit_single_arg_signal_n ( 3714s # OrgProjectSignalingIface *object, 3714s # gint16 arg_an_n) 3714s # { 3714s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N], 0, arg_an_n); 3714s # } 3714s # 3714s # /** 3714s # * org_project_signaling_iface_emit_single_arg_signal_q: 3714s # * @object: A #OrgProjectSignalingIface. 3714s # * @arg_an_q: Argument to pass with the signal. 3714s # * 3714s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalQ">"SingleArgSignalQ"</link> D-Bus signal. 3714s # */ 3714s # void 3714s # org_project_signaling_iface_emit_single_arg_signal_q ( 3714s # OrgProjectSignalingIface *object, 3714s # guint16 arg_an_q) 3714s # { 3714s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q], 0, arg_an_q); 3714s # } 3714s # 3714s # /** 3714s # * org_project_signaling_iface_emit_single_arg_signal_i: 3714s # * @object: A #OrgProjectSignalingIface. 3714s # * @arg_an_i: Argument to pass with the signal. 3714s # * 3714s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalI">"SingleArgSignalI"</link> D-Bus signal. 3714s # */ 3714s # void 3714s # org_project_signaling_iface_emit_single_arg_signal_i ( 3714s # OrgProjectSignalingIface *object, 3714s # gint arg_an_i) 3714s # { 3714s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I], 0, arg_an_i); 3714s # } 3714s # 3714s # /** 3714s # * org_project_signaling_iface_emit_single_arg_signal_u: 3714s # * @object: A #OrgProjectSignalingIface. 3714s # * @arg_an_u: Argument to pass with the signal. 3714s # * 3714s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalU">"SingleArgSignalU"</link> D-Bus signal. 3714s # */ 3714s # void 3714s # org_project_signaling_iface_emit_single_arg_signal_u ( 3714s # OrgProjectSignalingIface *object, 3714s # guint arg_an_u) 3714s # { 3714s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U], 0, arg_an_u); 3714s # } 3714s # 3714s # /** 3714s # * org_project_signaling_iface_emit_single_arg_signal_x: 3714s # * @object: A #OrgProjectSignalingIface. 3714s # * @arg_an_x: Argument to pass with the signal. 3714s # * 3714s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalX">"SingleArgSignalX"</link> D-Bus signal. 3714s # */ 3714s # void 3714s # org_project_signaling_iface_emit_single_arg_signal_x ( 3714s # OrgProjectSignalingIface *object, 3714s # gint64 arg_an_x) 3714s # { 3714s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X], 0, arg_an_x); 3714s # } 3714s # 3714s # /** 3714s # * org_project_signaling_iface_emit_single_arg_signal_t: 3714s # * @object: A #OrgProjectSignalingIface. 3714s # * @arg_an_t: Argument to pass with the signal. 3714s # * 3714s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalT">"SingleArgSignalT"</link> D-Bus signal. 3714s # */ 3714s # void 3714s # org_project_signaling_iface_emit_single_arg_signal_t ( 3714s # OrgProjectSignalingIface *object, 3714s # guint64 arg_an_t) 3714s # { 3714s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T], 0, arg_an_t); 3714s # } 3714s # 3714s # /** 3714s # * org_project_signaling_iface_emit_single_arg_signal_d: 3714s # * @object: A #OrgProjectSignalingIface. 3714s # * @arg_an_d: Argument to pass with the signal. 3714s # * 3714s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalD">"SingleArgSignalD"</link> D-Bus signal. 3714s # */ 3714s # void 3714s # org_project_signaling_iface_emit_single_arg_signal_d ( 3714s # OrgProjectSignalingIface *object, 3714s # gdouble arg_an_d) 3714s # { 3714s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D], 0, arg_an_d); 3714s # } 3714s # 3714s # /** 3714s # * org_project_signaling_iface_emit_single_arg_signal_s: 3714s # * @object: A #OrgProjectSignalingIface. 3714s # * @arg_an_s: Argument to pass with the signal. 3714s # * 3714s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalS">"SingleArgSignalS"</link> D-Bus signal. 3714s # */ 3714s # void 3714s # org_project_signaling_iface_emit_single_arg_signal_s ( 3714s # OrgProjectSignalingIface *object, 3714s # const gchar *arg_an_s) 3714s # { 3714s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S], 0, arg_an_s); 3714s # } 3714s # 3714s # /** 3714s # * org_project_signaling_iface_emit_single_arg_signal_o: 3714s # * @object: A #OrgProjectSignalingIface. 3714s # * @arg_an_o: Argument to pass with the signal. 3714s # * 3714s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalO">"SingleArgSignalO"</link> D-Bus signal. 3714s # */ 3714s # void 3714s # org_project_signaling_iface_emit_single_arg_signal_o ( 3714s # OrgProjectSignalingIface *object, 3714s # const gchar *arg_an_o) 3714s # { 3714s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O], 0, arg_an_o); 3714s # } 3714s # 3714s # /** 3714s # * org_project_signaling_iface_emit_single_arg_signal_g: 3714s # * @object: A #OrgProjectSignalingIface. 3714s # * @arg_an_g: Argument to pass with the signal. 3714s # * 3714s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalG">"SingleArgSignalG"</link> D-Bus signal. 3714s # */ 3714s # void 3714s # org_project_signaling_iface_emit_single_arg_signal_g ( 3714s # OrgProjectSignalingIface *object, 3714s # const gchar *arg_an_g) 3714s # { 3714s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G], 0, arg_an_g); 3714s # } 3714s # 3714s # /** 3714s # * org_project_signaling_iface_emit_single_arg_signal_h: 3714s # * @object: A #OrgProjectSignalingIface. 3714s # * @arg_an_h: Argument to pass with the signal. 3714s # * 3714s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalH">"SingleArgSignalH"</link> D-Bus signal. 3714s # */ 3714s # void 3714s # org_project_signaling_iface_emit_single_arg_signal_h ( 3714s # OrgProjectSignalingIface *object, 3714s # GVariant *arg_an_h) 3714s # { 3714s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H], 0, arg_an_h); 3714s # } 3714s # 3714s # /** 3714s # * org_project_signaling_iface_emit_single_arg_signal_ay: 3714s # * @object: A #OrgProjectSignalingIface. 3714s # * @arg_an_ay: Argument to pass with the signal. 3714s # * 3714s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalAY">"SingleArgSignalAY"</link> D-Bus signal. 3714s # */ 3714s # void 3714s # org_project_signaling_iface_emit_single_arg_signal_ay ( 3714s # OrgProjectSignalingIface *object, 3714s # const gchar *arg_an_ay) 3714s # { 3714s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY], 0, arg_an_ay); 3714s # } 3714s # 3714s # /** 3714s # * org_project_signaling_iface_emit_single_arg_signal_as: 3714s # * @object: A #OrgProjectSignalingIface. 3714s # * @arg_an_as: Argument to pass with the signal. 3714s # * 3714s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalAS">"SingleArgSignalAS"</link> D-Bus signal. 3714s # */ 3714s # void 3714s # org_project_signaling_iface_emit_single_arg_signal_as ( 3714s # OrgProjectSignalingIface *object, 3714s # const gchar *const *arg_an_as) 3714s # { 3714s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS], 0, arg_an_as); 3714s # } 3714s # 3714s # /** 3714s # * org_project_signaling_iface_emit_single_arg_signal_ao: 3714s # * @object: A #OrgProjectSignalingIface. 3714s # * @arg_an_ao: Argument to pass with the signal. 3714s # * 3714s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalAO">"SingleArgSignalAO"</link> D-Bus signal. 3714s # */ 3714s # void 3714s # org_project_signaling_iface_emit_single_arg_signal_ao ( 3714s # OrgProjectSignalingIface *object, 3714s # const gchar *const *arg_an_ao) 3714s # { 3714s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO], 0, arg_an_ao); 3714s # } 3714s # 3714s # /** 3714s # * org_project_signaling_iface_emit_single_arg_signal_aay: 3714s # * @object: A #OrgProjectSignalingIface. 3714s # * @arg_an_aay: Argument to pass with the signal. 3714s # * 3714s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalAAY">"SingleArgSignalAAY"</link> D-Bus signal. 3714s # */ 3714s # void 3714s # org_project_signaling_iface_emit_single_arg_signal_aay ( 3714s # OrgProjectSignalingIface *object, 3714s # const gchar *const *arg_an_aay) 3714s # { 3714s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY], 0, arg_an_aay); 3714s # } 3714s # 3714s # /** 3714s # * org_project_signaling_iface_emit_single_arg_signal_asv: 3714s # * @object: A #OrgProjectSignalingIface. 3714s # * @arg_an_asv: Argument to pass with the signal. 3714s # * 3714s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalASV">"SingleArgSignalASV"</link> D-Bus signal. 3714s # */ 3714s # void 3714s # org_project_signaling_iface_emit_single_arg_signal_asv ( 3714s # OrgProjectSignalingIface *object, 3714s # GVariant *arg_an_asv) 3714s # { 3714s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV], 0, arg_an_asv); 3714s # } 3714s # 3714s # /* ------------------------------------------------------------------------ */ 3714s # 3714s # /** 3714s # * OrgProjectSignalingIfaceProxy: 3714s # * 3714s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 3714s # */ 3714s # 3714s # /** 3714s # * OrgProjectSignalingIfaceProxyClass: 3714s # * @parent_class: The parent class. 3714s # * 3714s # * Class structure for #OrgProjectSignalingIfaceProxy. 3714s # */ 3714s # 3714s # struct _OrgProjectSignalingIfaceProxyPrivate 3714s # { 3714s # GData *qdata; 3714s # }; 3714s # 3714s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 3714s # 3714s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3714s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3714s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 3714s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3714s # 3714s # #else 3714s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3714s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3714s # 3714s # #endif 3714s # static void 3714s # org_project_signaling_iface_proxy_finalize (GObject *object) 3714s # { 3714s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 3714s # g_datalist_clear (&proxy->priv->qdata); 3714s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 3714s # } 3714s # 3714s # static void 3714s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3714s # guint prop_id G_GNUC_UNUSED, 3714s # GValue *value G_GNUC_UNUSED, 3714s # GParamSpec *pspec G_GNUC_UNUSED) 3714s # { 3714s # } 3714s # 3714s # static void 3714s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3714s # guint prop_id G_GNUC_UNUSED, 3714s # const GValue *value G_GNUC_UNUSED, 3714s # GParamSpec *pspec G_GNUC_UNUSED) 3714s # { 3714s # } 3714s # 3714s # static void 3714s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 3714s # const gchar *sender_name G_GNUC_UNUSED, 3714s # const gchar *signal_name, 3714s # GVariant *parameters) 3714s # { 3714s # _ExtendedGDBusSignalInfo *info; 3714s # GVariantIter iter; 3714s # GVariant *child; 3714s # GValue *paramv; 3714s # gsize num_params; 3714s # gsize n; 3714s # guint signal_id; 3714s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 3714s # if (info == NULL) 3714s # return; 3714s # num_params = g_variant_n_children (parameters); 3714s # paramv = g_new0 (GValue, num_params + 1); 3714s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3714s # g_value_set_object (¶mv[0], proxy); 3714s # g_variant_iter_init (&iter, parameters); 3714s # n = 1; 3714s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3714s # { 3714s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3714s # if (arg_info->use_gvariant) 3714s # { 3714s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3714s # g_value_set_variant (¶mv[n], child); 3714s # n++; 3714s # } 3714s # else 3714s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3714s # g_variant_unref (child); 3714s # } 3714s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3714s # g_signal_emitv (paramv, signal_id, 0, NULL); 3714s # for (n = 0; n < num_params + 1; n++) 3714s # g_value_unset (¶mv[n]); 3714s # g_free (paramv); 3714s # } 3714s # 3714s # static void 3714s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 3714s # GVariant *changed_properties, 3714s # const gchar *const *invalidated_properties) 3714s # { 3714s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 3714s # guint n; 3714s # const gchar *key; 3714s # GVariantIter *iter; 3714s # _ExtendedGDBusPropertyInfo *info; 3714s # g_variant_get (changed_properties, "a{sv}", &iter); 3714s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3714s # { 3714s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 3714s # g_datalist_remove_data (&proxy->priv->qdata, key); 3714s # if (info != NULL) 3714s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3714s # } 3714s # g_variant_iter_free (iter); 3714s # for (n = 0; invalidated_properties[n] != NULL; n++) 3714s # { 3714s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 3714s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3714s # if (info != NULL) 3714s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3714s # } 3714s # } 3714s # 3714s # static void 3714s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 3714s # { 3714s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3714s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 3714s # #else 3714s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 3714s # #endif 3714s # 3714s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 3714s # } 3714s # 3714s # static void 3714s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 3714s # { 3714s # GObjectClass *gobject_class; 3714s # GDBusProxyClass *proxy_class; 3714s # 3714s # gobject_class = G_OBJECT_CLASS (klass); 3714s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 3714s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 3714s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 3714s # 3714s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3714s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 3714s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 3714s # 3714s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3714s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 3714s # #endif 3714s # } 3714s # 3714s # static void 3714s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 3714s # { 3714s # } 3714s # 3714s # /** 3714s # * org_project_signaling_iface_proxy_new: 3714s # * @connection: A #GDBusConnection. 3714s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3714s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3714s # * @object_path: An object path. 3714s # * @cancellable: (nullable): A #GCancellable or %NULL. 3714s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3714s # * @user_data: User data to pass to @callback. 3714s # * 3714s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new() for more details. 3714s # * 3714s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3714s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 3714s # * 3714s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3714s # */ 3714s # void 3714s # org_project_signaling_iface_proxy_new ( 3714s # GDBusConnection *connection, 3714s # GDBusProxyFlags flags, 3714s # const gchar *name, 3714s # const gchar *object_path, 3714s # GCancellable *cancellable, 3714s # GAsyncReadyCallback callback, 3714s # gpointer user_data) 3714s # { 3714s # 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); 3714s # } 3714s # 3714s # /** 3714s # * org_project_signaling_iface_proxy_new_finish: 3714s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 3714s # * @error: Return location for error or %NULL 3714s # * 3714s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 3714s # * 3714s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3714s # */ 3714s # OrgProjectSignalingIface * 3714s # org_project_signaling_iface_proxy_new_finish ( 3714s # GAsyncResult *res, 3714s # GError **error) 3714s # { 3714s # GObject *ret; 3714s # GObject *source_object; 3714s # source_object = g_async_result_get_source_object (res); 3714s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3714s # g_object_unref (source_object); 3714s # if (ret != NULL) 3714s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3714s # else 3714s # return NULL; 3714s # } 3714s # 3714s # /** 3714s # * org_project_signaling_iface_proxy_new_sync: 3714s # * @connection: A #GDBusConnection. 3714s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3714s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3714s # * @object_path: An object path. 3714s # * @cancellable: (nullable): A #GCancellable or %NULL. 3714s # * @error: Return location for error or %NULL 3714s # * 3714s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new_sync() for more details. 3714s # * 3714s # * The calling thread is blocked until a reply is received. 3714s # * 3714s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 3714s # * 3714s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3714s # */ 3714s # OrgProjectSignalingIface * 3714s # org_project_signaling_iface_proxy_new_sync ( 3714s # GDBusConnection *connection, 3714s # GDBusProxyFlags flags, 3714s # const gchar *name, 3714s # const gchar *object_path, 3714s # GCancellable *cancellable, 3714s # GError **error) 3714s # { 3714s # GInitable *ret; 3714s # 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); 3714s # if (ret != NULL) 3714s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3714s # else 3714s # return NULL; 3714s # } 3714s # 3714s # 3714s # /** 3714s # * org_project_signaling_iface_proxy_new_for_bus: 3714s # * @bus_type: A #GBusType. 3714s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3714s # * @name: A bus name (well-known or unique). 3714s # * @object_path: An object path. 3714s # * @cancellable: (nullable): A #GCancellable or %NULL. 3714s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3714s # * @user_data: User data to pass to @callback. 3714s # * 3714s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3714s # * 3714s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3714s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 3714s # * 3714s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3714s # */ 3714s # void 3714s # org_project_signaling_iface_proxy_new_for_bus ( 3714s # GBusType bus_type, 3714s # GDBusProxyFlags flags, 3714s # const gchar *name, 3714s # const gchar *object_path, 3714s # GCancellable *cancellable, 3714s # GAsyncReadyCallback callback, 3714s # gpointer user_data) 3714s # { 3714s # 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); 3714s # } 3714s # 3714s # /** 3714s # * org_project_signaling_iface_proxy_new_for_bus_finish: 3714s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 3714s # * @error: Return location for error or %NULL 3714s # * 3714s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 3714s # * 3714s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3714s # */ 3714s # OrgProjectSignalingIface * 3714s # org_project_signaling_iface_proxy_new_for_bus_finish ( 3714s # GAsyncResult *res, 3714s # GError **error) 3714s # { 3714s # GObject *ret; 3714s # GObject *source_object; 3714s # source_object = g_async_result_get_source_object (res); 3714s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3714s # g_object_unref (source_object); 3714s # if (ret != NULL) 3714s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3714s # else 3714s # return NULL; 3714s # } 3714s # 3714s # /** 3714s # * org_project_signaling_iface_proxy_new_for_bus_sync: 3714s # * @bus_type: A #GBusType. 3714s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3714s # * @name: A bus name (well-known or unique). 3714s # * @object_path: An object path. 3714s # * @cancellable: (nullable): A #GCancellable or %NULL. 3714s # * @error: Return location for error or %NULL 3714s # * 3714s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3714s # * 3714s # * The calling thread is blocked until a reply is received. 3714s # * 3714s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 3714s # * 3714s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3714s # */ 3714s # OrgProjectSignalingIface * 3714s # org_project_signaling_iface_proxy_new_for_bus_sync ( 3714s # GBusType bus_type, 3714s # GDBusProxyFlags flags, 3714s # const gchar *name, 3714s # const gchar *object_path, 3714s # GCancellable *cancellable, 3714s # GError **error) 3714s # { 3714s # GInitable *ret; 3714s # 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); 3714s # if (ret != NULL) 3714s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3714s # else 3714s # return NULL; 3714s # } 3714s # 3714s # 3714s # /* ------------------------------------------------------------------------ */ 3714s # 3714s # /** 3714s # * OrgProjectSignalingIfaceSkeleton: 3714s # * 3714s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3714s # */ 3714s # 3714s # /** 3714s # * OrgProjectSignalingIfaceSkeletonClass: 3714s # * @parent_class: The parent class. 3714s # * 3714s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 3714s # */ 3714s # 3714s # struct _OrgProjectSignalingIfaceSkeletonPrivate 3714s # { 3714s # GValue *properties; 3714s # GList *changed_properties; 3714s # GSource *changed_properties_idle_source; 3714s # GMainContext *context; 3714s # GMutex lock; 3714s # }; 3714s # 3714s # static void 3714s # _org_project_signaling_iface_skeleton_handle_method_call ( 3714s # GDBusConnection *connection G_GNUC_UNUSED, 3714s # const gchar *sender G_GNUC_UNUSED, 3714s # const gchar *object_path G_GNUC_UNUSED, 3714s # const gchar *interface_name, 3714s # const gchar *method_name, 3714s # GVariant *parameters, 3714s # GDBusMethodInvocation *invocation, 3714s # gpointer user_data) 3714s # { 3714s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3714s # _ExtendedGDBusMethodInfo *info; 3714s # GVariantIter iter; 3714s # GVariant *child; 3714s # GValue *paramv; 3714s # gsize num_params; 3714s # guint num_extra; 3714s # gsize n; 3714s # guint signal_id; 3714s # GValue return_value = G_VALUE_INIT; 3714s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3714s # g_assert (info != NULL); 3714s # num_params = g_variant_n_children (parameters); 3714s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3714s # n = 0; 3714s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3714s # g_value_set_object (¶mv[n++], skeleton); 3714s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3714s # g_value_set_object (¶mv[n++], invocation); 3714s # if (info->pass_fdlist) 3714s # { 3714s # #ifdef G_OS_UNIX 3714s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3714s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3714s # #else 3714s # g_assert_not_reached (); 3714s # #endif 3714s # } 3714s # g_variant_iter_init (&iter, parameters); 3714s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3714s # { 3714s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3714s # if (arg_info->use_gvariant) 3714s # { 3714s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3714s # g_value_set_variant (¶mv[n], child); 3714s # n++; 3714s # } 3714s # else 3714s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3714s # g_variant_unref (child); 3714s # } 3714s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3714s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3714s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3714s # if (!g_value_get_boolean (&return_value)) 3714s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3714s # g_value_unset (&return_value); 3714s # for (n = 0; n < num_params + num_extra; n++) 3714s # g_value_unset (¶mv[n]); 3714s # g_free (paramv); 3714s # } 3714s # 3714s # static GVariant * 3714s # _org_project_signaling_iface_skeleton_handle_get_property ( 3714s # GDBusConnection *connection G_GNUC_UNUSED, 3714s # const gchar *sender G_GNUC_UNUSED, 3714s # const gchar *object_path G_GNUC_UNUSED, 3714s # const gchar *interface_name G_GNUC_UNUSED, 3714s # const gchar *property_name, 3714s # GError **error, 3714s # gpointer user_data) 3714s # { 3714s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3714s # GValue value = G_VALUE_INIT; 3714s # GParamSpec *pspec; 3714s # _ExtendedGDBusPropertyInfo *info; 3714s # GVariant *ret; 3714s # ret = NULL; 3714s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3714s # g_assert (info != NULL); 3714s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3714s # if (pspec == NULL) 3714s # { 3714s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3714s # } 3714s # else 3714s # { 3714s # g_value_init (&value, pspec->value_type); 3714s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3714s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3714s # g_value_unset (&value); 3714s # } 3714s # return ret; 3714s # } 3714s # 3714s # static gboolean 3714s # _org_project_signaling_iface_skeleton_handle_set_property ( 3714s # GDBusConnection *connection G_GNUC_UNUSED, 3714s # const gchar *sender G_GNUC_UNUSED, 3714s # const gchar *object_path G_GNUC_UNUSED, 3714s # const gchar *interface_name G_GNUC_UNUSED, 3714s # const gchar *property_name, 3714s # GVariant *variant, 3714s # GError **error, 3714s # gpointer user_data) 3714s # { 3714s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3714s # GValue value = G_VALUE_INIT; 3714s # GParamSpec *pspec; 3714s # _ExtendedGDBusPropertyInfo *info; 3714s # gboolean ret; 3714s # ret = FALSE; 3714s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3714s # g_assert (info != NULL); 3714s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3714s # if (pspec == NULL) 3714s # { 3714s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3714s # } 3714s # else 3714s # { 3714s # if (info->use_gvariant) 3714s # g_value_set_variant (&value, variant); 3714s # else 3714s # g_dbus_gvariant_to_gvalue (variant, &value); 3714s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3714s # g_value_unset (&value); 3714s # ret = TRUE; 3714s # } 3714s # return ret; 3714s # } 3714s # 3714s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 3714s # { 3714s # _org_project_signaling_iface_skeleton_handle_method_call, 3714s # _org_project_signaling_iface_skeleton_handle_get_property, 3714s # _org_project_signaling_iface_skeleton_handle_set_property, 3714s # {NULL} 3714s # }; 3714s # 3714s # static GDBusInterfaceInfo * 3714s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3714s # { 3714s # return org_project_signaling_iface_interface_info (); 3714s # } 3714s # 3714s # static GDBusInterfaceVTable * 3714s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3714s # { 3714s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 3714s # } 3714s # 3714s # static GVariant * 3714s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3714s # { 3714s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 3714s # 3714s # GVariantBuilder builder; 3714s # guint n; 3714s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3714s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3714s # #else 3714s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3714s # #endif 3714s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 3714s # goto out; 3714s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 3714s # { 3714s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 3714s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3714s # { 3714s # GVariant *value; 3714s # 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); 3714s # if (value != NULL) 3714s # { 3714s # g_variant_take_ref (value); 3714s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3714s # g_variant_unref (value); 3714s # } 3714s # } 3714s # } 3714s # out: 3714s # return g_variant_builder_end (&builder); 3714s # } 3714s # 3714s # static void 3714s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3714s # { 3714s # } 3714s # 3714s # static void 3714s # _org_project_signaling_iface_on_signal_no_arg_signal ( 3714s # OrgProjectSignalingIface *object) 3714s # { 3714s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3714s # 3714s # GList *connections, *l; 3714s # GVariant *signal_variant; 3714s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3714s # 3714s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 3714s # for (l = connections; l != NULL; l = l->next) 3714s # { 3714s # GDBusConnection *connection = l->data; 3714s # g_dbus_connection_emit_signal (connection, 3714s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "NoArgSignal", 3714s # signal_variant, NULL); 3714s # } 3714s # g_variant_unref (signal_variant); 3714s # g_list_free_full (connections, g_object_unref); 3714s # } 3714s # 3714s # static void 3714s # _org_project_signaling_iface_on_signal_single_arg_signal_b ( 3714s # OrgProjectSignalingIface *object, 3714s # gboolean arg_an_b) 3714s # { 3714s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3714s # 3714s # GList *connections, *l; 3714s # GVariant *signal_variant; 3714s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3714s # 3714s # signal_variant = g_variant_ref_sink (g_variant_new ("(b)", 3714s # arg_an_b)); 3714s # for (l = connections; l != NULL; l = l->next) 3714s # { 3714s # GDBusConnection *connection = l->data; 3714s # g_dbus_connection_emit_signal (connection, 3714s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalB", 3714s # signal_variant, NULL); 3714s # } 3714s # g_variant_unref (signal_variant); 3714s # g_list_free_full (connections, g_object_unref); 3714s # } 3714s # 3714s # static void 3714s # _org_project_signaling_iface_on_signal_single_arg_signal_y ( 3714s # OrgProjectSignalingIface *object, 3714s # guchar arg_an_y) 3714s # { 3714s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3714s # 3714s # GList *connections, *l; 3714s # GVariant *signal_variant; 3714s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3714s # 3714s # signal_variant = g_variant_ref_sink (g_variant_new ("(y)", 3714s # arg_an_y)); 3714s # for (l = connections; l != NULL; l = l->next) 3714s # { 3714s # GDBusConnection *connection = l->data; 3714s # g_dbus_connection_emit_signal (connection, 3714s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalY", 3714s # signal_variant, NULL); 3714s # } 3714s # g_variant_unref (signal_variant); 3714s # g_list_free_full (connections, g_object_unref); 3714s # } 3714s # 3714s # static void 3714s # _org_project_signaling_iface_on_signal_single_arg_signal_n ( 3714s # OrgProjectSignalingIface *object, 3714s # gint16 arg_an_n) 3714s # { 3714s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3714s # 3714s # GList *connections, *l; 3714s # GVariant *signal_variant; 3714s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3714s # 3714s # signal_variant = g_variant_ref_sink (g_variant_new ("(n)", 3714s # arg_an_n)); 3714s # for (l = connections; l != NULL; l = l->next) 3714s # { 3714s # GDBusConnection *connection = l->data; 3714s # g_dbus_connection_emit_signal (connection, 3714s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalN", 3714s # signal_variant, NULL); 3714s # } 3714s # g_variant_unref (signal_variant); 3714s # g_list_free_full (connections, g_object_unref); 3714s # } 3714s # 3714s # static void 3714s # _org_project_signaling_iface_on_signal_single_arg_signal_q ( 3714s # OrgProjectSignalingIface *object, 3714s # guint16 arg_an_q) 3714s # { 3714s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3714s # 3714s # GList *connections, *l; 3714s # GVariant *signal_variant; 3714s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3714s # 3714s # signal_variant = g_variant_ref_sink (g_variant_new ("(q)", 3714s # arg_an_q)); 3714s # for (l = connections; l != NULL; l = l->next) 3714s # { 3714s # GDBusConnection *connection = l->data; 3714s # g_dbus_connection_emit_signal (connection, 3714s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalQ", 3714s # signal_variant, NULL); 3714s # } 3714s # g_variant_unref (signal_variant); 3714s # g_list_free_full (connections, g_object_unref); 3714s # } 3714s # 3714s # static void 3714s # _org_project_signaling_iface_on_signal_single_arg_signal_i ( 3714s # OrgProjectSignalingIface *object, 3714s # gint arg_an_i) 3714s # { 3714s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3714s # 3714s # GList *connections, *l; 3714s # GVariant *signal_variant; 3714s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3714s # 3714s # signal_variant = g_variant_ref_sink (g_variant_new ("(i)", 3714s # arg_an_i)); 3714s # for (l = connections; l != NULL; l = l->next) 3714s # { 3714s # GDBusConnection *connection = l->data; 3714s # g_dbus_connection_emit_signal (connection, 3714s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalI", 3714s # signal_variant, NULL); 3714s # } 3714s # g_variant_unref (signal_variant); 3714s # g_list_free_full (connections, g_object_unref); 3714s # } 3714s # 3714s # static void 3714s # _org_project_signaling_iface_on_signal_single_arg_signal_u ( 3714s # OrgProjectSignalingIface *object, 3714s # guint arg_an_u) 3714s # { 3714s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3714s # 3714s # GList *connections, *l; 3714s # GVariant *signal_variant; 3714s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3714s # 3714s # signal_variant = g_variant_ref_sink (g_variant_new ("(u)", 3714s # arg_an_u)); 3714s # for (l = connections; l != NULL; l = l->next) 3714s # { 3714s # GDBusConnection *connection = l->data; 3714s # g_dbus_connection_emit_signal (connection, 3714s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalU", 3714s # signal_variant, NULL); 3714s # } 3714s # g_variant_unref (signal_variant); 3714s # g_list_free_full (connections, g_object_unref); 3714s # } 3714s # 3714s # static void 3714s # _org_project_signaling_iface_on_signal_single_arg_signal_x ( 3714s # OrgProjectSignalingIface *object, 3714s # gint64 arg_an_x) 3714s # { 3714s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3714s # 3714s # GList *connections, *l; 3714s # GVariant *signal_variant; 3714s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3714s # 3714s # signal_variant = g_variant_ref_sink (g_variant_new ("(x)", 3714s # arg_an_x)); 3714s # for (l = connections; l != NULL; l = l->next) 3714s # { 3714s # GDBusConnection *connection = l->data; 3714s # g_dbus_connection_emit_signal (connection, 3714s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalX", 3714s # signal_variant, NULL); 3714s # } 3714s # g_variant_unref (signal_variant); 3714s # g_list_free_full (connections, g_object_unref); 3714s # } 3714s # 3714s # static void 3714s # _org_project_signaling_iface_on_signal_single_arg_signal_t ( 3714s # OrgProjectSignalingIface *object, 3714s # guint64 arg_an_t) 3714s # { 3714s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3714s # 3714s # GList *connections, *l; 3714s # GVariant *signal_variant; 3714s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3714s # 3714s # signal_variant = g_variant_ref_sink (g_variant_new ("(t)", 3714s # arg_an_t)); 3714s # for (l = connections; l != NULL; l = l->next) 3714s # { 3714s # GDBusConnection *connection = l->data; 3714s # g_dbus_connection_emit_signal (connection, 3714s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalT", 3714s # signal_variant, NULL); 3714s # } 3714s # g_variant_unref (signal_variant); 3714s # g_list_free_full (connections, g_object_unref); 3714s # } 3714s # 3714s # static void 3714s # _org_project_signaling_iface_on_signal_single_arg_signal_d ( 3714s # OrgProjectSignalingIface *object, 3714s # gdouble arg_an_d) 3714s # { 3714s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3714s # 3714s # GList *connections, *l; 3714s # GVariant *signal_variant; 3714s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3714s # 3714s # signal_variant = g_variant_ref_sink (g_variant_new ("(d)", 3714s # arg_an_d)); 3714s # for (l = connections; l != NULL; l = l->next) 3714s # { 3714s # GDBusConnection *connection = l->data; 3714s # g_dbus_connection_emit_signal (connection, 3714s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalD", 3714s # signal_variant, NULL); 3714s # } 3714s # g_variant_unref (signal_variant); 3714s # g_list_free_full (connections, g_object_unref); 3714s # } 3714s # 3714s # static void 3714s # _org_project_signaling_iface_on_signal_single_arg_signal_s ( 3714s # OrgProjectSignalingIface *object, 3714s # const gchar *arg_an_s) 3714s # { 3714s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3714s # 3714s # GList *connections, *l; 3714s # GVariant *signal_variant; 3714s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3714s # 3714s # signal_variant = g_variant_ref_sink (g_variant_new ("(s)", 3714s # arg_an_s)); 3714s # for (l = connections; l != NULL; l = l->next) 3714s # { 3714s # GDBusConnection *connection = l->data; 3714s # g_dbus_connection_emit_signal (connection, 3714s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalS", 3714s # signal_variant, NULL); 3714s # } 3714s # g_variant_unref (signal_variant); 3714s # g_list_free_full (connections, g_object_unref); 3714s # } 3714s # 3714s # static void 3714s # _org_project_signaling_iface_on_signal_single_arg_signal_o ( 3714s # OrgProjectSignalingIface *object, 3714s # const gchar *arg_an_o) 3714s # { 3714s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3714s # 3714s # GList *connections, *l; 3714s # GVariant *signal_variant; 3714s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3714s # 3714s # signal_variant = g_variant_ref_sink (g_variant_new ("(o)", 3714s # arg_an_o)); 3714s # for (l = connections; l != NULL; l = l->next) 3714s # { 3714s # GDBusConnection *connection = l->data; 3714s # g_dbus_connection_emit_signal (connection, 3714s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalO", 3714s # signal_variant, NULL); 3714s # } 3714s # g_variant_unref (signal_variant); 3714s # g_list_free_full (connections, g_object_unref); 3714s # } 3714s # 3714s # static void 3714s # _org_project_signaling_iface_on_signal_single_arg_signal_g ( 3714s # OrgProjectSignalingIface *object, 3714s # const gchar *arg_an_g) 3714s # { 3714s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3714s # 3714s # GList *connections, *l; 3714s # GVariant *signal_variant; 3714s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3714s # 3714s # signal_variant = g_variant_ref_sink (g_variant_new ("(g)", 3714s # arg_an_g)); 3714s # for (l = connections; l != NULL; l = l->next) 3714s # { 3714s # GDBusConnection *connection = l->data; 3714s # g_dbus_connection_emit_signal (connection, 3714s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalG", 3714s # signal_variant, NULL); 3714s # } 3714s # g_variant_unref (signal_variant); 3714s # g_list_free_full (connections, g_object_unref); 3714s # } 3714s # 3714s # static void 3714s # _org_project_signaling_iface_on_signal_single_arg_signal_h ( 3714s # OrgProjectSignalingIface *object, 3714s # GVariant *arg_an_h) 3714s # { 3714s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3714s # 3714s # GList *connections, *l; 3714s # GVariant *signal_variant; 3714s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3714s # 3714s # signal_variant = g_variant_ref_sink (g_variant_new ("(@h)", 3714s # arg_an_h)); 3714s # for (l = connections; l != NULL; l = l->next) 3714s # { 3714s # GDBusConnection *connection = l->data; 3714s # g_dbus_connection_emit_signal (connection, 3714s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalH", 3714s # signal_variant, NULL); 3714s # } 3714s # g_variant_unref (signal_variant); 3714s # g_list_free_full (connections, g_object_unref); 3714s # } 3714s # 3714s # static void 3714s # _org_project_signaling_iface_on_signal_single_arg_signal_ay ( 3714s # OrgProjectSignalingIface *object, 3714s # const gchar *arg_an_ay) 3714s # { 3714s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3714s # 3714s # GList *connections, *l; 3714s # GVariant *signal_variant; 3714s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3714s # 3714s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ay)", 3714s # arg_an_ay)); 3714s # for (l = connections; l != NULL; l = l->next) 3714s # { 3714s # GDBusConnection *connection = l->data; 3714s # g_dbus_connection_emit_signal (connection, 3714s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAY", 3714s # signal_variant, NULL); 3714s # } 3714s # g_variant_unref (signal_variant); 3714s # g_list_free_full (connections, g_object_unref); 3714s # } 3714s # 3714s # static void 3714s # _org_project_signaling_iface_on_signal_single_arg_signal_as ( 3714s # OrgProjectSignalingIface *object, 3714s # const gchar *const *arg_an_as) 3714s # { 3714s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3714s # 3714s # GList *connections, *l; 3714s # GVariant *signal_variant; 3714s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3714s # 3714s # signal_variant = g_variant_ref_sink (g_variant_new ("(^as)", 3714s # arg_an_as)); 3714s # for (l = connections; l != NULL; l = l->next) 3714s # { 3714s # GDBusConnection *connection = l->data; 3714s # g_dbus_connection_emit_signal (connection, 3714s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAS", 3714s # signal_variant, NULL); 3714s # } 3714s # g_variant_unref (signal_variant); 3714s # g_list_free_full (connections, g_object_unref); 3714s # } 3714s # 3714s # static void 3714s # _org_project_signaling_iface_on_signal_single_arg_signal_ao ( 3714s # OrgProjectSignalingIface *object, 3714s # const gchar *const *arg_an_ao) 3714s # { 3714s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3714s # 3714s # GList *connections, *l; 3714s # GVariant *signal_variant; 3714s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3714s # 3714s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ao)", 3714s # arg_an_ao)); 3714s # for (l = connections; l != NULL; l = l->next) 3714s # { 3714s # GDBusConnection *connection = l->data; 3714s # g_dbus_connection_emit_signal (connection, 3714s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAO", 3714s # signal_variant, NULL); 3714s # } 3714s # g_variant_unref (signal_variant); 3714s # g_list_free_full (connections, g_object_unref); 3714s # } 3714s # 3714s # static void 3714s # _org_project_signaling_iface_on_signal_single_arg_signal_aay ( 3714s # OrgProjectSignalingIface *object, 3714s # const gchar *const *arg_an_aay) 3714s # { 3714s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3714s # 3714s # GList *connections, *l; 3714s # GVariant *signal_variant; 3714s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3714s # 3714s # signal_variant = g_variant_ref_sink (g_variant_new ("(^aay)", 3714s # arg_an_aay)); 3714s # for (l = connections; l != NULL; l = l->next) 3714s # { 3714s # GDBusConnection *connection = l->data; 3714s # g_dbus_connection_emit_signal (connection, 3714s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAAY", 3714s # signal_variant, NULL); 3714s # } 3714s # g_variant_unref (signal_variant); 3714s # g_list_free_full (connections, g_object_unref); 3714s # } 3714s # 3714s # static void 3714s # _org_project_signaling_iface_on_signal_single_arg_signal_asv ( 3714s # OrgProjectSignalingIface *object, 3714s # GVariant *arg_an_asv) 3714s # { 3714s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3714s # 3714s # GList *connections, *l; 3714s # GVariant *signal_variant; 3714s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3714s # 3714s # signal_variant = g_variant_ref_sink (g_variant_new ("(@a{sv})", 3714s # arg_an_asv)); 3714s # for (l = connections; l != NULL; l = l->next) 3714s # { 3714s # GDBusConnection *connection = l->data; 3714s # g_dbus_connection_emit_signal (connection, 3714s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalASV", 3714s # signal_variant, NULL); 3714s # } 3714s # g_variant_unref (signal_variant); 3714s # g_list_free_full (connections, g_object_unref); 3714s # } 3714s # 3714s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 3714s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3714s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3714s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 3714s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3714s # 3714s # #else 3714s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3714s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3714s # 3714s # #endif 3714s # static void 3714s # org_project_signaling_iface_skeleton_finalize (GObject *object) 3714s # { 3714s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3714s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3714s # if (skeleton->priv->changed_properties_idle_source != NULL) 3714s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3714s # g_main_context_unref (skeleton->priv->context); 3714s # g_mutex_clear (&skeleton->priv->lock); 3714s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 3714s # } 3714s # 3714s # static void 3714s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 3714s # { 3714s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3714s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 3714s # #else 3714s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 3714s # #endif 3714s # 3714s # g_mutex_init (&skeleton->priv->lock); 3714s # skeleton->priv->context = g_main_context_ref_thread_default (); 3714s # } 3714s # 3714s # static void 3714s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 3714s # { 3714s # GObjectClass *gobject_class; 3714s # GDBusInterfaceSkeletonClass *skeleton_class; 3714s # 3714s # gobject_class = G_OBJECT_CLASS (klass); 3714s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 3714s # 3714s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3714s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 3714s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 3714s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 3714s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 3714s # 3714s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3714s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 3714s # #endif 3714s # } 3714s # 3714s # static void 3714s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 3714s # { 3714s # iface->no_arg_signal = _org_project_signaling_iface_on_signal_no_arg_signal; 3714s # iface->single_arg_signal_b = _org_project_signaling_iface_on_signal_single_arg_signal_b; 3714s # iface->single_arg_signal_y = _org_project_signaling_iface_on_signal_single_arg_signal_y; 3714s # iface->single_arg_signal_n = _org_project_signaling_iface_on_signal_single_arg_signal_n; 3714s # iface->single_arg_signal_q = _org_project_signaling_iface_on_signal_single_arg_signal_q; 3714s # iface->single_arg_signal_i = _org_project_signaling_iface_on_signal_single_arg_signal_i; 3714s # iface->single_arg_signal_u = _org_project_signaling_iface_on_signal_single_arg_signal_u; 3714s # iface->single_arg_signal_x = _org_project_signaling_iface_on_signal_single_arg_signal_x; 3714s # iface->single_arg_signal_t = _org_project_signaling_iface_on_signal_single_arg_signal_t; 3714s # iface->single_arg_signal_d = _org_project_signaling_iface_on_signal_single_arg_signal_d; 3714s # iface->single_arg_signal_s = _org_project_signaling_iface_on_signal_single_arg_signal_s; 3714s # iface->single_arg_signal_o = _org_project_signaling_iface_on_signal_single_arg_signal_o; 3714s # iface->single_arg_signal_g = _org_project_signaling_iface_on_signal_single_arg_signal_g; 3714s # iface->single_arg_signal_h = _org_project_signaling_iface_on_signal_single_arg_signal_h; 3714s # iface->single_arg_signal_ay = _org_project_signaling_iface_on_signal_single_arg_signal_ay; 3714s # iface->single_arg_signal_as = _org_project_signaling_iface_on_signal_single_arg_signal_as; 3714s # iface->single_arg_signal_ao = _org_project_signaling_iface_on_signal_single_arg_signal_ao; 3714s # iface->single_arg_signal_aay = _org_project_signaling_iface_on_signal_single_arg_signal_aay; 3714s # iface->single_arg_signal_asv = _org_project_signaling_iface_on_signal_single_arg_signal_asv; 3714s # } 3714s # 3714s # /** 3714s # * org_project_signaling_iface_skeleton_new: 3714s # * 3714s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3714s # * 3714s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 3714s # */ 3714s # OrgProjectSignalingIface * 3714s # org_project_signaling_iface_skeleton_new (void) 3714s # { 3714s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 3714s # } 3714s # Error: 3715s ok 21 __main__.TestCodegen.test_generate_signal_id_simple_signal 3715s # gdbus-codegen: /usr/bin/gdbus-codegen 3715s # tmpdir: /tmp/tmpl4s3i4ro 3715s # /tmp/tmpl4s3i4ro/tmphprmtm8d.xml: 3715s # <node> 3715s # <interface name="org.project.UsefulInterface"> 3715s # <signal name="SimpleSignal"/> 3715s # </interface> 3715s # <interface name="org.project.OtherIface"> 3715s # <signal name="SimpleSignal"/> 3715s # </interface> 3715s # </node> 3715s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpl4s3i4ro/tmphprmtm8d.xml', '--output', '-', '--body'] 3715s # Return code: 0 3715s # Output: 3715s # /* 3715s # * This file is generated by gdbus-codegen, do not modify it. 3715s # * 3715s # * The license of this code is the same as for the D-Bus interface description 3715s # * it was derived from. Note that it links to GLib, so must comply with the 3715s # * LGPL linking clauses. 3715s # */ 3715s # 3715s # #ifdef HAVE_CONFIG_H 3715s # # include "config.h" 3715s # #endif 3715s # 3715s # #include <string.h> 3715s # #ifdef G_OS_UNIX 3715s # # include <gio/gunixfdlist.h> 3715s # #endif 3715s # 3715s # #ifdef G_ENABLE_DEBUG 3715s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3715s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3715s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3715s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3715s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3715s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3715s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3715s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3715s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3715s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3715s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3715s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3715s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3715s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3715s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3715s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3715s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3715s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3715s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3715s # #else /* !G_ENABLE_DEBUG */ 3715s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3715s # * Do not access GValues directly in your code. Instead, use the 3715s # * g_value_get_*() functions 3715s # */ 3715s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3715s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3715s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3715s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3715s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3715s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3715s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3715s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3715s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3715s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3715s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3715s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3715s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3715s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3715s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3715s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3715s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3715s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3715s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3715s # #endif /* !G_ENABLE_DEBUG */ 3715s # 3715s # typedef struct 3715s # { 3715s # GDBusArgInfo parent_struct; 3715s # gboolean use_gvariant; 3715s # } _ExtendedGDBusArgInfo; 3715s # 3715s # typedef struct 3715s # { 3715s # GDBusMethodInfo parent_struct; 3715s # const gchar *signal_name; 3715s # gboolean pass_fdlist; 3715s # } _ExtendedGDBusMethodInfo; 3715s # 3715s # typedef struct 3715s # { 3715s # GDBusSignalInfo parent_struct; 3715s # const gchar *signal_name; 3715s # } _ExtendedGDBusSignalInfo; 3715s # 3715s # typedef struct 3715s # { 3715s # GDBusPropertyInfo parent_struct; 3715s # const gchar *hyphen_name; 3715s # guint use_gvariant : 1; 3715s # guint emits_changed_signal : 1; 3715s # } _ExtendedGDBusPropertyInfo; 3715s # 3715s # typedef struct 3715s # { 3715s # GDBusInterfaceInfo parent_struct; 3715s # const gchar *hyphen_name; 3715s # } _ExtendedGDBusInterfaceInfo; 3715s # 3715s # typedef struct 3715s # { 3715s # const _ExtendedGDBusPropertyInfo *info; 3715s # guint prop_id; 3715s # GValue orig_value; /* the value before the change */ 3715s # } ChangedProperty; 3715s # 3715s # static void 3715s # _changed_property_free (ChangedProperty *data) 3715s # { 3715s # g_value_unset (&data->orig_value); 3715s # g_free (data); 3715s # } 3715s # 3715s # static gboolean 3715s # _g_strv_equal0 (gchar **a, gchar **b) 3715s # { 3715s # gboolean ret = FALSE; 3715s # guint n; 3715s # if (a == NULL && b == NULL) 3715s # { 3715s # ret = TRUE; 3715s # goto out; 3715s # } 3715s # if (a == NULL || b == NULL) 3715s # goto out; 3715s # if (g_strv_length (a) != g_strv_length (b)) 3715s # goto out; 3715s # for (n = 0; a[n] != NULL; n++) 3715s # if (g_strcmp0 (a[n], b[n]) != 0) 3715s # goto out; 3715s # ret = TRUE; 3715s # out: 3715s # return ret; 3715s # } 3715s # 3715s # static gboolean 3715s # _g_variant_equal0 (GVariant *a, GVariant *b) 3715s # { 3715s # gboolean ret = FALSE; 3715s # if (a == NULL && b == NULL) 3715s # { 3715s # ret = TRUE; 3715s # goto out; 3715s # } 3715s # if (a == NULL || b == NULL) 3715s # goto out; 3715s # ret = g_variant_equal (a, b); 3715s # out: 3715s # return ret; 3715s # } 3715s # 3715s # G_GNUC_UNUSED static gboolean 3715s # _g_value_equal (const GValue *a, const GValue *b) 3715s # { 3715s # gboolean ret = FALSE; 3715s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3715s # switch (G_VALUE_TYPE (a)) 3715s # { 3715s # case G_TYPE_BOOLEAN: 3715s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3715s # break; 3715s # case G_TYPE_UCHAR: 3715s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3715s # break; 3715s # case G_TYPE_INT: 3715s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3715s # break; 3715s # case G_TYPE_UINT: 3715s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3715s # break; 3715s # case G_TYPE_INT64: 3715s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3715s # break; 3715s # case G_TYPE_UINT64: 3715s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3715s # break; 3715s # case G_TYPE_DOUBLE: 3715s # { 3715s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3715s # gdouble da = g_value_get_double (a); 3715s # gdouble db = g_value_get_double (b); 3715s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3715s # } 3715s # break; 3715s # case G_TYPE_STRING: 3715s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3715s # break; 3715s # case G_TYPE_VARIANT: 3715s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3715s # break; 3715s # default: 3715s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3715s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3715s # else 3715s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3715s # break; 3715s # } 3715s # return ret; 3715s # } 3715s # 3715s # /* ------------------------------------------------------------------------ 3715s # * Code for interface org.project.UsefulInterface 3715s # * ------------------------------------------------------------------------ 3715s # */ 3715s # 3715s # /** 3715s # * SECTION:OrgProjectUsefulInterface 3715s # * @title: OrgProjectUsefulInterface 3715s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 3715s # * 3715s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface in C. 3715s # */ 3715s # 3715s # enum 3715s # { 3715s # _ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL, 3715s # }; 3715s # 3715s # static unsigned _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[1] = { 0 }; 3715s # 3715s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 3715s # 3715s # static const _ExtendedGDBusSignalInfo _org_project_useful_interface_signal_info_simple_signal = 3715s # { 3715s # { 3715s # -1, 3715s # (gchar *) "SimpleSignal", 3715s # NULL, 3715s # NULL 3715s # }, 3715s # "simple-signal" 3715s # }; 3715s # 3715s # static const GDBusSignalInfo * const _org_project_useful_interface_signal_info_pointers[] = 3715s # { 3715s # &_org_project_useful_interface_signal_info_simple_signal.parent_struct, 3715s # NULL 3715s # }; 3715s # 3715s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 3715s # { 3715s # { 3715s # -1, 3715s # (gchar *) "org.project.UsefulInterface", 3715s # NULL, 3715s # (GDBusSignalInfo **) &_org_project_useful_interface_signal_info_pointers, 3715s # NULL, 3715s # NULL 3715s # }, 3715s # "org-project-useful-interface", 3715s # }; 3715s # 3715s # 3715s # /** 3715s # * org_project_useful_interface_interface_info: 3715s # * 3715s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link> D-Bus interface. 3715s # * 3715s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3715s # */ 3715s # GDBusInterfaceInfo * 3715s # org_project_useful_interface_interface_info (void) 3715s # { 3715s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 3715s # } 3715s # 3715s # /** 3715s # * org_project_useful_interface_override_properties: 3715s # * @klass: The class structure for a #GObject derived class. 3715s # * @property_id_begin: The property id to assign to the first overridden property. 3715s # * 3715s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 3715s # * The properties are overridden in the order they are defined. 3715s # * 3715s # * Returns: The last property id. 3715s # */ 3715s # guint 3715s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3715s # { 3715s # return property_id_begin - 1; 3715s # } 3715s # 3715s # 3715s # inline static void 3715s # org_project_useful_interface_signal_marshal_simple_signal ( 3715s # GClosure *closure, 3715s # GValue *return_value, 3715s # unsigned int n_param_values, 3715s # const GValue *param_values, 3715s # void *invocation_hint, 3715s # void *marshal_data) 3715s # { 3715s # g_cclosure_marshal_VOID__VOID (closure, 3715s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3715s # } 3715s # 3715s # 3715s # /** 3715s # * OrgProjectUsefulInterface: 3715s # * 3715s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3715s # */ 3715s # 3715s # /** 3715s # * OrgProjectUsefulInterfaceIface: 3715s # * @parent_iface: The parent interface. 3715s # * @simple_signal: Handler for the #OrgProjectUsefulInterface::simple-signal signal. 3715s # * 3715s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3715s # */ 3715s # 3715s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 3715s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 3715s # 3715s # static void 3715s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 3715s # { 3715s # /* GObject signals for received D-Bus signals: */ 3715s # /** 3715s # * OrgProjectUsefulInterface::simple-signal: 3715s # * @object: A #OrgProjectUsefulInterface. 3715s # * 3715s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-UsefulInterface.SimpleSignal">"SimpleSignal"</link> is received. 3715s # * 3715s # * 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. 3715s # */ 3715s # _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[_ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL] = 3715s # g_signal_new ("simple-signal", 3715s # G_TYPE_FROM_INTERFACE (iface), 3715s # G_SIGNAL_RUN_LAST, 3715s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, simple_signal), 3715s # NULL, 3715s # NULL, 3715s # org_project_useful_interface_signal_marshal_simple_signal, 3715s # G_TYPE_NONE, 3715s # 0); 3715s # 3715s # } 3715s # 3715s # /** 3715s # * org_project_useful_interface_emit_simple_signal: 3715s # * @object: A #OrgProjectUsefulInterface. 3715s # * 3715s # * Emits the <link linkend="gdbus-signal-org-project-UsefulInterface.SimpleSignal">"SimpleSignal"</link> D-Bus signal. 3715s # */ 3715s # void 3715s # org_project_useful_interface_emit_simple_signal ( 3715s # OrgProjectUsefulInterface *object) 3715s # { 3715s # g_signal_emit (object, _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[_ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL], 0); 3715s # } 3715s # 3715s # /* ------------------------------------------------------------------------ */ 3715s # 3715s # /** 3715s # * OrgProjectUsefulInterfaceProxy: 3715s # * 3715s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 3715s # */ 3715s # 3715s # /** 3715s # * OrgProjectUsefulInterfaceProxyClass: 3715s # * @parent_class: The parent class. 3715s # * 3715s # * Class structure for #OrgProjectUsefulInterfaceProxy. 3715s # */ 3715s # 3715s # struct _OrgProjectUsefulInterfaceProxyPrivate 3715s # { 3715s # GData *qdata; 3715s # }; 3715s # 3715s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 3715s # 3715s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3715s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3715s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 3715s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3715s # 3715s # #else 3715s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 3715s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 3715s # 3715s # #endif 3715s # static void 3715s # org_project_useful_interface_proxy_finalize (GObject *object) 3715s # { 3715s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 3715s # g_datalist_clear (&proxy->priv->qdata); 3715s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 3715s # } 3715s # 3715s # static void 3715s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3715s # guint prop_id G_GNUC_UNUSED, 3715s # GValue *value G_GNUC_UNUSED, 3715s # GParamSpec *pspec G_GNUC_UNUSED) 3715s # { 3715s # } 3715s # 3715s # static void 3715s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3715s # guint prop_id G_GNUC_UNUSED, 3715s # const GValue *value G_GNUC_UNUSED, 3715s # GParamSpec *pspec G_GNUC_UNUSED) 3715s # { 3715s # } 3715s # 3715s # static void 3715s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 3715s # const gchar *sender_name G_GNUC_UNUSED, 3715s # const gchar *signal_name, 3715s # GVariant *parameters) 3715s # { 3715s # _ExtendedGDBusSignalInfo *info; 3715s # GVariantIter iter; 3715s # GVariant *child; 3715s # GValue *paramv; 3715s # gsize num_params; 3715s # gsize n; 3715s # guint signal_id; 3715s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 3715s # if (info == NULL) 3715s # return; 3715s # num_params = g_variant_n_children (parameters); 3715s # paramv = g_new0 (GValue, num_params + 1); 3715s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3715s # g_value_set_object (¶mv[0], proxy); 3715s # g_variant_iter_init (&iter, parameters); 3715s # n = 1; 3715s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3715s # { 3715s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3715s # if (arg_info->use_gvariant) 3715s # { 3715s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3715s # g_value_set_variant (¶mv[n], child); 3715s # n++; 3715s # } 3715s # else 3715s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3715s # g_variant_unref (child); 3715s # } 3715s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3715s # g_signal_emitv (paramv, signal_id, 0, NULL); 3715s # for (n = 0; n < num_params + 1; n++) 3715s # g_value_unset (¶mv[n]); 3715s # g_free (paramv); 3715s # } 3715s # 3715s # static void 3715s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 3715s # GVariant *changed_properties, 3715s # const gchar *const *invalidated_properties) 3715s # { 3715s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 3715s # guint n; 3715s # const gchar *key; 3715s # GVariantIter *iter; 3715s # _ExtendedGDBusPropertyInfo *info; 3715s # g_variant_get (changed_properties, "a{sv}", &iter); 3715s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3715s # { 3715s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 3715s # g_datalist_remove_data (&proxy->priv->qdata, key); 3715s # if (info != NULL) 3715s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3715s # } 3715s # g_variant_iter_free (iter); 3715s # for (n = 0; invalidated_properties[n] != NULL; n++) 3715s # { 3715s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 3715s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3715s # if (info != NULL) 3715s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3715s # } 3715s # } 3715s # 3715s # static void 3715s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 3715s # { 3715s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3715s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 3715s # #else 3715s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 3715s # #endif 3715s # 3715s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 3715s # } 3715s # 3715s # static void 3715s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 3715s # { 3715s # GObjectClass *gobject_class; 3715s # GDBusProxyClass *proxy_class; 3715s # 3715s # gobject_class = G_OBJECT_CLASS (klass); 3715s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 3715s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 3715s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 3715s # 3715s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3715s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 3715s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 3715s # 3715s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3715s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 3715s # #endif 3715s # } 3715s # 3715s # static void 3715s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 3715s # { 3715s # } 3715s # 3715s # /** 3715s # * org_project_useful_interface_proxy_new: 3715s # * @connection: A #GDBusConnection. 3715s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3715s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3715s # * @object_path: An object path. 3715s # * @cancellable: (nullable): A #GCancellable or %NULL. 3715s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3715s # * @user_data: User data to pass to @callback. 3715s # * 3715s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new() for more details. 3715s # * 3715s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3715s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 3715s # * 3715s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3715s # */ 3715s # void 3715s # org_project_useful_interface_proxy_new ( 3715s # GDBusConnection *connection, 3715s # GDBusProxyFlags flags, 3715s # const gchar *name, 3715s # const gchar *object_path, 3715s # GCancellable *cancellable, 3715s # GAsyncReadyCallback callback, 3715s # gpointer user_data) 3715s # { 3715s # g_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); 3715s # } 3715s # 3715s # /** 3715s # * org_project_useful_interface_proxy_new_finish: 3715s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 3715s # * @error: Return location for error or %NULL 3715s # * 3715s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 3715s # * 3715s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3715s # */ 3715s # OrgProjectUsefulInterface * 3715s # org_project_useful_interface_proxy_new_finish ( 3715s # GAsyncResult *res, 3715s # GError **error) 3715s # { 3715s # GObject *ret; 3715s # GObject *source_object; 3715s # source_object = g_async_result_get_source_object (res); 3715s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3715s # g_object_unref (source_object); 3715s # if (ret != NULL) 3715s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3715s # else 3715s # return NULL; 3715s # } 3715s # 3715s # /** 3715s # * org_project_useful_interface_proxy_new_sync: 3715s # * @connection: A #GDBusConnection. 3715s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3715s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3715s # * @object_path: An object path. 3715s # * @cancellable: (nullable): A #GCancellable or %NULL. 3715s # * @error: Return location for error or %NULL 3715s # * 3715s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. See g_dbus_proxy_new_sync() for more details. 3715s # * 3715s # * The calling thread is blocked until a reply is received. 3715s # * 3715s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 3715s # * 3715s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3715s # */ 3715s # OrgProjectUsefulInterface * 3715s # org_project_useful_interface_proxy_new_sync ( 3715s # GDBusConnection *connection, 3715s # GDBusProxyFlags flags, 3715s # const gchar *name, 3715s # const gchar *object_path, 3715s # GCancellable *cancellable, 3715s # GError **error) 3715s # { 3715s # GInitable *ret; 3715s # 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); 3715s # if (ret != NULL) 3715s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3715s # else 3715s # return NULL; 3715s # } 3715s # 3715s # 3715s # /** 3715s # * org_project_useful_interface_proxy_new_for_bus: 3715s # * @bus_type: A #GBusType. 3715s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3715s # * @name: A bus name (well-known or unique). 3715s # * @object_path: An object path. 3715s # * @cancellable: (nullable): A #GCancellable or %NULL. 3715s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3715s # * @user_data: User data to pass to @callback. 3715s # * 3715s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3715s # * 3715s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3715s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 3715s # * 3715s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3715s # */ 3715s # void 3715s # org_project_useful_interface_proxy_new_for_bus ( 3715s # GBusType bus_type, 3715s # GDBusProxyFlags flags, 3715s # const gchar *name, 3715s # const gchar *object_path, 3715s # GCancellable *cancellable, 3715s # GAsyncReadyCallback callback, 3715s # gpointer user_data) 3715s # { 3715s # g_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); 3715s # } 3715s # 3715s # /** 3715s # * org_project_useful_interface_proxy_new_for_bus_finish: 3715s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 3715s # * @error: Return location for error or %NULL 3715s # * 3715s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 3715s # * 3715s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3715s # */ 3715s # OrgProjectUsefulInterface * 3715s # org_project_useful_interface_proxy_new_for_bus_finish ( 3715s # GAsyncResult *res, 3715s # GError **error) 3715s # { 3715s # GObject *ret; 3715s # GObject *source_object; 3715s # source_object = g_async_result_get_source_object (res); 3715s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3715s # g_object_unref (source_object); 3715s # if (ret != NULL) 3715s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3715s # else 3715s # return NULL; 3715s # } 3715s # 3715s # /** 3715s # * org_project_useful_interface_proxy_new_for_bus_sync: 3715s # * @bus_type: A #GBusType. 3715s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3715s # * @name: A bus name (well-known or unique). 3715s # * @object_path: An object path. 3715s # * @cancellable: (nullable): A #GCancellable or %NULL. 3715s # * @error: Return location for error or %NULL 3715s # * 3715s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3715s # * 3715s # * The calling thread is blocked until a reply is received. 3715s # * 3715s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 3715s # * 3715s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 3715s # */ 3715s # OrgProjectUsefulInterface * 3715s # org_project_useful_interface_proxy_new_for_bus_sync ( 3715s # GBusType bus_type, 3715s # GDBusProxyFlags flags, 3715s # const gchar *name, 3715s # const gchar *object_path, 3715s # GCancellable *cancellable, 3715s # GError **error) 3715s # { 3715s # GInitable *ret; 3715s # 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); 3715s # if (ret != NULL) 3715s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 3715s # else 3715s # return NULL; 3715s # } 3715s # 3715s # 3715s # /* ------------------------------------------------------------------------ */ 3715s # 3715s # /** 3715s # * OrgProjectUsefulInterfaceSkeleton: 3715s # * 3715s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3715s # */ 3715s # 3715s # /** 3715s # * OrgProjectUsefulInterfaceSkeletonClass: 3715s # * @parent_class: The parent class. 3715s # * 3715s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 3715s # */ 3715s # 3715s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 3715s # { 3715s # GValue *properties; 3715s # GList *changed_properties; 3715s # GSource *changed_properties_idle_source; 3715s # GMainContext *context; 3715s # GMutex lock; 3715s # }; 3715s # 3715s # static void 3715s # _org_project_useful_interface_skeleton_handle_method_call ( 3715s # GDBusConnection *connection G_GNUC_UNUSED, 3715s # const gchar *sender G_GNUC_UNUSED, 3715s # const gchar *object_path G_GNUC_UNUSED, 3715s # const gchar *interface_name, 3715s # const gchar *method_name, 3715s # GVariant *parameters, 3715s # GDBusMethodInvocation *invocation, 3715s # gpointer user_data) 3715s # { 3715s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3715s # _ExtendedGDBusMethodInfo *info; 3715s # GVariantIter iter; 3715s # GVariant *child; 3715s # GValue *paramv; 3715s # gsize num_params; 3715s # guint num_extra; 3715s # gsize n; 3715s # guint signal_id; 3715s # GValue return_value = G_VALUE_INIT; 3715s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3715s # g_assert (info != NULL); 3715s # num_params = g_variant_n_children (parameters); 3715s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3715s # n = 0; 3715s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3715s # g_value_set_object (¶mv[n++], skeleton); 3715s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3715s # g_value_set_object (¶mv[n++], invocation); 3715s # if (info->pass_fdlist) 3715s # { 3715s # #ifdef G_OS_UNIX 3715s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3715s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3715s # #else 3715s # g_assert_not_reached (); 3715s # #endif 3715s # } 3715s # g_variant_iter_init (&iter, parameters); 3715s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3715s # { 3715s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3715s # if (arg_info->use_gvariant) 3715s # { 3715s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3715s # g_value_set_variant (¶mv[n], child); 3715s # n++; 3715s # } 3715s # else 3715s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3715s # g_variant_unref (child); 3715s # } 3715s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 3715s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3715s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3715s # if (!g_value_get_boolean (&return_value)) 3715s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3715s # g_value_unset (&return_value); 3715s # for (n = 0; n < num_params + num_extra; n++) 3715s # g_value_unset (¶mv[n]); 3715s # g_free (paramv); 3715s # } 3715s # 3715s # static GVariant * 3715s # _org_project_useful_interface_skeleton_handle_get_property ( 3715s # GDBusConnection *connection G_GNUC_UNUSED, 3715s # const gchar *sender G_GNUC_UNUSED, 3715s # const gchar *object_path G_GNUC_UNUSED, 3715s # const gchar *interface_name G_GNUC_UNUSED, 3715s # const gchar *property_name, 3715s # GError **error, 3715s # gpointer user_data) 3715s # { 3715s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3715s # GValue value = G_VALUE_INIT; 3715s # GParamSpec *pspec; 3715s # _ExtendedGDBusPropertyInfo *info; 3715s # GVariant *ret; 3715s # ret = NULL; 3715s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3715s # g_assert (info != NULL); 3715s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3715s # if (pspec == NULL) 3715s # { 3715s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3715s # } 3715s # else 3715s # { 3715s # g_value_init (&value, pspec->value_type); 3715s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3715s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3715s # g_value_unset (&value); 3715s # } 3715s # return ret; 3715s # } 3715s # 3715s # static gboolean 3715s # _org_project_useful_interface_skeleton_handle_set_property ( 3715s # GDBusConnection *connection G_GNUC_UNUSED, 3715s # const gchar *sender G_GNUC_UNUSED, 3715s # const gchar *object_path G_GNUC_UNUSED, 3715s # const gchar *interface_name G_GNUC_UNUSED, 3715s # const gchar *property_name, 3715s # GVariant *variant, 3715s # GError **error, 3715s # gpointer user_data) 3715s # { 3715s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 3715s # GValue value = G_VALUE_INIT; 3715s # GParamSpec *pspec; 3715s # _ExtendedGDBusPropertyInfo *info; 3715s # gboolean ret; 3715s # ret = FALSE; 3715s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 3715s # g_assert (info != NULL); 3715s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3715s # if (pspec == NULL) 3715s # { 3715s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3715s # } 3715s # else 3715s # { 3715s # if (info->use_gvariant) 3715s # g_value_set_variant (&value, variant); 3715s # else 3715s # g_dbus_gvariant_to_gvalue (variant, &value); 3715s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3715s # g_value_unset (&value); 3715s # ret = TRUE; 3715s # } 3715s # return ret; 3715s # } 3715s # 3715s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 3715s # { 3715s # _org_project_useful_interface_skeleton_handle_method_call, 3715s # _org_project_useful_interface_skeleton_handle_get_property, 3715s # _org_project_useful_interface_skeleton_handle_set_property, 3715s # {NULL} 3715s # }; 3715s # 3715s # static GDBusInterfaceInfo * 3715s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3715s # { 3715s # return org_project_useful_interface_interface_info (); 3715s # } 3715s # 3715s # static GDBusInterfaceVTable * 3715s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3715s # { 3715s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 3715s # } 3715s # 3715s # static GVariant * 3715s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3715s # { 3715s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 3715s # 3715s # GVariantBuilder builder; 3715s # guint n; 3715s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3715s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3715s # #else 3715s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3715s # #endif 3715s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 3715s # goto out; 3715s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 3715s # { 3715s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 3715s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3715s # { 3715s # GVariant *value; 3715s # 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); 3715s # if (value != NULL) 3715s # { 3715s # g_variant_take_ref (value); 3715s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3715s # g_variant_unref (value); 3715s # } 3715s # } 3715s # } 3715s # out: 3715s # return g_variant_builder_end (&builder); 3715s # } 3715s # 3715s # static void 3715s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3715s # { 3715s # } 3715s # 3715s # static void 3715s # _org_project_useful_interface_on_signal_simple_signal ( 3715s # OrgProjectUsefulInterface *object) 3715s # { 3715s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 3715s # 3715s # GList *connections, *l; 3715s # GVariant *signal_variant; 3715s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3715s # 3715s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 3715s # for (l = connections; l != NULL; l = l->next) 3715s # { 3715s # GDBusConnection *connection = l->data; 3715s # g_dbus_connection_emit_signal (connection, 3715s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", "SimpleSignal", 3715s # signal_variant, NULL); 3715s # } 3715s # g_variant_unref (signal_variant); 3715s # g_list_free_full (connections, g_object_unref); 3715s # } 3715s # 3715s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 3715s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3715s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3715s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 3715s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3715s # 3715s # #else 3715s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3715s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 3715s # 3715s # #endif 3715s # static void 3715s # org_project_useful_interface_skeleton_finalize (GObject *object) 3715s # { 3715s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 3715s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3715s # if (skeleton->priv->changed_properties_idle_source != NULL) 3715s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3715s # g_main_context_unref (skeleton->priv->context); 3715s # g_mutex_clear (&skeleton->priv->lock); 3715s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 3715s # } 3715s # 3715s # static void 3715s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 3715s # { 3715s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3715s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 3715s # #else 3715s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 3715s # #endif 3715s # 3715s # g_mutex_init (&skeleton->priv->lock); 3715s # skeleton->priv->context = g_main_context_ref_thread_default (); 3715s # } 3715s # 3715s # static void 3715s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 3715s # { 3715s # GObjectClass *gobject_class; 3715s # GDBusInterfaceSkeletonClass *skeleton_class; 3715s # 3715s # gobject_class = G_OBJECT_CLASS (klass); 3715s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 3715s # 3715s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3715s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 3715s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 3715s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 3715s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 3715s # 3715s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3715s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 3715s # #endif 3715s # } 3715s # 3715s # static void 3715s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface) 3715s # { 3715s # iface->simple_signal = _org_project_useful_interface_on_signal_simple_signal; 3715s # } 3715s # 3715s # /** 3715s # * org_project_useful_interface_skeleton_new: 3715s # * 3715s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-UsefulInterface.top_of_page">org.project.UsefulInterface</link>. 3715s # * 3715s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 3715s # */ 3715s # OrgProjectUsefulInterface * 3715s # org_project_useful_interface_skeleton_new (void) 3715s # { 3715s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 3715s # } 3715s # 3715s # /* ------------------------------------------------------------------------ 3715s # * Code for interface org.project.OtherIface 3715s # * ------------------------------------------------------------------------ 3715s # */ 3715s # 3715s # /** 3715s # * SECTION:OrgProjectOtherIface 3715s # * @title: OrgProjectOtherIface 3715s # * @short_description: Generated C code for the org.project.OtherIface D-Bus interface 3715s # * 3715s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-OtherIface.top_of_page">org.project.OtherIface</link> D-Bus interface in C. 3715s # */ 3715s # 3715s # enum 3715s # { 3715s # _ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL, 3715s # }; 3715s # 3715s # static unsigned _ORG_PROJECT_OTHER_IFACE_SIGNALS[1] = { 0 }; 3715s # 3715s # /* ---- Introspection data for org.project.OtherIface ---- */ 3715s # 3715s # static const _ExtendedGDBusSignalInfo _org_project_other_iface_signal_info_simple_signal = 3715s # { 3715s # { 3715s # -1, 3715s # (gchar *) "SimpleSignal", 3715s # NULL, 3715s # NULL 3715s # }, 3715s # "simple-signal" 3715s # }; 3715s # 3715s # static const GDBusSignalInfo * const _org_project_other_iface_signal_info_pointers[] = 3715s # { 3715s # &_org_project_other_iface_signal_info_simple_signal.parent_struct, 3715s # NULL 3715s # }; 3715s # 3715s # static const _ExtendedGDBusInterfaceInfo _org_project_other_iface_interface_info = 3715s # { 3715s # { 3715s # -1, 3715s # (gchar *) "org.project.OtherIface", 3715s # NULL, 3715s # (GDBusSignalInfo **) &_org_project_other_iface_signal_info_pointers, 3715s # NULL, 3715s # NULL 3715s # }, 3715s # "org-project-other-iface", 3715s # }; 3715s # 3715s # 3715s # /** 3715s # * org_project_other_iface_interface_info: 3715s # * 3715s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-OtherIface.top_of_page">org.project.OtherIface</link> D-Bus interface. 3715s # * 3715s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3715s # */ 3715s # GDBusInterfaceInfo * 3715s # org_project_other_iface_interface_info (void) 3715s # { 3715s # return (GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct; 3715s # } 3715s # 3715s # /** 3715s # * org_project_other_iface_override_properties: 3715s # * @klass: The class structure for a #GObject derived class. 3715s # * @property_id_begin: The property id to assign to the first overridden property. 3715s # * 3715s # * Overrides all #GObject properties in the #OrgProjectOtherIface interface for a concrete class. 3715s # * The properties are overridden in the order they are defined. 3715s # * 3715s # * Returns: The last property id. 3715s # */ 3715s # guint 3715s # org_project_other_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3715s # { 3715s # return property_id_begin - 1; 3715s # } 3715s # 3715s # 3715s # inline static void 3715s # org_project_other_iface_signal_marshal_simple_signal ( 3715s # GClosure *closure, 3715s # GValue *return_value, 3715s # unsigned int n_param_values, 3715s # const GValue *param_values, 3715s # void *invocation_hint, 3715s # void *marshal_data) 3715s # { 3715s # g_cclosure_marshal_VOID__VOID (closure, 3715s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3715s # } 3715s # 3715s # 3715s # /** 3715s # * OrgProjectOtherIface: 3715s # * 3715s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-OtherIface.top_of_page">org.project.OtherIface</link>. 3715s # */ 3715s # 3715s # /** 3715s # * OrgProjectOtherIfaceIface: 3715s # * @parent_iface: The parent interface. 3715s # * @simple_signal: Handler for the #OrgProjectOtherIface::simple-signal signal. 3715s # * 3715s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-OtherIface.top_of_page">org.project.OtherIface</link>. 3715s # */ 3715s # 3715s # typedef OrgProjectOtherIfaceIface OrgProjectOtherIfaceInterface; 3715s # G_DEFINE_INTERFACE (OrgProjectOtherIface, org_project_other_iface, G_TYPE_OBJECT) 3715s # 3715s # static void 3715s # org_project_other_iface_default_init (OrgProjectOtherIfaceIface *iface) 3715s # { 3715s # /* GObject signals for received D-Bus signals: */ 3715s # /** 3715s # * OrgProjectOtherIface::simple-signal: 3715s # * @object: A #OrgProjectOtherIface. 3715s # * 3715s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-OtherIface.SimpleSignal">"SimpleSignal"</link> is received. 3715s # * 3715s # * 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. 3715s # */ 3715s # _ORG_PROJECT_OTHER_IFACE_SIGNALS[_ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL] = 3715s # g_signal_new ("simple-signal", 3715s # G_TYPE_FROM_INTERFACE (iface), 3715s # G_SIGNAL_RUN_LAST, 3715s # G_STRUCT_OFFSET (OrgProjectOtherIfaceIface, simple_signal), 3715s # NULL, 3715s # NULL, 3715s # org_project_other_iface_signal_marshal_simple_signal, 3715s # G_TYPE_NONE, 3715s # 0); 3715s # 3715s # } 3715s # 3715s # /** 3715s # * org_project_other_iface_emit_simple_signal: 3715s # * @object: A #OrgProjectOtherIface. 3715s # * 3715s # * Emits the <link linkend="gdbus-signal-org-project-OtherIface.SimpleSignal">"SimpleSignal"</link> D-Bus signal. 3715s # */ 3715s # void 3715s # org_project_other_iface_emit_simple_signal ( 3715s # OrgProjectOtherIface *object) 3715s # { 3715s # g_signal_emit (object, _ORG_PROJECT_OTHER_IFACE_SIGNALS[_ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL], 0); 3715s # } 3715s # 3715s # /* ------------------------------------------------------------------------ */ 3715s # 3715s # /** 3715s # * OrgProjectOtherIfaceProxy: 3715s # * 3715s # * The #OrgProjectOtherIfaceProxy structure contains only private data and should only be accessed using the provided API. 3715s # */ 3715s # 3715s # /** 3715s # * OrgProjectOtherIfaceProxyClass: 3715s # * @parent_class: The parent class. 3715s # * 3715s # * Class structure for #OrgProjectOtherIfaceProxy. 3715s # */ 3715s # 3715s # struct _OrgProjectOtherIfaceProxyPrivate 3715s # { 3715s # GData *qdata; 3715s # }; 3715s # 3715s # static void org_project_other_iface_proxy_iface_init (OrgProjectOtherIfaceIface *iface); 3715s # 3715s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3715s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceProxy, org_project_other_iface_proxy, G_TYPE_DBUS_PROXY, 3715s # G_ADD_PRIVATE (OrgProjectOtherIfaceProxy) 3715s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_proxy_iface_init)) 3715s # 3715s # #else 3715s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceProxy, org_project_other_iface_proxy, G_TYPE_DBUS_PROXY, 3715s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_proxy_iface_init)) 3715s # 3715s # #endif 3715s # static void 3715s # org_project_other_iface_proxy_finalize (GObject *object) 3715s # { 3715s # OrgProjectOtherIfaceProxy *proxy = ORG_PROJECT_OTHER_IFACE_PROXY (object); 3715s # g_datalist_clear (&proxy->priv->qdata); 3715s # G_OBJECT_CLASS (org_project_other_iface_proxy_parent_class)->finalize (object); 3715s # } 3715s # 3715s # static void 3715s # org_project_other_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3715s # guint prop_id G_GNUC_UNUSED, 3715s # GValue *value G_GNUC_UNUSED, 3715s # GParamSpec *pspec G_GNUC_UNUSED) 3715s # { 3715s # } 3715s # 3715s # static void 3715s # org_project_other_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3715s # guint prop_id G_GNUC_UNUSED, 3715s # const GValue *value G_GNUC_UNUSED, 3715s # GParamSpec *pspec G_GNUC_UNUSED) 3715s # { 3715s # } 3715s # 3715s # static void 3715s # org_project_other_iface_proxy_g_signal (GDBusProxy *proxy, 3715s # const gchar *sender_name G_GNUC_UNUSED, 3715s # const gchar *signal_name, 3715s # GVariant *parameters) 3715s # { 3715s # _ExtendedGDBusSignalInfo *info; 3715s # GVariantIter iter; 3715s # GVariant *child; 3715s # GValue *paramv; 3715s # gsize num_params; 3715s # gsize n; 3715s # guint signal_id; 3715s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, signal_name); 3715s # if (info == NULL) 3715s # return; 3715s # num_params = g_variant_n_children (parameters); 3715s # paramv = g_new0 (GValue, num_params + 1); 3715s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_IFACE); 3715s # g_value_set_object (¶mv[0], proxy); 3715s # g_variant_iter_init (&iter, parameters); 3715s # n = 1; 3715s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3715s # { 3715s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3715s # if (arg_info->use_gvariant) 3715s # { 3715s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3715s # g_value_set_variant (¶mv[n], child); 3715s # n++; 3715s # } 3715s # else 3715s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3715s # g_variant_unref (child); 3715s # } 3715s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_IFACE); 3715s # g_signal_emitv (paramv, signal_id, 0, NULL); 3715s # for (n = 0; n < num_params + 1; n++) 3715s # g_value_unset (¶mv[n]); 3715s # g_free (paramv); 3715s # } 3715s # 3715s # static void 3715s # org_project_other_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 3715s # GVariant *changed_properties, 3715s # const gchar *const *invalidated_properties) 3715s # { 3715s # OrgProjectOtherIfaceProxy *proxy = ORG_PROJECT_OTHER_IFACE_PROXY (_proxy); 3715s # guint n; 3715s # const gchar *key; 3715s # GVariantIter *iter; 3715s # _ExtendedGDBusPropertyInfo *info; 3715s # g_variant_get (changed_properties, "a{sv}", &iter); 3715s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3715s # { 3715s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, key); 3715s # g_datalist_remove_data (&proxy->priv->qdata, key); 3715s # if (info != NULL) 3715s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3715s # } 3715s # g_variant_iter_free (iter); 3715s # for (n = 0; invalidated_properties[n] != NULL; n++) 3715s # { 3715s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, invalidated_properties[n]); 3715s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3715s # if (info != NULL) 3715s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3715s # } 3715s # } 3715s # 3715s # static void 3715s # org_project_other_iface_proxy_init (OrgProjectOtherIfaceProxy *proxy) 3715s # { 3715s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3715s # proxy->priv = org_project_other_iface_proxy_get_instance_private (proxy); 3715s # #else 3715s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_IFACE_PROXY, OrgProjectOtherIfaceProxyPrivate); 3715s # #endif 3715s # 3715s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_iface_interface_info ()); 3715s # } 3715s # 3715s # static void 3715s # org_project_other_iface_proxy_class_init (OrgProjectOtherIfaceProxyClass *klass) 3715s # { 3715s # GObjectClass *gobject_class; 3715s # GDBusProxyClass *proxy_class; 3715s # 3715s # gobject_class = G_OBJECT_CLASS (klass); 3715s # gobject_class->finalize = org_project_other_iface_proxy_finalize; 3715s # gobject_class->get_property = org_project_other_iface_proxy_get_property; 3715s # gobject_class->set_property = org_project_other_iface_proxy_set_property; 3715s # 3715s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3715s # proxy_class->g_signal = org_project_other_iface_proxy_g_signal; 3715s # proxy_class->g_properties_changed = org_project_other_iface_proxy_g_properties_changed; 3715s # 3715s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3715s # g_type_class_add_private (klass, sizeof (OrgProjectOtherIfaceProxyPrivate)); 3715s # #endif 3715s # } 3715s # 3715s # static void 3715s # org_project_other_iface_proxy_iface_init (OrgProjectOtherIfaceIface *iface G_GNUC_UNUSED) 3715s # { 3715s # } 3715s # 3715s # /** 3715s # * org_project_other_iface_proxy_new: 3715s # * @connection: A #GDBusConnection. 3715s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3715s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3715s # * @object_path: An object path. 3715s # * @cancellable: (nullable): A #GCancellable or %NULL. 3715s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3715s # * @user_data: User data to pass to @callback. 3715s # * 3715s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-OtherIface.top_of_page">org.project.OtherIface</link>. See g_dbus_proxy_new() for more details. 3715s # * 3715s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3715s # * You can then call org_project_other_iface_proxy_new_finish() to get the result of the operation. 3715s # * 3715s # * See org_project_other_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3715s # */ 3715s # void 3715s # org_project_other_iface_proxy_new ( 3715s # GDBusConnection *connection, 3715s # GDBusProxyFlags flags, 3715s # const gchar *name, 3715s # const gchar *object_path, 3715s # GCancellable *cancellable, 3715s # GAsyncReadyCallback callback, 3715s # gpointer user_data) 3715s # { 3715s # 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); 3715s # } 3715s # 3715s # /** 3715s # * org_project_other_iface_proxy_new_finish: 3715s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_iface_proxy_new(). 3715s # * @error: Return location for error or %NULL 3715s # * 3715s # * Finishes an operation started with org_project_other_iface_proxy_new(). 3715s # * 3715s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 3715s # */ 3715s # OrgProjectOtherIface * 3715s # org_project_other_iface_proxy_new_finish ( 3715s # GAsyncResult *res, 3715s # GError **error) 3715s # { 3715s # GObject *ret; 3715s # GObject *source_object; 3715s # source_object = g_async_result_get_source_object (res); 3715s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3715s # g_object_unref (source_object); 3715s # if (ret != NULL) 3715s # return ORG_PROJECT_OTHER_IFACE (ret); 3715s # else 3715s # return NULL; 3715s # } 3715s # 3715s # /** 3715s # * org_project_other_iface_proxy_new_sync: 3715s # * @connection: A #GDBusConnection. 3715s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3715s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3715s # * @object_path: An object path. 3715s # * @cancellable: (nullable): A #GCancellable or %NULL. 3715s # * @error: Return location for error or %NULL 3715s # * 3715s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-OtherIface.top_of_page">org.project.OtherIface</link>. See g_dbus_proxy_new_sync() for more details. 3715s # * 3715s # * The calling thread is blocked until a reply is received. 3715s # * 3715s # * See org_project_other_iface_proxy_new() for the asynchronous version of this constructor. 3715s # * 3715s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 3715s # */ 3715s # OrgProjectOtherIface * 3715s # org_project_other_iface_proxy_new_sync ( 3715s # GDBusConnection *connection, 3715s # GDBusProxyFlags flags, 3715s # const gchar *name, 3715s # const gchar *object_path, 3715s # GCancellable *cancellable, 3715s # GError **error) 3715s # { 3715s # GInitable *ret; 3715s # 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); 3715s # if (ret != NULL) 3715s # return ORG_PROJECT_OTHER_IFACE (ret); 3715s # else 3715s # return NULL; 3715s # } 3715s # 3715s # 3715s # /** 3715s # * org_project_other_iface_proxy_new_for_bus: 3715s # * @bus_type: A #GBusType. 3715s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3715s # * @name: A bus name (well-known or unique). 3715s # * @object_path: An object path. 3715s # * @cancellable: (nullable): A #GCancellable or %NULL. 3715s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3715s # * @user_data: User data to pass to @callback. 3715s # * 3715s # * Like org_project_other_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3715s # * 3715s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3715s # * You can then call org_project_other_iface_proxy_new_for_bus_finish() to get the result of the operation. 3715s # * 3715s # * See org_project_other_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3715s # */ 3715s # void 3715s # org_project_other_iface_proxy_new_for_bus ( 3715s # GBusType bus_type, 3715s # GDBusProxyFlags flags, 3715s # const gchar *name, 3715s # const gchar *object_path, 3715s # GCancellable *cancellable, 3715s # GAsyncReadyCallback callback, 3715s # gpointer user_data) 3715s # { 3715s # 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); 3715s # } 3715s # 3715s # /** 3715s # * org_project_other_iface_proxy_new_for_bus_finish: 3715s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_iface_proxy_new_for_bus(). 3715s # * @error: Return location for error or %NULL 3715s # * 3715s # * Finishes an operation started with org_project_other_iface_proxy_new_for_bus(). 3715s # * 3715s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 3715s # */ 3715s # OrgProjectOtherIface * 3715s # org_project_other_iface_proxy_new_for_bus_finish ( 3715s # GAsyncResult *res, 3715s # GError **error) 3715s # { 3715s # GObject *ret; 3715s # GObject *source_object; 3715s # source_object = g_async_result_get_source_object (res); 3715s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3715s # g_object_unref (source_object); 3715s # if (ret != NULL) 3715s # return ORG_PROJECT_OTHER_IFACE (ret); 3715s # else 3715s # return NULL; 3715s # } 3715s # 3715s # /** 3715s # * org_project_other_iface_proxy_new_for_bus_sync: 3715s # * @bus_type: A #GBusType. 3715s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3715s # * @name: A bus name (well-known or unique). 3715s # * @object_path: An object path. 3715s # * @cancellable: (nullable): A #GCancellable or %NULL. 3715s # * @error: Return location for error or %NULL 3715s # * 3715s # * Like org_project_other_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3715s # * 3715s # * The calling thread is blocked until a reply is received. 3715s # * 3715s # * See org_project_other_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 3715s # * 3715s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 3715s # */ 3715s # OrgProjectOtherIface * 3715s # org_project_other_iface_proxy_new_for_bus_sync ( 3715s # GBusType bus_type, 3715s # GDBusProxyFlags flags, 3715s # const gchar *name, 3715s # const gchar *object_path, 3715s # GCancellable *cancellable, 3715s # GError **error) 3715s # { 3715s # GInitable *ret; 3715s # 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); 3715s # if (ret != NULL) 3715s # return ORG_PROJECT_OTHER_IFACE (ret); 3715s # else 3715s # return NULL; 3715s # } 3715s # 3715s # 3715s # /* ------------------------------------------------------------------------ */ 3715s # 3715s # /** 3715s # * OrgProjectOtherIfaceSkeleton: 3715s # * 3715s # * The #OrgProjectOtherIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3715s # */ 3715s # 3715s # /** 3715s # * OrgProjectOtherIfaceSkeletonClass: 3715s # * @parent_class: The parent class. 3715s # * 3715s # * Class structure for #OrgProjectOtherIfaceSkeleton. 3715s # */ 3715s # 3715s # struct _OrgProjectOtherIfaceSkeletonPrivate 3715s # { 3715s # GValue *properties; 3715s # GList *changed_properties; 3715s # GSource *changed_properties_idle_source; 3715s # GMainContext *context; 3715s # GMutex lock; 3715s # }; 3715s # 3715s # static void 3715s # _org_project_other_iface_skeleton_handle_method_call ( 3715s # GDBusConnection *connection G_GNUC_UNUSED, 3715s # const gchar *sender G_GNUC_UNUSED, 3715s # const gchar *object_path G_GNUC_UNUSED, 3715s # const gchar *interface_name, 3715s # const gchar *method_name, 3715s # GVariant *parameters, 3715s # GDBusMethodInvocation *invocation, 3715s # gpointer user_data) 3715s # { 3715s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 3715s # _ExtendedGDBusMethodInfo *info; 3715s # GVariantIter iter; 3715s # GVariant *child; 3715s # GValue *paramv; 3715s # gsize num_params; 3715s # guint num_extra; 3715s # gsize n; 3715s # guint signal_id; 3715s # GValue return_value = G_VALUE_INIT; 3715s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3715s # g_assert (info != NULL); 3715s # num_params = g_variant_n_children (parameters); 3715s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3715s # n = 0; 3715s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_IFACE); 3715s # g_value_set_object (¶mv[n++], skeleton); 3715s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3715s # g_value_set_object (¶mv[n++], invocation); 3715s # if (info->pass_fdlist) 3715s # { 3715s # #ifdef G_OS_UNIX 3715s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3715s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3715s # #else 3715s # g_assert_not_reached (); 3715s # #endif 3715s # } 3715s # g_variant_iter_init (&iter, parameters); 3715s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3715s # { 3715s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3715s # if (arg_info->use_gvariant) 3715s # { 3715s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3715s # g_value_set_variant (¶mv[n], child); 3715s # n++; 3715s # } 3715s # else 3715s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3715s # g_variant_unref (child); 3715s # } 3715s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_IFACE); 3715s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3715s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3715s # if (!g_value_get_boolean (&return_value)) 3715s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3715s # g_value_unset (&return_value); 3715s # for (n = 0; n < num_params + num_extra; n++) 3715s # g_value_unset (¶mv[n]); 3715s # g_free (paramv); 3715s # } 3715s # 3715s # static GVariant * 3715s # _org_project_other_iface_skeleton_handle_get_property ( 3715s # GDBusConnection *connection G_GNUC_UNUSED, 3715s # const gchar *sender G_GNUC_UNUSED, 3715s # const gchar *object_path G_GNUC_UNUSED, 3715s # const gchar *interface_name G_GNUC_UNUSED, 3715s # const gchar *property_name, 3715s # GError **error, 3715s # gpointer user_data) 3715s # { 3715s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 3715s # GValue value = G_VALUE_INIT; 3715s # GParamSpec *pspec; 3715s # _ExtendedGDBusPropertyInfo *info; 3715s # GVariant *ret; 3715s # ret = NULL; 3715s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, property_name); 3715s # g_assert (info != NULL); 3715s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3715s # if (pspec == NULL) 3715s # { 3715s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3715s # } 3715s # else 3715s # { 3715s # g_value_init (&value, pspec->value_type); 3715s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3715s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3715s # g_value_unset (&value); 3715s # } 3715s # return ret; 3715s # } 3715s # 3715s # static gboolean 3715s # _org_project_other_iface_skeleton_handle_set_property ( 3715s # GDBusConnection *connection G_GNUC_UNUSED, 3715s # const gchar *sender G_GNUC_UNUSED, 3715s # const gchar *object_path G_GNUC_UNUSED, 3715s # const gchar *interface_name G_GNUC_UNUSED, 3715s # const gchar *property_name, 3715s # GVariant *variant, 3715s # GError **error, 3715s # gpointer user_data) 3715s # { 3715s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 3715s # GValue value = G_VALUE_INIT; 3715s # GParamSpec *pspec; 3715s # _ExtendedGDBusPropertyInfo *info; 3715s # gboolean ret; 3715s # ret = FALSE; 3715s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, property_name); 3715s # g_assert (info != NULL); 3715s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3715s # if (pspec == NULL) 3715s # { 3715s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3715s # } 3715s # else 3715s # { 3715s # if (info->use_gvariant) 3715s # g_value_set_variant (&value, variant); 3715s # else 3715s # g_dbus_gvariant_to_gvalue (variant, &value); 3715s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3715s # g_value_unset (&value); 3715s # ret = TRUE; 3715s # } 3715s # return ret; 3715s # } 3715s # 3715s # static const GDBusInterfaceVTable _org_project_other_iface_skeleton_vtable = 3715s # { 3715s # _org_project_other_iface_skeleton_handle_method_call, 3715s # _org_project_other_iface_skeleton_handle_get_property, 3715s # _org_project_other_iface_skeleton_handle_set_property, 3715s # {NULL} 3715s # }; 3715s # 3715s # static GDBusInterfaceInfo * 3715s # org_project_other_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3715s # { 3715s # return org_project_other_iface_interface_info (); 3715s # } 3715s # 3715s # static GDBusInterfaceVTable * 3715s # org_project_other_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3715s # { 3715s # return (GDBusInterfaceVTable *) &_org_project_other_iface_skeleton_vtable; 3715s # } 3715s # 3715s # static GVariant * 3715s # org_project_other_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3715s # { 3715s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (_skeleton); 3715s # 3715s # GVariantBuilder builder; 3715s # guint n; 3715s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3715s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3715s # #else 3715s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3715s # #endif 3715s # if (_org_project_other_iface_interface_info.parent_struct.properties == NULL) 3715s # goto out; 3715s # for (n = 0; _org_project_other_iface_interface_info.parent_struct.properties[n] != NULL; n++) 3715s # { 3715s # GDBusPropertyInfo *info = _org_project_other_iface_interface_info.parent_struct.properties[n]; 3715s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3715s # { 3715s # GVariant *value; 3715s # 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); 3715s # if (value != NULL) 3715s # { 3715s # g_variant_take_ref (value); 3715s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3715s # g_variant_unref (value); 3715s # } 3715s # } 3715s # } 3715s # out: 3715s # return g_variant_builder_end (&builder); 3715s # } 3715s # 3715s # static void 3715s # org_project_other_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3715s # { 3715s # } 3715s # 3715s # static void 3715s # _org_project_other_iface_on_signal_simple_signal ( 3715s # OrgProjectOtherIface *object) 3715s # { 3715s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (object); 3715s # 3715s # GList *connections, *l; 3715s # GVariant *signal_variant; 3715s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3715s # 3715s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 3715s # for (l = connections; l != NULL; l = l->next) 3715s # { 3715s # GDBusConnection *connection = l->data; 3715s # g_dbus_connection_emit_signal (connection, 3715s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.OtherIface", "SimpleSignal", 3715s # signal_variant, NULL); 3715s # } 3715s # g_variant_unref (signal_variant); 3715s # g_list_free_full (connections, g_object_unref); 3715s # } 3715s # 3715s # static void org_project_other_iface_skeleton_iface_init (OrgProjectOtherIfaceIface *iface); 3715s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3715s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceSkeleton, org_project_other_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3715s # G_ADD_PRIVATE (OrgProjectOtherIfaceSkeleton) 3715s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_skeleton_iface_init)) 3715s # 3715s # #else 3715s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceSkeleton, org_project_other_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3715s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_skeleton_iface_init)) 3715s # 3715s # #endif 3715s # static void 3715s # org_project_other_iface_skeleton_finalize (GObject *object) 3715s # { 3715s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (object); 3715s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3715s # if (skeleton->priv->changed_properties_idle_source != NULL) 3715s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3715s # g_main_context_unref (skeleton->priv->context); 3715s # g_mutex_clear (&skeleton->priv->lock); 3715s # G_OBJECT_CLASS (org_project_other_iface_skeleton_parent_class)->finalize (object); 3715s # } 3715s # 3715s # static void 3715s # org_project_other_iface_skeleton_init (OrgProjectOtherIfaceSkeleton *skeleton) 3715s # { 3715s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3715s # skeleton->priv = org_project_other_iface_skeleton_get_instance_private (skeleton); 3715s # #else 3715s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_IFACE_SKELETON, OrgProjectOtherIfaceSkeletonPrivate); 3715s # #endif 3715s # 3715s # g_mutex_init (&skeleton->priv->lock); 3715s # skeleton->priv->context = g_main_context_ref_thread_default (); 3715s # } 3715s # 3715s # static void 3715s # org_project_other_iface_skeleton_class_init (OrgProjectOtherIfaceSkeletonClass *klass) 3715s # { 3715s # GObjectClass *gobject_class; 3715s # GDBusInterfaceSkeletonClass *skeleton_class; 3715s # 3715s # gobject_class = G_OBJECT_CLASS (klass); 3715s # gobject_class->finalize = org_project_other_iface_skeleton_finalize; 3715s # 3715s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3715s # skeleton_class->get_info = org_project_other_iface_skeleton_dbus_interface_get_info; 3715s # skeleton_class->get_properties = org_project_other_iface_skeleton_dbus_interface_get_properties; 3715s # skeleton_class->flush = org_project_other_iface_skeleton_dbus_interface_flush; 3715s # skeleton_class->get_vtable = org_project_other_iface_skeleton_dbus_interface_get_vtable; 3715s # 3715s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3715s # g_type_class_add_private (klass, sizeof (OrgProjectOtherIfaceSkeletonPrivate)); 3715s # #endif 3715s # } 3715s # 3715s # static void 3715s # org_project_other_iface_skeleton_iface_init (OrgProjectOtherIfaceIface *iface) 3715s # { 3715s # iface->simple_signal = _org_project_other_iface_on_signal_simple_signal; 3715s # } 3715s # 3715s # /** 3715s # * org_project_other_iface_skeleton_new: 3715s # * 3715s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-OtherIface.top_of_page">org.project.OtherIface</link>. 3715s # * 3715s # * Returns: (transfer full) (type OrgProjectOtherIfaceSkeleton): The skeleton object. 3715s # */ 3715s # OrgProjectOtherIface * 3715s # org_project_other_iface_skeleton_new (void) 3715s # { 3715s # return ORG_PROJECT_OTHER_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_IFACE_SKELETON, NULL)); 3715s # } 3715s # Error: 3716s ok 22 __main__.TestCodegen.test_generate_signals_marshaller_simple_signal 3716s # gdbus-codegen: /usr/bin/gdbus-codegen 3716s # tmpdir: /tmp/tmpqwosc0oj 3716s # /tmp/tmpqwosc0oj/tmp3cp4jgii.xml: 3716s # <node> 3716s # <interface name="org.project.SignalingIface"> 3716s # <signal name="SimpleSignal"/> 3716s # </interface> 3716s # <interface name="org.project.OtherSignalingIface"> 3716s # <signal name="SimpleSignal"/> 3716s # </interface> 3716s # </node> 3716s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpqwosc0oj/tmp3cp4jgii.xml', '--output', '-', '--body'] 3716s # Return code: 0 3716s # Output: 3716s # /* 3716s # * This file is generated by gdbus-codegen, do not modify it. 3716s # * 3716s # * The license of this code is the same as for the D-Bus interface description 3716s # * it was derived from. Note that it links to GLib, so must comply with the 3716s # * LGPL linking clauses. 3716s # */ 3716s # 3716s # #ifdef HAVE_CONFIG_H 3716s # # include "config.h" 3716s # #endif 3716s # 3716s # #include <string.h> 3716s # #ifdef G_OS_UNIX 3716s # # include <gio/gunixfdlist.h> 3716s # #endif 3716s # 3716s # #ifdef G_ENABLE_DEBUG 3716s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3716s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3716s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3716s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3716s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3716s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3716s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3716s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3716s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3716s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3716s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3716s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3716s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3716s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3716s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3716s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3716s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3716s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3716s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3716s # #else /* !G_ENABLE_DEBUG */ 3716s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3716s # * Do not access GValues directly in your code. Instead, use the 3716s # * g_value_get_*() functions 3716s # */ 3716s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3716s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3716s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3716s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3716s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3716s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3716s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3716s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3716s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3716s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3716s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3716s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3716s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3716s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3716s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3716s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3716s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3716s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3716s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3716s # #endif /* !G_ENABLE_DEBUG */ 3716s # 3716s # typedef struct 3716s # { 3716s # GDBusArgInfo parent_struct; 3716s # gboolean use_gvariant; 3716s # } _ExtendedGDBusArgInfo; 3716s # 3716s # typedef struct 3716s # { 3716s # GDBusMethodInfo parent_struct; 3716s # const gchar *signal_name; 3716s # gboolean pass_fdlist; 3716s # } _ExtendedGDBusMethodInfo; 3716s # 3716s # typedef struct 3716s # { 3716s # GDBusSignalInfo parent_struct; 3716s # const gchar *signal_name; 3716s # } _ExtendedGDBusSignalInfo; 3716s # 3716s # typedef struct 3716s # { 3716s # GDBusPropertyInfo parent_struct; 3716s # const gchar *hyphen_name; 3716s # guint use_gvariant : 1; 3716s # guint emits_changed_signal : 1; 3716s # } _ExtendedGDBusPropertyInfo; 3716s # 3716s # typedef struct 3716s # { 3716s # GDBusInterfaceInfo parent_struct; 3716s # const gchar *hyphen_name; 3716s # } _ExtendedGDBusInterfaceInfo; 3716s # 3716s # typedef struct 3716s # { 3716s # const _ExtendedGDBusPropertyInfo *info; 3716s # guint prop_id; 3716s # GValue orig_value; /* the value before the change */ 3716s # } ChangedProperty; 3716s # 3716s # static void 3716s # _changed_property_free (ChangedProperty *data) 3716s # { 3716s # g_value_unset (&data->orig_value); 3716s # g_free (data); 3716s # } 3716s # 3716s # static gboolean 3716s # _g_strv_equal0 (gchar **a, gchar **b) 3716s # { 3716s # gboolean ret = FALSE; 3716s # guint n; 3716s # if (a == NULL && b == NULL) 3716s # { 3716s # ret = TRUE; 3716s # goto out; 3716s # } 3716s # if (a == NULL || b == NULL) 3716s # goto out; 3716s # if (g_strv_length (a) != g_strv_length (b)) 3716s # goto out; 3716s # for (n = 0; a[n] != NULL; n++) 3716s # if (g_strcmp0 (a[n], b[n]) != 0) 3716s # goto out; 3716s # ret = TRUE; 3716s # out: 3716s # return ret; 3716s # } 3716s # 3716s # static gboolean 3716s # _g_variant_equal0 (GVariant *a, GVariant *b) 3716s # { 3716s # gboolean ret = FALSE; 3716s # if (a == NULL && b == NULL) 3716s # { 3716s # ret = TRUE; 3716s # goto out; 3716s # } 3716s # if (a == NULL || b == NULL) 3716s # goto out; 3716s # ret = g_variant_equal (a, b); 3716s # out: 3716s # return ret; 3716s # } 3716s # 3716s # G_GNUC_UNUSED static gboolean 3716s # _g_value_equal (const GValue *a, const GValue *b) 3716s # { 3716s # gboolean ret = FALSE; 3716s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3716s # switch (G_VALUE_TYPE (a)) 3716s # { 3716s # case G_TYPE_BOOLEAN: 3716s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3716s # break; 3716s # case G_TYPE_UCHAR: 3716s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3716s # break; 3716s # case G_TYPE_INT: 3716s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3716s # break; 3716s # case G_TYPE_UINT: 3716s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3716s # break; 3716s # case G_TYPE_INT64: 3716s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3716s # break; 3716s # case G_TYPE_UINT64: 3716s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3716s # break; 3716s # case G_TYPE_DOUBLE: 3716s # { 3716s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3716s # gdouble da = g_value_get_double (a); 3716s # gdouble db = g_value_get_double (b); 3716s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3716s # } 3716s # break; 3716s # case G_TYPE_STRING: 3716s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3716s # break; 3716s # case G_TYPE_VARIANT: 3716s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3716s # break; 3716s # default: 3716s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3716s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3716s # else 3716s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3716s # break; 3716s # } 3716s # return ret; 3716s # } 3716s # 3716s # /* ------------------------------------------------------------------------ 3716s # * Code for interface org.project.SignalingIface 3716s # * ------------------------------------------------------------------------ 3716s # */ 3716s # 3716s # /** 3716s # * SECTION:OrgProjectSignalingIface 3716s # * @title: OrgProjectSignalingIface 3716s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 3716s # * 3716s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface in C. 3716s # */ 3716s # 3716s # enum 3716s # { 3716s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 3716s # }; 3716s # 3716s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 3716s # 3716s # /* ---- Introspection data for org.project.SignalingIface ---- */ 3716s # 3716s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 3716s # { 3716s # { 3716s # -1, 3716s # (gchar *) "SimpleSignal", 3716s # NULL, 3716s # NULL 3716s # }, 3716s # "simple-signal" 3716s # }; 3716s # 3716s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 3716s # { 3716s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 3716s # NULL 3716s # }; 3716s # 3716s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 3716s # { 3716s # { 3716s # -1, 3716s # (gchar *) "org.project.SignalingIface", 3716s # NULL, 3716s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 3716s # NULL, 3716s # NULL 3716s # }, 3716s # "org-project-signaling-iface", 3716s # }; 3716s # 3716s # 3716s # /** 3716s # * org_project_signaling_iface_interface_info: 3716s # * 3716s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface. 3716s # * 3716s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3716s # */ 3716s # GDBusInterfaceInfo * 3716s # org_project_signaling_iface_interface_info (void) 3716s # { 3716s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 3716s # } 3716s # 3716s # /** 3716s # * org_project_signaling_iface_override_properties: 3716s # * @klass: The class structure for a #GObject derived class. 3716s # * @property_id_begin: The property id to assign to the first overridden property. 3716s # * 3716s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 3716s # * The properties are overridden in the order they are defined. 3716s # * 3716s # * Returns: The last property id. 3716s # */ 3716s # guint 3716s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3716s # { 3716s # return property_id_begin - 1; 3716s # } 3716s # 3716s # 3716s # inline static void 3716s # org_project_signaling_iface_signal_marshal_simple_signal ( 3716s # GClosure *closure, 3716s # GValue *return_value, 3716s # unsigned int n_param_values, 3716s # const GValue *param_values, 3716s # void *invocation_hint, 3716s # void *marshal_data) 3716s # { 3716s # g_cclosure_marshal_VOID__VOID (closure, 3716s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3716s # } 3716s # 3716s # 3716s # /** 3716s # * OrgProjectSignalingIface: 3716s # * 3716s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3716s # */ 3716s # 3716s # /** 3716s # * OrgProjectSignalingIfaceIface: 3716s # * @parent_iface: The parent interface. 3716s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 3716s # * 3716s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3716s # */ 3716s # 3716s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 3716s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 3716s # 3716s # static void 3716s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 3716s # { 3716s # /* GObject signals for received D-Bus signals: */ 3716s # /** 3716s # * OrgProjectSignalingIface::simple-signal: 3716s # * @object: A #OrgProjectSignalingIface. 3716s # * 3716s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SimpleSignal">"SimpleSignal"</link> is received. 3716s # * 3716s # * 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. 3716s # */ 3716s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 3716s # g_signal_new ("simple-signal", 3716s # G_TYPE_FROM_INTERFACE (iface), 3716s # G_SIGNAL_RUN_LAST, 3716s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 3716s # NULL, 3716s # NULL, 3716s # org_project_signaling_iface_signal_marshal_simple_signal, 3716s # G_TYPE_NONE, 3716s # 0); 3716s # 3716s # } 3716s # 3716s # /** 3716s # * org_project_signaling_iface_emit_simple_signal: 3716s # * @object: A #OrgProjectSignalingIface. 3716s # * 3716s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SimpleSignal">"SimpleSignal"</link> D-Bus signal. 3716s # */ 3716s # void 3716s # org_project_signaling_iface_emit_simple_signal ( 3716s # OrgProjectSignalingIface *object) 3716s # { 3716s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 3716s # } 3716s # 3716s # /* ------------------------------------------------------------------------ */ 3716s # 3716s # /** 3716s # * OrgProjectSignalingIfaceProxy: 3716s # * 3716s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 3716s # */ 3716s # 3716s # /** 3716s # * OrgProjectSignalingIfaceProxyClass: 3716s # * @parent_class: The parent class. 3716s # * 3716s # * Class structure for #OrgProjectSignalingIfaceProxy. 3716s # */ 3716s # 3716s # struct _OrgProjectSignalingIfaceProxyPrivate 3716s # { 3716s # GData *qdata; 3716s # }; 3716s # 3716s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 3716s # 3716s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3716s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3716s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 3716s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3716s # 3716s # #else 3716s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3716s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3716s # 3716s # #endif 3716s # static void 3716s # org_project_signaling_iface_proxy_finalize (GObject *object) 3716s # { 3716s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 3716s # g_datalist_clear (&proxy->priv->qdata); 3716s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 3716s # } 3716s # 3716s # static void 3716s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3716s # guint prop_id G_GNUC_UNUSED, 3716s # GValue *value G_GNUC_UNUSED, 3716s # GParamSpec *pspec G_GNUC_UNUSED) 3716s # { 3716s # } 3716s # 3716s # static void 3716s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3716s # guint prop_id G_GNUC_UNUSED, 3716s # const GValue *value G_GNUC_UNUSED, 3716s # GParamSpec *pspec G_GNUC_UNUSED) 3716s # { 3716s # } 3716s # 3716s # static void 3716s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 3716s # const gchar *sender_name G_GNUC_UNUSED, 3716s # const gchar *signal_name, 3716s # GVariant *parameters) 3716s # { 3716s # _ExtendedGDBusSignalInfo *info; 3716s # GVariantIter iter; 3716s # GVariant *child; 3716s # GValue *paramv; 3716s # gsize num_params; 3716s # gsize n; 3716s # guint signal_id; 3716s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 3716s # if (info == NULL) 3716s # return; 3716s # num_params = g_variant_n_children (parameters); 3716s # paramv = g_new0 (GValue, num_params + 1); 3716s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3716s # g_value_set_object (¶mv[0], proxy); 3716s # g_variant_iter_init (&iter, parameters); 3716s # n = 1; 3716s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3716s # { 3716s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3716s # if (arg_info->use_gvariant) 3716s # { 3716s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3716s # g_value_set_variant (¶mv[n], child); 3716s # n++; 3716s # } 3716s # else 3716s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3716s # g_variant_unref (child); 3716s # } 3716s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3716s # g_signal_emitv (paramv, signal_id, 0, NULL); 3716s # for (n = 0; n < num_params + 1; n++) 3716s # g_value_unset (¶mv[n]); 3716s # g_free (paramv); 3716s # } 3716s # 3716s # static void 3716s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 3716s # GVariant *changed_properties, 3716s # const gchar *const *invalidated_properties) 3716s # { 3716s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 3716s # guint n; 3716s # const gchar *key; 3716s # GVariantIter *iter; 3716s # _ExtendedGDBusPropertyInfo *info; 3716s # g_variant_get (changed_properties, "a{sv}", &iter); 3716s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3716s # { 3716s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 3716s # g_datalist_remove_data (&proxy->priv->qdata, key); 3716s # if (info != NULL) 3716s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3716s # } 3716s # g_variant_iter_free (iter); 3716s # for (n = 0; invalidated_properties[n] != NULL; n++) 3716s # { 3716s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 3716s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3716s # if (info != NULL) 3716s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3716s # } 3716s # } 3716s # 3716s # static void 3716s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 3716s # { 3716s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3716s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 3716s # #else 3716s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 3716s # #endif 3716s # 3716s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 3716s # } 3716s # 3716s # static void 3716s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 3716s # { 3716s # GObjectClass *gobject_class; 3716s # GDBusProxyClass *proxy_class; 3716s # 3716s # gobject_class = G_OBJECT_CLASS (klass); 3716s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 3716s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 3716s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 3716s # 3716s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3716s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 3716s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 3716s # 3716s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3716s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 3716s # #endif 3716s # } 3716s # 3716s # static void 3716s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 3716s # { 3716s # } 3716s # 3716s # /** 3716s # * org_project_signaling_iface_proxy_new: 3716s # * @connection: A #GDBusConnection. 3716s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3716s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3716s # * @object_path: An object path. 3716s # * @cancellable: (nullable): A #GCancellable or %NULL. 3716s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3716s # * @user_data: User data to pass to @callback. 3716s # * 3716s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new() for more details. 3716s # * 3716s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3716s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 3716s # * 3716s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3716s # */ 3716s # void 3716s # org_project_signaling_iface_proxy_new ( 3716s # GDBusConnection *connection, 3716s # GDBusProxyFlags flags, 3716s # const gchar *name, 3716s # const gchar *object_path, 3716s # GCancellable *cancellable, 3716s # GAsyncReadyCallback callback, 3716s # gpointer user_data) 3716s # { 3716s # 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); 3716s # } 3716s # 3716s # /** 3716s # * org_project_signaling_iface_proxy_new_finish: 3716s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 3716s # * @error: Return location for error or %NULL 3716s # * 3716s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 3716s # * 3716s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3716s # */ 3716s # OrgProjectSignalingIface * 3716s # org_project_signaling_iface_proxy_new_finish ( 3716s # GAsyncResult *res, 3716s # GError **error) 3716s # { 3716s # GObject *ret; 3716s # GObject *source_object; 3716s # source_object = g_async_result_get_source_object (res); 3716s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3716s # g_object_unref (source_object); 3716s # if (ret != NULL) 3716s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3716s # else 3716s # return NULL; 3716s # } 3716s # 3716s # /** 3716s # * org_project_signaling_iface_proxy_new_sync: 3716s # * @connection: A #GDBusConnection. 3716s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3716s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3716s # * @object_path: An object path. 3716s # * @cancellable: (nullable): A #GCancellable or %NULL. 3716s # * @error: Return location for error or %NULL 3716s # * 3716s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new_sync() for more details. 3716s # * 3716s # * The calling thread is blocked until a reply is received. 3716s # * 3716s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 3716s # * 3716s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3716s # */ 3716s # OrgProjectSignalingIface * 3716s # org_project_signaling_iface_proxy_new_sync ( 3716s # GDBusConnection *connection, 3716s # GDBusProxyFlags flags, 3716s # const gchar *name, 3716s # const gchar *object_path, 3716s # GCancellable *cancellable, 3716s # GError **error) 3716s # { 3716s # GInitable *ret; 3716s # 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); 3716s # if (ret != NULL) 3716s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3716s # else 3716s # return NULL; 3716s # } 3716s # 3716s # 3716s # /** 3716s # * org_project_signaling_iface_proxy_new_for_bus: 3716s # * @bus_type: A #GBusType. 3716s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3716s # * @name: A bus name (well-known or unique). 3716s # * @object_path: An object path. 3716s # * @cancellable: (nullable): A #GCancellable or %NULL. 3716s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3716s # * @user_data: User data to pass to @callback. 3716s # * 3716s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3716s # * 3716s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3716s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 3716s # * 3716s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3716s # */ 3716s # void 3716s # org_project_signaling_iface_proxy_new_for_bus ( 3716s # GBusType bus_type, 3716s # GDBusProxyFlags flags, 3716s # const gchar *name, 3716s # const gchar *object_path, 3716s # GCancellable *cancellable, 3716s # GAsyncReadyCallback callback, 3716s # gpointer user_data) 3716s # { 3716s # 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); 3716s # } 3716s # 3716s # /** 3716s # * org_project_signaling_iface_proxy_new_for_bus_finish: 3716s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 3716s # * @error: Return location for error or %NULL 3716s # * 3716s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 3716s # * 3716s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3716s # */ 3716s # OrgProjectSignalingIface * 3716s # org_project_signaling_iface_proxy_new_for_bus_finish ( 3716s # GAsyncResult *res, 3716s # GError **error) 3716s # { 3716s # GObject *ret; 3716s # GObject *source_object; 3716s # source_object = g_async_result_get_source_object (res); 3716s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3716s # g_object_unref (source_object); 3716s # if (ret != NULL) 3716s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3716s # else 3716s # return NULL; 3716s # } 3716s # 3716s # /** 3716s # * org_project_signaling_iface_proxy_new_for_bus_sync: 3716s # * @bus_type: A #GBusType. 3716s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3716s # * @name: A bus name (well-known or unique). 3716s # * @object_path: An object path. 3716s # * @cancellable: (nullable): A #GCancellable or %NULL. 3716s # * @error: Return location for error or %NULL 3716s # * 3716s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3716s # * 3716s # * The calling thread is blocked until a reply is received. 3716s # * 3716s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 3716s # * 3716s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3716s # */ 3716s # OrgProjectSignalingIface * 3716s # org_project_signaling_iface_proxy_new_for_bus_sync ( 3716s # GBusType bus_type, 3716s # GDBusProxyFlags flags, 3716s # const gchar *name, 3716s # const gchar *object_path, 3716s # GCancellable *cancellable, 3716s # GError **error) 3716s # { 3716s # GInitable *ret; 3716s # 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); 3716s # if (ret != NULL) 3716s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3716s # else 3716s # return NULL; 3716s # } 3716s # 3716s # 3716s # /* ------------------------------------------------------------------------ */ 3716s # 3716s # /** 3716s # * OrgProjectSignalingIfaceSkeleton: 3716s # * 3716s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3716s # */ 3716s # 3716s # /** 3716s # * OrgProjectSignalingIfaceSkeletonClass: 3716s # * @parent_class: The parent class. 3716s # * 3716s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 3716s # */ 3716s # 3716s # struct _OrgProjectSignalingIfaceSkeletonPrivate 3716s # { 3716s # GValue *properties; 3716s # GList *changed_properties; 3716s # GSource *changed_properties_idle_source; 3716s # GMainContext *context; 3716s # GMutex lock; 3716s # }; 3716s # 3716s # static void 3716s # _org_project_signaling_iface_skeleton_handle_method_call ( 3716s # GDBusConnection *connection G_GNUC_UNUSED, 3716s # const gchar *sender G_GNUC_UNUSED, 3716s # const gchar *object_path G_GNUC_UNUSED, 3716s # const gchar *interface_name, 3716s # const gchar *method_name, 3716s # GVariant *parameters, 3716s # GDBusMethodInvocation *invocation, 3716s # gpointer user_data) 3716s # { 3716s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3716s # _ExtendedGDBusMethodInfo *info; 3716s # GVariantIter iter; 3716s # GVariant *child; 3716s # GValue *paramv; 3716s # gsize num_params; 3716s # guint num_extra; 3716s # gsize n; 3716s # guint signal_id; 3716s # GValue return_value = G_VALUE_INIT; 3716s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3716s # g_assert (info != NULL); 3716s # num_params = g_variant_n_children (parameters); 3716s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3716s # n = 0; 3716s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3716s # g_value_set_object (¶mv[n++], skeleton); 3716s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3716s # g_value_set_object (¶mv[n++], invocation); 3716s # if (info->pass_fdlist) 3716s # { 3716s # #ifdef G_OS_UNIX 3716s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3716s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3716s # #else 3716s # g_assert_not_reached (); 3716s # #endif 3716s # } 3716s # g_variant_iter_init (&iter, parameters); 3716s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3716s # { 3716s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3716s # if (arg_info->use_gvariant) 3716s # { 3716s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3716s # g_value_set_variant (¶mv[n], child); 3716s # n++; 3716s # } 3716s # else 3716s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3716s # g_variant_unref (child); 3716s # } 3716s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3716s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3716s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3716s # if (!g_value_get_boolean (&return_value)) 3716s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3716s # g_value_unset (&return_value); 3716s # for (n = 0; n < num_params + num_extra; n++) 3716s # g_value_unset (¶mv[n]); 3716s # g_free (paramv); 3716s # } 3716s # 3716s # static GVariant * 3716s # _org_project_signaling_iface_skeleton_handle_get_property ( 3716s # GDBusConnection *connection G_GNUC_UNUSED, 3716s # const gchar *sender G_GNUC_UNUSED, 3716s # const gchar *object_path G_GNUC_UNUSED, 3716s # const gchar *interface_name G_GNUC_UNUSED, 3716s # const gchar *property_name, 3716s # GError **error, 3716s # gpointer user_data) 3716s # { 3716s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3716s # GValue value = G_VALUE_INIT; 3716s # GParamSpec *pspec; 3716s # _ExtendedGDBusPropertyInfo *info; 3716s # GVariant *ret; 3716s # ret = NULL; 3716s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3716s # g_assert (info != NULL); 3716s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3716s # if (pspec == NULL) 3716s # { 3716s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3716s # } 3716s # else 3716s # { 3716s # g_value_init (&value, pspec->value_type); 3716s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3716s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3716s # g_value_unset (&value); 3716s # } 3716s # return ret; 3716s # } 3716s # 3716s # static gboolean 3716s # _org_project_signaling_iface_skeleton_handle_set_property ( 3716s # GDBusConnection *connection G_GNUC_UNUSED, 3716s # const gchar *sender G_GNUC_UNUSED, 3716s # const gchar *object_path G_GNUC_UNUSED, 3716s # const gchar *interface_name G_GNUC_UNUSED, 3716s # const gchar *property_name, 3716s # GVariant *variant, 3716s # GError **error, 3716s # gpointer user_data) 3716s # { 3716s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3716s # GValue value = G_VALUE_INIT; 3716s # GParamSpec *pspec; 3716s # _ExtendedGDBusPropertyInfo *info; 3716s # gboolean ret; 3716s # ret = FALSE; 3716s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3716s # g_assert (info != NULL); 3716s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3716s # if (pspec == NULL) 3716s # { 3716s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3716s # } 3716s # else 3716s # { 3716s # if (info->use_gvariant) 3716s # g_value_set_variant (&value, variant); 3716s # else 3716s # g_dbus_gvariant_to_gvalue (variant, &value); 3716s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3716s # g_value_unset (&value); 3716s # ret = TRUE; 3716s # } 3716s # return ret; 3716s # } 3716s # 3716s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 3716s # { 3716s # _org_project_signaling_iface_skeleton_handle_method_call, 3716s # _org_project_signaling_iface_skeleton_handle_get_property, 3716s # _org_project_signaling_iface_skeleton_handle_set_property, 3716s # {NULL} 3716s # }; 3716s # 3716s # static GDBusInterfaceInfo * 3716s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3716s # { 3716s # return org_project_signaling_iface_interface_info (); 3716s # } 3716s # 3716s # static GDBusInterfaceVTable * 3716s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3716s # { 3716s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 3716s # } 3716s # 3716s # static GVariant * 3716s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3716s # { 3716s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 3716s # 3716s # GVariantBuilder builder; 3716s # guint n; 3716s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3716s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3716s # #else 3716s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3716s # #endif 3716s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 3716s # goto out; 3716s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 3716s # { 3716s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 3716s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3716s # { 3716s # GVariant *value; 3716s # 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); 3716s # if (value != NULL) 3716s # { 3716s # g_variant_take_ref (value); 3716s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3716s # g_variant_unref (value); 3716s # } 3716s # } 3716s # } 3716s # out: 3716s # return g_variant_builder_end (&builder); 3716s # } 3716s # 3716s # static void 3716s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3716s # { 3716s # } 3716s # 3716s # static void 3716s # _org_project_signaling_iface_on_signal_simple_signal ( 3716s # OrgProjectSignalingIface *object) 3716s # { 3716s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3716s # 3716s # GList *connections, *l; 3716s # GVariant *signal_variant; 3716s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3716s # 3716s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 3716s # for (l = connections; l != NULL; l = l->next) 3716s # { 3716s # GDBusConnection *connection = l->data; 3716s # g_dbus_connection_emit_signal (connection, 3716s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 3716s # signal_variant, NULL); 3716s # } 3716s # g_variant_unref (signal_variant); 3716s # g_list_free_full (connections, g_object_unref); 3716s # } 3716s # 3716s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 3716s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3716s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3716s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 3716s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3716s # 3716s # #else 3716s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3716s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3716s # 3716s # #endif 3716s # static void 3716s # org_project_signaling_iface_skeleton_finalize (GObject *object) 3716s # { 3716s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3716s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3716s # if (skeleton->priv->changed_properties_idle_source != NULL) 3716s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3716s # g_main_context_unref (skeleton->priv->context); 3716s # g_mutex_clear (&skeleton->priv->lock); 3716s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 3716s # } 3716s # 3716s # static void 3716s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 3716s # { 3716s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3716s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 3716s # #else 3716s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 3716s # #endif 3716s # 3716s # g_mutex_init (&skeleton->priv->lock); 3716s # skeleton->priv->context = g_main_context_ref_thread_default (); 3716s # } 3716s # 3716s # static void 3716s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 3716s # { 3716s # GObjectClass *gobject_class; 3716s # GDBusInterfaceSkeletonClass *skeleton_class; 3716s # 3716s # gobject_class = G_OBJECT_CLASS (klass); 3716s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 3716s # 3716s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3716s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 3716s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 3716s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 3716s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 3716s # 3716s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3716s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 3716s # #endif 3716s # } 3716s # 3716s # static void 3716s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 3716s # { 3716s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 3716s # } 3716s # 3716s # /** 3716s # * org_project_signaling_iface_skeleton_new: 3716s # * 3716s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3716s # * 3716s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 3716s # */ 3716s # OrgProjectSignalingIface * 3716s # org_project_signaling_iface_skeleton_new (void) 3716s # { 3716s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 3716s # } 3716s # 3716s # /* ------------------------------------------------------------------------ 3716s # * Code for interface org.project.OtherSignalingIface 3716s # * ------------------------------------------------------------------------ 3716s # */ 3716s # 3716s # /** 3716s # * SECTION:OrgProjectOtherSignalingIface 3716s # * @title: OrgProjectOtherSignalingIface 3716s # * @short_description: Generated C code for the org.project.OtherSignalingIface D-Bus interface 3716s # * 3716s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-OtherSignalingIface.top_of_page">org.project.OtherSignalingIface</link> D-Bus interface in C. 3716s # */ 3716s # 3716s # enum 3716s # { 3716s # _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL, 3716s # }; 3716s # 3716s # static unsigned _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 3716s # 3716s # /* ---- Introspection data for org.project.OtherSignalingIface ---- */ 3716s # 3716s # static const _ExtendedGDBusSignalInfo _org_project_other_signaling_iface_signal_info_simple_signal = 3716s # { 3716s # { 3716s # -1, 3716s # (gchar *) "SimpleSignal", 3716s # NULL, 3716s # NULL 3716s # }, 3716s # "simple-signal" 3716s # }; 3716s # 3716s # static const GDBusSignalInfo * const _org_project_other_signaling_iface_signal_info_pointers[] = 3716s # { 3716s # &_org_project_other_signaling_iface_signal_info_simple_signal.parent_struct, 3716s # NULL 3716s # }; 3716s # 3716s # static const _ExtendedGDBusInterfaceInfo _org_project_other_signaling_iface_interface_info = 3716s # { 3716s # { 3716s # -1, 3716s # (gchar *) "org.project.OtherSignalingIface", 3716s # NULL, 3716s # (GDBusSignalInfo **) &_org_project_other_signaling_iface_signal_info_pointers, 3716s # NULL, 3716s # NULL 3716s # }, 3716s # "org-project-other-signaling-iface", 3716s # }; 3716s # 3716s # 3716s # /** 3716s # * org_project_other_signaling_iface_interface_info: 3716s # * 3716s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-OtherSignalingIface.top_of_page">org.project.OtherSignalingIface</link> D-Bus interface. 3716s # * 3716s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3716s # */ 3716s # GDBusInterfaceInfo * 3716s # org_project_other_signaling_iface_interface_info (void) 3716s # { 3716s # return (GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct; 3716s # } 3716s # 3716s # /** 3716s # * org_project_other_signaling_iface_override_properties: 3716s # * @klass: The class structure for a #GObject derived class. 3716s # * @property_id_begin: The property id to assign to the first overridden property. 3716s # * 3716s # * Overrides all #GObject properties in the #OrgProjectOtherSignalingIface interface for a concrete class. 3716s # * The properties are overridden in the order they are defined. 3716s # * 3716s # * Returns: The last property id. 3716s # */ 3716s # guint 3716s # org_project_other_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3716s # { 3716s # return property_id_begin - 1; 3716s # } 3716s # 3716s # 3716s # inline static void 3716s # org_project_other_signaling_iface_signal_marshal_simple_signal ( 3716s # GClosure *closure, 3716s # GValue *return_value, 3716s # unsigned int n_param_values, 3716s # const GValue *param_values, 3716s # void *invocation_hint, 3716s # void *marshal_data) 3716s # { 3716s # g_cclosure_marshal_VOID__VOID (closure, 3716s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3716s # } 3716s # 3716s # 3716s # /** 3716s # * OrgProjectOtherSignalingIface: 3716s # * 3716s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-OtherSignalingIface.top_of_page">org.project.OtherSignalingIface</link>. 3716s # */ 3716s # 3716s # /** 3716s # * OrgProjectOtherSignalingIfaceIface: 3716s # * @parent_iface: The parent interface. 3716s # * @simple_signal: Handler for the #OrgProjectOtherSignalingIface::simple-signal signal. 3716s # * 3716s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-OtherSignalingIface.top_of_page">org.project.OtherSignalingIface</link>. 3716s # */ 3716s # 3716s # typedef OrgProjectOtherSignalingIfaceIface OrgProjectOtherSignalingIfaceInterface; 3716s # G_DEFINE_INTERFACE (OrgProjectOtherSignalingIface, org_project_other_signaling_iface, G_TYPE_OBJECT) 3716s # 3716s # static void 3716s # org_project_other_signaling_iface_default_init (OrgProjectOtherSignalingIfaceIface *iface) 3716s # { 3716s # /* GObject signals for received D-Bus signals: */ 3716s # /** 3716s # * OrgProjectOtherSignalingIface::simple-signal: 3716s # * @object: A #OrgProjectOtherSignalingIface. 3716s # * 3716s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-OtherSignalingIface.SimpleSignal">"SimpleSignal"</link> is received. 3716s # * 3716s # * 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. 3716s # */ 3716s # _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL] = 3716s # g_signal_new ("simple-signal", 3716s # G_TYPE_FROM_INTERFACE (iface), 3716s # G_SIGNAL_RUN_LAST, 3716s # G_STRUCT_OFFSET (OrgProjectOtherSignalingIfaceIface, simple_signal), 3716s # NULL, 3716s # NULL, 3716s # org_project_other_signaling_iface_signal_marshal_simple_signal, 3716s # G_TYPE_NONE, 3716s # 0); 3716s # 3716s # } 3716s # 3716s # /** 3716s # * org_project_other_signaling_iface_emit_simple_signal: 3716s # * @object: A #OrgProjectOtherSignalingIface. 3716s # * 3716s # * Emits the <link linkend="gdbus-signal-org-project-OtherSignalingIface.SimpleSignal">"SimpleSignal"</link> D-Bus signal. 3716s # */ 3716s # void 3716s # org_project_other_signaling_iface_emit_simple_signal ( 3716s # OrgProjectOtherSignalingIface *object) 3716s # { 3716s # g_signal_emit (object, _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 3716s # } 3716s # 3716s # /* ------------------------------------------------------------------------ */ 3716s # 3716s # /** 3716s # * OrgProjectOtherSignalingIfaceProxy: 3716s # * 3716s # * The #OrgProjectOtherSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 3716s # */ 3716s # 3716s # /** 3716s # * OrgProjectOtherSignalingIfaceProxyClass: 3716s # * @parent_class: The parent class. 3716s # * 3716s # * Class structure for #OrgProjectOtherSignalingIfaceProxy. 3716s # */ 3716s # 3716s # struct _OrgProjectOtherSignalingIfaceProxyPrivate 3716s # { 3716s # GData *qdata; 3716s # }; 3716s # 3716s # static void org_project_other_signaling_iface_proxy_iface_init (OrgProjectOtherSignalingIfaceIface *iface); 3716s # 3716s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3716s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceProxy, org_project_other_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3716s # G_ADD_PRIVATE (OrgProjectOtherSignalingIfaceProxy) 3716s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_proxy_iface_init)) 3716s # 3716s # #else 3716s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceProxy, org_project_other_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3716s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_proxy_iface_init)) 3716s # 3716s # #endif 3716s # static void 3716s # org_project_other_signaling_iface_proxy_finalize (GObject *object) 3716s # { 3716s # OrgProjectOtherSignalingIfaceProxy *proxy = ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY (object); 3716s # g_datalist_clear (&proxy->priv->qdata); 3716s # G_OBJECT_CLASS (org_project_other_signaling_iface_proxy_parent_class)->finalize (object); 3716s # } 3716s # 3716s # static void 3716s # org_project_other_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3716s # guint prop_id G_GNUC_UNUSED, 3716s # GValue *value G_GNUC_UNUSED, 3716s # GParamSpec *pspec G_GNUC_UNUSED) 3716s # { 3716s # } 3716s # 3716s # static void 3716s # org_project_other_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3716s # guint prop_id G_GNUC_UNUSED, 3716s # const GValue *value G_GNUC_UNUSED, 3716s # GParamSpec *pspec G_GNUC_UNUSED) 3716s # { 3716s # } 3716s # 3716s # static void 3716s # org_project_other_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 3716s # const gchar *sender_name G_GNUC_UNUSED, 3716s # const gchar *signal_name, 3716s # GVariant *parameters) 3716s # { 3716s # _ExtendedGDBusSignalInfo *info; 3716s # GVariantIter iter; 3716s # GVariant *child; 3716s # GValue *paramv; 3716s # gsize num_params; 3716s # gsize n; 3716s # guint signal_id; 3716s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, signal_name); 3716s # if (info == NULL) 3716s # return; 3716s # num_params = g_variant_n_children (parameters); 3716s # paramv = g_new0 (GValue, num_params + 1); 3716s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 3716s # g_value_set_object (¶mv[0], proxy); 3716s # g_variant_iter_init (&iter, parameters); 3716s # n = 1; 3716s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3716s # { 3716s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3716s # if (arg_info->use_gvariant) 3716s # { 3716s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3716s # g_value_set_variant (¶mv[n], child); 3716s # n++; 3716s # } 3716s # else 3716s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3716s # g_variant_unref (child); 3716s # } 3716s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 3716s # g_signal_emitv (paramv, signal_id, 0, NULL); 3716s # for (n = 0; n < num_params + 1; n++) 3716s # g_value_unset (¶mv[n]); 3716s # g_free (paramv); 3716s # } 3716s # 3716s # static void 3716s # org_project_other_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 3716s # GVariant *changed_properties, 3716s # const gchar *const *invalidated_properties) 3716s # { 3716s # OrgProjectOtherSignalingIfaceProxy *proxy = ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY (_proxy); 3716s # guint n; 3716s # const gchar *key; 3716s # GVariantIter *iter; 3716s # _ExtendedGDBusPropertyInfo *info; 3716s # g_variant_get (changed_properties, "a{sv}", &iter); 3716s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3716s # { 3716s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, key); 3716s # g_datalist_remove_data (&proxy->priv->qdata, key); 3716s # if (info != NULL) 3716s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3716s # } 3716s # g_variant_iter_free (iter); 3716s # for (n = 0; invalidated_properties[n] != NULL; n++) 3716s # { 3716s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 3716s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3716s # if (info != NULL) 3716s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3716s # } 3716s # } 3716s # 3716s # static void 3716s # org_project_other_signaling_iface_proxy_init (OrgProjectOtherSignalingIfaceProxy *proxy) 3716s # { 3716s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3716s # proxy->priv = org_project_other_signaling_iface_proxy_get_instance_private (proxy); 3716s # #else 3716s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY, OrgProjectOtherSignalingIfaceProxyPrivate); 3716s # #endif 3716s # 3716s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_signaling_iface_interface_info ()); 3716s # } 3716s # 3716s # static void 3716s # org_project_other_signaling_iface_proxy_class_init (OrgProjectOtherSignalingIfaceProxyClass *klass) 3716s # { 3716s # GObjectClass *gobject_class; 3716s # GDBusProxyClass *proxy_class; 3716s # 3716s # gobject_class = G_OBJECT_CLASS (klass); 3716s # gobject_class->finalize = org_project_other_signaling_iface_proxy_finalize; 3716s # gobject_class->get_property = org_project_other_signaling_iface_proxy_get_property; 3716s # gobject_class->set_property = org_project_other_signaling_iface_proxy_set_property; 3716s # 3716s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3716s # proxy_class->g_signal = org_project_other_signaling_iface_proxy_g_signal; 3716s # proxy_class->g_properties_changed = org_project_other_signaling_iface_proxy_g_properties_changed; 3716s # 3716s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3716s # g_type_class_add_private (klass, sizeof (OrgProjectOtherSignalingIfaceProxyPrivate)); 3716s # #endif 3716s # } 3716s # 3716s # static void 3716s # org_project_other_signaling_iface_proxy_iface_init (OrgProjectOtherSignalingIfaceIface *iface G_GNUC_UNUSED) 3716s # { 3716s # } 3716s # 3716s # /** 3716s # * org_project_other_signaling_iface_proxy_new: 3716s # * @connection: A #GDBusConnection. 3716s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3716s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3716s # * @object_path: An object path. 3716s # * @cancellable: (nullable): A #GCancellable or %NULL. 3716s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3716s # * @user_data: User data to pass to @callback. 3716s # * 3716s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-OtherSignalingIface.top_of_page">org.project.OtherSignalingIface</link>. See g_dbus_proxy_new() for more details. 3716s # * 3716s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3716s # * You can then call org_project_other_signaling_iface_proxy_new_finish() to get the result of the operation. 3716s # * 3716s # * See org_project_other_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3716s # */ 3716s # void 3716s # org_project_other_signaling_iface_proxy_new ( 3716s # GDBusConnection *connection, 3716s # GDBusProxyFlags flags, 3716s # const gchar *name, 3716s # const gchar *object_path, 3716s # GCancellable *cancellable, 3716s # GAsyncReadyCallback callback, 3716s # gpointer user_data) 3716s # { 3716s # 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); 3716s # } 3716s # 3716s # /** 3716s # * org_project_other_signaling_iface_proxy_new_finish: 3716s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_signaling_iface_proxy_new(). 3716s # * @error: Return location for error or %NULL 3716s # * 3716s # * Finishes an operation started with org_project_other_signaling_iface_proxy_new(). 3716s # * 3716s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3716s # */ 3716s # OrgProjectOtherSignalingIface * 3716s # org_project_other_signaling_iface_proxy_new_finish ( 3716s # GAsyncResult *res, 3716s # GError **error) 3716s # { 3716s # GObject *ret; 3716s # GObject *source_object; 3716s # source_object = g_async_result_get_source_object (res); 3716s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3716s # g_object_unref (source_object); 3716s # if (ret != NULL) 3716s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 3716s # else 3716s # return NULL; 3716s # } 3716s # 3716s # /** 3716s # * org_project_other_signaling_iface_proxy_new_sync: 3716s # * @connection: A #GDBusConnection. 3716s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3716s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3716s # * @object_path: An object path. 3716s # * @cancellable: (nullable): A #GCancellable or %NULL. 3716s # * @error: Return location for error or %NULL 3716s # * 3716s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-OtherSignalingIface.top_of_page">org.project.OtherSignalingIface</link>. See g_dbus_proxy_new_sync() for more details. 3716s # * 3716s # * The calling thread is blocked until a reply is received. 3716s # * 3716s # * See org_project_other_signaling_iface_proxy_new() for the asynchronous version of this constructor. 3716s # * 3716s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3716s # */ 3716s # OrgProjectOtherSignalingIface * 3716s # org_project_other_signaling_iface_proxy_new_sync ( 3716s # GDBusConnection *connection, 3716s # GDBusProxyFlags flags, 3716s # const gchar *name, 3716s # const gchar *object_path, 3716s # GCancellable *cancellable, 3716s # GError **error) 3716s # { 3716s # GInitable *ret; 3716s # 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); 3716s # if (ret != NULL) 3716s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 3716s # else 3716s # return NULL; 3716s # } 3716s # 3716s # 3716s # /** 3716s # * org_project_other_signaling_iface_proxy_new_for_bus: 3716s # * @bus_type: A #GBusType. 3716s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3716s # * @name: A bus name (well-known or unique). 3716s # * @object_path: An object path. 3716s # * @cancellable: (nullable): A #GCancellable or %NULL. 3716s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3716s # * @user_data: User data to pass to @callback. 3716s # * 3716s # * Like org_project_other_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3716s # * 3716s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3716s # * You can then call org_project_other_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 3716s # * 3716s # * See org_project_other_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3716s # */ 3716s # void 3716s # org_project_other_signaling_iface_proxy_new_for_bus ( 3716s # GBusType bus_type, 3716s # GDBusProxyFlags flags, 3716s # const gchar *name, 3716s # const gchar *object_path, 3716s # GCancellable *cancellable, 3716s # GAsyncReadyCallback callback, 3716s # gpointer user_data) 3716s # { 3716s # 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); 3716s # } 3716s # 3716s # /** 3716s # * org_project_other_signaling_iface_proxy_new_for_bus_finish: 3716s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_signaling_iface_proxy_new_for_bus(). 3716s # * @error: Return location for error or %NULL 3716s # * 3716s # * Finishes an operation started with org_project_other_signaling_iface_proxy_new_for_bus(). 3716s # * 3716s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3716s # */ 3716s # OrgProjectOtherSignalingIface * 3716s # org_project_other_signaling_iface_proxy_new_for_bus_finish ( 3716s # GAsyncResult *res, 3716s # GError **error) 3716s # { 3716s # GObject *ret; 3716s # GObject *source_object; 3716s # source_object = g_async_result_get_source_object (res); 3716s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3716s # g_object_unref (source_object); 3716s # if (ret != NULL) 3716s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 3716s # else 3716s # return NULL; 3716s # } 3716s # 3716s # /** 3716s # * org_project_other_signaling_iface_proxy_new_for_bus_sync: 3716s # * @bus_type: A #GBusType. 3716s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3716s # * @name: A bus name (well-known or unique). 3716s # * @object_path: An object path. 3716s # * @cancellable: (nullable): A #GCancellable or %NULL. 3716s # * @error: Return location for error or %NULL 3716s # * 3716s # * Like org_project_other_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3716s # * 3716s # * The calling thread is blocked until a reply is received. 3716s # * 3716s # * See org_project_other_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 3716s # * 3716s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3716s # */ 3716s # OrgProjectOtherSignalingIface * 3716s # org_project_other_signaling_iface_proxy_new_for_bus_sync ( 3716s # GBusType bus_type, 3716s # GDBusProxyFlags flags, 3716s # const gchar *name, 3716s # const gchar *object_path, 3716s # GCancellable *cancellable, 3716s # GError **error) 3716s # { 3716s # GInitable *ret; 3716s # 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); 3716s # if (ret != NULL) 3716s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 3716s # else 3716s # return NULL; 3716s # } 3716s # 3716s # 3716s # /* ------------------------------------------------------------------------ */ 3716s # 3716s # /** 3716s # * OrgProjectOtherSignalingIfaceSkeleton: 3716s # * 3716s # * The #OrgProjectOtherSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3716s # */ 3716s # 3716s # /** 3716s # * OrgProjectOtherSignalingIfaceSkeletonClass: 3716s # * @parent_class: The parent class. 3716s # * 3716s # * Class structure for #OrgProjectOtherSignalingIfaceSkeleton. 3716s # */ 3716s # 3716s # struct _OrgProjectOtherSignalingIfaceSkeletonPrivate 3716s # { 3716s # GValue *properties; 3716s # GList *changed_properties; 3716s # GSource *changed_properties_idle_source; 3716s # GMainContext *context; 3716s # GMutex lock; 3716s # }; 3716s # 3716s # static void 3716s # _org_project_other_signaling_iface_skeleton_handle_method_call ( 3716s # GDBusConnection *connection G_GNUC_UNUSED, 3716s # const gchar *sender G_GNUC_UNUSED, 3716s # const gchar *object_path G_GNUC_UNUSED, 3716s # const gchar *interface_name, 3716s # const gchar *method_name, 3716s # GVariant *parameters, 3716s # GDBusMethodInvocation *invocation, 3716s # gpointer user_data) 3716s # { 3716s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 3716s # _ExtendedGDBusMethodInfo *info; 3716s # GVariantIter iter; 3716s # GVariant *child; 3716s # GValue *paramv; 3716s # gsize num_params; 3716s # guint num_extra; 3716s # gsize n; 3716s # guint signal_id; 3716s # GValue return_value = G_VALUE_INIT; 3716s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3716s # g_assert (info != NULL); 3716s # num_params = g_variant_n_children (parameters); 3716s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3716s # n = 0; 3716s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 3716s # g_value_set_object (¶mv[n++], skeleton); 3716s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3716s # g_value_set_object (¶mv[n++], invocation); 3716s # if (info->pass_fdlist) 3716s # { 3716s # #ifdef G_OS_UNIX 3716s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3716s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3716s # #else 3716s # g_assert_not_reached (); 3716s # #endif 3716s # } 3716s # g_variant_iter_init (&iter, parameters); 3716s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3716s # { 3716s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3716s # if (arg_info->use_gvariant) 3716s # { 3716s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3716s # g_value_set_variant (¶mv[n], child); 3716s # n++; 3716s # } 3716s # else 3716s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3716s # g_variant_unref (child); 3716s # } 3716s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 3716s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3716s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3716s # if (!g_value_get_boolean (&return_value)) 3716s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3716s # g_value_unset (&return_value); 3716s # for (n = 0; n < num_params + num_extra; n++) 3716s # g_value_unset (¶mv[n]); 3716s # g_free (paramv); 3716s # } 3716s # 3716s # static GVariant * 3716s # _org_project_other_signaling_iface_skeleton_handle_get_property ( 3716s # GDBusConnection *connection G_GNUC_UNUSED, 3716s # const gchar *sender G_GNUC_UNUSED, 3716s # const gchar *object_path G_GNUC_UNUSED, 3716s # const gchar *interface_name G_GNUC_UNUSED, 3716s # const gchar *property_name, 3716s # GError **error, 3716s # gpointer user_data) 3716s # { 3716s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 3716s # GValue value = G_VALUE_INIT; 3716s # GParamSpec *pspec; 3716s # _ExtendedGDBusPropertyInfo *info; 3716s # GVariant *ret; 3716s # ret = NULL; 3716s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, property_name); 3716s # g_assert (info != NULL); 3716s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3716s # if (pspec == NULL) 3716s # { 3716s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3716s # } 3716s # else 3716s # { 3716s # g_value_init (&value, pspec->value_type); 3716s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3716s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3716s # g_value_unset (&value); 3716s # } 3716s # return ret; 3716s # } 3716s # 3716s # static gboolean 3716s # _org_project_other_signaling_iface_skeleton_handle_set_property ( 3716s # GDBusConnection *connection G_GNUC_UNUSED, 3716s # const gchar *sender G_GNUC_UNUSED, 3716s # const gchar *object_path G_GNUC_UNUSED, 3716s # const gchar *interface_name G_GNUC_UNUSED, 3716s # const gchar *property_name, 3716s # GVariant *variant, 3716s # GError **error, 3716s # gpointer user_data) 3716s # { 3716s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 3716s # GValue value = G_VALUE_INIT; 3716s # GParamSpec *pspec; 3716s # _ExtendedGDBusPropertyInfo *info; 3716s # gboolean ret; 3716s # ret = FALSE; 3716s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, property_name); 3716s # g_assert (info != NULL); 3716s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3716s # if (pspec == NULL) 3716s # { 3716s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3716s # } 3716s # else 3716s # { 3716s # if (info->use_gvariant) 3716s # g_value_set_variant (&value, variant); 3716s # else 3716s # g_dbus_gvariant_to_gvalue (variant, &value); 3716s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3716s # g_value_unset (&value); 3716s # ret = TRUE; 3716s # } 3716s # return ret; 3716s # } 3716s # 3716s # static const GDBusInterfaceVTable _org_project_other_signaling_iface_skeleton_vtable = 3716s # { 3716s # _org_project_other_signaling_iface_skeleton_handle_method_call, 3716s # _org_project_other_signaling_iface_skeleton_handle_get_property, 3716s # _org_project_other_signaling_iface_skeleton_handle_set_property, 3716s # {NULL} 3716s # }; 3716s # 3716s # static GDBusInterfaceInfo * 3716s # org_project_other_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3716s # { 3716s # return org_project_other_signaling_iface_interface_info (); 3716s # } 3716s # 3716s # static GDBusInterfaceVTable * 3716s # org_project_other_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3716s # { 3716s # return (GDBusInterfaceVTable *) &_org_project_other_signaling_iface_skeleton_vtable; 3716s # } 3716s # 3716s # static GVariant * 3716s # org_project_other_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3716s # { 3716s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (_skeleton); 3716s # 3716s # GVariantBuilder builder; 3716s # guint n; 3716s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3716s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3716s # #else 3716s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3716s # #endif 3716s # if (_org_project_other_signaling_iface_interface_info.parent_struct.properties == NULL) 3716s # goto out; 3716s # for (n = 0; _org_project_other_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 3716s # { 3716s # GDBusPropertyInfo *info = _org_project_other_signaling_iface_interface_info.parent_struct.properties[n]; 3716s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3716s # { 3716s # GVariant *value; 3716s # 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); 3716s # if (value != NULL) 3716s # { 3716s # g_variant_take_ref (value); 3716s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3716s # g_variant_unref (value); 3716s # } 3716s # } 3716s # } 3716s # out: 3716s # return g_variant_builder_end (&builder); 3716s # } 3716s # 3716s # static void 3716s # org_project_other_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3716s # { 3716s # } 3716s # 3716s # static void 3716s # _org_project_other_signaling_iface_on_signal_simple_signal ( 3716s # OrgProjectOtherSignalingIface *object) 3716s # { 3716s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (object); 3716s # 3716s # GList *connections, *l; 3716s # GVariant *signal_variant; 3716s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3716s # 3716s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 3716s # for (l = connections; l != NULL; l = l->next) 3716s # { 3716s # GDBusConnection *connection = l->data; 3716s # g_dbus_connection_emit_signal (connection, 3716s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.OtherSignalingIface", "SimpleSignal", 3716s # signal_variant, NULL); 3716s # } 3716s # g_variant_unref (signal_variant); 3716s # g_list_free_full (connections, g_object_unref); 3716s # } 3716s # 3716s # static void org_project_other_signaling_iface_skeleton_iface_init (OrgProjectOtherSignalingIfaceIface *iface); 3716s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3716s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceSkeleton, org_project_other_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3716s # G_ADD_PRIVATE (OrgProjectOtherSignalingIfaceSkeleton) 3716s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_skeleton_iface_init)) 3716s # 3716s # #else 3716s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceSkeleton, org_project_other_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3716s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_skeleton_iface_init)) 3716s # 3716s # #endif 3716s # static void 3716s # org_project_other_signaling_iface_skeleton_finalize (GObject *object) 3716s # { 3716s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (object); 3716s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3716s # if (skeleton->priv->changed_properties_idle_source != NULL) 3716s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3716s # g_main_context_unref (skeleton->priv->context); 3716s # g_mutex_clear (&skeleton->priv->lock); 3716s # G_OBJECT_CLASS (org_project_other_signaling_iface_skeleton_parent_class)->finalize (object); 3716s # } 3716s # 3716s # static void 3716s # org_project_other_signaling_iface_skeleton_init (OrgProjectOtherSignalingIfaceSkeleton *skeleton) 3716s # { 3716s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3716s # skeleton->priv = org_project_other_signaling_iface_skeleton_get_instance_private (skeleton); 3716s # #else 3716s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON, OrgProjectOtherSignalingIfaceSkeletonPrivate); 3716s # #endif 3716s # 3716s # g_mutex_init (&skeleton->priv->lock); 3716s # skeleton->priv->context = g_main_context_ref_thread_default (); 3716s # } 3716s # 3716s # static void 3716s # org_project_other_signaling_iface_skeleton_class_init (OrgProjectOtherSignalingIfaceSkeletonClass *klass) 3716s # { 3716s # GObjectClass *gobject_class; 3716s # GDBusInterfaceSkeletonClass *skeleton_class; 3716s # 3716s # gobject_class = G_OBJECT_CLASS (klass); 3716s # gobject_class->finalize = org_project_other_signaling_iface_skeleton_finalize; 3716s # 3716s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3716s # skeleton_class->get_info = org_project_other_signaling_iface_skeleton_dbus_interface_get_info; 3716s # skeleton_class->get_properties = org_project_other_signaling_iface_skeleton_dbus_interface_get_properties; 3716s # skeleton_class->flush = org_project_other_signaling_iface_skeleton_dbus_interface_flush; 3716s # skeleton_class->get_vtable = org_project_other_signaling_iface_skeleton_dbus_interface_get_vtable; 3716s # 3716s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3716s # g_type_class_add_private (klass, sizeof (OrgProjectOtherSignalingIfaceSkeletonPrivate)); 3716s # #endif 3716s # } 3716s # 3716s # static void 3716s # org_project_other_signaling_iface_skeleton_iface_init (OrgProjectOtherSignalingIfaceIface *iface) 3716s # { 3716s # iface->simple_signal = _org_project_other_signaling_iface_on_signal_simple_signal; 3716s # } 3716s # 3716s # /** 3716s # * org_project_other_signaling_iface_skeleton_new: 3716s # * 3716s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-OtherSignalingIface.top_of_page">org.project.OtherSignalingIface</link>. 3716s # * 3716s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceSkeleton): The skeleton object. 3716s # */ 3716s # OrgProjectOtherSignalingIface * 3716s # org_project_other_signaling_iface_skeleton_new (void) 3716s # { 3716s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON, NULL)); 3716s # } 3716s # Error: 3719s # Executing: glib/codegen.py.test 3724s # Executing: glib/codegen.py.test 3726s ok 23 __main__.TestCodegen.test_generate_signals_marshaller_single_typed_args 3726s # gdbus-codegen: /usr/bin/gdbus-codegen 3726s # tmpdir: /tmp/tmp9symyp9z 3726s # /tmp/tmp9symyp9z/tmp0xb5lxfu.xml: 3726s # <node> 3726s # <interface name="org.project.SignalingIface"> 3726s # <signal name="SimpleSignal"/> 3726s # <signal name="SingleArgSignalB"> 3726s # <arg name="arg_b" type="b"/> 3726s # </signal> 3726s # </interface> 3726s # </node> 3726s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9symyp9z/tmp0xb5lxfu.xml', '--output', '-', '--body'] 3726s # Return code: 0 3726s # Output: 3726s # /* 3726s # * This file is generated by gdbus-codegen, do not modify it. 3726s # * 3726s # * The license of this code is the same as for the D-Bus interface description 3726s # * it was derived from. Note that it links to GLib, so must comply with the 3726s # * LGPL linking clauses. 3726s # */ 3726s # 3726s # #ifdef HAVE_CONFIG_H 3726s # # include "config.h" 3726s # #endif 3726s # 3726s # #include <string.h> 3726s # #ifdef G_OS_UNIX 3726s # # include <gio/gunixfdlist.h> 3726s # #endif 3726s # 3726s # #ifdef G_ENABLE_DEBUG 3726s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3726s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3726s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3726s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3726s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3726s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3726s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3726s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3726s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3726s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3726s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3726s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3726s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3726s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3726s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3726s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3726s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3726s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3726s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3726s # #else /* !G_ENABLE_DEBUG */ 3726s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3726s # * Do not access GValues directly in your code. Instead, use the 3726s # * g_value_get_*() functions 3726s # */ 3726s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3726s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3726s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3726s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3726s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3726s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3726s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3726s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3726s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3726s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3726s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3726s # #endif /* !G_ENABLE_DEBUG */ 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusArgInfo parent_struct; 3726s # gboolean use_gvariant; 3726s # } _ExtendedGDBusArgInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusMethodInfo parent_struct; 3726s # const gchar *signal_name; 3726s # gboolean pass_fdlist; 3726s # } _ExtendedGDBusMethodInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusSignalInfo parent_struct; 3726s # const gchar *signal_name; 3726s # } _ExtendedGDBusSignalInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusPropertyInfo parent_struct; 3726s # const gchar *hyphen_name; 3726s # guint use_gvariant : 1; 3726s # guint emits_changed_signal : 1; 3726s # } _ExtendedGDBusPropertyInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusInterfaceInfo parent_struct; 3726s # const gchar *hyphen_name; 3726s # } _ExtendedGDBusInterfaceInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # const _ExtendedGDBusPropertyInfo *info; 3726s # guint prop_id; 3726s # GValue orig_value; /* the value before the change */ 3726s # } ChangedProperty; 3726s # 3726s # static void 3726s # _changed_property_free (ChangedProperty *data) 3726s # { 3726s # g_value_unset (&data->orig_value); 3726s # g_free (data); 3726s # } 3726s # 3726s # static gboolean 3726s # _g_strv_equal0 (gchar **a, gchar **b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # guint n; 3726s # if (a == NULL && b == NULL) 3726s # { 3726s # ret = TRUE; 3726s # goto out; 3726s # } 3726s # if (a == NULL || b == NULL) 3726s # goto out; 3726s # if (g_strv_length (a) != g_strv_length (b)) 3726s # goto out; 3726s # for (n = 0; a[n] != NULL; n++) 3726s # if (g_strcmp0 (a[n], b[n]) != 0) 3726s # goto out; 3726s # ret = TRUE; 3726s # out: 3726s # return ret; 3726s # } 3726s # 3726s # static gboolean 3726s # _g_variant_equal0 (GVariant *a, GVariant *b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # if (a == NULL && b == NULL) 3726s # { 3726s # ret = TRUE; 3726s # goto out; 3726s # } 3726s # if (a == NULL || b == NULL) 3726s # goto out; 3726s # ret = g_variant_equal (a, b); 3726s # out: 3726s # return ret; 3726s # } 3726s # 3726s # G_GNUC_UNUSED static gboolean 3726s # _g_value_equal (const GValue *a, const GValue *b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3726s # switch (G_VALUE_TYPE (a)) 3726s # { 3726s # case G_TYPE_BOOLEAN: 3726s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3726s # break; 3726s # case G_TYPE_UCHAR: 3726s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3726s # break; 3726s # case G_TYPE_INT: 3726s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3726s # break; 3726s # case G_TYPE_UINT: 3726s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3726s # break; 3726s # case G_TYPE_INT64: 3726s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3726s # break; 3726s # case G_TYPE_UINT64: 3726s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3726s # break; 3726s # case G_TYPE_DOUBLE: 3726s # { 3726s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3726s # gdouble da = g_value_get_double (a); 3726s # gdouble db = g_value_get_double (b); 3726s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3726s # } 3726s # break; 3726s # case G_TYPE_STRING: 3726s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3726s # break; 3726s # case G_TYPE_VARIANT: 3726s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3726s # break; 3726s # default: 3726s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3726s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3726s # else 3726s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3726s # break; 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # /* ------------------------------------------------------------------------ 3726s # * Code for interface org.project.SignalingIface 3726s # * ------------------------------------------------------------------------ 3726s # */ 3726s # 3726s # /** 3726s # * SECTION:OrgProjectSignalingIface 3726s # * @title: OrgProjectSignalingIface 3726s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 3726s # * 3726s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface in C. 3726s # */ 3726s # 3726s # enum 3726s # { 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 3726s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B, 3726s # }; 3726s # 3726s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 3726s # 3726s # /* ---- Introspection data for org.project.SignalingIface ---- */ 3726s # 3726s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "SimpleSignal", 3726s # NULL, 3726s # NULL 3726s # }, 3726s # "simple-signal" 3726s # }; 3726s # 3726s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_arg_b = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "arg_b", 3726s # (gchar *) "b", 3726s # NULL 3726s # }, 3726s # FALSE 3726s # }; 3726s # 3726s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers[] = 3726s # { 3726s # &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_arg_b.parent_struct, 3726s # NULL 3726s # }; 3726s # 3726s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_b = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "SingleArgSignalB", 3726s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers, 3726s # NULL 3726s # }, 3726s # "single-arg-signal-b" 3726s # }; 3726s # 3726s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 3726s # { 3726s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 3726s # &_org_project_signaling_iface_signal_info_single_arg_signal_b.parent_struct, 3726s # NULL 3726s # }; 3726s # 3726s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "org.project.SignalingIface", 3726s # NULL, 3726s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 3726s # NULL, 3726s # NULL 3726s # }, 3726s # "org-project-signaling-iface", 3726s # }; 3726s # 3726s # 3726s # /** 3726s # * org_project_signaling_iface_interface_info: 3726s # * 3726s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface. 3726s # * 3726s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3726s # */ 3726s # GDBusInterfaceInfo * 3726s # org_project_signaling_iface_interface_info (void) 3726s # { 3726s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_override_properties: 3726s # * @klass: The class structure for a #GObject derived class. 3726s # * @property_id_begin: The property id to assign to the first overridden property. 3726s # * 3726s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 3726s # * The properties are overridden in the order they are defined. 3726s # * 3726s # * Returns: The last property id. 3726s # */ 3726s # guint 3726s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3726s # { 3726s # return property_id_begin - 1; 3726s # } 3726s # 3726s # 3726s # inline static void 3726s # org_project_signaling_iface_signal_marshal_simple_signal ( 3726s # GClosure *closure, 3726s # GValue *return_value, 3726s # unsigned int n_param_values, 3726s # const GValue *param_values, 3726s # void *invocation_hint, 3726s # void *marshal_data) 3726s # { 3726s # g_cclosure_marshal_VOID__VOID (closure, 3726s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3726s # } 3726s # 3726s # inline static void 3726s # org_project_signaling_iface_signal_marshal_single_arg_signal_b ( 3726s # GClosure *closure, 3726s # GValue *return_value, 3726s # unsigned int n_param_values, 3726s # const GValue *param_values, 3726s # void *invocation_hint, 3726s # void *marshal_data) 3726s # { 3726s # g_cclosure_marshal_VOID__BOOLEAN (closure, 3726s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3726s # } 3726s # 3726s # 3726s # /** 3726s # * OrgProjectSignalingIface: 3726s # * 3726s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceIface: 3726s # * @parent_iface: The parent interface. 3726s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 3726s # * @single_arg_signal_b: Handler for the #OrgProjectSignalingIface::single-arg-signal-b signal. 3726s # * 3726s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # */ 3726s # 3726s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 3726s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 3726s # 3726s # static void 3726s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 3726s # { 3726s # /* GObject signals for received D-Bus signals: */ 3726s # /** 3726s # * OrgProjectSignalingIface::simple-signal: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * 3726s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SimpleSignal">"SimpleSignal"</link> is received. 3726s # * 3726s # * 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. 3726s # */ 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 3726s # g_signal_new ("simple-signal", 3726s # G_TYPE_FROM_INTERFACE (iface), 3726s # G_SIGNAL_RUN_LAST, 3726s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 3726s # NULL, 3726s # NULL, 3726s # org_project_signaling_iface_signal_marshal_simple_signal, 3726s # G_TYPE_NONE, 3726s # 0); 3726s # 3726s # /** 3726s # * OrgProjectSignalingIface::single-arg-signal-b: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * @arg_arg_b: Argument. 3726s # * 3726s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalB">"SingleArgSignalB"</link> is received. 3726s # * 3726s # * 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. 3726s # */ 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B] = 3726s # g_signal_new ("single-arg-signal-b", 3726s # G_TYPE_FROM_INTERFACE (iface), 3726s # G_SIGNAL_RUN_LAST, 3726s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_b), 3726s # NULL, 3726s # NULL, 3726s # org_project_signaling_iface_signal_marshal_single_arg_signal_b, 3726s # G_TYPE_NONE, 3726s # 1, G_TYPE_BOOLEAN); 3726s # 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_emit_simple_signal: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * 3726s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SimpleSignal">"SimpleSignal"</link> D-Bus signal. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_emit_simple_signal ( 3726s # OrgProjectSignalingIface *object) 3726s # { 3726s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_emit_single_arg_signal_b: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * @arg_arg_b: Argument to pass with the signal. 3726s # * 3726s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalB">"SingleArgSignalB"</link> D-Bus signal. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_emit_single_arg_signal_b ( 3726s # OrgProjectSignalingIface *object, 3726s # gboolean arg_arg_b) 3726s # { 3726s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B], 0, arg_arg_b); 3726s # } 3726s # 3726s # /* ------------------------------------------------------------------------ */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceProxy: 3726s # * 3726s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceProxyClass: 3726s # * @parent_class: The parent class. 3726s # * 3726s # * Class structure for #OrgProjectSignalingIfaceProxy. 3726s # */ 3726s # 3726s # struct _OrgProjectSignalingIfaceProxyPrivate 3726s # { 3726s # GData *qdata; 3726s # }; 3726s # 3726s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3726s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3726s # 3726s # #else 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3726s # 3726s # #endif 3726s # static void 3726s # org_project_signaling_iface_proxy_finalize (GObject *object) 3726s # { 3726s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 3726s # g_datalist_clear (&proxy->priv->qdata); 3726s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3726s # guint prop_id G_GNUC_UNUSED, 3726s # GValue *value G_GNUC_UNUSED, 3726s # GParamSpec *pspec G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3726s # guint prop_id G_GNUC_UNUSED, 3726s # const GValue *value G_GNUC_UNUSED, 3726s # GParamSpec *pspec G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 3726s # const gchar *sender_name G_GNUC_UNUSED, 3726s # const gchar *signal_name, 3726s # GVariant *parameters) 3726s # { 3726s # _ExtendedGDBusSignalInfo *info; 3726s # GVariantIter iter; 3726s # GVariant *child; 3726s # GValue *paramv; 3726s # gsize num_params; 3726s # gsize n; 3726s # guint signal_id; 3726s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 3726s # if (info == NULL) 3726s # return; 3726s # num_params = g_variant_n_children (parameters); 3726s # paramv = g_new0 (GValue, num_params + 1); 3726s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_set_object (¶mv[0], proxy); 3726s # g_variant_iter_init (&iter, parameters); 3726s # n = 1; 3726s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3726s # { 3726s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3726s # if (arg_info->use_gvariant) 3726s # { 3726s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3726s # g_value_set_variant (¶mv[n], child); 3726s # n++; 3726s # } 3726s # else 3726s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3726s # g_variant_unref (child); 3726s # } 3726s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_signal_emitv (paramv, signal_id, 0, NULL); 3726s # for (n = 0; n < num_params + 1; n++) 3726s # g_value_unset (¶mv[n]); 3726s # g_free (paramv); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 3726s # GVariant *changed_properties, 3726s # const gchar *const *invalidated_properties) 3726s # { 3726s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 3726s # guint n; 3726s # const gchar *key; 3726s # GVariantIter *iter; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # g_variant_get (changed_properties, "a{sv}", &iter); 3726s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3726s # { 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 3726s # g_datalist_remove_data (&proxy->priv->qdata, key); 3726s # if (info != NULL) 3726s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3726s # } 3726s # g_variant_iter_free (iter); 3726s # for (n = 0; invalidated_properties[n] != NULL; n++) 3726s # { 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 3726s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3726s # if (info != NULL) 3726s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3726s # } 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 3726s # { 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 3726s # #else 3726s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 3726s # #endif 3726s # 3726s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 3726s # { 3726s # GObjectClass *gobject_class; 3726s # GDBusProxyClass *proxy_class; 3726s # 3726s # gobject_class = G_OBJECT_CLASS (klass); 3726s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 3726s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 3726s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 3726s # 3726s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3726s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 3726s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3726s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 3726s # #endif 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new: 3726s # * @connection: A #GDBusConnection. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3726s # * @user_data: User data to pass to @callback. 3726s # * 3726s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new() for more details. 3726s # * 3726s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3726s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_proxy_new ( 3726s # GDBusConnection *connection, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GAsyncReadyCallback callback, 3726s # gpointer user_data) 3726s # { 3726s # 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); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_finish: 3726s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_finish ( 3726s # GAsyncResult *res, 3726s # GError **error) 3726s # { 3726s # GObject *ret; 3726s # GObject *source_object; 3726s # source_object = g_async_result_get_source_object (res); 3726s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3726s # g_object_unref (source_object); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_sync: 3726s # * @connection: A #GDBusConnection. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new_sync() for more details. 3726s # * 3726s # * The calling thread is blocked until a reply is received. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_sync ( 3726s # GDBusConnection *connection, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GError **error) 3726s # { 3726s # GInitable *ret; 3726s # 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); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus: 3726s # * @bus_type: A #GBusType. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: A bus name (well-known or unique). 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3726s # * @user_data: User data to pass to @callback. 3726s # * 3726s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3726s # * 3726s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3726s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_proxy_new_for_bus ( 3726s # GBusType bus_type, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GAsyncReadyCallback callback, 3726s # gpointer user_data) 3726s # { 3726s # 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); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus_finish: 3726s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_for_bus_finish ( 3726s # GAsyncResult *res, 3726s # GError **error) 3726s # { 3726s # GObject *ret; 3726s # GObject *source_object; 3726s # source_object = g_async_result_get_source_object (res); 3726s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3726s # g_object_unref (source_object); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus_sync: 3726s # * @bus_type: A #GBusType. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: A bus name (well-known or unique). 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3726s # * 3726s # * The calling thread is blocked until a reply is received. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_for_bus_sync ( 3726s # GBusType bus_type, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GError **error) 3726s # { 3726s # GInitable *ret; 3726s # 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); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # 3726s # /* ------------------------------------------------------------------------ */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceSkeleton: 3726s # * 3726s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceSkeletonClass: 3726s # * @parent_class: The parent class. 3726s # * 3726s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 3726s # */ 3726s # 3726s # struct _OrgProjectSignalingIfaceSkeletonPrivate 3726s # { 3726s # GValue *properties; 3726s # GList *changed_properties; 3726s # GSource *changed_properties_idle_source; 3726s # GMainContext *context; 3726s # GMutex lock; 3726s # }; 3726s # 3726s # static void 3726s # _org_project_signaling_iface_skeleton_handle_method_call ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name, 3726s # const gchar *method_name, 3726s # GVariant *parameters, 3726s # GDBusMethodInvocation *invocation, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # _ExtendedGDBusMethodInfo *info; 3726s # GVariantIter iter; 3726s # GVariant *child; 3726s # GValue *paramv; 3726s # gsize num_params; 3726s # guint num_extra; 3726s # gsize n; 3726s # guint signal_id; 3726s # GValue return_value = G_VALUE_INIT; 3726s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3726s # g_assert (info != NULL); 3726s # num_params = g_variant_n_children (parameters); 3726s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3726s # n = 0; 3726s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_set_object (¶mv[n++], skeleton); 3726s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3726s # g_value_set_object (¶mv[n++], invocation); 3726s # if (info->pass_fdlist) 3726s # { 3726s # #ifdef G_OS_UNIX 3726s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3726s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3726s # #else 3726s # g_assert_not_reached (); 3726s # #endif 3726s # } 3726s # g_variant_iter_init (&iter, parameters); 3726s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3726s # { 3726s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3726s # if (arg_info->use_gvariant) 3726s # { 3726s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3726s # g_value_set_variant (¶mv[n], child); 3726s # n++; 3726s # } 3726s # else 3726s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3726s # g_variant_unref (child); 3726s # } 3726s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3726s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3726s # if (!g_value_get_boolean (&return_value)) 3726s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3726s # g_value_unset (&return_value); 3726s # for (n = 0; n < num_params + num_extra; n++) 3726s # g_value_unset (¶mv[n]); 3726s # g_free (paramv); 3726s # } 3726s # 3726s # static GVariant * 3726s # _org_project_signaling_iface_skeleton_handle_get_property ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name G_GNUC_UNUSED, 3726s # const gchar *property_name, 3726s # GError **error, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # GValue value = G_VALUE_INIT; 3726s # GParamSpec *pspec; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # GVariant *ret; 3726s # ret = NULL; 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3726s # g_assert (info != NULL); 3726s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3726s # if (pspec == NULL) 3726s # { 3726s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3726s # } 3726s # else 3726s # { 3726s # g_value_init (&value, pspec->value_type); 3726s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3726s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3726s # g_value_unset (&value); 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # static gboolean 3726s # _org_project_signaling_iface_skeleton_handle_set_property ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name G_GNUC_UNUSED, 3726s # const gchar *property_name, 3726s # GVariant *variant, 3726s # GError **error, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # GValue value = G_VALUE_INIT; 3726s # GParamSpec *pspec; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # gboolean ret; 3726s # ret = FALSE; 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3726s # g_assert (info != NULL); 3726s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3726s # if (pspec == NULL) 3726s # { 3726s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3726s # } 3726s # else 3726s # { 3726s # if (info->use_gvariant) 3726s # g_value_set_variant (&value, variant); 3726s # else 3726s # g_dbus_gvariant_to_gvalue (variant, &value); 3726s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3726s # g_value_unset (&value); 3726s # ret = TRUE; 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 3726s # { 3726s # _org_project_signaling_iface_skeleton_handle_method_call, 3726s # _org_project_signaling_iface_skeleton_handle_get_property, 3726s # _org_project_signaling_iface_skeleton_handle_set_property, 3726s # {NULL} 3726s # }; 3726s # 3726s # static GDBusInterfaceInfo * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3726s # { 3726s # return org_project_signaling_iface_interface_info (); 3726s # } 3726s # 3726s # static GDBusInterfaceVTable * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3726s # { 3726s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 3726s # } 3726s # 3726s # static GVariant * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 3726s # 3726s # GVariantBuilder builder; 3726s # guint n; 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3726s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3726s # #else 3726s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3726s # #endif 3726s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 3726s # goto out; 3726s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 3726s # { 3726s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 3726s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3726s # { 3726s # GVariant *value; 3726s # 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); 3726s # if (value != NULL) 3726s # { 3726s # g_variant_take_ref (value); 3726s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3726s # g_variant_unref (value); 3726s # } 3726s # } 3726s # } 3726s # out: 3726s # return g_variant_builder_end (&builder); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # _org_project_signaling_iface_on_signal_simple_signal ( 3726s # OrgProjectSignalingIface *object) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # 3726s # GList *connections, *l; 3726s # GVariant *signal_variant; 3726s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3726s # 3726s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 3726s # for (l = connections; l != NULL; l = l->next) 3726s # { 3726s # GDBusConnection *connection = l->data; 3726s # g_dbus_connection_emit_signal (connection, 3726s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 3726s # signal_variant, NULL); 3726s # } 3726s # g_variant_unref (signal_variant); 3726s # g_list_free_full (connections, g_object_unref); 3726s # } 3726s # 3726s # static void 3726s # _org_project_signaling_iface_on_signal_single_arg_signal_b ( 3726s # OrgProjectSignalingIface *object, 3726s # gboolean arg_arg_b) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # 3726s # GList *connections, *l; 3726s # GVariant *signal_variant; 3726s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3726s # 3726s # signal_variant = g_variant_ref_sink (g_variant_new ("(b)", 3726s # arg_arg_b)); 3726s # for (l = connections; l != NULL; l = l->next) 3726s # { 3726s # GDBusConnection *connection = l->data; 3726s # g_dbus_connection_emit_signal (connection, 3726s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalB", 3726s # signal_variant, NULL); 3726s # } 3726s # g_variant_unref (signal_variant); 3726s # g_list_free_full (connections, g_object_unref); 3726s # } 3726s # 3726s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3726s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3726s # 3726s # #else 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3726s # 3726s # #endif 3726s # static void 3726s # org_project_signaling_iface_skeleton_finalize (GObject *object) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3726s # if (skeleton->priv->changed_properties_idle_source != NULL) 3726s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3726s # g_main_context_unref (skeleton->priv->context); 3726s # g_mutex_clear (&skeleton->priv->lock); 3726s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 3726s # { 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 3726s # #else 3726s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 3726s # #endif 3726s # 3726s # g_mutex_init (&skeleton->priv->lock); 3726s # skeleton->priv->context = g_main_context_ref_thread_default (); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 3726s # { 3726s # GObjectClass *gobject_class; 3726s # GDBusInterfaceSkeletonClass *skeleton_class; 3726s # 3726s # gobject_class = G_OBJECT_CLASS (klass); 3726s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 3726s # 3726s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3726s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 3726s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 3726s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 3726s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3726s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 3726s # #endif 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 3726s # { 3726s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 3726s # iface->single_arg_signal_b = _org_project_signaling_iface_on_signal_single_arg_signal_b; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_skeleton_new: 3726s # * 3726s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_skeleton_new (void) 3726s # { 3726s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 3726s # } 3726s # Error: 3726s # 3726s # /tmp/tmp9symyp9z/tmpit0fygrj.xml: 3726s # <node> 3726s # <interface name="org.project.SignalingIface"> 3726s # <signal name="SimpleSignal"/> 3726s # <signal name="SingleArgSignalY"> 3726s # <arg name="arg_y" type="y"/> 3726s # </signal> 3726s # </interface> 3726s # </node> 3726s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9symyp9z/tmpit0fygrj.xml', '--output', '-', '--body'] 3726s # Return code: 0 3726s # Output: 3726s # /* 3726s # * This file is generated by gdbus-codegen, do not modify it. 3726s # * 3726s # * The license of this code is the same as for the D-Bus interface description 3726s # * it was derived from. Note that it links to GLib, so must comply with the 3726s # * LGPL linking clauses. 3726s # */ 3726s # 3726s # #ifdef HAVE_CONFIG_H 3726s # # include "config.h" 3726s # #endif 3726s # 3726s # #include <string.h> 3726s # #ifdef G_OS_UNIX 3726s # # include <gio/gunixfdlist.h> 3726s # #endif 3726s # 3726s # #ifdef G_ENABLE_DEBUG 3726s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3726s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3726s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3726s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3726s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3726s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3726s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3726s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3726s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3726s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3726s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3726s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3726s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3726s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3726s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3726s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3726s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3726s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3726s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3726s # #else /* !G_ENABLE_DEBUG */ 3726s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3726s # * Do not access GValues directly in your code. Instead, use the 3726s # * g_value_get_*() functions 3726s # */ 3726s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3726s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3726s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3726s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3726s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3726s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3726s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3726s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3726s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3726s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3726s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3726s # #endif /* !G_ENABLE_DEBUG */ 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusArgInfo parent_struct; 3726s # gboolean use_gvariant; 3726s # } _ExtendedGDBusArgInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusMethodInfo parent_struct; 3726s # const gchar *signal_name; 3726s # gboolean pass_fdlist; 3726s # } _ExtendedGDBusMethodInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusSignalInfo parent_struct; 3726s # const gchar *signal_name; 3726s # } _ExtendedGDBusSignalInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusPropertyInfo parent_struct; 3726s # const gchar *hyphen_name; 3726s # guint use_gvariant : 1; 3726s # guint emits_changed_signal : 1; 3726s # } _ExtendedGDBusPropertyInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusInterfaceInfo parent_struct; 3726s # const gchar *hyphen_name; 3726s # } _ExtendedGDBusInterfaceInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # const _ExtendedGDBusPropertyInfo *info; 3726s # guint prop_id; 3726s # GValue orig_value; /* the value before the change */ 3726s # } ChangedProperty; 3726s # 3726s # static void 3726s # _changed_property_free (ChangedProperty *data) 3726s # { 3726s # g_value_unset (&data->orig_value); 3726s # g_free (data); 3726s # } 3726s # 3726s # static gboolean 3726s # _g_strv_equal0 (gchar **a, gchar **b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # guint n; 3726s # if (a == NULL && b == NULL) 3726s # { 3726s # ret = TRUE; 3726s # goto out; 3726s # } 3726s # if (a == NULL || b == NULL) 3726s # goto out; 3726s # if (g_strv_length (a) != g_strv_length (b)) 3726s # goto out; 3726s # for (n = 0; a[n] != NULL; n++) 3726s # if (g_strcmp0 (a[n], b[n]) != 0) 3726s # goto out; 3726s # ret = TRUE; 3726s # out: 3726s # return ret; 3726s # } 3726s # 3726s # static gboolean 3726s # _g_variant_equal0 (GVariant *a, GVariant *b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # if (a == NULL && b == NULL) 3726s # { 3726s # ret = TRUE; 3726s # goto out; 3726s # } 3726s # if (a == NULL || b == NULL) 3726s # goto out; 3726s # ret = g_variant_equal (a, b); 3726s # out: 3726s # return ret; 3726s # } 3726s # 3726s # G_GNUC_UNUSED static gboolean 3726s # _g_value_equal (const GValue *a, const GValue *b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3726s # switch (G_VALUE_TYPE (a)) 3726s # { 3726s # case G_TYPE_BOOLEAN: 3726s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3726s # break; 3726s # case G_TYPE_UCHAR: 3726s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3726s # break; 3726s # case G_TYPE_INT: 3726s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3726s # break; 3726s # case G_TYPE_UINT: 3726s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3726s # break; 3726s # case G_TYPE_INT64: 3726s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3726s # break; 3726s # case G_TYPE_UINT64: 3726s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3726s # break; 3726s # case G_TYPE_DOUBLE: 3726s # { 3726s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3726s # gdouble da = g_value_get_double (a); 3726s # gdouble db = g_value_get_double (b); 3726s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3726s # } 3726s # break; 3726s # case G_TYPE_STRING: 3726s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3726s # break; 3726s # case G_TYPE_VARIANT: 3726s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3726s # break; 3726s # default: 3726s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3726s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3726s # else 3726s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3726s # break; 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # /* ------------------------------------------------------------------------ 3726s # * Code for interface org.project.SignalingIface 3726s # * ------------------------------------------------------------------------ 3726s # */ 3726s # 3726s # /** 3726s # * SECTION:OrgProjectSignalingIface 3726s # * @title: OrgProjectSignalingIface 3726s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 3726s # * 3726s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface in C. 3726s # */ 3726s # 3726s # enum 3726s # { 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 3726s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y, 3726s # }; 3726s # 3726s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 3726s # 3726s # /* ---- Introspection data for org.project.SignalingIface ---- */ 3726s # 3726s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "SimpleSignal", 3726s # NULL, 3726s # NULL 3726s # }, 3726s # "simple-signal" 3726s # }; 3726s # 3726s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_arg_y = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "arg_y", 3726s # (gchar *) "y", 3726s # NULL 3726s # }, 3726s # FALSE 3726s # }; 3726s # 3726s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers[] = 3726s # { 3726s # &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_arg_y.parent_struct, 3726s # NULL 3726s # }; 3726s # 3726s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_y = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "SingleArgSignalY", 3726s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers, 3726s # NULL 3726s # }, 3726s # "single-arg-signal-y" 3726s # }; 3726s # 3726s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 3726s # { 3726s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 3726s # &_org_project_signaling_iface_signal_info_single_arg_signal_y.parent_struct, 3726s # NULL 3726s # }; 3726s # 3726s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "org.project.SignalingIface", 3726s # NULL, 3726s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 3726s # NULL, 3726s # NULL 3726s # }, 3726s # "org-project-signaling-iface", 3726s # }; 3726s # 3726s # 3726s # /** 3726s # * org_project_signaling_iface_interface_info: 3726s # * 3726s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface. 3726s # * 3726s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3726s # */ 3726s # GDBusInterfaceInfo * 3726s # org_project_signaling_iface_interface_info (void) 3726s # { 3726s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_override_properties: 3726s # * @klass: The class structure for a #GObject derived class. 3726s # * @property_id_begin: The property id to assign to the first overridden property. 3726s # * 3726s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 3726s # * The properties are overridden in the order they are defined. 3726s # * 3726s # * Returns: The last property id. 3726s # */ 3726s # guint 3726s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3726s # { 3726s # return property_id_begin - 1; 3726s # } 3726s # 3726s # 3726s # inline static void 3726s # org_project_signaling_iface_signal_marshal_simple_signal ( 3726s # GClosure *closure, 3726s # GValue *return_value, 3726s # unsigned int n_param_values, 3726s # const GValue *param_values, 3726s # void *invocation_hint, 3726s # void *marshal_data) 3726s # { 3726s # g_cclosure_marshal_VOID__VOID (closure, 3726s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3726s # } 3726s # 3726s # inline static void 3726s # org_project_signaling_iface_signal_marshal_single_arg_signal_y ( 3726s # GClosure *closure, 3726s # GValue *return_value, 3726s # unsigned int n_param_values, 3726s # const GValue *param_values, 3726s # void *invocation_hint, 3726s # void *marshal_data) 3726s # { 3726s # g_cclosure_marshal_VOID__UCHAR (closure, 3726s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3726s # } 3726s # 3726s # 3726s # /** 3726s # * OrgProjectSignalingIface: 3726s # * 3726s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceIface: 3726s # * @parent_iface: The parent interface. 3726s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 3726s # * @single_arg_signal_y: Handler for the #OrgProjectSignalingIface::single-arg-signal-y signal. 3726s # * 3726s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # */ 3726s # 3726s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 3726s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 3726s # 3726s # static void 3726s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 3726s # { 3726s # /* GObject signals for received D-Bus signals: */ 3726s # /** 3726s # * OrgProjectSignalingIface::simple-signal: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * 3726s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SimpleSignal">"SimpleSignal"</link> is received. 3726s # * 3726s # * 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. 3726s # */ 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 3726s # g_signal_new ("simple-signal", 3726s # G_TYPE_FROM_INTERFACE (iface), 3726s # G_SIGNAL_RUN_LAST, 3726s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 3726s # NULL, 3726s # NULL, 3726s # org_project_signaling_iface_signal_marshal_simple_signal, 3726s # G_TYPE_NONE, 3726s # 0); 3726s # 3726s # /** 3726s # * OrgProjectSignalingIface::single-arg-signal-y: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * @arg_arg_y: Argument. 3726s # * 3726s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalY">"SingleArgSignalY"</link> is received. 3726s # * 3726s # * 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. 3726s # */ 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y] = 3726s # g_signal_new ("single-arg-signal-y", 3726s # G_TYPE_FROM_INTERFACE (iface), 3726s # G_SIGNAL_RUN_LAST, 3726s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_y), 3726s # NULL, 3726s # NULL, 3726s # org_project_signaling_iface_signal_marshal_single_arg_signal_y, 3726s # G_TYPE_NONE, 3726s # 1, G_TYPE_UCHAR); 3726s # 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_emit_simple_signal: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * 3726s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SimpleSignal">"SimpleSignal"</link> D-Bus signal. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_emit_simple_signal ( 3726s # OrgProjectSignalingIface *object) 3726s # { 3726s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_emit_single_arg_signal_y: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * @arg_arg_y: Argument to pass with the signal. 3726s # * 3726s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalY">"SingleArgSignalY"</link> D-Bus signal. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_emit_single_arg_signal_y ( 3726s # OrgProjectSignalingIface *object, 3726s # guchar arg_arg_y) 3726s # { 3726s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y], 0, arg_arg_y); 3726s # } 3726s # 3726s # /* ------------------------------------------------------------------------ */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceProxy: 3726s # * 3726s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceProxyClass: 3726s # * @parent_class: The parent class. 3726s # * 3726s # * Class structure for #OrgProjectSignalingIfaceProxy. 3726s # */ 3726s # 3726s # struct _OrgProjectSignalingIfaceProxyPrivate 3726s # { 3726s # GData *qdata; 3726s # }; 3726s # 3726s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3726s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3726s # 3726s # #else 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3726s # 3726s # #endif 3726s # static void 3726s # org_project_signaling_iface_proxy_finalize (GObject *object) 3726s # { 3726s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 3726s # g_datalist_clear (&proxy->priv->qdata); 3726s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3726s # guint prop_id G_GNUC_UNUSED, 3726s # GValue *value G_GNUC_UNUSED, 3726s # GParamSpec *pspec G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3726s # guint prop_id G_GNUC_UNUSED, 3726s # const GValue *value G_GNUC_UNUSED, 3726s # GParamSpec *pspec G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 3726s # const gchar *sender_name G_GNUC_UNUSED, 3726s # const gchar *signal_name, 3726s # GVariant *parameters) 3726s # { 3726s # _ExtendedGDBusSignalInfo *info; 3726s # GVariantIter iter; 3726s # GVariant *child; 3726s # GValue *paramv; 3726s # gsize num_params; 3726s # gsize n; 3726s # guint signal_id; 3726s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 3726s # if (info == NULL) 3726s # return; 3726s # num_params = g_variant_n_children (parameters); 3726s # paramv = g_new0 (GValue, num_params + 1); 3726s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_set_object (¶mv[0], proxy); 3726s # g_variant_iter_init (&iter, parameters); 3726s # n = 1; 3726s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3726s # { 3726s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3726s # if (arg_info->use_gvariant) 3726s # { 3726s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3726s # g_value_set_variant (¶mv[n], child); 3726s # n++; 3726s # } 3726s # else 3726s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3726s # g_variant_unref (child); 3726s # } 3726s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_signal_emitv (paramv, signal_id, 0, NULL); 3726s # for (n = 0; n < num_params + 1; n++) 3726s # g_value_unset (¶mv[n]); 3726s # g_free (paramv); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 3726s # GVariant *changed_properties, 3726s # const gchar *const *invalidated_properties) 3726s # { 3726s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 3726s # guint n; 3726s # const gchar *key; 3726s # GVariantIter *iter; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # g_variant_get (changed_properties, "a{sv}", &iter); 3726s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3726s # { 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 3726s # g_datalist_remove_data (&proxy->priv->qdata, key); 3726s # if (info != NULL) 3726s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3726s # } 3726s # g_variant_iter_free (iter); 3726s # for (n = 0; invalidated_properties[n] != NULL; n++) 3726s # { 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 3726s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3726s # if (info != NULL) 3726s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3726s # } 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 3726s # { 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 3726s # #else 3726s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 3726s # #endif 3726s # 3726s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 3726s # { 3726s # GObjectClass *gobject_class; 3726s # GDBusProxyClass *proxy_class; 3726s # 3726s # gobject_class = G_OBJECT_CLASS (klass); 3726s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 3726s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 3726s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 3726s # 3726s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3726s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 3726s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3726s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 3726s # #endif 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new: 3726s # * @connection: A #GDBusConnection. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3726s # * @user_data: User data to pass to @callback. 3726s # * 3726s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new() for more details. 3726s # * 3726s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3726s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_proxy_new ( 3726s # GDBusConnection *connection, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GAsyncReadyCallback callback, 3726s # gpointer user_data) 3726s # { 3726s # 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); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_finish: 3726s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_finish ( 3726s # GAsyncResult *res, 3726s # GError **error) 3726s # { 3726s # GObject *ret; 3726s # GObject *source_object; 3726s # source_object = g_async_result_get_source_object (res); 3726s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3726s # g_object_unref (source_object); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_sync: 3726s # * @connection: A #GDBusConnection. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new_sync() for more details. 3726s # * 3726s # * The calling thread is blocked until a reply is received. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_sync ( 3726s # GDBusConnection *connection, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GError **error) 3726s # { 3726s # GInitable *ret; 3726s # 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); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus: 3726s # * @bus_type: A #GBusType. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: A bus name (well-known or unique). 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3726s # * @user_data: User data to pass to @callback. 3726s # * 3726s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3726s # * 3726s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3726s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_proxy_new_for_bus ( 3726s # GBusType bus_type, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GAsyncReadyCallback callback, 3726s # gpointer user_data) 3726s # { 3726s # 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); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus_finish: 3726s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_for_bus_finish ( 3726s # GAsyncResult *res, 3726s # GError **error) 3726s # { 3726s # GObject *ret; 3726s # GObject *source_object; 3726s # source_object = g_async_result_get_source_object (res); 3726s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3726s # g_object_unref (source_object); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus_sync: 3726s # * @bus_type: A #GBusType. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: A bus name (well-known or unique). 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3726s # * 3726s # * The calling thread is blocked until a reply is received. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_for_bus_sync ( 3726s # GBusType bus_type, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GError **error) 3726s # { 3726s # GInitable *ret; 3726s # 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); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # 3726s # /* ------------------------------------------------------------------------ */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceSkeleton: 3726s # * 3726s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceSkeletonClass: 3726s # * @parent_class: The parent class. 3726s # * 3726s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 3726s # */ 3726s # 3726s # struct _OrgProjectSignalingIfaceSkeletonPrivate 3726s # { 3726s # GValue *properties; 3726s # GList *changed_properties; 3726s # GSource *changed_properties_idle_source; 3726s # GMainContext *context; 3726s # GMutex lock; 3726s # }; 3726s # 3726s # static void 3726s # _org_project_signaling_iface_skeleton_handle_method_call ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name, 3726s # const gchar *method_name, 3726s # GVariant *parameters, 3726s # GDBusMethodInvocation *invocation, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # _ExtendedGDBusMethodInfo *info; 3726s # GVariantIter iter; 3726s # GVariant *child; 3726s # GValue *paramv; 3726s # gsize num_params; 3726s # guint num_extra; 3726s # gsize n; 3726s # guint signal_id; 3726s # GValue return_value = G_VALUE_INIT; 3726s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3726s # g_assert (info != NULL); 3726s # num_params = g_variant_n_children (parameters); 3726s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3726s # n = 0; 3726s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_set_object (¶mv[n++], skeleton); 3726s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3726s # g_value_set_object (¶mv[n++], invocation); 3726s # if (info->pass_fdlist) 3726s # { 3726s # #ifdef G_OS_UNIX 3726s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3726s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3726s # #else 3726s # g_assert_not_reached (); 3726s # #endif 3726s # } 3726s # g_variant_iter_init (&iter, parameters); 3726s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3726s # { 3726s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3726s # if (arg_info->use_gvariant) 3726s # { 3726s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3726s # g_value_set_variant (¶mv[n], child); 3726s # n++; 3726s # } 3726s # else 3726s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3726s # g_variant_unref (child); 3726s # } 3726s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3726s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3726s # if (!g_value_get_boolean (&return_value)) 3726s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3726s # g_value_unset (&return_value); 3726s # for (n = 0; n < num_params + num_extra; n++) 3726s # g_value_unset (¶mv[n]); 3726s # g_free (paramv); 3726s # } 3726s # 3726s # static GVariant * 3726s # _org_project_signaling_iface_skeleton_handle_get_property ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name G_GNUC_UNUSED, 3726s # const gchar *property_name, 3726s # GError **error, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # GValue value = G_VALUE_INIT; 3726s # GParamSpec *pspec; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # GVariant *ret; 3726s # ret = NULL; 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3726s # g_assert (info != NULL); 3726s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3726s # if (pspec == NULL) 3726s # { 3726s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3726s # } 3726s # else 3726s # { 3726s # g_value_init (&value, pspec->value_type); 3726s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3726s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3726s # g_value_unset (&value); 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # static gboolean 3726s # _org_project_signaling_iface_skeleton_handle_set_property ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name G_GNUC_UNUSED, 3726s # const gchar *property_name, 3726s # GVariant *variant, 3726s # GError **error, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # GValue value = G_VALUE_INIT; 3726s # GParamSpec *pspec; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # gboolean ret; 3726s # ret = FALSE; 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3726s # g_assert (info != NULL); 3726s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3726s # if (pspec == NULL) 3726s # { 3726s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3726s # } 3726s # else 3726s # { 3726s # if (info->use_gvariant) 3726s # g_value_set_variant (&value, variant); 3726s # else 3726s # g_dbus_gvariant_to_gvalue (variant, &value); 3726s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3726s # g_value_unset (&value); 3726s # ret = TRUE; 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 3726s # { 3726s # _org_project_signaling_iface_skeleton_handle_method_call, 3726s # _org_project_signaling_iface_skeleton_handle_get_property, 3726s # _org_project_signaling_iface_skeleton_handle_set_property, 3726s # {NULL} 3726s # }; 3726s # 3726s # static GDBusInterfaceInfo * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3726s # { 3726s # return org_project_signaling_iface_interface_info (); 3726s # } 3726s # 3726s # static GDBusInterfaceVTable * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3726s # { 3726s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 3726s # } 3726s # 3726s # static GVariant * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 3726s # 3726s # GVariantBuilder builder; 3726s # guint n; 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3726s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3726s # #else 3726s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3726s # #endif 3726s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 3726s # goto out; 3726s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 3726s # { 3726s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 3726s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3726s # { 3726s # GVariant *value; 3726s # 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); 3726s # if (value != NULL) 3726s # { 3726s # g_variant_take_ref (value); 3726s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3726s # g_variant_unref (value); 3726s # } 3726s # } 3726s # } 3726s # out: 3726s # return g_variant_builder_end (&builder); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # _org_project_signaling_iface_on_signal_simple_signal ( 3726s # OrgProjectSignalingIface *object) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # 3726s # GList *connections, *l; 3726s # GVariant *signal_variant; 3726s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3726s # 3726s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 3726s # for (l = connections; l != NULL; l = l->next) 3726s # { 3726s # GDBusConnection *connection = l->data; 3726s # g_dbus_connection_emit_signal (connection, 3726s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 3726s # signal_variant, NULL); 3726s # } 3726s # g_variant_unref (signal_variant); 3726s # g_list_free_full (connections, g_object_unref); 3726s # } 3726s # 3726s # static void 3726s # _org_project_signaling_iface_on_signal_single_arg_signal_y ( 3726s # OrgProjectSignalingIface *object, 3726s # guchar arg_arg_y) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # 3726s # GList *connections, *l; 3726s # GVariant *signal_variant; 3726s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3726s # 3726s # signal_variant = g_variant_ref_sink (g_variant_new ("(y)", 3726s # arg_arg_y)); 3726s # for (l = connections; l != NULL; l = l->next) 3726s # { 3726s # GDBusConnection *connection = l->data; 3726s # g_dbus_connection_emit_signal (connection, 3726s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalY", 3726s # signal_variant, NULL); 3726s # } 3726s # g_variant_unref (signal_variant); 3726s # g_list_free_full (connections, g_object_unref); 3726s # } 3726s # 3726s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3726s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3726s # 3726s # #else 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3726s # 3726s # #endif 3726s # static void 3726s # org_project_signaling_iface_skeleton_finalize (GObject *object) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3726s # if (skeleton->priv->changed_properties_idle_source != NULL) 3726s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3726s # g_main_context_unref (skeleton->priv->context); 3726s # g_mutex_clear (&skeleton->priv->lock); 3726s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 3726s # { 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 3726s # #else 3726s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 3726s # #endif 3726s # 3726s # g_mutex_init (&skeleton->priv->lock); 3726s # skeleton->priv->context = g_main_context_ref_thread_default (); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 3726s # { 3726s # GObjectClass *gobject_class; 3726s # GDBusInterfaceSkeletonClass *skeleton_class; 3726s # 3726s # gobject_class = G_OBJECT_CLASS (klass); 3726s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 3726s # 3726s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3726s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 3726s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 3726s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 3726s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3726s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 3726s # #endif 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 3726s # { 3726s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 3726s # iface->single_arg_signal_y = _org_project_signaling_iface_on_signal_single_arg_signal_y; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_skeleton_new: 3726s # * 3726s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_skeleton_new (void) 3726s # { 3726s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 3726s # } 3726s # Error: 3726s # 3726s # /tmp/tmp9symyp9z/tmp0wb2jd_a.xml: 3726s # <node> 3726s # <interface name="org.project.SignalingIface"> 3726s # <signal name="SimpleSignal"/> 3726s # <signal name="SingleArgSignalN"> 3726s # <arg name="arg_n" type="n"/> 3726s # </signal> 3726s # </interface> 3726s # </node> 3726s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9symyp9z/tmp0wb2jd_a.xml', '--output', '-', '--body'] 3726s # Return code: 0 3726s # Output: 3726s # /* 3726s # * This file is generated by gdbus-codegen, do not modify it. 3726s # * 3726s # * The license of this code is the same as for the D-Bus interface description 3726s # * it was derived from. Note that it links to GLib, so must comply with the 3726s # * LGPL linking clauses. 3726s # */ 3726s # 3726s # #ifdef HAVE_CONFIG_H 3726s # # include "config.h" 3726s # #endif 3726s # 3726s # #include <string.h> 3726s # #ifdef G_OS_UNIX 3726s # # include <gio/gunixfdlist.h> 3726s # #endif 3726s # 3726s # #ifdef G_ENABLE_DEBUG 3726s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3726s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3726s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3726s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3726s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3726s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3726s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3726s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3726s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3726s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3726s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3726s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3726s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3726s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3726s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3726s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3726s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3726s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3726s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3726s # #else /* !G_ENABLE_DEBUG */ 3726s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3726s # * Do not access GValues directly in your code. Instead, use the 3726s # * g_value_get_*() functions 3726s # */ 3726s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3726s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3726s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3726s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3726s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3726s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3726s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3726s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3726s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3726s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3726s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3726s # #endif /* !G_ENABLE_DEBUG */ 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusArgInfo parent_struct; 3726s # gboolean use_gvariant; 3726s # } _ExtendedGDBusArgInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusMethodInfo parent_struct; 3726s # const gchar *signal_name; 3726s # gboolean pass_fdlist; 3726s # } _ExtendedGDBusMethodInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusSignalInfo parent_struct; 3726s # const gchar *signal_name; 3726s # } _ExtendedGDBusSignalInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusPropertyInfo parent_struct; 3726s # const gchar *hyphen_name; 3726s # guint use_gvariant : 1; 3726s # guint emits_changed_signal : 1; 3726s # } _ExtendedGDBusPropertyInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusInterfaceInfo parent_struct; 3726s # const gchar *hyphen_name; 3726s # } _ExtendedGDBusInterfaceInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # const _ExtendedGDBusPropertyInfo *info; 3726s # guint prop_id; 3726s # GValue orig_value; /* the value before the change */ 3726s # } ChangedProperty; 3726s # 3726s # static void 3726s # _changed_property_free (ChangedProperty *data) 3726s # { 3726s # g_value_unset (&data->orig_value); 3726s # g_free (data); 3726s # } 3726s # 3726s # static gboolean 3726s # _g_strv_equal0 (gchar **a, gchar **b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # guint n; 3726s # if (a == NULL && b == NULL) 3726s # { 3726s # ret = TRUE; 3726s # goto out; 3726s # } 3726s # if (a == NULL || b == NULL) 3726s # goto out; 3726s # if (g_strv_length (a) != g_strv_length (b)) 3726s # goto out; 3726s # for (n = 0; a[n] != NULL; n++) 3726s # if (g_strcmp0 (a[n], b[n]) != 0) 3726s # goto out; 3726s # ret = TRUE; 3726s # out: 3726s # return ret; 3726s # } 3726s # 3726s # static gboolean 3726s # _g_variant_equal0 (GVariant *a, GVariant *b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # if (a == NULL && b == NULL) 3726s # { 3726s # ret = TRUE; 3726s # goto out; 3726s # } 3726s # if (a == NULL || b == NULL) 3726s # goto out; 3726s # ret = g_variant_equal (a, b); 3726s # out: 3726s # return ret; 3726s # } 3726s # 3726s # G_GNUC_UNUSED static gboolean 3726s # _g_value_equal (const GValue *a, const GValue *b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3726s # switch (G_VALUE_TYPE (a)) 3726s # { 3726s # case G_TYPE_BOOLEAN: 3726s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3726s # break; 3726s # case G_TYPE_UCHAR: 3726s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3726s # break; 3726s # case G_TYPE_INT: 3726s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3726s # break; 3726s # case G_TYPE_UINT: 3726s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3726s # break; 3726s # case G_TYPE_INT64: 3726s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3726s # break; 3726s # case G_TYPE_UINT64: 3726s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3726s # break; 3726s # case G_TYPE_DOUBLE: 3726s # { 3726s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3726s # gdouble da = g_value_get_double (a); 3726s # gdouble db = g_value_get_double (b); 3726s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3726s # } 3726s # break; 3726s # case G_TYPE_STRING: 3726s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3726s # break; 3726s # case G_TYPE_VARIANT: 3726s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3726s # break; 3726s # default: 3726s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3726s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3726s # else 3726s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3726s # break; 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # /* ------------------------------------------------------------------------ 3726s # * Code for interface org.project.SignalingIface 3726s # * ------------------------------------------------------------------------ 3726s # */ 3726s # 3726s # /** 3726s # * SECTION:OrgProjectSignalingIface 3726s # * @title: OrgProjectSignalingIface 3726s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 3726s # * 3726s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface in C. 3726s # */ 3726s # 3726s # enum 3726s # { 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 3726s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N, 3726s # }; 3726s # 3726s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 3726s # 3726s # /* ---- Introspection data for org.project.SignalingIface ---- */ 3726s # 3726s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "SimpleSignal", 3726s # NULL, 3726s # NULL 3726s # }, 3726s # "simple-signal" 3726s # }; 3726s # 3726s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_arg_n = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "arg_n", 3726s # (gchar *) "n", 3726s # NULL 3726s # }, 3726s # FALSE 3726s # }; 3726s # 3726s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers[] = 3726s # { 3726s # &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_arg_n.parent_struct, 3726s # NULL 3726s # }; 3726s # 3726s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_n = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "SingleArgSignalN", 3726s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers, 3726s # NULL 3726s # }, 3726s # "single-arg-signal-n" 3726s # }; 3726s # 3726s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 3726s # { 3726s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 3726s # &_org_project_signaling_iface_signal_info_single_arg_signal_n.parent_struct, 3726s # NULL 3726s # }; 3726s # 3726s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "org.project.SignalingIface", 3726s # NULL, 3726s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 3726s # NULL, 3726s # NULL 3726s # }, 3726s # "org-project-signaling-iface", 3726s # }; 3726s # 3726s # 3726s # /** 3726s # * org_project_signaling_iface_interface_info: 3726s # * 3726s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface. 3726s # * 3726s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3726s # */ 3726s # GDBusInterfaceInfo * 3726s # org_project_signaling_iface_interface_info (void) 3726s # { 3726s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_override_properties: 3726s # * @klass: The class structure for a #GObject derived class. 3726s # * @property_id_begin: The property id to assign to the first overridden property. 3726s # * 3726s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 3726s # * The properties are overridden in the order they are defined. 3726s # * 3726s # * Returns: The last property id. 3726s # */ 3726s # guint 3726s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3726s # { 3726s # return property_id_begin - 1; 3726s # } 3726s # 3726s # 3726s # inline static void 3726s # org_project_signaling_iface_signal_marshal_simple_signal ( 3726s # GClosure *closure, 3726s # GValue *return_value, 3726s # unsigned int n_param_values, 3726s # const GValue *param_values, 3726s # void *invocation_hint, 3726s # void *marshal_data) 3726s # { 3726s # g_cclosure_marshal_VOID__VOID (closure, 3726s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3726s # } 3726s # 3726s # inline static void 3726s # org_project_signaling_iface_signal_marshal_single_arg_signal_n ( 3726s # GClosure *closure, 3726s # GValue *return_value, 3726s # unsigned int n_param_values, 3726s # const GValue *param_values, 3726s # void *invocation_hint, 3726s # void *marshal_data) 3726s # { 3726s # g_cclosure_marshal_VOID__INT (closure, 3726s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3726s # } 3726s # 3726s # 3726s # /** 3726s # * OrgProjectSignalingIface: 3726s # * 3726s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceIface: 3726s # * @parent_iface: The parent interface. 3726s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 3726s # * @single_arg_signal_n: Handler for the #OrgProjectSignalingIface::single-arg-signal-n signal. 3726s # * 3726s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # */ 3726s # 3726s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 3726s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 3726s # 3726s # static void 3726s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 3726s # { 3726s # /* GObject signals for received D-Bus signals: */ 3726s # /** 3726s # * OrgProjectSignalingIface::simple-signal: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * 3726s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SimpleSignal">"SimpleSignal"</link> is received. 3726s # * 3726s # * 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. 3726s # */ 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 3726s # g_signal_new ("simple-signal", 3726s # G_TYPE_FROM_INTERFACE (iface), 3726s # G_SIGNAL_RUN_LAST, 3726s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 3726s # NULL, 3726s # NULL, 3726s # org_project_signaling_iface_signal_marshal_simple_signal, 3726s # G_TYPE_NONE, 3726s # 0); 3726s # 3726s # /** 3726s # * OrgProjectSignalingIface::single-arg-signal-n: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * @arg_arg_n: Argument. 3726s # * 3726s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalN">"SingleArgSignalN"</link> is received. 3726s # * 3726s # * 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. 3726s # */ 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N] = 3726s # g_signal_new ("single-arg-signal-n", 3726s # G_TYPE_FROM_INTERFACE (iface), 3726s # G_SIGNAL_RUN_LAST, 3726s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_n), 3726s # NULL, 3726s # NULL, 3726s # org_project_signaling_iface_signal_marshal_single_arg_signal_n, 3726s # G_TYPE_NONE, 3726s # 1, G_TYPE_INT); 3726s # 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_emit_simple_signal: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * 3726s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SimpleSignal">"SimpleSignal"</link> D-Bus signal. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_emit_simple_signal ( 3726s # OrgProjectSignalingIface *object) 3726s # { 3726s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_emit_single_arg_signal_n: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * @arg_arg_n: Argument to pass with the signal. 3726s # * 3726s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalN">"SingleArgSignalN"</link> D-Bus signal. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_emit_single_arg_signal_n ( 3726s # OrgProjectSignalingIface *object, 3726s # gint16 arg_arg_n) 3726s # { 3726s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N], 0, arg_arg_n); 3726s # } 3726s # 3726s # /* ------------------------------------------------------------------------ */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceProxy: 3726s # * 3726s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceProxyClass: 3726s # * @parent_class: The parent class. 3726s # * 3726s # * Class structure for #OrgProjectSignalingIfaceProxy. 3726s # */ 3726s # 3726s # struct _OrgProjectSignalingIfaceProxyPrivate 3726s # { 3726s # GData *qdata; 3726s # }; 3726s # 3726s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3726s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3726s # 3726s # #else 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3726s # 3726s # #endif 3726s # static void 3726s # org_project_signaling_iface_proxy_finalize (GObject *object) 3726s # { 3726s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 3726s # g_datalist_clear (&proxy->priv->qdata); 3726s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3726s # guint prop_id G_GNUC_UNUSED, 3726s # GValue *value G_GNUC_UNUSED, 3726s # GParamSpec *pspec G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3726s # guint prop_id G_GNUC_UNUSED, 3726s # const GValue *value G_GNUC_UNUSED, 3726s # GParamSpec *pspec G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 3726s # const gchar *sender_name G_GNUC_UNUSED, 3726s # const gchar *signal_name, 3726s # GVariant *parameters) 3726s # { 3726s # _ExtendedGDBusSignalInfo *info; 3726s # GVariantIter iter; 3726s # GVariant *child; 3726s # GValue *paramv; 3726s # gsize num_params; 3726s # gsize n; 3726s # guint signal_id; 3726s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 3726s # if (info == NULL) 3726s # return; 3726s # num_params = g_variant_n_children (parameters); 3726s # paramv = g_new0 (GValue, num_params + 1); 3726s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_set_object (¶mv[0], proxy); 3726s # g_variant_iter_init (&iter, parameters); 3726s # n = 1; 3726s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3726s # { 3726s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3726s # if (arg_info->use_gvariant) 3726s # { 3726s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3726s # g_value_set_variant (¶mv[n], child); 3726s # n++; 3726s # } 3726s # else 3726s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3726s # g_variant_unref (child); 3726s # } 3726s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_signal_emitv (paramv, signal_id, 0, NULL); 3726s # for (n = 0; n < num_params + 1; n++) 3726s # g_value_unset (¶mv[n]); 3726s # g_free (paramv); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 3726s # GVariant *changed_properties, 3726s # const gchar *const *invalidated_properties) 3726s # { 3726s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 3726s # guint n; 3726s # const gchar *key; 3726s # GVariantIter *iter; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # g_variant_get (changed_properties, "a{sv}", &iter); 3726s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3726s # { 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 3726s # g_datalist_remove_data (&proxy->priv->qdata, key); 3726s # if (info != NULL) 3726s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3726s # } 3726s # g_variant_iter_free (iter); 3726s # for (n = 0; invalidated_properties[n] != NULL; n++) 3726s # { 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 3726s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3726s # if (info != NULL) 3726s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3726s # } 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 3726s # { 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 3726s # #else 3726s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 3726s # #endif 3726s # 3726s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 3726s # { 3726s # GObjectClass *gobject_class; 3726s # GDBusProxyClass *proxy_class; 3726s # 3726s # gobject_class = G_OBJECT_CLASS (klass); 3726s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 3726s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 3726s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 3726s # 3726s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3726s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 3726s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3726s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 3726s # #endif 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new: 3726s # * @connection: A #GDBusConnection. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3726s # * @user_data: User data to pass to @callback. 3726s # * 3726s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new() for more details. 3726s # * 3726s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3726s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_proxy_new ( 3726s # GDBusConnection *connection, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GAsyncReadyCallback callback, 3726s # gpointer user_data) 3726s # { 3726s # 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); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_finish: 3726s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_finish ( 3726s # GAsyncResult *res, 3726s # GError **error) 3726s # { 3726s # GObject *ret; 3726s # GObject *source_object; 3726s # source_object = g_async_result_get_source_object (res); 3726s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3726s # g_object_unref (source_object); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_sync: 3726s # * @connection: A #GDBusConnection. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new_sync() for more details. 3726s # * 3726s # * The calling thread is blocked until a reply is received. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_sync ( 3726s # GDBusConnection *connection, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GError **error) 3726s # { 3726s # GInitable *ret; 3726s # 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); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus: 3726s # * @bus_type: A #GBusType. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: A bus name (well-known or unique). 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3726s # * @user_data: User data to pass to @callback. 3726s # * 3726s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3726s # * 3726s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3726s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_proxy_new_for_bus ( 3726s # GBusType bus_type, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GAsyncReadyCallback callback, 3726s # gpointer user_data) 3726s # { 3726s # 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); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus_finish: 3726s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_for_bus_finish ( 3726s # GAsyncResult *res, 3726s # GError **error) 3726s # { 3726s # GObject *ret; 3726s # GObject *source_object; 3726s # source_object = g_async_result_get_source_object (res); 3726s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3726s # g_object_unref (source_object); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus_sync: 3726s # * @bus_type: A #GBusType. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: A bus name (well-known or unique). 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3726s # * 3726s # * The calling thread is blocked until a reply is received. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_for_bus_sync ( 3726s # GBusType bus_type, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GError **error) 3726s # { 3726s # GInitable *ret; 3726s # 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); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # 3726s # /* ------------------------------------------------------------------------ */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceSkeleton: 3726s # * 3726s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceSkeletonClass: 3726s # * @parent_class: The parent class. 3726s # * 3726s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 3726s # */ 3726s # 3726s # struct _OrgProjectSignalingIfaceSkeletonPrivate 3726s # { 3726s # GValue *properties; 3726s # GList *changed_properties; 3726s # GSource *changed_properties_idle_source; 3726s # GMainContext *context; 3726s # GMutex lock; 3726s # }; 3726s # 3726s # static void 3726s # _org_project_signaling_iface_skeleton_handle_method_call ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name, 3726s # const gchar *method_name, 3726s # GVariant *parameters, 3726s # GDBusMethodInvocation *invocation, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # _ExtendedGDBusMethodInfo *info; 3726s # GVariantIter iter; 3726s # GVariant *child; 3726s # GValue *paramv; 3726s # gsize num_params; 3726s # guint num_extra; 3726s # gsize n; 3726s # guint signal_id; 3726s # GValue return_value = G_VALUE_INIT; 3726s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3726s # g_assert (info != NULL); 3726s # num_params = g_variant_n_children (parameters); 3726s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3726s # n = 0; 3726s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_set_object (¶mv[n++], skeleton); 3726s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3726s # g_value_set_object (¶mv[n++], invocation); 3726s # if (info->pass_fdlist) 3726s # { 3726s # #ifdef G_OS_UNIX 3726s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3726s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3726s # #else 3726s # g_assert_not_reached (); 3726s # #endif 3726s # } 3726s # g_variant_iter_init (&iter, parameters); 3726s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3726s # { 3726s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3726s # if (arg_info->use_gvariant) 3726s # { 3726s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3726s # g_value_set_variant (¶mv[n], child); 3726s # n++; 3726s # } 3726s # else 3726s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3726s # g_variant_unref (child); 3726s # } 3726s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3726s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3726s # if (!g_value_get_boolean (&return_value)) 3726s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3726s # g_value_unset (&return_value); 3726s # for (n = 0; n < num_params + num_extra; n++) 3726s # g_value_unset (¶mv[n]); 3726s # g_free (paramv); 3726s # } 3726s # 3726s # static GVariant * 3726s # _org_project_signaling_iface_skeleton_handle_get_property ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name G_GNUC_UNUSED, 3726s # const gchar *property_name, 3726s # GError **error, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # GValue value = G_VALUE_INIT; 3726s # GParamSpec *pspec; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # GVariant *ret; 3726s # ret = NULL; 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3726s # g_assert (info != NULL); 3726s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3726s # if (pspec == NULL) 3726s # { 3726s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3726s # } 3726s # else 3726s # { 3726s # g_value_init (&value, pspec->value_type); 3726s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3726s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3726s # g_value_unset (&value); 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # static gboolean 3726s # _org_project_signaling_iface_skeleton_handle_set_property ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name G_GNUC_UNUSED, 3726s # const gchar *property_name, 3726s # GVariant *variant, 3726s # GError **error, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # GValue value = G_VALUE_INIT; 3726s # GParamSpec *pspec; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # gboolean ret; 3726s # ret = FALSE; 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3726s # g_assert (info != NULL); 3726s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3726s # if (pspec == NULL) 3726s # { 3726s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3726s # } 3726s # else 3726s # { 3726s # if (info->use_gvariant) 3726s # g_value_set_variant (&value, variant); 3726s # else 3726s # g_dbus_gvariant_to_gvalue (variant, &value); 3726s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3726s # g_value_unset (&value); 3726s # ret = TRUE; 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 3726s # { 3726s # _org_project_signaling_iface_skeleton_handle_method_call, 3726s # _org_project_signaling_iface_skeleton_handle_get_property, 3726s # _org_project_signaling_iface_skeleton_handle_set_property, 3726s # {NULL} 3726s # }; 3726s # 3726s # static GDBusInterfaceInfo * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3726s # { 3726s # return org_project_signaling_iface_interface_info (); 3726s # } 3726s # 3726s # static GDBusInterfaceVTable * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3726s # { 3726s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 3726s # } 3726s # 3726s # static GVariant * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 3726s # 3726s # GVariantBuilder builder; 3726s # guint n; 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3726s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3726s # #else 3726s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3726s # #endif 3726s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 3726s # goto out; 3726s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 3726s # { 3726s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 3726s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3726s # { 3726s # GVariant *value; 3726s # 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); 3726s # if (value != NULL) 3726s # { 3726s # g_variant_take_ref (value); 3726s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3726s # g_variant_unref (value); 3726s # } 3726s # } 3726s # } 3726s # out: 3726s # return g_variant_builder_end (&builder); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # _org_project_signaling_iface_on_signal_simple_signal ( 3726s # OrgProjectSignalingIface *object) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # 3726s # GList *connections, *l; 3726s # GVariant *signal_variant; 3726s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3726s # 3726s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 3726s # for (l = connections; l != NULL; l = l->next) 3726s # { 3726s # GDBusConnection *connection = l->data; 3726s # g_dbus_connection_emit_signal (connection, 3726s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 3726s # signal_variant, NULL); 3726s # } 3726s # g_variant_unref (signal_variant); 3726s # g_list_free_full (connections, g_object_unref); 3726s # } 3726s # 3726s # static void 3726s # _org_project_signaling_iface_on_signal_single_arg_signal_n ( 3726s # OrgProjectSignalingIface *object, 3726s # gint16 arg_arg_n) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # 3726s # GList *connections, *l; 3726s # GVariant *signal_variant; 3726s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3726s # 3726s # signal_variant = g_variant_ref_sink (g_variant_new ("(n)", 3726s # arg_arg_n)); 3726s # for (l = connections; l != NULL; l = l->next) 3726s # { 3726s # GDBusConnection *connection = l->data; 3726s # g_dbus_connection_emit_signal (connection, 3726s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalN", 3726s # signal_variant, NULL); 3726s # } 3726s # g_variant_unref (signal_variant); 3726s # g_list_free_full (connections, g_object_unref); 3726s # } 3726s # 3726s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3726s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3726s # 3726s # #else 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3726s # 3726s # #endif 3726s # static void 3726s # org_project_signaling_iface_skeleton_finalize (GObject *object) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3726s # if (skeleton->priv->changed_properties_idle_source != NULL) 3726s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3726s # g_main_context_unref (skeleton->priv->context); 3726s # g_mutex_clear (&skeleton->priv->lock); 3726s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 3726s # { 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 3726s # #else 3726s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 3726s # #endif 3726s # 3726s # g_mutex_init (&skeleton->priv->lock); 3726s # skeleton->priv->context = g_main_context_ref_thread_default (); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 3726s # { 3726s # GObjectClass *gobject_class; 3726s # GDBusInterfaceSkeletonClass *skeleton_class; 3726s # 3726s # gobject_class = G_OBJECT_CLASS (klass); 3726s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 3726s # 3726s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3726s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 3726s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 3726s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 3726s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3726s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 3726s # #endif 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 3726s # { 3726s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 3726s # iface->single_arg_signal_n = _org_project_signaling_iface_on_signal_single_arg_signal_n; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_skeleton_new: 3726s # * 3726s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_skeleton_new (void) 3726s # { 3726s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 3726s # } 3726s # Error: 3726s # 3726s # /tmp/tmp9symyp9z/tmpaetrrzwm.xml: 3726s # <node> 3726s # <interface name="org.project.SignalingIface"> 3726s # <signal name="SimpleSignal"/> 3726s # <signal name="SingleArgSignalQ"> 3726s # <arg name="arg_q" type="q"/> 3726s # </signal> 3726s # </interface> 3726s # </node> 3726s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9symyp9z/tmpaetrrzwm.xml', '--output', '-', '--body'] 3726s # Return code: 0 3726s # Output: 3726s # /* 3726s # * This file is generated by gdbus-codegen, do not modify it. 3726s # * 3726s # * The license of this code is the same as for the D-Bus interface description 3726s # * it was derived from. Note that it links to GLib, so must comply with the 3726s # * LGPL linking clauses. 3726s # */ 3726s # 3726s # #ifdef HAVE_CONFIG_H 3726s # # include "config.h" 3726s # #endif 3726s # 3726s # #include <string.h> 3726s # #ifdef G_OS_UNIX 3726s # # include <gio/gunixfdlist.h> 3726s # #endif 3726s # 3726s # #ifdef G_ENABLE_DEBUG 3726s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3726s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3726s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3726s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3726s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3726s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3726s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3726s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3726s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3726s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3726s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3726s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3726s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3726s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3726s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3726s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3726s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3726s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3726s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3726s # #else /* !G_ENABLE_DEBUG */ 3726s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3726s # * Do not access GValues directly in your code. Instead, use the 3726s # * g_value_get_*() functions 3726s # */ 3726s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3726s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3726s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3726s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3726s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3726s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3726s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3726s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3726s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3726s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3726s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3726s # #endif /* !G_ENABLE_DEBUG */ 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusArgInfo parent_struct; 3726s # gboolean use_gvariant; 3726s # } _ExtendedGDBusArgInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusMethodInfo parent_struct; 3726s # const gchar *signal_name; 3726s # gboolean pass_fdlist; 3726s # } _ExtendedGDBusMethodInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusSignalInfo parent_struct; 3726s # const gchar *signal_name; 3726s # } _ExtendedGDBusSignalInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusPropertyInfo parent_struct; 3726s # const gchar *hyphen_name; 3726s # guint use_gvariant : 1; 3726s # guint emits_changed_signal : 1; 3726s # } _ExtendedGDBusPropertyInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusInterfaceInfo parent_struct; 3726s # const gchar *hyphen_name; 3726s # } _ExtendedGDBusInterfaceInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # const _ExtendedGDBusPropertyInfo *info; 3726s # guint prop_id; 3726s # GValue orig_value; /* the value before the change */ 3726s # } ChangedProperty; 3726s # 3726s # static void 3726s # _changed_property_free (ChangedProperty *data) 3726s # { 3726s # g_value_unset (&data->orig_value); 3726s # g_free (data); 3726s # } 3726s # 3726s # static gboolean 3726s # _g_strv_equal0 (gchar **a, gchar **b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # guint n; 3726s # if (a == NULL && b == NULL) 3726s # { 3726s # ret = TRUE; 3726s # goto out; 3726s # } 3726s # if (a == NULL || b == NULL) 3726s # goto out; 3726s # if (g_strv_length (a) != g_strv_length (b)) 3726s # goto out; 3726s # for (n = 0; a[n] != NULL; n++) 3726s # if (g_strcmp0 (a[n], b[n]) != 0) 3726s # goto out; 3726s # ret = TRUE; 3726s # out: 3726s # return ret; 3726s # } 3726s # 3726s # static gboolean 3726s # _g_variant_equal0 (GVariant *a, GVariant *b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # if (a == NULL && b == NULL) 3726s # { 3726s # ret = TRUE; 3726s # goto out; 3726s # } 3726s # if (a == NULL || b == NULL) 3726s # goto out; 3726s # ret = g_variant_equal (a, b); 3726s # out: 3726s # return ret; 3726s # } 3726s # 3726s # G_GNUC_UNUSED static gboolean 3726s # _g_value_equal (const GValue *a, const GValue *b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3726s # switch (G_VALUE_TYPE (a)) 3726s # { 3726s # case G_TYPE_BOOLEAN: 3726s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3726s # break; 3726s # case G_TYPE_UCHAR: 3726s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3726s # break; 3726s # case G_TYPE_INT: 3726s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3726s # break; 3726s # case G_TYPE_UINT: 3726s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3726s # break; 3726s # case G_TYPE_INT64: 3726s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3726s # break; 3726s # case G_TYPE_UINT64: 3726s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3726s # break; 3726s # case G_TYPE_DOUBLE: 3726s # { 3726s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3726s # gdouble da = g_value_get_double (a); 3726s # gdouble db = g_value_get_double (b); 3726s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3726s # } 3726s # break; 3726s # case G_TYPE_STRING: 3726s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3726s # break; 3726s # case G_TYPE_VARIANT: 3726s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3726s # break; 3726s # default: 3726s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3726s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3726s # else 3726s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3726s # break; 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # /* ------------------------------------------------------------------------ 3726s # * Code for interface org.project.SignalingIface 3726s # * ------------------------------------------------------------------------ 3726s # */ 3726s # 3726s # /** 3726s # * SECTION:OrgProjectSignalingIface 3726s # * @title: OrgProjectSignalingIface 3726s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 3726s # * 3726s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface in C. 3726s # */ 3726s # 3726s # enum 3726s # { 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 3726s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q, 3726s # }; 3726s # 3726s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 3726s # 3726s # /* ---- Introspection data for org.project.SignalingIface ---- */ 3726s # 3726s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "SimpleSignal", 3726s # NULL, 3726s # NULL 3726s # }, 3726s # "simple-signal" 3726s # }; 3726s # 3726s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_arg_q = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "arg_q", 3726s # (gchar *) "q", 3726s # NULL 3726s # }, 3726s # FALSE 3726s # }; 3726s # 3726s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers[] = 3726s # { 3726s # &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_arg_q.parent_struct, 3726s # NULL 3726s # }; 3726s # 3726s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_q = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "SingleArgSignalQ", 3726s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers, 3726s # NULL 3726s # }, 3726s # "single-arg-signal-q" 3726s # }; 3726s # 3726s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 3726s # { 3726s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 3726s # &_org_project_signaling_iface_signal_info_single_arg_signal_q.parent_struct, 3726s # NULL 3726s # }; 3726s # 3726s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "org.project.SignalingIface", 3726s # NULL, 3726s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 3726s # NULL, 3726s # NULL 3726s # }, 3726s # "org-project-signaling-iface", 3726s # }; 3726s # 3726s # 3726s # /** 3726s # * org_project_signaling_iface_interface_info: 3726s # * 3726s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface. 3726s # * 3726s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3726s # */ 3726s # GDBusInterfaceInfo * 3726s # org_project_signaling_iface_interface_info (void) 3726s # { 3726s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_override_properties: 3726s # * @klass: The class structure for a #GObject derived class. 3726s # * @property_id_begin: The property id to assign to the first overridden property. 3726s # * 3726s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 3726s # * The properties are overridden in the order they are defined. 3726s # * 3726s # * Returns: The last property id. 3726s # */ 3726s # guint 3726s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3726s # { 3726s # return property_id_begin - 1; 3726s # } 3726s # 3726s # 3726s # inline static void 3726s # org_project_signaling_iface_signal_marshal_simple_signal ( 3726s # GClosure *closure, 3726s # GValue *return_value, 3726s # unsigned int n_param_values, 3726s # const GValue *param_values, 3726s # void *invocation_hint, 3726s # void *marshal_data) 3726s # { 3726s # g_cclosure_marshal_VOID__VOID (closure, 3726s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3726s # } 3726s # 3726s # inline static void 3726s # org_project_signaling_iface_signal_marshal_single_arg_signal_q ( 3726s # GClosure *closure, 3726s # GValue *return_value, 3726s # unsigned int n_param_values, 3726s # const GValue *param_values, 3726s # void *invocation_hint, 3726s # void *marshal_data) 3726s # { 3726s # g_cclosure_marshal_VOID__UINT (closure, 3726s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3726s # } 3726s # 3726s # 3726s # /** 3726s # * OrgProjectSignalingIface: 3726s # * 3726s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceIface: 3726s # * @parent_iface: The parent interface. 3726s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 3726s # * @single_arg_signal_q: Handler for the #OrgProjectSignalingIface::single-arg-signal-q signal. 3726s # * 3726s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # */ 3726s # 3726s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 3726s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 3726s # 3726s # static void 3726s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 3726s # { 3726s # /* GObject signals for received D-Bus signals: */ 3726s # /** 3726s # * OrgProjectSignalingIface::simple-signal: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * 3726s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SimpleSignal">"SimpleSignal"</link> is received. 3726s # * 3726s # * 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. 3726s # */ 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 3726s # g_signal_new ("simple-signal", 3726s # G_TYPE_FROM_INTERFACE (iface), 3726s # G_SIGNAL_RUN_LAST, 3726s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 3726s # NULL, 3726s # NULL, 3726s # org_project_signaling_iface_signal_marshal_simple_signal, 3726s # G_TYPE_NONE, 3726s # 0); 3726s # 3726s # /** 3726s # * OrgProjectSignalingIface::single-arg-signal-q: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * @arg_arg_q: Argument. 3726s # * 3726s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalQ">"SingleArgSignalQ"</link> is received. 3726s # * 3726s # * 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. 3726s # */ 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q] = 3726s # g_signal_new ("single-arg-signal-q", 3726s # G_TYPE_FROM_INTERFACE (iface), 3726s # G_SIGNAL_RUN_LAST, 3726s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_q), 3726s # NULL, 3726s # NULL, 3726s # org_project_signaling_iface_signal_marshal_single_arg_signal_q, 3726s # G_TYPE_NONE, 3726s # 1, G_TYPE_UINT); 3726s # 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_emit_simple_signal: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * 3726s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SimpleSignal">"SimpleSignal"</link> D-Bus signal. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_emit_simple_signal ( 3726s # OrgProjectSignalingIface *object) 3726s # { 3726s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_emit_single_arg_signal_q: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * @arg_arg_q: Argument to pass with the signal. 3726s # * 3726s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalQ">"SingleArgSignalQ"</link> D-Bus signal. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_emit_single_arg_signal_q ( 3726s # OrgProjectSignalingIface *object, 3726s # guint16 arg_arg_q) 3726s # { 3726s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q], 0, arg_arg_q); 3726s # } 3726s # 3726s # /* ------------------------------------------------------------------------ */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceProxy: 3726s # * 3726s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceProxyClass: 3726s # * @parent_class: The parent class. 3726s # * 3726s # * Class structure for #OrgProjectSignalingIfaceProxy. 3726s # */ 3726s # 3726s # struct _OrgProjectSignalingIfaceProxyPrivate 3726s # { 3726s # GData *qdata; 3726s # }; 3726s # 3726s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3726s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3726s # 3726s # #else 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3726s # 3726s # #endif 3726s # static void 3726s # org_project_signaling_iface_proxy_finalize (GObject *object) 3726s # { 3726s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 3726s # g_datalist_clear (&proxy->priv->qdata); 3726s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3726s # guint prop_id G_GNUC_UNUSED, 3726s # GValue *value G_GNUC_UNUSED, 3726s # GParamSpec *pspec G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3726s # guint prop_id G_GNUC_UNUSED, 3726s # const GValue *value G_GNUC_UNUSED, 3726s # GParamSpec *pspec G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 3726s # const gchar *sender_name G_GNUC_UNUSED, 3726s # const gchar *signal_name, 3726s # GVariant *parameters) 3726s # { 3726s # _ExtendedGDBusSignalInfo *info; 3726s # GVariantIter iter; 3726s # GVariant *child; 3726s # GValue *paramv; 3726s # gsize num_params; 3726s # gsize n; 3726s # guint signal_id; 3726s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 3726s # if (info == NULL) 3726s # return; 3726s # num_params = g_variant_n_children (parameters); 3726s # paramv = g_new0 (GValue, num_params + 1); 3726s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_set_object (¶mv[0], proxy); 3726s # g_variant_iter_init (&iter, parameters); 3726s # n = 1; 3726s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3726s # { 3726s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3726s # if (arg_info->use_gvariant) 3726s # { 3726s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3726s # g_value_set_variant (¶mv[n], child); 3726s # n++; 3726s # } 3726s # else 3726s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3726s # g_variant_unref (child); 3726s # } 3726s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_signal_emitv (paramv, signal_id, 0, NULL); 3726s # for (n = 0; n < num_params + 1; n++) 3726s # g_value_unset (¶mv[n]); 3726s # g_free (paramv); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 3726s # GVariant *changed_properties, 3726s # const gchar *const *invalidated_properties) 3726s # { 3726s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 3726s # guint n; 3726s # const gchar *key; 3726s # GVariantIter *iter; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # g_variant_get (changed_properties, "a{sv}", &iter); 3726s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3726s # { 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 3726s # g_datalist_remove_data (&proxy->priv->qdata, key); 3726s # if (info != NULL) 3726s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3726s # } 3726s # g_variant_iter_free (iter); 3726s # for (n = 0; invalidated_properties[n] != NULL; n++) 3726s # { 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 3726s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3726s # if (info != NULL) 3726s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3726s # } 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 3726s # { 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 3726s # #else 3726s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 3726s # #endif 3726s # 3726s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 3726s # { 3726s # GObjectClass *gobject_class; 3726s # GDBusProxyClass *proxy_class; 3726s # 3726s # gobject_class = G_OBJECT_CLASS (klass); 3726s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 3726s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 3726s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 3726s # 3726s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3726s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 3726s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3726s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 3726s # #endif 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new: 3726s # * @connection: A #GDBusConnection. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3726s # * @user_data: User data to pass to @callback. 3726s # * 3726s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new() for more details. 3726s # * 3726s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3726s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_proxy_new ( 3726s # GDBusConnection *connection, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GAsyncReadyCallback callback, 3726s # gpointer user_data) 3726s # { 3726s # 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); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_finish: 3726s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_finish ( 3726s # GAsyncResult *res, 3726s # GError **error) 3726s # { 3726s # GObject *ret; 3726s # GObject *source_object; 3726s # source_object = g_async_result_get_source_object (res); 3726s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3726s # g_object_unref (source_object); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_sync: 3726s # * @connection: A #GDBusConnection. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new_sync() for more details. 3726s # * 3726s # * The calling thread is blocked until a reply is received. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_sync ( 3726s # GDBusConnection *connection, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GError **error) 3726s # { 3726s # GInitable *ret; 3726s # 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); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus: 3726s # * @bus_type: A #GBusType. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: A bus name (well-known or unique). 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3726s # * @user_data: User data to pass to @callback. 3726s # * 3726s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3726s # * 3726s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3726s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_proxy_new_for_bus ( 3726s # GBusType bus_type, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GAsyncReadyCallback callback, 3726s # gpointer user_data) 3726s # { 3726s # 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); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus_finish: 3726s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_for_bus_finish ( 3726s # GAsyncResult *res, 3726s # GError **error) 3726s # { 3726s # GObject *ret; 3726s # GObject *source_object; 3726s # source_object = g_async_result_get_source_object (res); 3726s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3726s # g_object_unref (source_object); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus_sync: 3726s # * @bus_type: A #GBusType. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: A bus name (well-known or unique). 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3726s # * 3726s # * The calling thread is blocked until a reply is received. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_for_bus_sync ( 3726s # GBusType bus_type, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GError **error) 3726s # { 3726s # GInitable *ret; 3726s # 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); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # 3726s # /* ------------------------------------------------------------------------ */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceSkeleton: 3726s # * 3726s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceSkeletonClass: 3726s # * @parent_class: The parent class. 3726s # * 3726s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 3726s # */ 3726s # 3726s # struct _OrgProjectSignalingIfaceSkeletonPrivate 3726s # { 3726s # GValue *properties; 3726s # GList *changed_properties; 3726s # GSource *changed_properties_idle_source; 3726s # GMainContext *context; 3726s # GMutex lock; 3726s # }; 3726s # 3726s # static void 3726s # _org_project_signaling_iface_skeleton_handle_method_call ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name, 3726s # const gchar *method_name, 3726s # GVariant *parameters, 3726s # GDBusMethodInvocation *invocation, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # _ExtendedGDBusMethodInfo *info; 3726s # GVariantIter iter; 3726s # GVariant *child; 3726s # GValue *paramv; 3726s # gsize num_params; 3726s # guint num_extra; 3726s # gsize n; 3726s # guint signal_id; 3726s # GValue return_value = G_VALUE_INIT; 3726s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3726s # g_assert (info != NULL); 3726s # num_params = g_variant_n_children (parameters); 3726s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3726s # n = 0; 3726s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_set_object (¶mv[n++], skeleton); 3726s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3726s # g_value_set_object (¶mv[n++], invocation); 3726s # if (info->pass_fdlist) 3726s # { 3726s # #ifdef G_OS_UNIX 3726s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3726s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3726s # #else 3726s # g_assert_not_reached (); 3726s # #endif 3726s # } 3726s # g_variant_iter_init (&iter, parameters); 3726s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3726s # { 3726s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3726s # if (arg_info->use_gvariant) 3726s # { 3726s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3726s # g_value_set_variant (¶mv[n], child); 3726s # n++; 3726s # } 3726s # else 3726s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3726s # g_variant_unref (child); 3726s # } 3726s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3726s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3726s # if (!g_value_get_boolean (&return_value)) 3726s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3726s # g_value_unset (&return_value); 3726s # for (n = 0; n < num_params + num_extra; n++) 3726s # g_value_unset (¶mv[n]); 3726s # g_free (paramv); 3726s # } 3726s # 3726s # static GVariant * 3726s # _org_project_signaling_iface_skeleton_handle_get_property ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name G_GNUC_UNUSED, 3726s # const gchar *property_name, 3726s # GError **error, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # GValue value = G_VALUE_INIT; 3726s # GParamSpec *pspec; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # GVariant *ret; 3726s # ret = NULL; 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3726s # g_assert (info != NULL); 3726s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3726s # if (pspec == NULL) 3726s # { 3726s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3726s # } 3726s # else 3726s # { 3726s # g_value_init (&value, pspec->value_type); 3726s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3726s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3726s # g_value_unset (&value); 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # static gboolean 3726s # _org_project_signaling_iface_skeleton_handle_set_property ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name G_GNUC_UNUSED, 3726s # const gchar *property_name, 3726s # GVariant *variant, 3726s # GError **error, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # GValue value = G_VALUE_INIT; 3726s # GParamSpec *pspec; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # gboolean ret; 3726s # ret = FALSE; 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3726s # g_assert (info != NULL); 3726s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3726s # if (pspec == NULL) 3726s # { 3726s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3726s # } 3726s # else 3726s # { 3726s # if (info->use_gvariant) 3726s # g_value_set_variant (&value, variant); 3726s # else 3726s # g_dbus_gvariant_to_gvalue (variant, &value); 3726s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3726s # g_value_unset (&value); 3726s # ret = TRUE; 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 3726s # { 3726s # _org_project_signaling_iface_skeleton_handle_method_call, 3726s # _org_project_signaling_iface_skeleton_handle_get_property, 3726s # _org_project_signaling_iface_skeleton_handle_set_property, 3726s # {NULL} 3726s # }; 3726s # 3726s # static GDBusInterfaceInfo * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3726s # { 3726s # return org_project_signaling_iface_interface_info (); 3726s # } 3726s # 3726s # static GDBusInterfaceVTable * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3726s # { 3726s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 3726s # } 3726s # 3726s # static GVariant * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 3726s # 3726s # GVariantBuilder builder; 3726s # guint n; 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3726s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3726s # #else 3726s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3726s # #endif 3726s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 3726s # goto out; 3726s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 3726s # { 3726s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 3726s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3726s # { 3726s # GVariant *value; 3726s # 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); 3726s # if (value != NULL) 3726s # { 3726s # g_variant_take_ref (value); 3726s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3726s # g_variant_unref (value); 3726s # } 3726s # } 3726s # } 3726s # out: 3726s # return g_variant_builder_end (&builder); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # _org_project_signaling_iface_on_signal_simple_signal ( 3726s # OrgProjectSignalingIface *object) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # 3726s # GList *connections, *l; 3726s # GVariant *signal_variant; 3726s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3726s # 3726s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 3726s # for (l = connections; l != NULL; l = l->next) 3726s # { 3726s # GDBusConnection *connection = l->data; 3726s # g_dbus_connection_emit_signal (connection, 3726s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 3726s # signal_variant, NULL); 3726s # } 3726s # g_variant_unref (signal_variant); 3726s # g_list_free_full (connections, g_object_unref); 3726s # } 3726s # 3726s # static void 3726s # _org_project_signaling_iface_on_signal_single_arg_signal_q ( 3726s # OrgProjectSignalingIface *object, 3726s # guint16 arg_arg_q) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # 3726s # GList *connections, *l; 3726s # GVariant *signal_variant; 3726s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3726s # 3726s # signal_variant = g_variant_ref_sink (g_variant_new ("(q)", 3726s # arg_arg_q)); 3726s # for (l = connections; l != NULL; l = l->next) 3726s # { 3726s # GDBusConnection *connection = l->data; 3726s # g_dbus_connection_emit_signal (connection, 3726s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalQ", 3726s # signal_variant, NULL); 3726s # } 3726s # g_variant_unref (signal_variant); 3726s # g_list_free_full (connections, g_object_unref); 3726s # } 3726s # 3726s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3726s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3726s # 3726s # #else 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3726s # 3726s # #endif 3726s # static void 3726s # org_project_signaling_iface_skeleton_finalize (GObject *object) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3726s # if (skeleton->priv->changed_properties_idle_source != NULL) 3726s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3726s # g_main_context_unref (skeleton->priv->context); 3726s # g_mutex_clear (&skeleton->priv->lock); 3726s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 3726s # { 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 3726s # #else 3726s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 3726s # #endif 3726s # 3726s # g_mutex_init (&skeleton->priv->lock); 3726s # skeleton->priv->context = g_main_context_ref_thread_default (); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 3726s # { 3726s # GObjectClass *gobject_class; 3726s # GDBusInterfaceSkeletonClass *skeleton_class; 3726s # 3726s # gobject_class = G_OBJECT_CLASS (klass); 3726s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 3726s # 3726s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3726s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 3726s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 3726s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 3726s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3726s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 3726s # #endif 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 3726s # { 3726s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 3726s # iface->single_arg_signal_q = _org_project_signaling_iface_on_signal_single_arg_signal_q; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_skeleton_new: 3726s # * 3726s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_skeleton_new (void) 3726s # { 3726s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 3726s # } 3726s # Error: 3726s # 3726s # /tmp/tmp9symyp9z/tmpqvt0cvva.xml: 3726s # <node> 3726s # <interface name="org.project.SignalingIface"> 3726s # <signal name="SimpleSignal"/> 3726s # <signal name="SingleArgSignalI"> 3726s # <arg name="arg_i" type="i"/> 3726s # </signal> 3726s # </interface> 3726s # </node> 3726s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9symyp9z/tmpqvt0cvva.xml', '--output', '-', '--body'] 3726s # Return code: 0 3726s # Output: 3726s # /* 3726s # * This file is generated by gdbus-codegen, do not modify it. 3726s # * 3726s # * The license of this code is the same as for the D-Bus interface description 3726s # * it was derived from. Note that it links to GLib, so must comply with the 3726s # * LGPL linking clauses. 3726s # */ 3726s # 3726s # #ifdef HAVE_CONFIG_H 3726s # # include "config.h" 3726s # #endif 3726s # 3726s # #include <string.h> 3726s # #ifdef G_OS_UNIX 3726s # # include <gio/gunixfdlist.h> 3726s # #endif 3726s # 3726s # #ifdef G_ENABLE_DEBUG 3726s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3726s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3726s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3726s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3726s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3726s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3726s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3726s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3726s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3726s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3726s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3726s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3726s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3726s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3726s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3726s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3726s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3726s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3726s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3726s # #else /* !G_ENABLE_DEBUG */ 3726s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3726s # * Do not access GValues directly in your code. Instead, use the 3726s # * g_value_get_*() functions 3726s # */ 3726s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3726s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3726s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3726s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3726s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3726s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3726s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3726s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3726s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3726s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3726s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3726s # #endif /* !G_ENABLE_DEBUG */ 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusArgInfo parent_struct; 3726s # gboolean use_gvariant; 3726s # } _ExtendedGDBusArgInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusMethodInfo parent_struct; 3726s # const gchar *signal_name; 3726s # gboolean pass_fdlist; 3726s # } _ExtendedGDBusMethodInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusSignalInfo parent_struct; 3726s # const gchar *signal_name; 3726s # } _ExtendedGDBusSignalInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusPropertyInfo parent_struct; 3726s # const gchar *hyphen_name; 3726s # guint use_gvariant : 1; 3726s # guint emits_changed_signal : 1; 3726s # } _ExtendedGDBusPropertyInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusInterfaceInfo parent_struct; 3726s # const gchar *hyphen_name; 3726s # } _ExtendedGDBusInterfaceInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # const _ExtendedGDBusPropertyInfo *info; 3726s # guint prop_id; 3726s # GValue orig_value; /* the value before the change */ 3726s # } ChangedProperty; 3726s # 3726s # static void 3726s # _changed_property_free (ChangedProperty *data) 3726s # { 3726s # g_value_unset (&data->orig_value); 3726s # g_free (data); 3726s # } 3726s # 3726s # static gboolean 3726s # _g_strv_equal0 (gchar **a, gchar **b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # guint n; 3726s # if (a == NULL && b == NULL) 3726s # { 3726s # ret = TRUE; 3726s # goto out; 3726s # } 3726s # if (a == NULL || b == NULL) 3726s # goto out; 3726s # if (g_strv_length (a) != g_strv_length (b)) 3726s # goto out; 3726s # for (n = 0; a[n] != NULL; n++) 3726s # if (g_strcmp0 (a[n], b[n]) != 0) 3726s # goto out; 3726s # ret = TRUE; 3726s # out: 3726s # return ret; 3726s # } 3726s # 3726s # static gboolean 3726s # _g_variant_equal0 (GVariant *a, GVariant *b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # if (a == NULL && b == NULL) 3726s # { 3726s # ret = TRUE; 3726s # goto out; 3726s # } 3726s # if (a == NULL || b == NULL) 3726s # goto out; 3726s # ret = g_variant_equal (a, b); 3726s # out: 3726s # return ret; 3726s # } 3726s # 3726s # G_GNUC_UNUSED static gboolean 3726s # _g_value_equal (const GValue *a, const GValue *b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3726s # switch (G_VALUE_TYPE (a)) 3726s # { 3726s # case G_TYPE_BOOLEAN: 3726s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3726s # break; 3726s # case G_TYPE_UCHAR: 3726s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3726s # break; 3726s # case G_TYPE_INT: 3726s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3726s # break; 3726s # case G_TYPE_UINT: 3726s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3726s # break; 3726s # case G_TYPE_INT64: 3726s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3726s # break; 3726s # case G_TYPE_UINT64: 3726s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3726s # break; 3726s # case G_TYPE_DOUBLE: 3726s # { 3726s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3726s # gdouble da = g_value_get_double (a); 3726s # gdouble db = g_value_get_double (b); 3726s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3726s # } 3726s # break; 3726s # case G_TYPE_STRING: 3726s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3726s # break; 3726s # case G_TYPE_VARIANT: 3726s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3726s # break; 3726s # default: 3726s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3726s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3726s # else 3726s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3726s # break; 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # /* ------------------------------------------------------------------------ 3726s # * Code for interface org.project.SignalingIface 3726s # * ------------------------------------------------------------------------ 3726s # */ 3726s # 3726s # /** 3726s # * SECTION:OrgProjectSignalingIface 3726s # * @title: OrgProjectSignalingIface 3726s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 3726s # * 3726s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface in C. 3726s # */ 3726s # 3726s # enum 3726s # { 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 3726s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I, 3726s # }; 3726s # 3726s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 3726s # 3726s # /* ---- Introspection data for org.project.SignalingIface ---- */ 3726s # 3726s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "SimpleSignal", 3726s # NULL, 3726s # NULL 3726s # }, 3726s # "simple-signal" 3726s # }; 3726s # 3726s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_arg_i = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "arg_i", 3726s # (gchar *) "i", 3726s # NULL 3726s # }, 3726s # FALSE 3726s # }; 3726s # 3726s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers[] = 3726s # { 3726s # &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_arg_i.parent_struct, 3726s # NULL 3726s # }; 3726s # 3726s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_i = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "SingleArgSignalI", 3726s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers, 3726s # NULL 3726s # }, 3726s # "single-arg-signal-i" 3726s # }; 3726s # 3726s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 3726s # { 3726s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 3726s # &_org_project_signaling_iface_signal_info_single_arg_signal_i.parent_struct, 3726s # NULL 3726s # }; 3726s # 3726s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "org.project.SignalingIface", 3726s # NULL, 3726s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 3726s # NULL, 3726s # NULL 3726s # }, 3726s # "org-project-signaling-iface", 3726s # }; 3726s # 3726s # 3726s # /** 3726s # * org_project_signaling_iface_interface_info: 3726s # * 3726s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface. 3726s # * 3726s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3726s # */ 3726s # GDBusInterfaceInfo * 3726s # org_project_signaling_iface_interface_info (void) 3726s # { 3726s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_override_properties: 3726s # * @klass: The class structure for a #GObject derived class. 3726s # * @property_id_begin: The property id to assign to the first overridden property. 3726s # * 3726s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 3726s # * The properties are overridden in the order they are defined. 3726s # * 3726s # * Returns: The last property id. 3726s # */ 3726s # guint 3726s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3726s # { 3726s # return property_id_begin - 1; 3726s # } 3726s # 3726s # 3726s # inline static void 3726s # org_project_signaling_iface_signal_marshal_simple_signal ( 3726s # GClosure *closure, 3726s # GValue *return_value, 3726s # unsigned int n_param_values, 3726s # const GValue *param_values, 3726s # void *invocation_hint, 3726s # void *marshal_data) 3726s # { 3726s # g_cclosure_marshal_VOID__VOID (closure, 3726s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3726s # } 3726s # 3726s # inline static void 3726s # org_project_signaling_iface_signal_marshal_single_arg_signal_i ( 3726s # GClosure *closure, 3726s # GValue *return_value, 3726s # unsigned int n_param_values, 3726s # const GValue *param_values, 3726s # void *invocation_hint, 3726s # void *marshal_data) 3726s # { 3726s # g_cclosure_marshal_VOID__INT (closure, 3726s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3726s # } 3726s # 3726s # 3726s # /** 3726s # * OrgProjectSignalingIface: 3726s # * 3726s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceIface: 3726s # * @parent_iface: The parent interface. 3726s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 3726s # * @single_arg_signal_i: Handler for the #OrgProjectSignalingIface::single-arg-signal-i signal. 3726s # * 3726s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # */ 3726s # 3726s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 3726s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 3726s # 3726s # static void 3726s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 3726s # { 3726s # /* GObject signals for received D-Bus signals: */ 3726s # /** 3726s # * OrgProjectSignalingIface::simple-signal: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * 3726s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SimpleSignal">"SimpleSignal"</link> is received. 3726s # * 3726s # * 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. 3726s # */ 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 3726s # g_signal_new ("simple-signal", 3726s # G_TYPE_FROM_INTERFACE (iface), 3726s # G_SIGNAL_RUN_LAST, 3726s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 3726s # NULL, 3726s # NULL, 3726s # org_project_signaling_iface_signal_marshal_simple_signal, 3726s # G_TYPE_NONE, 3726s # 0); 3726s # 3726s # /** 3726s # * OrgProjectSignalingIface::single-arg-signal-i: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * @arg_arg_i: Argument. 3726s # * 3726s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalI">"SingleArgSignalI"</link> is received. 3726s # * 3726s # * 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. 3726s # */ 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I] = 3726s # g_signal_new ("single-arg-signal-i", 3726s # G_TYPE_FROM_INTERFACE (iface), 3726s # G_SIGNAL_RUN_LAST, 3726s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_i), 3726s # NULL, 3726s # NULL, 3726s # org_project_signaling_iface_signal_marshal_single_arg_signal_i, 3726s # G_TYPE_NONE, 3726s # 1, G_TYPE_INT); 3726s # 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_emit_simple_signal: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * 3726s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SimpleSignal">"SimpleSignal"</link> D-Bus signal. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_emit_simple_signal ( 3726s # OrgProjectSignalingIface *object) 3726s # { 3726s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_emit_single_arg_signal_i: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * @arg_arg_i: Argument to pass with the signal. 3726s # * 3726s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalI">"SingleArgSignalI"</link> D-Bus signal. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_emit_single_arg_signal_i ( 3726s # OrgProjectSignalingIface *object, 3726s # gint arg_arg_i) 3726s # { 3726s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I], 0, arg_arg_i); 3726s # } 3726s # 3726s # /* ------------------------------------------------------------------------ */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceProxy: 3726s # * 3726s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceProxyClass: 3726s # * @parent_class: The parent class. 3726s # * 3726s # * Class structure for #OrgProjectSignalingIfaceProxy. 3726s # */ 3726s # 3726s # struct _OrgProjectSignalingIfaceProxyPrivate 3726s # { 3726s # GData *qdata; 3726s # }; 3726s # 3726s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3726s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3726s # 3726s # #else 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3726s # 3726s # #endif 3726s # static void 3726s # org_project_signaling_iface_proxy_finalize (GObject *object) 3726s # { 3726s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 3726s # g_datalist_clear (&proxy->priv->qdata); 3726s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3726s # guint prop_id G_GNUC_UNUSED, 3726s # GValue *value G_GNUC_UNUSED, 3726s # GParamSpec *pspec G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3726s # guint prop_id G_GNUC_UNUSED, 3726s # const GValue *value G_GNUC_UNUSED, 3726s # GParamSpec *pspec G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 3726s # const gchar *sender_name G_GNUC_UNUSED, 3726s # const gchar *signal_name, 3726s # GVariant *parameters) 3726s # { 3726s # _ExtendedGDBusSignalInfo *info; 3726s # GVariantIter iter; 3726s # GVariant *child; 3726s # GValue *paramv; 3726s # gsize num_params; 3726s # gsize n; 3726s # guint signal_id; 3726s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 3726s # if (info == NULL) 3726s # return; 3726s # num_params = g_variant_n_children (parameters); 3726s # paramv = g_new0 (GValue, num_params + 1); 3726s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_set_object (¶mv[0], proxy); 3726s # g_variant_iter_init (&iter, parameters); 3726s # n = 1; 3726s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3726s # { 3726s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3726s # if (arg_info->use_gvariant) 3726s # { 3726s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3726s # g_value_set_variant (¶mv[n], child); 3726s # n++; 3726s # } 3726s # else 3726s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3726s # g_variant_unref (child); 3726s # } 3726s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_signal_emitv (paramv, signal_id, 0, NULL); 3726s # for (n = 0; n < num_params + 1; n++) 3726s # g_value_unset (¶mv[n]); 3726s # g_free (paramv); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 3726s # GVariant *changed_properties, 3726s # const gchar *const *invalidated_properties) 3726s # { 3726s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 3726s # guint n; 3726s # const gchar *key; 3726s # GVariantIter *iter; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # g_variant_get (changed_properties, "a{sv}", &iter); 3726s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3726s # { 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 3726s # g_datalist_remove_data (&proxy->priv->qdata, key); 3726s # if (info != NULL) 3726s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3726s # } 3726s # g_variant_iter_free (iter); 3726s # for (n = 0; invalidated_properties[n] != NULL; n++) 3726s # { 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 3726s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3726s # if (info != NULL) 3726s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3726s # } 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 3726s # { 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 3726s # #else 3726s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 3726s # #endif 3726s # 3726s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 3726s # { 3726s # GObjectClass *gobject_class; 3726s # GDBusProxyClass *proxy_class; 3726s # 3726s # gobject_class = G_OBJECT_CLASS (klass); 3726s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 3726s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 3726s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 3726s # 3726s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3726s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 3726s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3726s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 3726s # #endif 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new: 3726s # * @connection: A #GDBusConnection. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3726s # * @user_data: User data to pass to @callback. 3726s # * 3726s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new() for more details. 3726s # * 3726s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3726s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_proxy_new ( 3726s # GDBusConnection *connection, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GAsyncReadyCallback callback, 3726s # gpointer user_data) 3726s # { 3726s # 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); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_finish: 3726s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_finish ( 3726s # GAsyncResult *res, 3726s # GError **error) 3726s # { 3726s # GObject *ret; 3726s # GObject *source_object; 3726s # source_object = g_async_result_get_source_object (res); 3726s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3726s # g_object_unref (source_object); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_sync: 3726s # * @connection: A #GDBusConnection. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new_sync() for more details. 3726s # * 3726s # * The calling thread is blocked until a reply is received. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_sync ( 3726s # GDBusConnection *connection, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GError **error) 3726s # { 3726s # GInitable *ret; 3726s # 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); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus: 3726s # * @bus_type: A #GBusType. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: A bus name (well-known or unique). 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3726s # * @user_data: User data to pass to @callback. 3726s # * 3726s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3726s # * 3726s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3726s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_proxy_new_for_bus ( 3726s # GBusType bus_type, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GAsyncReadyCallback callback, 3726s # gpointer user_data) 3726s # { 3726s # 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); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus_finish: 3726s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_for_bus_finish ( 3726s # GAsyncResult *res, 3726s # GError **error) 3726s # { 3726s # GObject *ret; 3726s # GObject *source_object; 3726s # source_object = g_async_result_get_source_object (res); 3726s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3726s # g_object_unref (source_object); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus_sync: 3726s # * @bus_type: A #GBusType. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: A bus name (well-known or unique). 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3726s # * 3726s # * The calling thread is blocked until a reply is received. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_for_bus_sync ( 3726s # GBusType bus_type, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GError **error) 3726s # { 3726s # GInitable *ret; 3726s # 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); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # 3726s # /* ------------------------------------------------------------------------ */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceSkeleton: 3726s # * 3726s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceSkeletonClass: 3726s # * @parent_class: The parent class. 3726s # * 3726s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 3726s # */ 3726s # 3726s # struct _OrgProjectSignalingIfaceSkeletonPrivate 3726s # { 3726s # GValue *properties; 3726s # GList *changed_properties; 3726s # GSource *changed_properties_idle_source; 3726s # GMainContext *context; 3726s # GMutex lock; 3726s # }; 3726s # 3726s # static void 3726s # _org_project_signaling_iface_skeleton_handle_method_call ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name, 3726s # const gchar *method_name, 3726s # GVariant *parameters, 3726s # GDBusMethodInvocation *invocation, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # _ExtendedGDBusMethodInfo *info; 3726s # GVariantIter iter; 3726s # GVariant *child; 3726s # GValue *paramv; 3726s # gsize num_params; 3726s # guint num_extra; 3726s # gsize n; 3726s # guint signal_id; 3726s # GValue return_value = G_VALUE_INIT; 3726s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3726s # g_assert (info != NULL); 3726s # num_params = g_variant_n_children (parameters); 3726s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3726s # n = 0; 3726s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_set_object (¶mv[n++], skeleton); 3726s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3726s # g_value_set_object (¶mv[n++], invocation); 3726s # if (info->pass_fdlist) 3726s # { 3726s # #ifdef G_OS_UNIX 3726s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3726s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3726s # #else 3726s # g_assert_not_reached (); 3726s # #endif 3726s # } 3726s # g_variant_iter_init (&iter, parameters); 3726s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3726s # { 3726s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3726s # if (arg_info->use_gvariant) 3726s # { 3726s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3726s # g_value_set_variant (¶mv[n], child); 3726s # n++; 3726s # } 3726s # else 3726s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3726s # g_variant_unref (child); 3726s # } 3726s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3726s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3726s # if (!g_value_get_boolean (&return_value)) 3726s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3726s # g_value_unset (&return_value); 3726s # for (n = 0; n < num_params + num_extra; n++) 3726s # g_value_unset (¶mv[n]); 3726s # g_free (paramv); 3726s # } 3726s # 3726s # static GVariant * 3726s # _org_project_signaling_iface_skeleton_handle_get_property ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name G_GNUC_UNUSED, 3726s # const gchar *property_name, 3726s # GError **error, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # GValue value = G_VALUE_INIT; 3726s # GParamSpec *pspec; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # GVariant *ret; 3726s # ret = NULL; 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3726s # g_assert (info != NULL); 3726s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3726s # if (pspec == NULL) 3726s # { 3726s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3726s # } 3726s # else 3726s # { 3726s # g_value_init (&value, pspec->value_type); 3726s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3726s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3726s # g_value_unset (&value); 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # static gboolean 3726s # _org_project_signaling_iface_skeleton_handle_set_property ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name G_GNUC_UNUSED, 3726s # const gchar *property_name, 3726s # GVariant *variant, 3726s # GError **error, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # GValue value = G_VALUE_INIT; 3726s # GParamSpec *pspec; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # gboolean ret; 3726s # ret = FALSE; 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3726s # g_assert (info != NULL); 3726s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3726s # if (pspec == NULL) 3726s # { 3726s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3726s # } 3726s # else 3726s # { 3726s # if (info->use_gvariant) 3726s # g_value_set_variant (&value, variant); 3726s # else 3726s # g_dbus_gvariant_to_gvalue (variant, &value); 3726s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3726s # g_value_unset (&value); 3726s # ret = TRUE; 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 3726s # { 3726s # _org_project_signaling_iface_skeleton_handle_method_call, 3726s # _org_project_signaling_iface_skeleton_handle_get_property, 3726s # _org_project_signaling_iface_skeleton_handle_set_property, 3726s # {NULL} 3726s # }; 3726s # 3726s # static GDBusInterfaceInfo * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3726s # { 3726s # return org_project_signaling_iface_interface_info (); 3726s # } 3726s # 3726s # static GDBusInterfaceVTable * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3726s # { 3726s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 3726s # } 3726s # 3726s # static GVariant * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 3726s # 3726s # GVariantBuilder builder; 3726s # guint n; 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3726s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3726s # #else 3726s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3726s # #endif 3726s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 3726s # goto out; 3726s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 3726s # { 3726s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 3726s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3726s # { 3726s # GVariant *value; 3726s # 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); 3726s # if (value != NULL) 3726s # { 3726s # g_variant_take_ref (value); 3726s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3726s # g_variant_unref (value); 3726s # } 3726s # } 3726s # } 3726s # out: 3726s # return g_variant_builder_end (&builder); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # _org_project_signaling_iface_on_signal_simple_signal ( 3726s # OrgProjectSignalingIface *object) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # 3726s # GList *connections, *l; 3726s # GVariant *signal_variant; 3726s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3726s # 3726s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 3726s # for (l = connections; l != NULL; l = l->next) 3726s # { 3726s # GDBusConnection *connection = l->data; 3726s # g_dbus_connection_emit_signal (connection, 3726s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 3726s # signal_variant, NULL); 3726s # } 3726s # g_variant_unref (signal_variant); 3726s # g_list_free_full (connections, g_object_unref); 3726s # } 3726s # 3726s # static void 3726s # _org_project_signaling_iface_on_signal_single_arg_signal_i ( 3726s # OrgProjectSignalingIface *object, 3726s # gint arg_arg_i) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # 3726s # GList *connections, *l; 3726s # GVariant *signal_variant; 3726s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3726s # 3726s # signal_variant = g_variant_ref_sink (g_variant_new ("(i)", 3726s # arg_arg_i)); 3726s # for (l = connections; l != NULL; l = l->next) 3726s # { 3726s # GDBusConnection *connection = l->data; 3726s # g_dbus_connection_emit_signal (connection, 3726s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalI", 3726s # signal_variant, NULL); 3726s # } 3726s # g_variant_unref (signal_variant); 3726s # g_list_free_full (connections, g_object_unref); 3726s # } 3726s # 3726s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3726s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3726s # 3726s # #else 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3726s # 3726s # #endif 3726s # static void 3726s # org_project_signaling_iface_skeleton_finalize (GObject *object) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3726s # if (skeleton->priv->changed_properties_idle_source != NULL) 3726s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3726s # g_main_context_unref (skeleton->priv->context); 3726s # g_mutex_clear (&skeleton->priv->lock); 3726s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 3726s # { 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 3726s # #else 3726s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 3726s # #endif 3726s # 3726s # g_mutex_init (&skeleton->priv->lock); 3726s # skeleton->priv->context = g_main_context_ref_thread_default (); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 3726s # { 3726s # GObjectClass *gobject_class; 3726s # GDBusInterfaceSkeletonClass *skeleton_class; 3726s # 3726s # gobject_class = G_OBJECT_CLASS (klass); 3726s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 3726s # 3726s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3726s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 3726s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 3726s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 3726s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3726s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 3726s # #endif 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 3726s # { 3726s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 3726s # iface->single_arg_signal_i = _org_project_signaling_iface_on_signal_single_arg_signal_i; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_skeleton_new: 3726s # * 3726s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_skeleton_new (void) 3726s # { 3726s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 3726s # } 3726s # Error: 3726s # 3726s # /tmp/tmp9symyp9z/tmp7w8g5wrc.xml: 3726s # <node> 3726s # <interface name="org.project.SignalingIface"> 3726s # <signal name="SimpleSignal"/> 3726s # <signal name="SingleArgSignalU"> 3726s # <arg name="arg_u" type="u"/> 3726s # </signal> 3726s # </interface> 3726s # </node> 3726s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9symyp9z/tmp7w8g5wrc.xml', '--output', '-', '--body'] 3726s # Return code: 0 3726s # Output: 3726s # /* 3726s # * This file is generated by gdbus-codegen, do not modify it. 3726s # * 3726s # * The license of this code is the same as for the D-Bus interface description 3726s # * it was derived from. Note that it links to GLib, so must comply with the 3726s # * LGPL linking clauses. 3726s # */ 3726s # 3726s # #ifdef HAVE_CONFIG_H 3726s # # include "config.h" 3726s # #endif 3726s # 3726s # #include <string.h> 3726s # #ifdef G_OS_UNIX 3726s # # include <gio/gunixfdlist.h> 3726s # #endif 3726s # 3726s # #ifdef G_ENABLE_DEBUG 3726s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3726s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3726s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3726s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3726s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3726s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3726s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3726s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3726s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3726s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3726s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3726s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3726s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3726s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3726s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3726s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3726s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3726s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3726s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3726s # #else /* !G_ENABLE_DEBUG */ 3726s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3726s # * Do not access GValues directly in your code. Instead, use the 3726s # * g_value_get_*() functions 3726s # */ 3726s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3726s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3726s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3726s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3726s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3726s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3726s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3726s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3726s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3726s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3726s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3726s # #endif /* !G_ENABLE_DEBUG */ 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusArgInfo parent_struct; 3726s # gboolean use_gvariant; 3726s # } _ExtendedGDBusArgInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusMethodInfo parent_struct; 3726s # const gchar *signal_name; 3726s # gboolean pass_fdlist; 3726s # } _ExtendedGDBusMethodInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusSignalInfo parent_struct; 3726s # const gchar *signal_name; 3726s # } _ExtendedGDBusSignalInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusPropertyInfo parent_struct; 3726s # const gchar *hyphen_name; 3726s # guint use_gvariant : 1; 3726s # guint emits_changed_signal : 1; 3726s # } _ExtendedGDBusPropertyInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusInterfaceInfo parent_struct; 3726s # const gchar *hyphen_name; 3726s # } _ExtendedGDBusInterfaceInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # const _ExtendedGDBusPropertyInfo *info; 3726s # guint prop_id; 3726s # GValue orig_value; /* the value before the change */ 3726s # } ChangedProperty; 3726s # 3726s # static void 3726s # _changed_property_free (ChangedProperty *data) 3726s # { 3726s # g_value_unset (&data->orig_value); 3726s # g_free (data); 3726s # } 3726s # 3726s # static gboolean 3726s # _g_strv_equal0 (gchar **a, gchar **b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # guint n; 3726s # if (a == NULL && b == NULL) 3726s # { 3726s # ret = TRUE; 3726s # goto out; 3726s # } 3726s # if (a == NULL || b == NULL) 3726s # goto out; 3726s # if (g_strv_length (a) != g_strv_length (b)) 3726s # goto out; 3726s # for (n = 0; a[n] != NULL; n++) 3726s # if (g_strcmp0 (a[n], b[n]) != 0) 3726s # goto out; 3726s # ret = TRUE; 3726s # out: 3726s # return ret; 3726s # } 3726s # 3726s # static gboolean 3726s # _g_variant_equal0 (GVariant *a, GVariant *b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # if (a == NULL && b == NULL) 3726s # { 3726s # ret = TRUE; 3726s # goto out; 3726s # } 3726s # if (a == NULL || b == NULL) 3726s # goto out; 3726s # ret = g_variant_equal (a, b); 3726s # out: 3726s # return ret; 3726s # } 3726s # 3726s # G_GNUC_UNUSED static gboolean 3726s # _g_value_equal (const GValue *a, const GValue *b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3726s # switch (G_VALUE_TYPE (a)) 3726s # { 3726s # case G_TYPE_BOOLEAN: 3726s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3726s # break; 3726s # case G_TYPE_UCHAR: 3726s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3726s # break; 3726s # case G_TYPE_INT: 3726s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3726s # break; 3726s # case G_TYPE_UINT: 3726s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3726s # break; 3726s # case G_TYPE_INT64: 3726s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3726s # break; 3726s # case G_TYPE_UINT64: 3726s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3726s # break; 3726s # case G_TYPE_DOUBLE: 3726s # { 3726s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3726s # gdouble da = g_value_get_double (a); 3726s # gdouble db = g_value_get_double (b); 3726s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3726s # } 3726s # break; 3726s # case G_TYPE_STRING: 3726s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3726s # break; 3726s # case G_TYPE_VARIANT: 3726s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3726s # break; 3726s # default: 3726s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3726s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3726s # else 3726s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3726s # break; 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # /* ------------------------------------------------------------------------ 3726s # * Code for interface org.project.SignalingIface 3726s # * ------------------------------------------------------------------------ 3726s # */ 3726s # 3726s # /** 3726s # * SECTION:OrgProjectSignalingIface 3726s # * @title: OrgProjectSignalingIface 3726s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 3726s # * 3726s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface in C. 3726s # */ 3726s # 3726s # enum 3726s # { 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 3726s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U, 3726s # }; 3726s # 3726s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 3726s # 3726s # /* ---- Introspection data for org.project.SignalingIface ---- */ 3726s # 3726s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "SimpleSignal", 3726s # NULL, 3726s # NULL 3726s # }, 3726s # "simple-signal" 3726s # }; 3726s # 3726s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_arg_u = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "arg_u", 3726s # (gchar *) "u", 3726s # NULL 3726s # }, 3726s # FALSE 3726s # }; 3726s # 3726s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers[] = 3726s # { 3726s # &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_arg_u.parent_struct, 3726s # NULL 3726s # }; 3726s # 3726s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_u = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "SingleArgSignalU", 3726s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers, 3726s # NULL 3726s # }, 3726s # "single-arg-signal-u" 3726s # }; 3726s # 3726s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 3726s # { 3726s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 3726s # &_org_project_signaling_iface_signal_info_single_arg_signal_u.parent_struct, 3726s # NULL 3726s # }; 3726s # 3726s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "org.project.SignalingIface", 3726s # NULL, 3726s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 3726s # NULL, 3726s # NULL 3726s # }, 3726s # "org-project-signaling-iface", 3726s # }; 3726s # 3726s # 3726s # /** 3726s # * org_project_signaling_iface_interface_info: 3726s # * 3726s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface. 3726s # * 3726s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3726s # */ 3726s # GDBusInterfaceInfo * 3726s # org_project_signaling_iface_interface_info (void) 3726s # { 3726s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_override_properties: 3726s # * @klass: The class structure for a #GObject derived class. 3726s # * @property_id_begin: The property id to assign to the first overridden property. 3726s # * 3726s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 3726s # * The properties are overridden in the order they are defined. 3726s # * 3726s # * Returns: The last property id. 3726s # */ 3726s # guint 3726s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3726s # { 3726s # return property_id_begin - 1; 3726s # } 3726s # 3726s # 3726s # inline static void 3726s # org_project_signaling_iface_signal_marshal_simple_signal ( 3726s # GClosure *closure, 3726s # GValue *return_value, 3726s # unsigned int n_param_values, 3726s # const GValue *param_values, 3726s # void *invocation_hint, 3726s # void *marshal_data) 3726s # { 3726s # g_cclosure_marshal_VOID__VOID (closure, 3726s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3726s # } 3726s # 3726s # inline static void 3726s # org_project_signaling_iface_signal_marshal_single_arg_signal_u ( 3726s # GClosure *closure, 3726s # GValue *return_value, 3726s # unsigned int n_param_values, 3726s # const GValue *param_values, 3726s # void *invocation_hint, 3726s # void *marshal_data) 3726s # { 3726s # g_cclosure_marshal_VOID__UINT (closure, 3726s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3726s # } 3726s # 3726s # 3726s # /** 3726s # * OrgProjectSignalingIface: 3726s # * 3726s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceIface: 3726s # * @parent_iface: The parent interface. 3726s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 3726s # * @single_arg_signal_u: Handler for the #OrgProjectSignalingIface::single-arg-signal-u signal. 3726s # * 3726s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # */ 3726s # 3726s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 3726s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 3726s # 3726s # static void 3726s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 3726s # { 3726s # /* GObject signals for received D-Bus signals: */ 3726s # /** 3726s # * OrgProjectSignalingIface::simple-signal: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * 3726s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SimpleSignal">"SimpleSignal"</link> is received. 3726s # * 3726s # * 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. 3726s # */ 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 3726s # g_signal_new ("simple-signal", 3726s # G_TYPE_FROM_INTERFACE (iface), 3726s # G_SIGNAL_RUN_LAST, 3726s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 3726s # NULL, 3726s # NULL, 3726s # org_project_signaling_iface_signal_marshal_simple_signal, 3726s # G_TYPE_NONE, 3726s # 0); 3726s # 3726s # /** 3726s # * OrgProjectSignalingIface::single-arg-signal-u: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * @arg_arg_u: Argument. 3726s # * 3726s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalU">"SingleArgSignalU"</link> is received. 3726s # * 3726s # * 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. 3726s # */ 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U] = 3726s # g_signal_new ("single-arg-signal-u", 3726s # G_TYPE_FROM_INTERFACE (iface), 3726s # G_SIGNAL_RUN_LAST, 3726s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_u), 3726s # NULL, 3726s # NULL, 3726s # org_project_signaling_iface_signal_marshal_single_arg_signal_u, 3726s # G_TYPE_NONE, 3726s # 1, G_TYPE_UINT); 3726s # 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_emit_simple_signal: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * 3726s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SimpleSignal">"SimpleSignal"</link> D-Bus signal. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_emit_simple_signal ( 3726s # OrgProjectSignalingIface *object) 3726s # { 3726s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_emit_single_arg_signal_u: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * @arg_arg_u: Argument to pass with the signal. 3726s # * 3726s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalU">"SingleArgSignalU"</link> D-Bus signal. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_emit_single_arg_signal_u ( 3726s # OrgProjectSignalingIface *object, 3726s # guint arg_arg_u) 3726s # { 3726s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U], 0, arg_arg_u); 3726s # } 3726s # 3726s # /* ------------------------------------------------------------------------ */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceProxy: 3726s # * 3726s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceProxyClass: 3726s # * @parent_class: The parent class. 3726s # * 3726s # * Class structure for #OrgProjectSignalingIfaceProxy. 3726s # */ 3726s # 3726s # struct _OrgProjectSignalingIfaceProxyPrivate 3726s # { 3726s # GData *qdata; 3726s # }; 3726s # 3726s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3726s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3726s # 3726s # #else 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3726s # 3726s # #endif 3726s # static void 3726s # org_project_signaling_iface_proxy_finalize (GObject *object) 3726s # { 3726s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 3726s # g_datalist_clear (&proxy->priv->qdata); 3726s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3726s # guint prop_id G_GNUC_UNUSED, 3726s # GValue *value G_GNUC_UNUSED, 3726s # GParamSpec *pspec G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3726s # guint prop_id G_GNUC_UNUSED, 3726s # const GValue *value G_GNUC_UNUSED, 3726s # GParamSpec *pspec G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 3726s # const gchar *sender_name G_GNUC_UNUSED, 3726s # const gchar *signal_name, 3726s # GVariant *parameters) 3726s # { 3726s # _ExtendedGDBusSignalInfo *info; 3726s # GVariantIter iter; 3726s # GVariant *child; 3726s # GValue *paramv; 3726s # gsize num_params; 3726s # gsize n; 3726s # guint signal_id; 3726s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 3726s # if (info == NULL) 3726s # return; 3726s # num_params = g_variant_n_children (parameters); 3726s # paramv = g_new0 (GValue, num_params + 1); 3726s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_set_object (¶mv[0], proxy); 3726s # g_variant_iter_init (&iter, parameters); 3726s # n = 1; 3726s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3726s # { 3726s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3726s # if (arg_info->use_gvariant) 3726s # { 3726s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3726s # g_value_set_variant (¶mv[n], child); 3726s # n++; 3726s # } 3726s # else 3726s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3726s # g_variant_unref (child); 3726s # } 3726s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_signal_emitv (paramv, signal_id, 0, NULL); 3726s # for (n = 0; n < num_params + 1; n++) 3726s # g_value_unset (¶mv[n]); 3726s # g_free (paramv); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 3726s # GVariant *changed_properties, 3726s # const gchar *const *invalidated_properties) 3726s # { 3726s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 3726s # guint n; 3726s # const gchar *key; 3726s # GVariantIter *iter; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # g_variant_get (changed_properties, "a{sv}", &iter); 3726s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3726s # { 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 3726s # g_datalist_remove_data (&proxy->priv->qdata, key); 3726s # if (info != NULL) 3726s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3726s # } 3726s # g_variant_iter_free (iter); 3726s # for (n = 0; invalidated_properties[n] != NULL; n++) 3726s # { 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 3726s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3726s # if (info != NULL) 3726s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3726s # } 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 3726s # { 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 3726s # #else 3726s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 3726s # #endif 3726s # 3726s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 3726s # { 3726s # GObjectClass *gobject_class; 3726s # GDBusProxyClass *proxy_class; 3726s # 3726s # gobject_class = G_OBJECT_CLASS (klass); 3726s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 3726s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 3726s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 3726s # 3726s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3726s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 3726s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3726s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 3726s # #endif 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new: 3726s # * @connection: A #GDBusConnection. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3726s # * @user_data: User data to pass to @callback. 3726s # * 3726s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new() for more details. 3726s # * 3726s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3726s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_proxy_new ( 3726s # GDBusConnection *connection, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GAsyncReadyCallback callback, 3726s # gpointer user_data) 3726s # { 3726s # 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); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_finish: 3726s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_finish ( 3726s # GAsyncResult *res, 3726s # GError **error) 3726s # { 3726s # GObject *ret; 3726s # GObject *source_object; 3726s # source_object = g_async_result_get_source_object (res); 3726s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3726s # g_object_unref (source_object); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_sync: 3726s # * @connection: A #GDBusConnection. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new_sync() for more details. 3726s # * 3726s # * The calling thread is blocked until a reply is received. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_sync ( 3726s # GDBusConnection *connection, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GError **error) 3726s # { 3726s # GInitable *ret; 3726s # 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); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus: 3726s # * @bus_type: A #GBusType. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: A bus name (well-known or unique). 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3726s # * @user_data: User data to pass to @callback. 3726s # * 3726s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3726s # * 3726s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3726s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_proxy_new_for_bus ( 3726s # GBusType bus_type, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GAsyncReadyCallback callback, 3726s # gpointer user_data) 3726s # { 3726s # 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); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus_finish: 3726s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_for_bus_finish ( 3726s # GAsyncResult *res, 3726s # GError **error) 3726s # { 3726s # GObject *ret; 3726s # GObject *source_object; 3726s # source_object = g_async_result_get_source_object (res); 3726s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3726s # g_object_unref (source_object); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus_sync: 3726s # * @bus_type: A #GBusType. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: A bus name (well-known or unique). 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3726s # * 3726s # * The calling thread is blocked until a reply is received. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_for_bus_sync ( 3726s # GBusType bus_type, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GError **error) 3726s # { 3726s # GInitable *ret; 3726s # 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); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # 3726s # /* ------------------------------------------------------------------------ */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceSkeleton: 3726s # * 3726s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceSkeletonClass: 3726s # * @parent_class: The parent class. 3726s # * 3726s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 3726s # */ 3726s # 3726s # struct _OrgProjectSignalingIfaceSkeletonPrivate 3726s # { 3726s # GValue *properties; 3726s # GList *changed_properties; 3726s # GSource *changed_properties_idle_source; 3726s # GMainContext *context; 3726s # GMutex lock; 3726s # }; 3726s # 3726s # static void 3726s # _org_project_signaling_iface_skeleton_handle_method_call ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name, 3726s # const gchar *method_name, 3726s # GVariant *parameters, 3726s # GDBusMethodInvocation *invocation, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # _ExtendedGDBusMethodInfo *info; 3726s # GVariantIter iter; 3726s # GVariant *child; 3726s # GValue *paramv; 3726s # gsize num_params; 3726s # guint num_extra; 3726s # gsize n; 3726s # guint signal_id; 3726s # GValue return_value = G_VALUE_INIT; 3726s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3726s # g_assert (info != NULL); 3726s # num_params = g_variant_n_children (parameters); 3726s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3726s # n = 0; 3726s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_set_object (¶mv[n++], skeleton); 3726s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3726s # g_value_set_object (¶mv[n++], invocation); 3726s # if (info->pass_fdlist) 3726s # { 3726s # #ifdef G_OS_UNIX 3726s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3726s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3726s # #else 3726s # g_assert_not_reached (); 3726s # #endif 3726s # } 3726s # g_variant_iter_init (&iter, parameters); 3726s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3726s # { 3726s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3726s # if (arg_info->use_gvariant) 3726s # { 3726s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3726s # g_value_set_variant (¶mv[n], child); 3726s # n++; 3726s # } 3726s # else 3726s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3726s # g_variant_unref (child); 3726s # } 3726s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3726s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3726s # if (!g_value_get_boolean (&return_value)) 3726s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3726s # g_value_unset (&return_value); 3726s # for (n = 0; n < num_params + num_extra; n++) 3726s # g_value_unset (¶mv[n]); 3726s # g_free (paramv); 3726s # } 3726s # 3726s # static GVariant * 3726s # _org_project_signaling_iface_skeleton_handle_get_property ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name G_GNUC_UNUSED, 3726s # const gchar *property_name, 3726s # GError **error, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # GValue value = G_VALUE_INIT; 3726s # GParamSpec *pspec; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # GVariant *ret; 3726s # ret = NULL; 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3726s # g_assert (info != NULL); 3726s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3726s # if (pspec == NULL) 3726s # { 3726s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3726s # } 3726s # else 3726s # { 3726s # g_value_init (&value, pspec->value_type); 3726s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3726s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3726s # g_value_unset (&value); 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # static gboolean 3726s # _org_project_signaling_iface_skeleton_handle_set_property ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name G_GNUC_UNUSED, 3726s # const gchar *property_name, 3726s # GVariant *variant, 3726s # GError **error, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # GValue value = G_VALUE_INIT; 3726s # GParamSpec *pspec; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # gboolean ret; 3726s # ret = FALSE; 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3726s # g_assert (info != NULL); 3726s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3726s # if (pspec == NULL) 3726s # { 3726s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3726s # } 3726s # else 3726s # { 3726s # if (info->use_gvariant) 3726s # g_value_set_variant (&value, variant); 3726s # else 3726s # g_dbus_gvariant_to_gvalue (variant, &value); 3726s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3726s # g_value_unset (&value); 3726s # ret = TRUE; 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 3726s # { 3726s # _org_project_signaling_iface_skeleton_handle_method_call, 3726s # _org_project_signaling_iface_skeleton_handle_get_property, 3726s # _org_project_signaling_iface_skeleton_handle_set_property, 3726s # {NULL} 3726s # }; 3726s # 3726s # static GDBusInterfaceInfo * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3726s # { 3726s # return org_project_signaling_iface_interface_info (); 3726s # } 3726s # 3726s # static GDBusInterfaceVTable * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3726s # { 3726s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 3726s # } 3726s # 3726s # static GVariant * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 3726s # 3726s # GVariantBuilder builder; 3726s # guint n; 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3726s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3726s # #else 3726s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3726s # #endif 3726s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 3726s # goto out; 3726s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 3726s # { 3726s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 3726s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3726s # { 3726s # GVariant *value; 3726s # 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); 3726s # if (value != NULL) 3726s # { 3726s # g_variant_take_ref (value); 3726s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3726s # g_variant_unref (value); 3726s # } 3726s # } 3726s # } 3726s # out: 3726s # return g_variant_builder_end (&builder); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # _org_project_signaling_iface_on_signal_simple_signal ( 3726s # OrgProjectSignalingIface *object) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # 3726s # GList *connections, *l; 3726s # GVariant *signal_variant; 3726s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3726s # 3726s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 3726s # for (l = connections; l != NULL; l = l->next) 3726s # { 3726s # GDBusConnection *connection = l->data; 3726s # g_dbus_connection_emit_signal (connection, 3726s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 3726s # signal_variant, NULL); 3726s # } 3726s # g_variant_unref (signal_variant); 3726s # g_list_free_full (connections, g_object_unref); 3726s # } 3726s # 3726s # static void 3726s # _org_project_signaling_iface_on_signal_single_arg_signal_u ( 3726s # OrgProjectSignalingIface *object, 3726s # guint arg_arg_u) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # 3726s # GList *connections, *l; 3726s # GVariant *signal_variant; 3726s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3726s # 3726s # signal_variant = g_variant_ref_sink (g_variant_new ("(u)", 3726s # arg_arg_u)); 3726s # for (l = connections; l != NULL; l = l->next) 3726s # { 3726s # GDBusConnection *connection = l->data; 3726s # g_dbus_connection_emit_signal (connection, 3726s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalU", 3726s # signal_variant, NULL); 3726s # } 3726s # g_variant_unref (signal_variant); 3726s # g_list_free_full (connections, g_object_unref); 3726s # } 3726s # 3726s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3726s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3726s # 3726s # #else 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3726s # 3726s # #endif 3726s # static void 3726s # org_project_signaling_iface_skeleton_finalize (GObject *object) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3726s # if (skeleton->priv->changed_properties_idle_source != NULL) 3726s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3726s # g_main_context_unref (skeleton->priv->context); 3726s # g_mutex_clear (&skeleton->priv->lock); 3726s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 3726s # { 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 3726s # #else 3726s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 3726s # #endif 3726s # 3726s # g_mutex_init (&skeleton->priv->lock); 3726s # skeleton->priv->context = g_main_context_ref_thread_default (); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 3726s # { 3726s # GObjectClass *gobject_class; 3726s # GDBusInterfaceSkeletonClass *skeleton_class; 3726s # 3726s # gobject_class = G_OBJECT_CLASS (klass); 3726s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 3726s # 3726s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3726s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 3726s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 3726s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 3726s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3726s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 3726s # #endif 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 3726s # { 3726s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 3726s # iface->single_arg_signal_u = _org_project_signaling_iface_on_signal_single_arg_signal_u; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_skeleton_new: 3726s # * 3726s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_skeleton_new (void) 3726s # { 3726s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 3726s # } 3726s # Error: 3726s # 3726s # /tmp/tmp9symyp9z/tmp4rze4b0m.xml: 3726s # <node> 3726s # <interface name="org.project.SignalingIface"> 3726s # <signal name="SimpleSignal"/> 3726s # <signal name="SingleArgSignalX"> 3726s # <arg name="arg_x" type="x"/> 3726s # </signal> 3726s # </interface> 3726s # </node> 3726s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9symyp9z/tmp4rze4b0m.xml', '--output', '-', '--body'] 3726s # Return code: 0 3726s # Output: 3726s # /* 3726s # * This file is generated by gdbus-codegen, do not modify it. 3726s # * 3726s # * The license of this code is the same as for the D-Bus interface description 3726s # * it was derived from. Note that it links to GLib, so must comply with the 3726s # * LGPL linking clauses. 3726s # */ 3726s # 3726s # #ifdef HAVE_CONFIG_H 3726s # # include "config.h" 3726s # #endif 3726s # 3726s # #include <string.h> 3726s # #ifdef G_OS_UNIX 3726s # # include <gio/gunixfdlist.h> 3726s # #endif 3726s # 3726s # #ifdef G_ENABLE_DEBUG 3726s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3726s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3726s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3726s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3726s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3726s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3726s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3726s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3726s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3726s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3726s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3726s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3726s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3726s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3726s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3726s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3726s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3726s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3726s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3726s # #else /* !G_ENABLE_DEBUG */ 3726s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3726s # * Do not access GValues directly in your code. Instead, use the 3726s # * g_value_get_*() functions 3726s # */ 3726s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3726s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3726s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3726s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3726s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3726s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3726s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3726s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3726s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3726s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3726s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3726s # #endif /* !G_ENABLE_DEBUG */ 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusArgInfo parent_struct; 3726s # gboolean use_gvariant; 3726s # } _ExtendedGDBusArgInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusMethodInfo parent_struct; 3726s # const gchar *signal_name; 3726s # gboolean pass_fdlist; 3726s # } _ExtendedGDBusMethodInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusSignalInfo parent_struct; 3726s # const gchar *signal_name; 3726s # } _ExtendedGDBusSignalInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusPropertyInfo parent_struct; 3726s # const gchar *hyphen_name; 3726s # guint use_gvariant : 1; 3726s # guint emits_changed_signal : 1; 3726s # } _ExtendedGDBusPropertyInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusInterfaceInfo parent_struct; 3726s # const gchar *hyphen_name; 3726s # } _ExtendedGDBusInterfaceInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # const _ExtendedGDBusPropertyInfo *info; 3726s # guint prop_id; 3726s # GValue orig_value; /* the value before the change */ 3726s # } ChangedProperty; 3726s # 3726s # static void 3726s # _changed_property_free (ChangedProperty *data) 3726s # { 3726s # g_value_unset (&data->orig_value); 3726s # g_free (data); 3726s # } 3726s # 3726s # static gboolean 3726s # _g_strv_equal0 (gchar **a, gchar **b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # guint n; 3726s # if (a == NULL && b == NULL) 3726s # { 3726s # ret = TRUE; 3726s # goto out; 3726s # } 3726s # if (a == NULL || b == NULL) 3726s # goto out; 3726s # if (g_strv_length (a) != g_strv_length (b)) 3726s # goto out; 3726s # for (n = 0; a[n] != NULL; n++) 3726s # if (g_strcmp0 (a[n], b[n]) != 0) 3726s # goto out; 3726s # ret = TRUE; 3726s # out: 3726s # return ret; 3726s # } 3726s # 3726s # static gboolean 3726s # _g_variant_equal0 (GVariant *a, GVariant *b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # if (a == NULL && b == NULL) 3726s # { 3726s # ret = TRUE; 3726s # goto out; 3726s # } 3726s # if (a == NULL || b == NULL) 3726s # goto out; 3726s # ret = g_variant_equal (a, b); 3726s # out: 3726s # return ret; 3726s # } 3726s # 3726s # G_GNUC_UNUSED static gboolean 3726s # _g_value_equal (const GValue *a, const GValue *b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3726s # switch (G_VALUE_TYPE (a)) 3726s # { 3726s # case G_TYPE_BOOLEAN: 3726s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3726s # break; 3726s # case G_TYPE_UCHAR: 3726s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3726s # break; 3726s # case G_TYPE_INT: 3726s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3726s # break; 3726s # case G_TYPE_UINT: 3726s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3726s # break; 3726s # case G_TYPE_INT64: 3726s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3726s # break; 3726s # case G_TYPE_UINT64: 3726s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3726s # break; 3726s # case G_TYPE_DOUBLE: 3726s # { 3726s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3726s # gdouble da = g_value_get_double (a); 3726s # gdouble db = g_value_get_double (b); 3726s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3726s # } 3726s # break; 3726s # case G_TYPE_STRING: 3726s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3726s # break; 3726s # case G_TYPE_VARIANT: 3726s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3726s # break; 3726s # default: 3726s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3726s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3726s # else 3726s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3726s # break; 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # static void 3726s # _g_dbus_codegen_marshal_VOID__INT64 ( 3726s # GClosure *closure, 3726s # GValue *return_value G_GNUC_UNUSED, 3726s # unsigned int n_param_values, 3726s # const GValue *param_values, 3726s # void *invocation_hint G_GNUC_UNUSED, 3726s # void *marshal_data) 3726s # { 3726s # typedef void (*_GDbusCodegenMarshalVoid_Int64Func) 3726s # (void *data1, 3726s # gint64 arg_arg_x, 3726s # void *data2); 3726s # _GDbusCodegenMarshalVoid_Int64Func callback; 3726s # GCClosure *cc = (GCClosure*) closure; 3726s # void *data1, *data2; 3726s # 3726s # g_return_if_fail (n_param_values == 2); 3726s # 3726s # if (G_CCLOSURE_SWAP_DATA (closure)) 3726s # { 3726s # data1 = closure->data; 3726s # data2 = g_value_peek_pointer (param_values + 0); 3726s # } 3726s # else 3726s # { 3726s # data1 = g_value_peek_pointer (param_values + 0); 3726s # data2 = closure->data; 3726s # } 3726s # 3726s # callback = (_GDbusCodegenMarshalVoid_Int64Func) 3726s # (marshal_data ? marshal_data : cc->callback); 3726s # 3726s # callback (data1, 3726s # g_marshal_value_peek_int64 (param_values + 1), 3726s # data2); 3726s # } 3726s # 3726s # /* ------------------------------------------------------------------------ 3726s # * Code for interface org.project.SignalingIface 3726s # * ------------------------------------------------------------------------ 3726s # */ 3726s # 3726s # /** 3726s # * SECTION:OrgProjectSignalingIface 3726s # * @title: OrgProjectSignalingIface 3726s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 3726s # * 3726s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface in C. 3726s # */ 3726s # 3726s # enum 3726s # { 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 3726s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X, 3726s # }; 3726s # 3726s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 3726s # 3726s # /* ---- Introspection data for org.project.SignalingIface ---- */ 3726s # 3726s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "SimpleSignal", 3726s # NULL, 3726s # NULL 3726s # }, 3726s # "simple-signal" 3726s # }; 3726s # 3726s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_arg_x = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "arg_x", 3726s # (gchar *) "x", 3726s # NULL 3726s # }, 3726s # FALSE 3726s # }; 3726s # 3726s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers[] = 3726s # { 3726s # &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_arg_x.parent_struct, 3726s # NULL 3726s # }; 3726s # 3726s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_x = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "SingleArgSignalX", 3726s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers, 3726s # NULL 3726s # }, 3726s # "single-arg-signal-x" 3726s # }; 3726s # 3726s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 3726s # { 3726s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 3726s # &_org_project_signaling_iface_signal_info_single_arg_signal_x.parent_struct, 3726s # NULL 3726s # }; 3726s # 3726s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "org.project.SignalingIface", 3726s # NULL, 3726s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 3726s # NULL, 3726s # NULL 3726s # }, 3726s # "org-project-signaling-iface", 3726s # }; 3726s # 3726s # 3726s # /** 3726s # * org_project_signaling_iface_interface_info: 3726s # * 3726s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface. 3726s # * 3726s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3726s # */ 3726s # GDBusInterfaceInfo * 3726s # org_project_signaling_iface_interface_info (void) 3726s # { 3726s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_override_properties: 3726s # * @klass: The class structure for a #GObject derived class. 3726s # * @property_id_begin: The property id to assign to the first overridden property. 3726s # * 3726s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 3726s # * The properties are overridden in the order they are defined. 3726s # * 3726s # * Returns: The last property id. 3726s # */ 3726s # guint 3726s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3726s # { 3726s # return property_id_begin - 1; 3726s # } 3726s # 3726s # 3726s # inline static void 3726s # org_project_signaling_iface_signal_marshal_simple_signal ( 3726s # GClosure *closure, 3726s # GValue *return_value, 3726s # unsigned int n_param_values, 3726s # const GValue *param_values, 3726s # void *invocation_hint, 3726s # void *marshal_data) 3726s # { 3726s # g_cclosure_marshal_VOID__VOID (closure, 3726s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3726s # } 3726s # 3726s # inline static void 3726s # org_project_signaling_iface_signal_marshal_single_arg_signal_x ( 3726s # GClosure *closure, 3726s # GValue *return_value, 3726s # unsigned int n_param_values, 3726s # const GValue *param_values, 3726s # void *invocation_hint, 3726s # void *marshal_data) 3726s # { 3726s # _g_dbus_codegen_marshal_VOID__INT64 (closure, 3726s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3726s # } 3726s # 3726s # 3726s # /** 3726s # * OrgProjectSignalingIface: 3726s # * 3726s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceIface: 3726s # * @parent_iface: The parent interface. 3726s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 3726s # * @single_arg_signal_x: Handler for the #OrgProjectSignalingIface::single-arg-signal-x signal. 3726s # * 3726s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # */ 3726s # 3726s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 3726s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 3726s # 3726s # static void 3726s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 3726s # { 3726s # /* GObject signals for received D-Bus signals: */ 3726s # /** 3726s # * OrgProjectSignalingIface::simple-signal: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * 3726s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SimpleSignal">"SimpleSignal"</link> is received. 3726s # * 3726s # * 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. 3726s # */ 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 3726s # g_signal_new ("simple-signal", 3726s # G_TYPE_FROM_INTERFACE (iface), 3726s # G_SIGNAL_RUN_LAST, 3726s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 3726s # NULL, 3726s # NULL, 3726s # org_project_signaling_iface_signal_marshal_simple_signal, 3726s # G_TYPE_NONE, 3726s # 0); 3726s # 3726s # /** 3726s # * OrgProjectSignalingIface::single-arg-signal-x: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * @arg_arg_x: Argument. 3726s # * 3726s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalX">"SingleArgSignalX"</link> is received. 3726s # * 3726s # * 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. 3726s # */ 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X] = 3726s # g_signal_new ("single-arg-signal-x", 3726s # G_TYPE_FROM_INTERFACE (iface), 3726s # G_SIGNAL_RUN_LAST, 3726s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_x), 3726s # NULL, 3726s # NULL, 3726s # org_project_signaling_iface_signal_marshal_single_arg_signal_x, 3726s # G_TYPE_NONE, 3726s # 1, G_TYPE_INT64); 3726s # 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_emit_simple_signal: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * 3726s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SimpleSignal">"SimpleSignal"</link> D-Bus signal. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_emit_simple_signal ( 3726s # OrgProjectSignalingIface *object) 3726s # { 3726s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_emit_single_arg_signal_x: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * @arg_arg_x: Argument to pass with the signal. 3726s # * 3726s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalX">"SingleArgSignalX"</link> D-Bus signal. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_emit_single_arg_signal_x ( 3726s # OrgProjectSignalingIface *object, 3726s # gint64 arg_arg_x) 3726s # { 3726s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X], 0, arg_arg_x); 3726s # } 3726s # 3726s # /* ------------------------------------------------------------------------ */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceProxy: 3726s # * 3726s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceProxyClass: 3726s # * @parent_class: The parent class. 3726s # * 3726s # * Class structure for #OrgProjectSignalingIfaceProxy. 3726s # */ 3726s # 3726s # struct _OrgProjectSignalingIfaceProxyPrivate 3726s # { 3726s # GData *qdata; 3726s # }; 3726s # 3726s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3726s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3726s # 3726s # #else 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3726s # 3726s # #endif 3726s # static void 3726s # org_project_signaling_iface_proxy_finalize (GObject *object) 3726s # { 3726s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 3726s # g_datalist_clear (&proxy->priv->qdata); 3726s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3726s # guint prop_id G_GNUC_UNUSED, 3726s # GValue *value G_GNUC_UNUSED, 3726s # GParamSpec *pspec G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3726s # guint prop_id G_GNUC_UNUSED, 3726s # const GValue *value G_GNUC_UNUSED, 3726s # GParamSpec *pspec G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 3726s # const gchar *sender_name G_GNUC_UNUSED, 3726s # const gchar *signal_name, 3726s # GVariant *parameters) 3726s # { 3726s # _ExtendedGDBusSignalInfo *info; 3726s # GVariantIter iter; 3726s # GVariant *child; 3726s # GValue *paramv; 3726s # gsize num_params; 3726s # gsize n; 3726s # guint signal_id; 3726s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 3726s # if (info == NULL) 3726s # return; 3726s # num_params = g_variant_n_children (parameters); 3726s # paramv = g_new0 (GValue, num_params + 1); 3726s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_set_object (¶mv[0], proxy); 3726s # g_variant_iter_init (&iter, parameters); 3726s # n = 1; 3726s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3726s # { 3726s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3726s # if (arg_info->use_gvariant) 3726s # { 3726s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3726s # g_value_set_variant (¶mv[n], child); 3726s # n++; 3726s # } 3726s # else 3726s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3726s # g_variant_unref (child); 3726s # } 3726s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_signal_emitv (paramv, signal_id, 0, NULL); 3726s # for (n = 0; n < num_params + 1; n++) 3726s # g_value_unset (¶mv[n]); 3726s # g_free (paramv); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 3726s # GVariant *changed_properties, 3726s # const gchar *const *invalidated_properties) 3726s # { 3726s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 3726s # guint n; 3726s # const gchar *key; 3726s # GVariantIter *iter; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # g_variant_get (changed_properties, "a{sv}", &iter); 3726s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3726s # { 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 3726s # g_datalist_remove_data (&proxy->priv->qdata, key); 3726s # if (info != NULL) 3726s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3726s # } 3726s # g_variant_iter_free (iter); 3726s # for (n = 0; invalidated_properties[n] != NULL; n++) 3726s # { 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 3726s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3726s # if (info != NULL) 3726s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3726s # } 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 3726s # { 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 3726s # #else 3726s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 3726s # #endif 3726s # 3726s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 3726s # { 3726s # GObjectClass *gobject_class; 3726s # GDBusProxyClass *proxy_class; 3726s # 3726s # gobject_class = G_OBJECT_CLASS (klass); 3726s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 3726s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 3726s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 3726s # 3726s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3726s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 3726s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3726s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 3726s # #endif 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new: 3726s # * @connection: A #GDBusConnection. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3726s # * @user_data: User data to pass to @callback. 3726s # * 3726s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new() for more details. 3726s # * 3726s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3726s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_proxy_new ( 3726s # GDBusConnection *connection, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GAsyncReadyCallback callback, 3726s # gpointer user_data) 3726s # { 3726s # 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); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_finish: 3726s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_finish ( 3726s # GAsyncResult *res, 3726s # GError **error) 3726s # { 3726s # GObject *ret; 3726s # GObject *source_object; 3726s # source_object = g_async_result_get_source_object (res); 3726s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3726s # g_object_unref (source_object); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_sync: 3726s # * @connection: A #GDBusConnection. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new_sync() for more details. 3726s # * 3726s # * The calling thread is blocked until a reply is received. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_sync ( 3726s # GDBusConnection *connection, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GError **error) 3726s # { 3726s # GInitable *ret; 3726s # 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); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus: 3726s # * @bus_type: A #GBusType. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: A bus name (well-known or unique). 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3726s # * @user_data: User data to pass to @callback. 3726s # * 3726s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3726s # * 3726s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3726s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_proxy_new_for_bus ( 3726s # GBusType bus_type, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GAsyncReadyCallback callback, 3726s # gpointer user_data) 3726s # { 3726s # 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); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus_finish: 3726s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_for_bus_finish ( 3726s # GAsyncResult *res, 3726s # GError **error) 3726s # { 3726s # GObject *ret; 3726s # GObject *source_object; 3726s # source_object = g_async_result_get_source_object (res); 3726s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3726s # g_object_unref (source_object); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus_sync: 3726s # * @bus_type: A #GBusType. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: A bus name (well-known or unique). 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3726s # * 3726s # * The calling thread is blocked until a reply is received. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_for_bus_sync ( 3726s # GBusType bus_type, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GError **error) 3726s # { 3726s # GInitable *ret; 3726s # 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); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # 3726s # /* ------------------------------------------------------------------------ */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceSkeleton: 3726s # * 3726s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceSkeletonClass: 3726s # * @parent_class: The parent class. 3726s # * 3726s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 3726s # */ 3726s # 3726s # struct _OrgProjectSignalingIfaceSkeletonPrivate 3726s # { 3726s # GValue *properties; 3726s # GList *changed_properties; 3726s # GSource *changed_properties_idle_source; 3726s # GMainContext *context; 3726s # GMutex lock; 3726s # }; 3726s # 3726s # static void 3726s # _org_project_signaling_iface_skeleton_handle_method_call ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name, 3726s # const gchar *method_name, 3726s # GVariant *parameters, 3726s # GDBusMethodInvocation *invocation, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # _ExtendedGDBusMethodInfo *info; 3726s # GVariantIter iter; 3726s # GVariant *child; 3726s # GValue *paramv; 3726s # gsize num_params; 3726s # guint num_extra; 3726s # gsize n; 3726s # guint signal_id; 3726s # GValue return_value = G_VALUE_INIT; 3726s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3726s # g_assert (info != NULL); 3726s # num_params = g_variant_n_children (parameters); 3726s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3726s # n = 0; 3726s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_set_object (¶mv[n++], skeleton); 3726s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3726s # g_value_set_object (¶mv[n++], invocation); 3726s # if (info->pass_fdlist) 3726s # { 3726s # #ifdef G_OS_UNIX 3726s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3726s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3726s # #else 3726s # g_assert_not_reached (); 3726s # #endif 3726s # } 3726s # g_variant_iter_init (&iter, parameters); 3726s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3726s # { 3726s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3726s # if (arg_info->use_gvariant) 3726s # { 3726s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3726s # g_value_set_variant (¶mv[n], child); 3726s # n++; 3726s # } 3726s # else 3726s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3726s # g_variant_unref (child); 3726s # } 3726s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3726s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3726s # if (!g_value_get_boolean (&return_value)) 3726s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3726s # g_value_unset (&return_value); 3726s # for (n = 0; n < num_params + num_extra; n++) 3726s # g_value_unset (¶mv[n]); 3726s # g_free (paramv); 3726s # } 3726s # 3726s # static GVariant * 3726s # _org_project_signaling_iface_skeleton_handle_get_property ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name G_GNUC_UNUSED, 3726s # const gchar *property_name, 3726s # GError **error, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # GValue value = G_VALUE_INIT; 3726s # GParamSpec *pspec; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # GVariant *ret; 3726s # ret = NULL; 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3726s # g_assert (info != NULL); 3726s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3726s # if (pspec == NULL) 3726s # { 3726s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3726s # } 3726s # else 3726s # { 3726s # g_value_init (&value, pspec->value_type); 3726s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3726s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3726s # g_value_unset (&value); 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # static gboolean 3726s # _org_project_signaling_iface_skeleton_handle_set_property ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name G_GNUC_UNUSED, 3726s # const gchar *property_name, 3726s # GVariant *variant, 3726s # GError **error, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # GValue value = G_VALUE_INIT; 3726s # GParamSpec *pspec; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # gboolean ret; 3726s # ret = FALSE; 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3726s # g_assert (info != NULL); 3726s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3726s # if (pspec == NULL) 3726s # { 3726s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3726s # } 3726s # else 3726s # { 3726s # if (info->use_gvariant) 3726s # g_value_set_variant (&value, variant); 3726s # else 3726s # g_dbus_gvariant_to_gvalue (variant, &value); 3726s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3726s # g_value_unset (&value); 3726s # ret = TRUE; 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 3726s # { 3726s # _org_project_signaling_iface_skeleton_handle_method_call, 3726s # _org_project_signaling_iface_skeleton_handle_get_property, 3726s # _org_project_signaling_iface_skeleton_handle_set_property, 3726s # {NULL} 3726s # }; 3726s # 3726s # static GDBusInterfaceInfo * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3726s # { 3726s # return org_project_signaling_iface_interface_info (); 3726s # } 3726s # 3726s # static GDBusInterfaceVTable * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3726s # { 3726s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 3726s # } 3726s # 3726s # static GVariant * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 3726s # 3726s # GVariantBuilder builder; 3726s # guint n; 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3726s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3726s # #else 3726s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3726s # #endif 3726s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 3726s # goto out; 3726s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 3726s # { 3726s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 3726s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3726s # { 3726s # GVariant *value; 3726s # 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); 3726s # if (value != NULL) 3726s # { 3726s # g_variant_take_ref (value); 3726s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3726s # g_variant_unref (value); 3726s # } 3726s # } 3726s # } 3726s # out: 3726s # return g_variant_builder_end (&builder); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # _org_project_signaling_iface_on_signal_simple_signal ( 3726s # OrgProjectSignalingIface *object) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # 3726s # GList *connections, *l; 3726s # GVariant *signal_variant; 3726s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3726s # 3726s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 3726s # for (l = connections; l != NULL; l = l->next) 3726s # { 3726s # GDBusConnection *connection = l->data; 3726s # g_dbus_connection_emit_signal (connection, 3726s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 3726s # signal_variant, NULL); 3726s # } 3726s # g_variant_unref (signal_variant); 3726s # g_list_free_full (connections, g_object_unref); 3726s # } 3726s # 3726s # static void 3726s # _org_project_signaling_iface_on_signal_single_arg_signal_x ( 3726s # OrgProjectSignalingIface *object, 3726s # gint64 arg_arg_x) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # 3726s # GList *connections, *l; 3726s # GVariant *signal_variant; 3726s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3726s # 3726s # signal_variant = g_variant_ref_sink (g_variant_new ("(x)", 3726s # arg_arg_x)); 3726s # for (l = connections; l != NULL; l = l->next) 3726s # { 3726s # GDBusConnection *connection = l->data; 3726s # g_dbus_connection_emit_signal (connection, 3726s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalX", 3726s # signal_variant, NULL); 3726s # } 3726s # g_variant_unref (signal_variant); 3726s # g_list_free_full (connections, g_object_unref); 3726s # } 3726s # 3726s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3726s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3726s # 3726s # #else 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3726s # 3726s # #endif 3726s # static void 3726s # org_project_signaling_iface_skeleton_finalize (GObject *object) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3726s # if (skeleton->priv->changed_properties_idle_source != NULL) 3726s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3726s # g_main_context_unref (skeleton->priv->context); 3726s # g_mutex_clear (&skeleton->priv->lock); 3726s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 3726s # { 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 3726s # #else 3726s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 3726s # #endif 3726s # 3726s # g_mutex_init (&skeleton->priv->lock); 3726s # skeleton->priv->context = g_main_context_ref_thread_default (); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 3726s # { 3726s # GObjectClass *gobject_class; 3726s # GDBusInterfaceSkeletonClass *skeleton_class; 3726s # 3726s # gobject_class = G_OBJECT_CLASS (klass); 3726s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 3726s # 3726s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3726s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 3726s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 3726s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 3726s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3726s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 3726s # #endif 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 3726s # { 3726s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 3726s # iface->single_arg_signal_x = _org_project_signaling_iface_on_signal_single_arg_signal_x; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_skeleton_new: 3726s # * 3726s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_skeleton_new (void) 3726s # { 3726s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 3726s # } 3726s # Error: 3726s # 3726s # /tmp/tmp9symyp9z/tmp5kd2d0lw.xml: 3726s # <node> 3726s # <interface name="org.project.SignalingIface"> 3726s # <signal name="SimpleSignal"/> 3726s # <signal name="SingleArgSignalT"> 3726s # <arg name="arg_t" type="t"/> 3726s # </signal> 3726s # </interface> 3726s # </node> 3726s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9symyp9z/tmp5kd2d0lw.xml', '--output', '-', '--body'] 3726s # Return code: 0 3726s # Output: 3726s # /* 3726s # * This file is generated by gdbus-codegen, do not modify it. 3726s # * 3726s # * The license of this code is the same as for the D-Bus interface description 3726s # * it was derived from. Note that it links to GLib, so must comply with the 3726s # * LGPL linking clauses. 3726s # */ 3726s # 3726s # #ifdef HAVE_CONFIG_H 3726s # # include "config.h" 3726s # #endif 3726s # 3726s # #include <string.h> 3726s # #ifdef G_OS_UNIX 3726s # # include <gio/gunixfdlist.h> 3726s # #endif 3726s # 3726s # #ifdef G_ENABLE_DEBUG 3726s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3726s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3726s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3726s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3726s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3726s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3726s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3726s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3726s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3726s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3726s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3726s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3726s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3726s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3726s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3726s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3726s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3726s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3726s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3726s # #else /* !G_ENABLE_DEBUG */ 3726s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3726s # * Do not access GValues directly in your code. Instead, use the 3726s # * g_value_get_*() functions 3726s # */ 3726s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3726s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3726s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3726s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3726s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3726s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3726s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3726s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3726s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3726s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3726s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3726s # #endif /* !G_ENABLE_DEBUG */ 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusArgInfo parent_struct; 3726s # gboolean use_gvariant; 3726s # } _ExtendedGDBusArgInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusMethodInfo parent_struct; 3726s # const gchar *signal_name; 3726s # gboolean pass_fdlist; 3726s # } _ExtendedGDBusMethodInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusSignalInfo parent_struct; 3726s # const gchar *signal_name; 3726s # } _ExtendedGDBusSignalInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusPropertyInfo parent_struct; 3726s # const gchar *hyphen_name; 3726s # guint use_gvariant : 1; 3726s # guint emits_changed_signal : 1; 3726s # } _ExtendedGDBusPropertyInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusInterfaceInfo parent_struct; 3726s # const gchar *hyphen_name; 3726s # } _ExtendedGDBusInterfaceInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # const _ExtendedGDBusPropertyInfo *info; 3726s # guint prop_id; 3726s # GValue orig_value; /* the value before the change */ 3726s # } ChangedProperty; 3726s # 3726s # static void 3726s # _changed_property_free (ChangedProperty *data) 3726s # { 3726s # g_value_unset (&data->orig_value); 3726s # g_free (data); 3726s # } 3726s # 3726s # static gboolean 3726s # _g_strv_equal0 (gchar **a, gchar **b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # guint n; 3726s # if (a == NULL && b == NULL) 3726s # { 3726s # ret = TRUE; 3726s # goto out; 3726s # } 3726s # if (a == NULL || b == NULL) 3726s # goto out; 3726s # if (g_strv_length (a) != g_strv_length (b)) 3726s # goto out; 3726s # for (n = 0; a[n] != NULL; n++) 3726s # if (g_strcmp0 (a[n], b[n]) != 0) 3726s # goto out; 3726s # ret = TRUE; 3726s # out: 3726s # return ret; 3726s # } 3726s # 3726s # static gboolean 3726s # _g_variant_equal0 (GVariant *a, GVariant *b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # if (a == NULL && b == NULL) 3726s # { 3726s # ret = TRUE; 3726s # goto out; 3726s # } 3726s # if (a == NULL || b == NULL) 3726s # goto out; 3726s # ret = g_variant_equal (a, b); 3726s # out: 3726s # return ret; 3726s # } 3726s # 3726s # G_GNUC_UNUSED static gboolean 3726s # _g_value_equal (const GValue *a, const GValue *b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3726s # switch (G_VALUE_TYPE (a)) 3726s # { 3726s # case G_TYPE_BOOLEAN: 3726s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3726s # break; 3726s # case G_TYPE_UCHAR: 3726s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3726s # break; 3726s # case G_TYPE_INT: 3726s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3726s # break; 3726s # case G_TYPE_UINT: 3726s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3726s # break; 3726s # case G_TYPE_INT64: 3726s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3726s # break; 3726s # case G_TYPE_UINT64: 3726s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3726s # break; 3726s # case G_TYPE_DOUBLE: 3726s # { 3726s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3726s # gdouble da = g_value_get_double (a); 3726s # gdouble db = g_value_get_double (b); 3726s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3726s # } 3726s # break; 3726s # case G_TYPE_STRING: 3726s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3726s # break; 3726s # case G_TYPE_VARIANT: 3726s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3726s # break; 3726s # default: 3726s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3726s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3726s # else 3726s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3726s # break; 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # static void 3726s # _g_dbus_codegen_marshal_VOID__UINT64 ( 3726s # GClosure *closure, 3726s # GValue *return_value G_GNUC_UNUSED, 3726s # unsigned int n_param_values, 3726s # const GValue *param_values, 3726s # void *invocation_hint G_GNUC_UNUSED, 3726s # void *marshal_data) 3726s # { 3726s # typedef void (*_GDbusCodegenMarshalVoid_Uint64Func) 3726s # (void *data1, 3726s # guint64 arg_arg_t, 3726s # void *data2); 3726s # _GDbusCodegenMarshalVoid_Uint64Func callback; 3726s # GCClosure *cc = (GCClosure*) closure; 3726s # void *data1, *data2; 3726s # 3726s # g_return_if_fail (n_param_values == 2); 3726s # 3726s # if (G_CCLOSURE_SWAP_DATA (closure)) 3726s # { 3726s # data1 = closure->data; 3726s # data2 = g_value_peek_pointer (param_values + 0); 3726s # } 3726s # else 3726s # { 3726s # data1 = g_value_peek_pointer (param_values + 0); 3726s # data2 = closure->data; 3726s # } 3726s # 3726s # callback = (_GDbusCodegenMarshalVoid_Uint64Func) 3726s # (marshal_data ? marshal_data : cc->callback); 3726s # 3726s # callback (data1, 3726s # g_marshal_value_peek_uint64 (param_values + 1), 3726s # data2); 3726s # } 3726s # 3726s # /* ------------------------------------------------------------------------ 3726s # * Code for interface org.project.SignalingIface 3726s # * ------------------------------------------------------------------------ 3726s # */ 3726s # 3726s # /** 3726s # * SECTION:OrgProjectSignalingIface 3726s # * @title: OrgProjectSignalingIface 3726s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 3726s # * 3726s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface in C. 3726s # */ 3726s # 3726s # enum 3726s # { 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 3726s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T, 3726s # }; 3726s # 3726s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 3726s # 3726s # /* ---- Introspection data for org.project.SignalingIface ---- */ 3726s # 3726s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "SimpleSignal", 3726s # NULL, 3726s # NULL 3726s # }, 3726s # "simple-signal" 3726s # }; 3726s # 3726s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_arg_t = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "arg_t", 3726s # (gchar *) "t", 3726s # NULL 3726s # }, 3726s # FALSE 3726s # }; 3726s # 3726s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers[] = 3726s # { 3726s # &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_arg_t.parent_struct, 3726s # NULL 3726s # }; 3726s # 3726s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_t = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "SingleArgSignalT", 3726s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers, 3726s # NULL 3726s # }, 3726s # "single-arg-signal-t" 3726s # }; 3726s # 3726s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 3726s # { 3726s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 3726s # &_org_project_signaling_iface_signal_info_single_arg_signal_t.parent_struct, 3726s # NULL 3726s # }; 3726s # 3726s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "org.project.SignalingIface", 3726s # NULL, 3726s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 3726s # NULL, 3726s # NULL 3726s # }, 3726s # "org-project-signaling-iface", 3726s # }; 3726s # 3726s # 3726s # /** 3726s # * org_project_signaling_iface_interface_info: 3726s # * 3726s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface. 3726s # * 3726s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3726s # */ 3726s # GDBusInterfaceInfo * 3726s # org_project_signaling_iface_interface_info (void) 3726s # { 3726s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_override_properties: 3726s # * @klass: The class structure for a #GObject derived class. 3726s # * @property_id_begin: The property id to assign to the first overridden property. 3726s # * 3726s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 3726s # * The properties are overridden in the order they are defined. 3726s # * 3726s # * Returns: The last property id. 3726s # */ 3726s # guint 3726s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3726s # { 3726s # return property_id_begin - 1; 3726s # } 3726s # 3726s # 3726s # inline static void 3726s # org_project_signaling_iface_signal_marshal_simple_signal ( 3726s # GClosure *closure, 3726s # GValue *return_value, 3726s # unsigned int n_param_values, 3726s # const GValue *param_values, 3726s # void *invocation_hint, 3726s # void *marshal_data) 3726s # { 3726s # g_cclosure_marshal_VOID__VOID (closure, 3726s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3726s # } 3726s # 3726s # inline static void 3726s # org_project_signaling_iface_signal_marshal_single_arg_signal_t ( 3726s # GClosure *closure, 3726s # GValue *return_value, 3726s # unsigned int n_param_values, 3726s # const GValue *param_values, 3726s # void *invocation_hint, 3726s # void *marshal_data) 3726s # { 3726s # _g_dbus_codegen_marshal_VOID__UINT64 (closure, 3726s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3726s # } 3726s # 3726s # 3726s # /** 3726s # * OrgProjectSignalingIface: 3726s # * 3726s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceIface: 3726s # * @parent_iface: The parent interface. 3726s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 3726s # * @single_arg_signal_t: Handler for the #OrgProjectSignalingIface::single-arg-signal-t signal. 3726s # * 3726s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # */ 3726s # 3726s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 3726s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 3726s # 3726s # static void 3726s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 3726s # { 3726s # /* GObject signals for received D-Bus signals: */ 3726s # /** 3726s # * OrgProjectSignalingIface::simple-signal: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * 3726s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SimpleSignal">"SimpleSignal"</link> is received. 3726s # * 3726s # * 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. 3726s # */ 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 3726s # g_signal_new ("simple-signal", 3726s # G_TYPE_FROM_INTERFACE (iface), 3726s # G_SIGNAL_RUN_LAST, 3726s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 3726s # NULL, 3726s # NULL, 3726s # org_project_signaling_iface_signal_marshal_simple_signal, 3726s # G_TYPE_NONE, 3726s # 0); 3726s # 3726s # /** 3726s # * OrgProjectSignalingIface::single-arg-signal-t: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * @arg_arg_t: Argument. 3726s # * 3726s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalT">"SingleArgSignalT"</link> is received. 3726s # * 3726s # * 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. 3726s # */ 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T] = 3726s # g_signal_new ("single-arg-signal-t", 3726s # G_TYPE_FROM_INTERFACE (iface), 3726s # G_SIGNAL_RUN_LAST, 3726s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_t), 3726s # NULL, 3726s # NULL, 3726s # org_project_signaling_iface_signal_marshal_single_arg_signal_t, 3726s # G_TYPE_NONE, 3726s # 1, G_TYPE_UINT64); 3726s # 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_emit_simple_signal: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * 3726s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SimpleSignal">"SimpleSignal"</link> D-Bus signal. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_emit_simple_signal ( 3726s # OrgProjectSignalingIface *object) 3726s # { 3726s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_emit_single_arg_signal_t: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * @arg_arg_t: Argument to pass with the signal. 3726s # * 3726s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalT">"SingleArgSignalT"</link> D-Bus signal. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_emit_single_arg_signal_t ( 3726s # OrgProjectSignalingIface *object, 3726s # guint64 arg_arg_t) 3726s # { 3726s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T], 0, arg_arg_t); 3726s # } 3726s # 3726s # /* ------------------------------------------------------------------------ */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceProxy: 3726s # * 3726s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceProxyClass: 3726s # * @parent_class: The parent class. 3726s # * 3726s # * Class structure for #OrgProjectSignalingIfaceProxy. 3726s # */ 3726s # 3726s # struct _OrgProjectSignalingIfaceProxyPrivate 3726s # { 3726s # GData *qdata; 3726s # }; 3726s # 3726s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3726s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3726s # 3726s # #else 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3726s # 3726s # #endif 3726s # static void 3726s # org_project_signaling_iface_proxy_finalize (GObject *object) 3726s # { 3726s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 3726s # g_datalist_clear (&proxy->priv->qdata); 3726s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3726s # guint prop_id G_GNUC_UNUSED, 3726s # GValue *value G_GNUC_UNUSED, 3726s # GParamSpec *pspec G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3726s # guint prop_id G_GNUC_UNUSED, 3726s # const GValue *value G_GNUC_UNUSED, 3726s # GParamSpec *pspec G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 3726s # const gchar *sender_name G_GNUC_UNUSED, 3726s # const gchar *signal_name, 3726s # GVariant *parameters) 3726s # { 3726s # _ExtendedGDBusSignalInfo *info; 3726s # GVariantIter iter; 3726s # GVariant *child; 3726s # GValue *paramv; 3726s # gsize num_params; 3726s # gsize n; 3726s # guint signal_id; 3726s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 3726s # if (info == NULL) 3726s # return; 3726s # num_params = g_variant_n_children (parameters); 3726s # paramv = g_new0 (GValue, num_params + 1); 3726s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_set_object (¶mv[0], proxy); 3726s # g_variant_iter_init (&iter, parameters); 3726s # n = 1; 3726s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3726s # { 3726s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3726s # if (arg_info->use_gvariant) 3726s # { 3726s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3726s # g_value_set_variant (¶mv[n], child); 3726s # n++; 3726s # } 3726s # else 3726s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3726s # g_variant_unref (child); 3726s # } 3726s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_signal_emitv (paramv, signal_id, 0, NULL); 3726s # for (n = 0; n < num_params + 1; n++) 3726s # g_value_unset (¶mv[n]); 3726s # g_free (paramv); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 3726s # GVariant *changed_properties, 3726s # const gchar *const *invalidated_properties) 3726s # { 3726s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 3726s # guint n; 3726s # const gchar *key; 3726s # GVariantIter *iter; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # g_variant_get (changed_properties, "a{sv}", &iter); 3726s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3726s # { 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 3726s # g_datalist_remove_data (&proxy->priv->qdata, key); 3726s # if (info != NULL) 3726s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3726s # } 3726s # g_variant_iter_free (iter); 3726s # for (n = 0; invalidated_properties[n] != NULL; n++) 3726s # { 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 3726s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3726s # if (info != NULL) 3726s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3726s # } 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 3726s # { 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 3726s # #else 3726s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 3726s # #endif 3726s # 3726s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 3726s # { 3726s # GObjectClass *gobject_class; 3726s # GDBusProxyClass *proxy_class; 3726s # 3726s # gobject_class = G_OBJECT_CLASS (klass); 3726s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 3726s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 3726s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 3726s # 3726s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3726s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 3726s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3726s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 3726s # #endif 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new: 3726s # * @connection: A #GDBusConnection. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3726s # * @user_data: User data to pass to @callback. 3726s # * 3726s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new() for more details. 3726s # * 3726s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3726s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_proxy_new ( 3726s # GDBusConnection *connection, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GAsyncReadyCallback callback, 3726s # gpointer user_data) 3726s # { 3726s # 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); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_finish: 3726s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_finish ( 3726s # GAsyncResult *res, 3726s # GError **error) 3726s # { 3726s # GObject *ret; 3726s # GObject *source_object; 3726s # source_object = g_async_result_get_source_object (res); 3726s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3726s # g_object_unref (source_object); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_sync: 3726s # * @connection: A #GDBusConnection. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new_sync() for more details. 3726s # * 3726s # * The calling thread is blocked until a reply is received. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_sync ( 3726s # GDBusConnection *connection, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GError **error) 3726s # { 3726s # GInitable *ret; 3726s # 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); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus: 3726s # * @bus_type: A #GBusType. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: A bus name (well-known or unique). 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3726s # * @user_data: User data to pass to @callback. 3726s # * 3726s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3726s # * 3726s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3726s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_proxy_new_for_bus ( 3726s # GBusType bus_type, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GAsyncReadyCallback callback, 3726s # gpointer user_data) 3726s # { 3726s # 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); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus_finish: 3726s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_for_bus_finish ( 3726s # GAsyncResult *res, 3726s # GError **error) 3726s # { 3726s # GObject *ret; 3726s # GObject *source_object; 3726s # source_object = g_async_result_get_source_object (res); 3726s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3726s # g_object_unref (source_object); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus_sync: 3726s # * @bus_type: A #GBusType. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: A bus name (well-known or unique). 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3726s # * 3726s # * The calling thread is blocked until a reply is received. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_for_bus_sync ( 3726s # GBusType bus_type, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GError **error) 3726s # { 3726s # GInitable *ret; 3726s # 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); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # 3726s # /* ------------------------------------------------------------------------ */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceSkeleton: 3726s # * 3726s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceSkeletonClass: 3726s # * @parent_class: The parent class. 3726s # * 3726s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 3726s # */ 3726s # 3726s # struct _OrgProjectSignalingIfaceSkeletonPrivate 3726s # { 3726s # GValue *properties; 3726s # GList *changed_properties; 3726s # GSource *changed_properties_idle_source; 3726s # GMainContext *context; 3726s # GMutex lock; 3726s # }; 3726s # 3726s # static void 3726s # _org_project_signaling_iface_skeleton_handle_method_call ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name, 3726s # const gchar *method_name, 3726s # GVariant *parameters, 3726s # GDBusMethodInvocation *invocation, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # _ExtendedGDBusMethodInfo *info; 3726s # GVariantIter iter; 3726s # GVariant *child; 3726s # GValue *paramv; 3726s # gsize num_params; 3726s # guint num_extra; 3726s # gsize n; 3726s # guint signal_id; 3726s # GValue return_value = G_VALUE_INIT; 3726s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3726s # g_assert (info != NULL); 3726s # num_params = g_variant_n_children (parameters); 3726s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3726s # n = 0; 3726s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_set_object (¶mv[n++], skeleton); 3726s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3726s # g_value_set_object (¶mv[n++], invocation); 3726s # if (info->pass_fdlist) 3726s # { 3726s # #ifdef G_OS_UNIX 3726s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3726s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3726s # #else 3726s # g_assert_not_reached (); 3726s # #endif 3726s # } 3726s # g_variant_iter_init (&iter, parameters); 3726s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3726s # { 3726s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3726s # if (arg_info->use_gvariant) 3726s # { 3726s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3726s # g_value_set_variant (¶mv[n], child); 3726s # n++; 3726s # } 3726s # else 3726s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3726s # g_variant_unref (child); 3726s # } 3726s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3726s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3726s # if (!g_value_get_boolean (&return_value)) 3726s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3726s # g_value_unset (&return_value); 3726s # for (n = 0; n < num_params + num_extra; n++) 3726s # g_value_unset (¶mv[n]); 3726s # g_free (paramv); 3726s # } 3726s # 3726s # static GVariant * 3726s # _org_project_signaling_iface_skeleton_handle_get_property ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name G_GNUC_UNUSED, 3726s # const gchar *property_name, 3726s # GError **error, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # GValue value = G_VALUE_INIT; 3726s # GParamSpec *pspec; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # GVariant *ret; 3726s # ret = NULL; 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3726s # g_assert (info != NULL); 3726s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3726s # if (pspec == NULL) 3726s # { 3726s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3726s # } 3726s # else 3726s # { 3726s # g_value_init (&value, pspec->value_type); 3726s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3726s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3726s # g_value_unset (&value); 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # static gboolean 3726s # _org_project_signaling_iface_skeleton_handle_set_property ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name G_GNUC_UNUSED, 3726s # const gchar *property_name, 3726s # GVariant *variant, 3726s # GError **error, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # GValue value = G_VALUE_INIT; 3726s # GParamSpec *pspec; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # gboolean ret; 3726s # ret = FALSE; 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3726s # g_assert (info != NULL); 3726s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3726s # if (pspec == NULL) 3726s # { 3726s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3726s # } 3726s # else 3726s # { 3726s # if (info->use_gvariant) 3726s # g_value_set_variant (&value, variant); 3726s # else 3726s # g_dbus_gvariant_to_gvalue (variant, &value); 3726s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3726s # g_value_unset (&value); 3726s # ret = TRUE; 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 3726s # { 3726s # _org_project_signaling_iface_skeleton_handle_method_call, 3726s # _org_project_signaling_iface_skeleton_handle_get_property, 3726s # _org_project_signaling_iface_skeleton_handle_set_property, 3726s # {NULL} 3726s # }; 3726s # 3726s # static GDBusInterfaceInfo * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3726s # { 3726s # return org_project_signaling_iface_interface_info (); 3726s # } 3726s # 3726s # static GDBusInterfaceVTable * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3726s # { 3726s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 3726s # } 3726s # 3726s # static GVariant * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 3726s # 3726s # GVariantBuilder builder; 3726s # guint n; 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3726s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3726s # #else 3726s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3726s # #endif 3726s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 3726s # goto out; 3726s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 3726s # { 3726s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 3726s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3726s # { 3726s # GVariant *value; 3726s # 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); 3726s # if (value != NULL) 3726s # { 3726s # g_variant_take_ref (value); 3726s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3726s # g_variant_unref (value); 3726s # } 3726s # } 3726s # } 3726s # out: 3726s # return g_variant_builder_end (&builder); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # _org_project_signaling_iface_on_signal_simple_signal ( 3726s # OrgProjectSignalingIface *object) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # 3726s # GList *connections, *l; 3726s # GVariant *signal_variant; 3726s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3726s # 3726s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 3726s # for (l = connections; l != NULL; l = l->next) 3726s # { 3726s # GDBusConnection *connection = l->data; 3726s # g_dbus_connection_emit_signal (connection, 3726s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 3726s # signal_variant, NULL); 3726s # } 3726s # g_variant_unref (signal_variant); 3726s # g_list_free_full (connections, g_object_unref); 3726s # } 3726s # 3726s # static void 3726s # _org_project_signaling_iface_on_signal_single_arg_signal_t ( 3726s # OrgProjectSignalingIface *object, 3726s # guint64 arg_arg_t) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # 3726s # GList *connections, *l; 3726s # GVariant *signal_variant; 3726s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3726s # 3726s # signal_variant = g_variant_ref_sink (g_variant_new ("(t)", 3726s # arg_arg_t)); 3726s # for (l = connections; l != NULL; l = l->next) 3726s # { 3726s # GDBusConnection *connection = l->data; 3726s # g_dbus_connection_emit_signal (connection, 3726s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalT", 3726s # signal_variant, NULL); 3726s # } 3726s # g_variant_unref (signal_variant); 3726s # g_list_free_full (connections, g_object_unref); 3726s # } 3726s # 3726s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3726s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3726s # 3726s # #else 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3726s # 3726s # #endif 3726s # static void 3726s # org_project_signaling_iface_skeleton_finalize (GObject *object) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3726s # if (skeleton->priv->changed_properties_idle_source != NULL) 3726s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3726s # g_main_context_unref (skeleton->priv->context); 3726s # g_mutex_clear (&skeleton->priv->lock); 3726s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 3726s # { 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 3726s # #else 3726s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 3726s # #endif 3726s # 3726s # g_mutex_init (&skeleton->priv->lock); 3726s # skeleton->priv->context = g_main_context_ref_thread_default (); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 3726s # { 3726s # GObjectClass *gobject_class; 3726s # GDBusInterfaceSkeletonClass *skeleton_class; 3726s # 3726s # gobject_class = G_OBJECT_CLASS (klass); 3726s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 3726s # 3726s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3726s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 3726s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 3726s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 3726s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3726s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 3726s # #endif 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 3726s # { 3726s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 3726s # iface->single_arg_signal_t = _org_project_signaling_iface_on_signal_single_arg_signal_t; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_skeleton_new: 3726s # * 3726s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_skeleton_new (void) 3726s # { 3726s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 3726s # } 3726s # Error: 3726s # 3726s # /tmp/tmp9symyp9z/tmpxqzuujzc.xml: 3726s # <node> 3726s # <interface name="org.project.SignalingIface"> 3726s # <signal name="SimpleSignal"/> 3726s # <signal name="SingleArgSignalD"> 3726s # <arg name="arg_d" type="d"/> 3726s # </signal> 3726s # </interface> 3726s # </node> 3726s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9symyp9z/tmpxqzuujzc.xml', '--output', '-', '--body'] 3726s # Return code: 0 3726s # Output: 3726s # /* 3726s # * This file is generated by gdbus-codegen, do not modify it. 3726s # * 3726s # * The license of this code is the same as for the D-Bus interface description 3726s # * it was derived from. Note that it links to GLib, so must comply with the 3726s # * LGPL linking clauses. 3726s # */ 3726s # 3726s # #ifdef HAVE_CONFIG_H 3726s # # include "config.h" 3726s # #endif 3726s # 3726s # #include <string.h> 3726s # #ifdef G_OS_UNIX 3726s # # include <gio/gunixfdlist.h> 3726s # #endif 3726s # 3726s # #ifdef G_ENABLE_DEBUG 3726s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3726s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3726s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3726s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3726s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3726s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3726s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3726s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3726s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3726s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3726s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3726s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3726s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3726s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3726s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3726s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3726s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3726s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3726s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3726s # #else /* !G_ENABLE_DEBUG */ 3726s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3726s # * Do not access GValues directly in your code. Instead, use the 3726s # * g_value_get_*() functions 3726s # */ 3726s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3726s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3726s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3726s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3726s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3726s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3726s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3726s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3726s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3726s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3726s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3726s # #endif /* !G_ENABLE_DEBUG */ 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusArgInfo parent_struct; 3726s # gboolean use_gvariant; 3726s # } _ExtendedGDBusArgInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusMethodInfo parent_struct; 3726s # const gchar *signal_name; 3726s # gboolean pass_fdlist; 3726s # } _ExtendedGDBusMethodInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusSignalInfo parent_struct; 3726s # const gchar *signal_name; 3726s # } _ExtendedGDBusSignalInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusPropertyInfo parent_struct; 3726s # const gchar *hyphen_name; 3726s # guint use_gvariant : 1; 3726s # guint emits_changed_signal : 1; 3726s # } _ExtendedGDBusPropertyInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusInterfaceInfo parent_struct; 3726s # const gchar *hyphen_name; 3726s # } _ExtendedGDBusInterfaceInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # const _ExtendedGDBusPropertyInfo *info; 3726s # guint prop_id; 3726s # GValue orig_value; /* the value before the change */ 3726s # } ChangedProperty; 3726s # 3726s # static void 3726s # _changed_property_free (ChangedProperty *data) 3726s # { 3726s # g_value_unset (&data->orig_value); 3726s # g_free (data); 3726s # } 3726s # 3726s # static gboolean 3726s # _g_strv_equal0 (gchar **a, gchar **b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # guint n; 3726s # if (a == NULL && b == NULL) 3726s # { 3726s # ret = TRUE; 3726s # goto out; 3726s # } 3726s # if (a == NULL || b == NULL) 3726s # goto out; 3726s # if (g_strv_length (a) != g_strv_length (b)) 3726s # goto out; 3726s # for (n = 0; a[n] != NULL; n++) 3726s # if (g_strcmp0 (a[n], b[n]) != 0) 3726s # goto out; 3726s # ret = TRUE; 3726s # out: 3726s # return ret; 3726s # } 3726s # 3726s # static gboolean 3726s # _g_variant_equal0 (GVariant *a, GVariant *b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # if (a == NULL && b == NULL) 3726s # { 3726s # ret = TRUE; 3726s # goto out; 3726s # } 3726s # if (a == NULL || b == NULL) 3726s # goto out; 3726s # ret = g_variant_equal (a, b); 3726s # out: 3726s # return ret; 3726s # } 3726s # 3726s # G_GNUC_UNUSED static gboolean 3726s # _g_value_equal (const GValue *a, const GValue *b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3726s # switch (G_VALUE_TYPE (a)) 3726s # { 3726s # case G_TYPE_BOOLEAN: 3726s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3726s # break; 3726s # case G_TYPE_UCHAR: 3726s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3726s # break; 3726s # case G_TYPE_INT: 3726s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3726s # break; 3726s # case G_TYPE_UINT: 3726s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3726s # break; 3726s # case G_TYPE_INT64: 3726s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3726s # break; 3726s # case G_TYPE_UINT64: 3726s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3726s # break; 3726s # case G_TYPE_DOUBLE: 3726s # { 3726s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3726s # gdouble da = g_value_get_double (a); 3726s # gdouble db = g_value_get_double (b); 3726s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3726s # } 3726s # break; 3726s # case G_TYPE_STRING: 3726s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3726s # break; 3726s # case G_TYPE_VARIANT: 3726s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3726s # break; 3726s # default: 3726s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3726s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3726s # else 3726s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3726s # break; 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # /* ------------------------------------------------------------------------ 3726s # * Code for interface org.project.SignalingIface 3726s # * ------------------------------------------------------------------------ 3726s # */ 3726s # 3726s # /** 3726s # * SECTION:OrgProjectSignalingIface 3726s # * @title: OrgProjectSignalingIface 3726s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 3726s # * 3726s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface in C. 3726s # */ 3726s # 3726s # enum 3726s # { 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 3726s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D, 3726s # }; 3726s # 3726s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 3726s # 3726s # /* ---- Introspection data for org.project.SignalingIface ---- */ 3726s # 3726s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "SimpleSignal", 3726s # NULL, 3726s # NULL 3726s # }, 3726s # "simple-signal" 3726s # }; 3726s # 3726s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_arg_d = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "arg_d", 3726s # (gchar *) "d", 3726s # NULL 3726s # }, 3726s # FALSE 3726s # }; 3726s # 3726s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers[] = 3726s # { 3726s # &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_arg_d.parent_struct, 3726s # NULL 3726s # }; 3726s # 3726s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_d = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "SingleArgSignalD", 3726s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers, 3726s # NULL 3726s # }, 3726s # "single-arg-signal-d" 3726s # }; 3726s # 3726s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 3726s # { 3726s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 3726s # &_org_project_signaling_iface_signal_info_single_arg_signal_d.parent_struct, 3726s # NULL 3726s # }; 3726s # 3726s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "org.project.SignalingIface", 3726s # NULL, 3726s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 3726s # NULL, 3726s # NULL 3726s # }, 3726s # "org-project-signaling-iface", 3726s # }; 3726s # 3726s # 3726s # /** 3726s # * org_project_signaling_iface_interface_info: 3726s # * 3726s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface. 3726s # * 3726s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3726s # */ 3726s # GDBusInterfaceInfo * 3726s # org_project_signaling_iface_interface_info (void) 3726s # { 3726s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_override_properties: 3726s # * @klass: The class structure for a #GObject derived class. 3726s # * @property_id_begin: The property id to assign to the first overridden property. 3726s # * 3726s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 3726s # * The properties are overridden in the order they are defined. 3726s # * 3726s # * Returns: The last property id. 3726s # */ 3726s # guint 3726s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3726s # { 3726s # return property_id_begin - 1; 3726s # } 3726s # 3726s # 3726s # inline static void 3726s # org_project_signaling_iface_signal_marshal_simple_signal ( 3726s # GClosure *closure, 3726s # GValue *return_value, 3726s # unsigned int n_param_values, 3726s # const GValue *param_values, 3726s # void *invocation_hint, 3726s # void *marshal_data) 3726s # { 3726s # g_cclosure_marshal_VOID__VOID (closure, 3726s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3726s # } 3726s # 3726s # inline static void 3726s # org_project_signaling_iface_signal_marshal_single_arg_signal_d ( 3726s # GClosure *closure, 3726s # GValue *return_value, 3726s # unsigned int n_param_values, 3726s # const GValue *param_values, 3726s # void *invocation_hint, 3726s # void *marshal_data) 3726s # { 3726s # g_cclosure_marshal_VOID__DOUBLE (closure, 3726s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3726s # } 3726s # 3726s # 3726s # /** 3726s # * OrgProjectSignalingIface: 3726s # * 3726s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceIface: 3726s # * @parent_iface: The parent interface. 3726s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 3726s # * @single_arg_signal_d: Handler for the #OrgProjectSignalingIface::single-arg-signal-d signal. 3726s # * 3726s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # */ 3726s # 3726s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 3726s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 3726s # 3726s # static void 3726s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 3726s # { 3726s # /* GObject signals for received D-Bus signals: */ 3726s # /** 3726s # * OrgProjectSignalingIface::simple-signal: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * 3726s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SimpleSignal">"SimpleSignal"</link> is received. 3726s # * 3726s # * 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. 3726s # */ 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 3726s # g_signal_new ("simple-signal", 3726s # G_TYPE_FROM_INTERFACE (iface), 3726s # G_SIGNAL_RUN_LAST, 3726s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 3726s # NULL, 3726s # NULL, 3726s # org_project_signaling_iface_signal_marshal_simple_signal, 3726s # G_TYPE_NONE, 3726s # 0); 3726s # 3726s # /** 3726s # * OrgProjectSignalingIface::single-arg-signal-d: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * @arg_arg_d: Argument. 3726s # * 3726s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalD">"SingleArgSignalD"</link> is received. 3726s # * 3726s # * 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. 3726s # */ 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D] = 3726s # g_signal_new ("single-arg-signal-d", 3726s # G_TYPE_FROM_INTERFACE (iface), 3726s # G_SIGNAL_RUN_LAST, 3726s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_d), 3726s # NULL, 3726s # NULL, 3726s # org_project_signaling_iface_signal_marshal_single_arg_signal_d, 3726s # G_TYPE_NONE, 3726s # 1, G_TYPE_DOUBLE); 3726s # 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_emit_simple_signal: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * 3726s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SimpleSignal">"SimpleSignal"</link> D-Bus signal. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_emit_simple_signal ( 3726s # OrgProjectSignalingIface *object) 3726s # { 3726s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_emit_single_arg_signal_d: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * @arg_arg_d: Argument to pass with the signal. 3726s # * 3726s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalD">"SingleArgSignalD"</link> D-Bus signal. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_emit_single_arg_signal_d ( 3726s # OrgProjectSignalingIface *object, 3726s # gdouble arg_arg_d) 3726s # { 3726s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D], 0, arg_arg_d); 3726s # } 3726s # 3726s # /* ------------------------------------------------------------------------ */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceProxy: 3726s # * 3726s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceProxyClass: 3726s # * @parent_class: The parent class. 3726s # * 3726s # * Class structure for #OrgProjectSignalingIfaceProxy. 3726s # */ 3726s # 3726s # struct _OrgProjectSignalingIfaceProxyPrivate 3726s # { 3726s # GData *qdata; 3726s # }; 3726s # 3726s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3726s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3726s # 3726s # #else 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3726s # 3726s # #endif 3726s # static void 3726s # org_project_signaling_iface_proxy_finalize (GObject *object) 3726s # { 3726s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 3726s # g_datalist_clear (&proxy->priv->qdata); 3726s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3726s # guint prop_id G_GNUC_UNUSED, 3726s # GValue *value G_GNUC_UNUSED, 3726s # GParamSpec *pspec G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3726s # guint prop_id G_GNUC_UNUSED, 3726s # const GValue *value G_GNUC_UNUSED, 3726s # GParamSpec *pspec G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 3726s # const gchar *sender_name G_GNUC_UNUSED, 3726s # const gchar *signal_name, 3726s # GVariant *parameters) 3726s # { 3726s # _ExtendedGDBusSignalInfo *info; 3726s # GVariantIter iter; 3726s # GVariant *child; 3726s # GValue *paramv; 3726s # gsize num_params; 3726s # gsize n; 3726s # guint signal_id; 3726s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 3726s # if (info == NULL) 3726s # return; 3726s # num_params = g_variant_n_children (parameters); 3726s # paramv = g_new0 (GValue, num_params + 1); 3726s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_set_object (¶mv[0], proxy); 3726s # g_variant_iter_init (&iter, parameters); 3726s # n = 1; 3726s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3726s # { 3726s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3726s # if (arg_info->use_gvariant) 3726s # { 3726s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3726s # g_value_set_variant (¶mv[n], child); 3726s # n++; 3726s # } 3726s # else 3726s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3726s # g_variant_unref (child); 3726s # } 3726s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_signal_emitv (paramv, signal_id, 0, NULL); 3726s # for (n = 0; n < num_params + 1; n++) 3726s # g_value_unset (¶mv[n]); 3726s # g_free (paramv); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 3726s # GVariant *changed_properties, 3726s # const gchar *const *invalidated_properties) 3726s # { 3726s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 3726s # guint n; 3726s # const gchar *key; 3726s # GVariantIter *iter; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # g_variant_get (changed_properties, "a{sv}", &iter); 3726s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3726s # { 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 3726s # g_datalist_remove_data (&proxy->priv->qdata, key); 3726s # if (info != NULL) 3726s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3726s # } 3726s # g_variant_iter_free (iter); 3726s # for (n = 0; invalidated_properties[n] != NULL; n++) 3726s # { 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 3726s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3726s # if (info != NULL) 3726s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3726s # } 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 3726s # { 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 3726s # #else 3726s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 3726s # #endif 3726s # 3726s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 3726s # { 3726s # GObjectClass *gobject_class; 3726s # GDBusProxyClass *proxy_class; 3726s # 3726s # gobject_class = G_OBJECT_CLASS (klass); 3726s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 3726s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 3726s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 3726s # 3726s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3726s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 3726s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3726s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 3726s # #endif 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new: 3726s # * @connection: A #GDBusConnection. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3726s # * @user_data: User data to pass to @callback. 3726s # * 3726s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new() for more details. 3726s # * 3726s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3726s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_proxy_new ( 3726s # GDBusConnection *connection, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GAsyncReadyCallback callback, 3726s # gpointer user_data) 3726s # { 3726s # 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); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_finish: 3726s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_finish ( 3726s # GAsyncResult *res, 3726s # GError **error) 3726s # { 3726s # GObject *ret; 3726s # GObject *source_object; 3726s # source_object = g_async_result_get_source_object (res); 3726s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3726s # g_object_unref (source_object); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_sync: 3726s # * @connection: A #GDBusConnection. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new_sync() for more details. 3726s # * 3726s # * The calling thread is blocked until a reply is received. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_sync ( 3726s # GDBusConnection *connection, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GError **error) 3726s # { 3726s # GInitable *ret; 3726s # 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); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus: 3726s # * @bus_type: A #GBusType. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: A bus name (well-known or unique). 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3726s # * @user_data: User data to pass to @callback. 3726s # * 3726s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3726s # * 3726s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3726s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_proxy_new_for_bus ( 3726s # GBusType bus_type, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GAsyncReadyCallback callback, 3726s # gpointer user_data) 3726s # { 3726s # 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); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus_finish: 3726s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_for_bus_finish ( 3726s # GAsyncResult *res, 3726s # GError **error) 3726s # { 3726s # GObject *ret; 3726s # GObject *source_object; 3726s # source_object = g_async_result_get_source_object (res); 3726s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3726s # g_object_unref (source_object); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus_sync: 3726s # * @bus_type: A #GBusType. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: A bus name (well-known or unique). 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3726s # * 3726s # * The calling thread is blocked until a reply is received. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_for_bus_sync ( 3726s # GBusType bus_type, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GError **error) 3726s # { 3726s # GInitable *ret; 3726s # 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); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # 3726s # /* ------------------------------------------------------------------------ */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceSkeleton: 3726s # * 3726s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceSkeletonClass: 3726s # * @parent_class: The parent class. 3726s # * 3726s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 3726s # */ 3726s # 3726s # struct _OrgProjectSignalingIfaceSkeletonPrivate 3726s # { 3726s # GValue *properties; 3726s # GList *changed_properties; 3726s # GSource *changed_properties_idle_source; 3726s # GMainContext *context; 3726s # GMutex lock; 3726s # }; 3726s # 3726s # static void 3726s # _org_project_signaling_iface_skeleton_handle_method_call ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name, 3726s # const gchar *method_name, 3726s # GVariant *parameters, 3726s # GDBusMethodInvocation *invocation, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # _ExtendedGDBusMethodInfo *info; 3726s # GVariantIter iter; 3726s # GVariant *child; 3726s # GValue *paramv; 3726s # gsize num_params; 3726s # guint num_extra; 3726s # gsize n; 3726s # guint signal_id; 3726s # GValue return_value = G_VALUE_INIT; 3726s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3726s # g_assert (info != NULL); 3726s # num_params = g_variant_n_children (parameters); 3726s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3726s # n = 0; 3726s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_set_object (¶mv[n++], skeleton); 3726s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3726s # g_value_set_object (¶mv[n++], invocation); 3726s # if (info->pass_fdlist) 3726s # { 3726s # #ifdef G_OS_UNIX 3726s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3726s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3726s # #else 3726s # g_assert_not_reached (); 3726s # #endif 3726s # } 3726s # g_variant_iter_init (&iter, parameters); 3726s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3726s # { 3726s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3726s # if (arg_info->use_gvariant) 3726s # { 3726s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3726s # g_value_set_variant (¶mv[n], child); 3726s # n++; 3726s # } 3726s # else 3726s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3726s # g_variant_unref (child); 3726s # } 3726s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3726s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3726s # if (!g_value_get_boolean (&return_value)) 3726s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3726s # g_value_unset (&return_value); 3726s # for (n = 0; n < num_params + num_extra; n++) 3726s # g_value_unset (¶mv[n]); 3726s # g_free (paramv); 3726s # } 3726s # 3726s # static GVariant * 3726s # _org_project_signaling_iface_skeleton_handle_get_property ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name G_GNUC_UNUSED, 3726s # const gchar *property_name, 3726s # GError **error, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # GValue value = G_VALUE_INIT; 3726s # GParamSpec *pspec; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # GVariant *ret; 3726s # ret = NULL; 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3726s # g_assert (info != NULL); 3726s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3726s # if (pspec == NULL) 3726s # { 3726s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3726s # } 3726s # else 3726s # { 3726s # g_value_init (&value, pspec->value_type); 3726s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3726s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3726s # g_value_unset (&value); 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # static gboolean 3726s # _org_project_signaling_iface_skeleton_handle_set_property ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name G_GNUC_UNUSED, 3726s # const gchar *property_name, 3726s # GVariant *variant, 3726s # GError **error, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # GValue value = G_VALUE_INIT; 3726s # GParamSpec *pspec; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # gboolean ret; 3726s # ret = FALSE; 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3726s # g_assert (info != NULL); 3726s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3726s # if (pspec == NULL) 3726s # { 3726s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3726s # } 3726s # else 3726s # { 3726s # if (info->use_gvariant) 3726s # g_value_set_variant (&value, variant); 3726s # else 3726s # g_dbus_gvariant_to_gvalue (variant, &value); 3726s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3726s # g_value_unset (&value); 3726s # ret = TRUE; 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 3726s # { 3726s # _org_project_signaling_iface_skeleton_handle_method_call, 3726s # _org_project_signaling_iface_skeleton_handle_get_property, 3726s # _org_project_signaling_iface_skeleton_handle_set_property, 3726s # {NULL} 3726s # }; 3726s # 3726s # static GDBusInterfaceInfo * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3726s # { 3726s # return org_project_signaling_iface_interface_info (); 3726s # } 3726s # 3726s # static GDBusInterfaceVTable * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3726s # { 3726s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 3726s # } 3726s # 3726s # static GVariant * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 3726s # 3726s # GVariantBuilder builder; 3726s # guint n; 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3726s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3726s # #else 3726s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3726s # #endif 3726s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 3726s # goto out; 3726s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 3726s # { 3726s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 3726s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3726s # { 3726s # GVariant *value; 3726s # 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); 3726s # if (value != NULL) 3726s # { 3726s # g_variant_take_ref (value); 3726s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3726s # g_variant_unref (value); 3726s # } 3726s # } 3726s # } 3726s # out: 3726s # return g_variant_builder_end (&builder); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # _org_project_signaling_iface_on_signal_simple_signal ( 3726s # OrgProjectSignalingIface *object) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # 3726s # GList *connections, *l; 3726s # GVariant *signal_variant; 3726s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3726s # 3726s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 3726s # for (l = connections; l != NULL; l = l->next) 3726s # { 3726s # GDBusConnection *connection = l->data; 3726s # g_dbus_connection_emit_signal (connection, 3726s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 3726s # signal_variant, NULL); 3726s # } 3726s # g_variant_unref (signal_variant); 3726s # g_list_free_full (connections, g_object_unref); 3726s # } 3726s # 3726s # static void 3726s # _org_project_signaling_iface_on_signal_single_arg_signal_d ( 3726s # OrgProjectSignalingIface *object, 3726s # gdouble arg_arg_d) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # 3726s # GList *connections, *l; 3726s # GVariant *signal_variant; 3726s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3726s # 3726s # signal_variant = g_variant_ref_sink (g_variant_new ("(d)", 3726s # arg_arg_d)); 3726s # for (l = connections; l != NULL; l = l->next) 3726s # { 3726s # GDBusConnection *connection = l->data; 3726s # g_dbus_connection_emit_signal (connection, 3726s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalD", 3726s # signal_variant, NULL); 3726s # } 3726s # g_variant_unref (signal_variant); 3726s # g_list_free_full (connections, g_object_unref); 3726s # } 3726s # 3726s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3726s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3726s # 3726s # #else 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3726s # 3726s # #endif 3726s # static void 3726s # org_project_signaling_iface_skeleton_finalize (GObject *object) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3726s # if (skeleton->priv->changed_properties_idle_source != NULL) 3726s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3726s # g_main_context_unref (skeleton->priv->context); 3726s # g_mutex_clear (&skeleton->priv->lock); 3726s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 3726s # { 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 3726s # #else 3726s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 3726s # #endif 3726s # 3726s # g_mutex_init (&skeleton->priv->lock); 3726s # skeleton->priv->context = g_main_context_ref_thread_default (); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 3726s # { 3726s # GObjectClass *gobject_class; 3726s # GDBusInterfaceSkeletonClass *skeleton_class; 3726s # 3726s # gobject_class = G_OBJECT_CLASS (klass); 3726s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 3726s # 3726s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3726s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 3726s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 3726s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 3726s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3726s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 3726s # #endif 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 3726s # { 3726s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 3726s # iface->single_arg_signal_d = _org_project_signaling_iface_on_signal_single_arg_signal_d; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_skeleton_new: 3726s # * 3726s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_skeleton_new (void) 3726s # { 3726s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 3726s # } 3726s # Error: 3726s # 3726s # /tmp/tmp9symyp9z/tmpny9qj9fo.xml: 3726s # <node> 3726s # <interface name="org.project.SignalingIface"> 3726s # <signal name="SimpleSignal"/> 3726s # <signal name="SingleArgSignalS"> 3726s # <arg name="arg_s" type="s"/> 3726s # </signal> 3726s # </interface> 3726s # </node> 3726s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9symyp9z/tmpny9qj9fo.xml', '--output', '-', '--body'] 3726s # Return code: 0 3726s # Output: 3726s # /* 3726s # * This file is generated by gdbus-codegen, do not modify it. 3726s # * 3726s # * The license of this code is the same as for the D-Bus interface description 3726s # * it was derived from. Note that it links to GLib, so must comply with the 3726s # * LGPL linking clauses. 3726s # */ 3726s # 3726s # #ifdef HAVE_CONFIG_H 3726s # # include "config.h" 3726s # #endif 3726s # 3726s # #include <string.h> 3726s # #ifdef G_OS_UNIX 3726s # # include <gio/gunixfdlist.h> 3726s # #endif 3726s # 3726s # #ifdef G_ENABLE_DEBUG 3726s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3726s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3726s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3726s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3726s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3726s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3726s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3726s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3726s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3726s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3726s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3726s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3726s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3726s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3726s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3726s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3726s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3726s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3726s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3726s # #else /* !G_ENABLE_DEBUG */ 3726s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3726s # * Do not access GValues directly in your code. Instead, use the 3726s # * g_value_get_*() functions 3726s # */ 3726s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3726s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3726s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3726s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3726s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3726s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3726s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3726s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3726s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3726s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3726s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3726s # #endif /* !G_ENABLE_DEBUG */ 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusArgInfo parent_struct; 3726s # gboolean use_gvariant; 3726s # } _ExtendedGDBusArgInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusMethodInfo parent_struct; 3726s # const gchar *signal_name; 3726s # gboolean pass_fdlist; 3726s # } _ExtendedGDBusMethodInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusSignalInfo parent_struct; 3726s # const gchar *signal_name; 3726s # } _ExtendedGDBusSignalInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusPropertyInfo parent_struct; 3726s # const gchar *hyphen_name; 3726s # guint use_gvariant : 1; 3726s # guint emits_changed_signal : 1; 3726s # } _ExtendedGDBusPropertyInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusInterfaceInfo parent_struct; 3726s # const gchar *hyphen_name; 3726s # } _ExtendedGDBusInterfaceInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # const _ExtendedGDBusPropertyInfo *info; 3726s # guint prop_id; 3726s # GValue orig_value; /* the value before the change */ 3726s # } ChangedProperty; 3726s # 3726s # static void 3726s # _changed_property_free (ChangedProperty *data) 3726s # { 3726s # g_value_unset (&data->orig_value); 3726s # g_free (data); 3726s # } 3726s # 3726s # static gboolean 3726s # _g_strv_equal0 (gchar **a, gchar **b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # guint n; 3726s # if (a == NULL && b == NULL) 3726s # { 3726s # ret = TRUE; 3726s # goto out; 3726s # } 3726s # if (a == NULL || b == NULL) 3726s # goto out; 3726s # if (g_strv_length (a) != g_strv_length (b)) 3726s # goto out; 3726s # for (n = 0; a[n] != NULL; n++) 3726s # if (g_strcmp0 (a[n], b[n]) != 0) 3726s # goto out; 3726s # ret = TRUE; 3726s # out: 3726s # return ret; 3726s # } 3726s # 3726s # static gboolean 3726s # _g_variant_equal0 (GVariant *a, GVariant *b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # if (a == NULL && b == NULL) 3726s # { 3726s # ret = TRUE; 3726s # goto out; 3726s # } 3726s # if (a == NULL || b == NULL) 3726s # goto out; 3726s # ret = g_variant_equal (a, b); 3726s # out: 3726s # return ret; 3726s # } 3726s # 3726s # G_GNUC_UNUSED static gboolean 3726s # _g_value_equal (const GValue *a, const GValue *b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3726s # switch (G_VALUE_TYPE (a)) 3726s # { 3726s # case G_TYPE_BOOLEAN: 3726s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3726s # break; 3726s # case G_TYPE_UCHAR: 3726s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3726s # break; 3726s # case G_TYPE_INT: 3726s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3726s # break; 3726s # case G_TYPE_UINT: 3726s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3726s # break; 3726s # case G_TYPE_INT64: 3726s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3726s # break; 3726s # case G_TYPE_UINT64: 3726s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3726s # break; 3726s # case G_TYPE_DOUBLE: 3726s # { 3726s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3726s # gdouble da = g_value_get_double (a); 3726s # gdouble db = g_value_get_double (b); 3726s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3726s # } 3726s # break; 3726s # case G_TYPE_STRING: 3726s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3726s # break; 3726s # case G_TYPE_VARIANT: 3726s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3726s # break; 3726s # default: 3726s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3726s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3726s # else 3726s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3726s # break; 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # /* ------------------------------------------------------------------------ 3726s # * Code for interface org.project.SignalingIface 3726s # * ------------------------------------------------------------------------ 3726s # */ 3726s # 3726s # /** 3726s # * SECTION:OrgProjectSignalingIface 3726s # * @title: OrgProjectSignalingIface 3726s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 3726s # * 3726s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface in C. 3726s # */ 3726s # 3726s # enum 3726s # { 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 3726s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S, 3726s # }; 3726s # 3726s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 3726s # 3726s # /* ---- Introspection data for org.project.SignalingIface ---- */ 3726s # 3726s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "SimpleSignal", 3726s # NULL, 3726s # NULL 3726s # }, 3726s # "simple-signal" 3726s # }; 3726s # 3726s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_arg_s = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "arg_s", 3726s # (gchar *) "s", 3726s # NULL 3726s # }, 3726s # FALSE 3726s # }; 3726s # 3726s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers[] = 3726s # { 3726s # &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_arg_s.parent_struct, 3726s # NULL 3726s # }; 3726s # 3726s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_s = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "SingleArgSignalS", 3726s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers, 3726s # NULL 3726s # }, 3726s # "single-arg-signal-s" 3726s # }; 3726s # 3726s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 3726s # { 3726s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 3726s # &_org_project_signaling_iface_signal_info_single_arg_signal_s.parent_struct, 3726s # NULL 3726s # }; 3726s # 3726s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "org.project.SignalingIface", 3726s # NULL, 3726s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 3726s # NULL, 3726s # NULL 3726s # }, 3726s # "org-project-signaling-iface", 3726s # }; 3726s # 3726s # 3726s # /** 3726s # * org_project_signaling_iface_interface_info: 3726s # * 3726s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface. 3726s # * 3726s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3726s # */ 3726s # GDBusInterfaceInfo * 3726s # org_project_signaling_iface_interface_info (void) 3726s # { 3726s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_override_properties: 3726s # * @klass: The class structure for a #GObject derived class. 3726s # * @property_id_begin: The property id to assign to the first overridden property. 3726s # * 3726s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 3726s # * The properties are overridden in the order they are defined. 3726s # * 3726s # * Returns: The last property id. 3726s # */ 3726s # guint 3726s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3726s # { 3726s # return property_id_begin - 1; 3726s # } 3726s # 3726s # 3726s # inline static void 3726s # org_project_signaling_iface_signal_marshal_simple_signal ( 3726s # GClosure *closure, 3726s # GValue *return_value, 3726s # unsigned int n_param_values, 3726s # const GValue *param_values, 3726s # void *invocation_hint, 3726s # void *marshal_data) 3726s # { 3726s # g_cclosure_marshal_VOID__VOID (closure, 3726s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3726s # } 3726s # 3726s # inline static void 3726s # org_project_signaling_iface_signal_marshal_single_arg_signal_s ( 3726s # GClosure *closure, 3726s # GValue *return_value, 3726s # unsigned int n_param_values, 3726s # const GValue *param_values, 3726s # void *invocation_hint, 3726s # void *marshal_data) 3726s # { 3726s # g_cclosure_marshal_VOID__STRING (closure, 3726s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3726s # } 3726s # 3726s # 3726s # /** 3726s # * OrgProjectSignalingIface: 3726s # * 3726s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceIface: 3726s # * @parent_iface: The parent interface. 3726s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 3726s # * @single_arg_signal_s: Handler for the #OrgProjectSignalingIface::single-arg-signal-s signal. 3726s # * 3726s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # */ 3726s # 3726s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 3726s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 3726s # 3726s # static void 3726s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 3726s # { 3726s # /* GObject signals for received D-Bus signals: */ 3726s # /** 3726s # * OrgProjectSignalingIface::simple-signal: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * 3726s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SimpleSignal">"SimpleSignal"</link> is received. 3726s # * 3726s # * 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. 3726s # */ 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 3726s # g_signal_new ("simple-signal", 3726s # G_TYPE_FROM_INTERFACE (iface), 3726s # G_SIGNAL_RUN_LAST, 3726s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 3726s # NULL, 3726s # NULL, 3726s # org_project_signaling_iface_signal_marshal_simple_signal, 3726s # G_TYPE_NONE, 3726s # 0); 3726s # 3726s # /** 3726s # * OrgProjectSignalingIface::single-arg-signal-s: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * @arg_arg_s: Argument. 3726s # * 3726s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalS">"SingleArgSignalS"</link> is received. 3726s # * 3726s # * 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. 3726s # */ 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S] = 3726s # g_signal_new ("single-arg-signal-s", 3726s # G_TYPE_FROM_INTERFACE (iface), 3726s # G_SIGNAL_RUN_LAST, 3726s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_s), 3726s # NULL, 3726s # NULL, 3726s # org_project_signaling_iface_signal_marshal_single_arg_signal_s, 3726s # G_TYPE_NONE, 3726s # 1, G_TYPE_STRING); 3726s # 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_emit_simple_signal: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * 3726s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SimpleSignal">"SimpleSignal"</link> D-Bus signal. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_emit_simple_signal ( 3726s # OrgProjectSignalingIface *object) 3726s # { 3726s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_emit_single_arg_signal_s: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * @arg_arg_s: Argument to pass with the signal. 3726s # * 3726s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalS">"SingleArgSignalS"</link> D-Bus signal. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_emit_single_arg_signal_s ( 3726s # OrgProjectSignalingIface *object, 3726s # const gchar *arg_arg_s) 3726s # { 3726s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S], 0, arg_arg_s); 3726s # } 3726s # 3726s # /* ------------------------------------------------------------------------ */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceProxy: 3726s # * 3726s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceProxyClass: 3726s # * @parent_class: The parent class. 3726s # * 3726s # * Class structure for #OrgProjectSignalingIfaceProxy. 3726s # */ 3726s # 3726s # struct _OrgProjectSignalingIfaceProxyPrivate 3726s # { 3726s # GData *qdata; 3726s # }; 3726s # 3726s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3726s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3726s # 3726s # #else 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3726s # 3726s # #endif 3726s # static void 3726s # org_project_signaling_iface_proxy_finalize (GObject *object) 3726s # { 3726s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 3726s # g_datalist_clear (&proxy->priv->qdata); 3726s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3726s # guint prop_id G_GNUC_UNUSED, 3726s # GValue *value G_GNUC_UNUSED, 3726s # GParamSpec *pspec G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3726s # guint prop_id G_GNUC_UNUSED, 3726s # const GValue *value G_GNUC_UNUSED, 3726s # GParamSpec *pspec G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 3726s # const gchar *sender_name G_GNUC_UNUSED, 3726s # const gchar *signal_name, 3726s # GVariant *parameters) 3726s # { 3726s # _ExtendedGDBusSignalInfo *info; 3726s # GVariantIter iter; 3726s # GVariant *child; 3726s # GValue *paramv; 3726s # gsize num_params; 3726s # gsize n; 3726s # guint signal_id; 3726s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 3726s # if (info == NULL) 3726s # return; 3726s # num_params = g_variant_n_children (parameters); 3726s # paramv = g_new0 (GValue, num_params + 1); 3726s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_set_object (¶mv[0], proxy); 3726s # g_variant_iter_init (&iter, parameters); 3726s # n = 1; 3726s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3726s # { 3726s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3726s # if (arg_info->use_gvariant) 3726s # { 3726s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3726s # g_value_set_variant (¶mv[n], child); 3726s # n++; 3726s # } 3726s # else 3726s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3726s # g_variant_unref (child); 3726s # } 3726s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_signal_emitv (paramv, signal_id, 0, NULL); 3726s # for (n = 0; n < num_params + 1; n++) 3726s # g_value_unset (¶mv[n]); 3726s # g_free (paramv); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 3726s # GVariant *changed_properties, 3726s # const gchar *const *invalidated_properties) 3726s # { 3726s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 3726s # guint n; 3726s # const gchar *key; 3726s # GVariantIter *iter; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # g_variant_get (changed_properties, "a{sv}", &iter); 3726s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3726s # { 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 3726s # g_datalist_remove_data (&proxy->priv->qdata, key); 3726s # if (info != NULL) 3726s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3726s # } 3726s # g_variant_iter_free (iter); 3726s # for (n = 0; invalidated_properties[n] != NULL; n++) 3726s # { 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 3726s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3726s # if (info != NULL) 3726s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3726s # } 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 3726s # { 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 3726s # #else 3726s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 3726s # #endif 3726s # 3726s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 3726s # { 3726s # GObjectClass *gobject_class; 3726s # GDBusProxyClass *proxy_class; 3726s # 3726s # gobject_class = G_OBJECT_CLASS (klass); 3726s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 3726s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 3726s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 3726s # 3726s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3726s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 3726s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3726s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 3726s # #endif 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new: 3726s # * @connection: A #GDBusConnection. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3726s # * @user_data: User data to pass to @callback. 3726s # * 3726s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new() for more details. 3726s # * 3726s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3726s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_proxy_new ( 3726s # GDBusConnection *connection, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GAsyncReadyCallback callback, 3726s # gpointer user_data) 3726s # { 3726s # 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); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_finish: 3726s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_finish ( 3726s # GAsyncResult *res, 3726s # GError **error) 3726s # { 3726s # GObject *ret; 3726s # GObject *source_object; 3726s # source_object = g_async_result_get_source_object (res); 3726s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3726s # g_object_unref (source_object); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_sync: 3726s # * @connection: A #GDBusConnection. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new_sync() for more details. 3726s # * 3726s # * The calling thread is blocked until a reply is received. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_sync ( 3726s # GDBusConnection *connection, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GError **error) 3726s # { 3726s # GInitable *ret; 3726s # 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); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus: 3726s # * @bus_type: A #GBusType. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: A bus name (well-known or unique). 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3726s # * @user_data: User data to pass to @callback. 3726s # * 3726s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3726s # * 3726s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3726s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_proxy_new_for_bus ( 3726s # GBusType bus_type, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GAsyncReadyCallback callback, 3726s # gpointer user_data) 3726s # { 3726s # 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); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus_finish: 3726s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_for_bus_finish ( 3726s # GAsyncResult *res, 3726s # GError **error) 3726s # { 3726s # GObject *ret; 3726s # GObject *source_object; 3726s # source_object = g_async_result_get_source_object (res); 3726s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3726s # g_object_unref (source_object); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus_sync: 3726s # * @bus_type: A #GBusType. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: A bus name (well-known or unique). 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3726s # * 3726s # * The calling thread is blocked until a reply is received. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_for_bus_sync ( 3726s # GBusType bus_type, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GError **error) 3726s # { 3726s # GInitable *ret; 3726s # 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); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # 3726s # /* ------------------------------------------------------------------------ */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceSkeleton: 3726s # * 3726s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceSkeletonClass: 3726s # * @parent_class: The parent class. 3726s # * 3726s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 3726s # */ 3726s # 3726s # struct _OrgProjectSignalingIfaceSkeletonPrivate 3726s # { 3726s # GValue *properties; 3726s # GList *changed_properties; 3726s # GSource *changed_properties_idle_source; 3726s # GMainContext *context; 3726s # GMutex lock; 3726s # }; 3726s # 3726s # static void 3726s # _org_project_signaling_iface_skeleton_handle_method_call ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name, 3726s # const gchar *method_name, 3726s # GVariant *parameters, 3726s # GDBusMethodInvocation *invocation, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # _ExtendedGDBusMethodInfo *info; 3726s # GVariantIter iter; 3726s # GVariant *child; 3726s # GValue *paramv; 3726s # gsize num_params; 3726s # guint num_extra; 3726s # gsize n; 3726s # guint signal_id; 3726s # GValue return_value = G_VALUE_INIT; 3726s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3726s # g_assert (info != NULL); 3726s # num_params = g_variant_n_children (parameters); 3726s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3726s # n = 0; 3726s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_set_object (¶mv[n++], skeleton); 3726s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3726s # g_value_set_object (¶mv[n++], invocation); 3726s # if (info->pass_fdlist) 3726s # { 3726s # #ifdef G_OS_UNIX 3726s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3726s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3726s # #else 3726s # g_assert_not_reached (); 3726s # #endif 3726s # } 3726s # g_variant_iter_init (&iter, parameters); 3726s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3726s # { 3726s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3726s # if (arg_info->use_gvariant) 3726s # { 3726s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3726s # g_value_set_variant (¶mv[n], child); 3726s # n++; 3726s # } 3726s # else 3726s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3726s # g_variant_unref (child); 3726s # } 3726s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3726s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3726s # if (!g_value_get_boolean (&return_value)) 3726s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3726s # g_value_unset (&return_value); 3726s # for (n = 0; n < num_params + num_extra; n++) 3726s # g_value_unset (¶mv[n]); 3726s # g_free (paramv); 3726s # } 3726s # 3726s # static GVariant * 3726s # _org_project_signaling_iface_skeleton_handle_get_property ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name G_GNUC_UNUSED, 3726s # const gchar *property_name, 3726s # GError **error, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # GValue value = G_VALUE_INIT; 3726s # GParamSpec *pspec; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # GVariant *ret; 3726s # ret = NULL; 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3726s # g_assert (info != NULL); 3726s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3726s # if (pspec == NULL) 3726s # { 3726s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3726s # } 3726s # else 3726s # { 3726s # g_value_init (&value, pspec->value_type); 3726s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3726s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3726s # g_value_unset (&value); 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # static gboolean 3726s # _org_project_signaling_iface_skeleton_handle_set_property ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name G_GNUC_UNUSED, 3726s # const gchar *property_name, 3726s # GVariant *variant, 3726s # GError **error, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # GValue value = G_VALUE_INIT; 3726s # GParamSpec *pspec; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # gboolean ret; 3726s # ret = FALSE; 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3726s # g_assert (info != NULL); 3726s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3726s # if (pspec == NULL) 3726s # { 3726s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3726s # } 3726s # else 3726s # { 3726s # if (info->use_gvariant) 3726s # g_value_set_variant (&value, variant); 3726s # else 3726s # g_dbus_gvariant_to_gvalue (variant, &value); 3726s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3726s # g_value_unset (&value); 3726s # ret = TRUE; 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 3726s # { 3726s # _org_project_signaling_iface_skeleton_handle_method_call, 3726s # _org_project_signaling_iface_skeleton_handle_get_property, 3726s # _org_project_signaling_iface_skeleton_handle_set_property, 3726s # {NULL} 3726s # }; 3726s # 3726s # static GDBusInterfaceInfo * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3726s # { 3726s # return org_project_signaling_iface_interface_info (); 3726s # } 3726s # 3726s # static GDBusInterfaceVTable * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3726s # { 3726s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 3726s # } 3726s # 3726s # static GVariant * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 3726s # 3726s # GVariantBuilder builder; 3726s # guint n; 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3726s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3726s # #else 3726s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3726s # #endif 3726s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 3726s # goto out; 3726s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 3726s # { 3726s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 3726s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3726s # { 3726s # GVariant *value; 3726s # 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); 3726s # if (value != NULL) 3726s # { 3726s # g_variant_take_ref (value); 3726s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3726s # g_variant_unref (value); 3726s # } 3726s # } 3726s # } 3726s # out: 3726s # return g_variant_builder_end (&builder); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # _org_project_signaling_iface_on_signal_simple_signal ( 3726s # OrgProjectSignalingIface *object) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # 3726s # GList *connections, *l; 3726s # GVariant *signal_variant; 3726s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3726s # 3726s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 3726s # for (l = connections; l != NULL; l = l->next) 3726s # { 3726s # GDBusConnection *connection = l->data; 3726s # g_dbus_connection_emit_signal (connection, 3726s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 3726s # signal_variant, NULL); 3726s # } 3726s # g_variant_unref (signal_variant); 3726s # g_list_free_full (connections, g_object_unref); 3726s # } 3726s # 3726s # static void 3726s # _org_project_signaling_iface_on_signal_single_arg_signal_s ( 3726s # OrgProjectSignalingIface *object, 3726s # const gchar *arg_arg_s) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # 3726s # GList *connections, *l; 3726s # GVariant *signal_variant; 3726s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3726s # 3726s # signal_variant = g_variant_ref_sink (g_variant_new ("(s)", 3726s # arg_arg_s)); 3726s # for (l = connections; l != NULL; l = l->next) 3726s # { 3726s # GDBusConnection *connection = l->data; 3726s # g_dbus_connection_emit_signal (connection, 3726s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalS", 3726s # signal_variant, NULL); 3726s # } 3726s # g_variant_unref (signal_variant); 3726s # g_list_free_full (connections, g_object_unref); 3726s # } 3726s # 3726s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3726s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3726s # 3726s # #else 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3726s # 3726s # #endif 3726s # static void 3726s # org_project_signaling_iface_skeleton_finalize (GObject *object) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3726s # if (skeleton->priv->changed_properties_idle_source != NULL) 3726s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3726s # g_main_context_unref (skeleton->priv->context); 3726s # g_mutex_clear (&skeleton->priv->lock); 3726s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 3726s # { 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 3726s # #else 3726s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 3726s # #endif 3726s # 3726s # g_mutex_init (&skeleton->priv->lock); 3726s # skeleton->priv->context = g_main_context_ref_thread_default (); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 3726s # { 3726s # GObjectClass *gobject_class; 3726s # GDBusInterfaceSkeletonClass *skeleton_class; 3726s # 3726s # gobject_class = G_OBJECT_CLASS (klass); 3726s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 3726s # 3726s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3726s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 3726s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 3726s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 3726s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3726s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 3726s # #endif 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 3726s # { 3726s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 3726s # iface->single_arg_signal_s = _org_project_signaling_iface_on_signal_single_arg_signal_s; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_skeleton_new: 3726s # * 3726s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_skeleton_new (void) 3726s # { 3726s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 3726s # } 3726s # Error: 3726s # 3726s # /tmp/tmp9symyp9z/tmp_g67lg80.xml: 3726s # <node> 3726s # <interface name="org.project.SignalingIface"> 3726s # <signal name="SimpleSignal"/> 3726s # <signal name="SingleArgSignalO"> 3726s # <arg name="arg_o" type="o"/> 3726s # </signal> 3726s # </interface> 3726s # </node> 3726s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9symyp9z/tmp_g67lg80.xml', '--output', '-', '--body'] 3726s # Return code: 0 3726s # Output: 3726s # /* 3726s # * This file is generated by gdbus-codegen, do not modify it. 3726s # * 3726s # * The license of this code is the same as for the D-Bus interface description 3726s # * it was derived from. Note that it links to GLib, so must comply with the 3726s # * LGPL linking clauses. 3726s # */ 3726s # 3726s # #ifdef HAVE_CONFIG_H 3726s # # include "config.h" 3726s # #endif 3726s # 3726s # #include <string.h> 3726s # #ifdef G_OS_UNIX 3726s # # include <gio/gunixfdlist.h> 3726s # #endif 3726s # 3726s # #ifdef G_ENABLE_DEBUG 3726s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3726s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3726s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3726s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3726s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3726s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3726s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3726s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3726s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3726s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3726s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3726s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3726s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3726s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3726s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3726s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3726s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3726s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3726s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3726s # #else /* !G_ENABLE_DEBUG */ 3726s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3726s # * Do not access GValues directly in your code. Instead, use the 3726s # * g_value_get_*() functions 3726s # */ 3726s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3726s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3726s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3726s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3726s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3726s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3726s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3726s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3726s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3726s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3726s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3726s # #endif /* !G_ENABLE_DEBUG */ 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusArgInfo parent_struct; 3726s # gboolean use_gvariant; 3726s # } _ExtendedGDBusArgInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusMethodInfo parent_struct; 3726s # const gchar *signal_name; 3726s # gboolean pass_fdlist; 3726s # } _ExtendedGDBusMethodInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusSignalInfo parent_struct; 3726s # const gchar *signal_name; 3726s # } _ExtendedGDBusSignalInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusPropertyInfo parent_struct; 3726s # const gchar *hyphen_name; 3726s # guint use_gvariant : 1; 3726s # guint emits_changed_signal : 1; 3726s # } _ExtendedGDBusPropertyInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusInterfaceInfo parent_struct; 3726s # const gchar *hyphen_name; 3726s # } _ExtendedGDBusInterfaceInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # const _ExtendedGDBusPropertyInfo *info; 3726s # guint prop_id; 3726s # GValue orig_value; /* the value before the change */ 3726s # } ChangedProperty; 3726s # 3726s # static void 3726s # _changed_property_free (ChangedProperty *data) 3726s # { 3726s # g_value_unset (&data->orig_value); 3726s # g_free (data); 3726s # } 3726s # 3726s # static gboolean 3726s # _g_strv_equal0 (gchar **a, gchar **b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # guint n; 3726s # if (a == NULL && b == NULL) 3726s # { 3726s # ret = TRUE; 3726s # goto out; 3726s # } 3726s # if (a == NULL || b == NULL) 3726s # goto out; 3726s # if (g_strv_length (a) != g_strv_length (b)) 3726s # goto out; 3726s # for (n = 0; a[n] != NULL; n++) 3726s # if (g_strcmp0 (a[n], b[n]) != 0) 3726s # goto out; 3726s # ret = TRUE; 3726s # out: 3726s # return ret; 3726s # } 3726s # 3726s # static gboolean 3726s # _g_variant_equal0 (GVariant *a, GVariant *b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # if (a == NULL && b == NULL) 3726s # { 3726s # ret = TRUE; 3726s # goto out; 3726s # } 3726s # if (a == NULL || b == NULL) 3726s # goto out; 3726s # ret = g_variant_equal (a, b); 3726s # out: 3726s # return ret; 3726s # } 3726s # 3726s # G_GNUC_UNUSED static gboolean 3726s # _g_value_equal (const GValue *a, const GValue *b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3726s # switch (G_VALUE_TYPE (a)) 3726s # { 3726s # case G_TYPE_BOOLEAN: 3726s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3726s # break; 3726s # case G_TYPE_UCHAR: 3726s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3726s # break; 3726s # case G_TYPE_INT: 3726s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3726s # break; 3726s # case G_TYPE_UINT: 3726s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3726s # break; 3726s # case G_TYPE_INT64: 3726s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3726s # break; 3726s # case G_TYPE_UINT64: 3726s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3726s # break; 3726s # case G_TYPE_DOUBLE: 3726s # { 3726s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3726s # gdouble da = g_value_get_double (a); 3726s # gdouble db = g_value_get_double (b); 3726s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3726s # } 3726s # break; 3726s # case G_TYPE_STRING: 3726s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3726s # break; 3726s # case G_TYPE_VARIANT: 3726s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3726s # break; 3726s # default: 3726s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3726s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3726s # else 3726s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3726s # break; 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # /* ------------------------------------------------------------------------ 3726s # * Code for interface org.project.SignalingIface 3726s # * ------------------------------------------------------------------------ 3726s # */ 3726s # 3726s # /** 3726s # * SECTION:OrgProjectSignalingIface 3726s # * @title: OrgProjectSignalingIface 3726s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 3726s # * 3726s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface in C. 3726s # */ 3726s # 3726s # enum 3726s # { 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 3726s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O, 3726s # }; 3726s # 3726s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 3726s # 3726s # /* ---- Introspection data for org.project.SignalingIface ---- */ 3726s # 3726s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "SimpleSignal", 3726s # NULL, 3726s # NULL 3726s # }, 3726s # "simple-signal" 3726s # }; 3726s # 3726s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_arg_o = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "arg_o", 3726s # (gchar *) "o", 3726s # NULL 3726s # }, 3726s # FALSE 3726s # }; 3726s # 3726s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers[] = 3726s # { 3726s # &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_arg_o.parent_struct, 3726s # NULL 3726s # }; 3726s # 3726s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_o = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "SingleArgSignalO", 3726s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers, 3726s # NULL 3726s # }, 3726s # "single-arg-signal-o" 3726s # }; 3726s # 3726s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 3726s # { 3726s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 3726s # &_org_project_signaling_iface_signal_info_single_arg_signal_o.parent_struct, 3726s # NULL 3726s # }; 3726s # 3726s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "org.project.SignalingIface", 3726s # NULL, 3726s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 3726s # NULL, 3726s # NULL 3726s # }, 3726s # "org-project-signaling-iface", 3726s # }; 3726s # 3726s # 3726s # /** 3726s # * org_project_signaling_iface_interface_info: 3726s # * 3726s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface. 3726s # * 3726s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3726s # */ 3726s # GDBusInterfaceInfo * 3726s # org_project_signaling_iface_interface_info (void) 3726s # { 3726s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_override_properties: 3726s # * @klass: The class structure for a #GObject derived class. 3726s # * @property_id_begin: The property id to assign to the first overridden property. 3726s # * 3726s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 3726s # * The properties are overridden in the order they are defined. 3726s # * 3726s # * Returns: The last property id. 3726s # */ 3726s # guint 3726s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3726s # { 3726s # return property_id_begin - 1; 3726s # } 3726s # 3726s # 3726s # inline static void 3726s # org_project_signaling_iface_signal_marshal_simple_signal ( 3726s # GClosure *closure, 3726s # GValue *return_value, 3726s # unsigned int n_param_values, 3726s # const GValue *param_values, 3726s # void *invocation_hint, 3726s # void *marshal_data) 3726s # { 3726s # g_cclosure_marshal_VOID__VOID (closure, 3726s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3726s # } 3726s # 3726s # inline static void 3726s # org_project_signaling_iface_signal_marshal_single_arg_signal_o ( 3726s # GClosure *closure, 3726s # GValue *return_value, 3726s # unsigned int n_param_values, 3726s # const GValue *param_values, 3726s # void *invocation_hint, 3726s # void *marshal_data) 3726s # { 3726s # g_cclosure_marshal_VOID__STRING (closure, 3726s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3726s # } 3726s # 3726s # 3726s # /** 3726s # * OrgProjectSignalingIface: 3726s # * 3726s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceIface: 3726s # * @parent_iface: The parent interface. 3726s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 3726s # * @single_arg_signal_o: Handler for the #OrgProjectSignalingIface::single-arg-signal-o signal. 3726s # * 3726s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # */ 3726s # 3726s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 3726s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 3726s # 3726s # static void 3726s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 3726s # { 3726s # /* GObject signals for received D-Bus signals: */ 3726s # /** 3726s # * OrgProjectSignalingIface::simple-signal: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * 3726s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SimpleSignal">"SimpleSignal"</link> is received. 3726s # * 3726s # * 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. 3726s # */ 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 3726s # g_signal_new ("simple-signal", 3726s # G_TYPE_FROM_INTERFACE (iface), 3726s # G_SIGNAL_RUN_LAST, 3726s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 3726s # NULL, 3726s # NULL, 3726s # org_project_signaling_iface_signal_marshal_simple_signal, 3726s # G_TYPE_NONE, 3726s # 0); 3726s # 3726s # /** 3726s # * OrgProjectSignalingIface::single-arg-signal-o: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * @arg_arg_o: Argument. 3726s # * 3726s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalO">"SingleArgSignalO"</link> is received. 3726s # * 3726s # * 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. 3726s # */ 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O] = 3726s # g_signal_new ("single-arg-signal-o", 3726s # G_TYPE_FROM_INTERFACE (iface), 3726s # G_SIGNAL_RUN_LAST, 3726s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_o), 3726s # NULL, 3726s # NULL, 3726s # org_project_signaling_iface_signal_marshal_single_arg_signal_o, 3726s # G_TYPE_NONE, 3726s # 1, G_TYPE_STRING); 3726s # 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_emit_simple_signal: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * 3726s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SimpleSignal">"SimpleSignal"</link> D-Bus signal. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_emit_simple_signal ( 3726s # OrgProjectSignalingIface *object) 3726s # { 3726s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_emit_single_arg_signal_o: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * @arg_arg_o: Argument to pass with the signal. 3726s # * 3726s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalO">"SingleArgSignalO"</link> D-Bus signal. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_emit_single_arg_signal_o ( 3726s # OrgProjectSignalingIface *object, 3726s # const gchar *arg_arg_o) 3726s # { 3726s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O], 0, arg_arg_o); 3726s # } 3726s # 3726s # /* ------------------------------------------------------------------------ */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceProxy: 3726s # * 3726s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceProxyClass: 3726s # * @parent_class: The parent class. 3726s # * 3726s # * Class structure for #OrgProjectSignalingIfaceProxy. 3726s # */ 3726s # 3726s # struct _OrgProjectSignalingIfaceProxyPrivate 3726s # { 3726s # GData *qdata; 3726s # }; 3726s # 3726s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3726s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3726s # 3726s # #else 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3726s # 3726s # #endif 3726s # static void 3726s # org_project_signaling_iface_proxy_finalize (GObject *object) 3726s # { 3726s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 3726s # g_datalist_clear (&proxy->priv->qdata); 3726s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3726s # guint prop_id G_GNUC_UNUSED, 3726s # GValue *value G_GNUC_UNUSED, 3726s # GParamSpec *pspec G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3726s # guint prop_id G_GNUC_UNUSED, 3726s # const GValue *value G_GNUC_UNUSED, 3726s # GParamSpec *pspec G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 3726s # const gchar *sender_name G_GNUC_UNUSED, 3726s # const gchar *signal_name, 3726s # GVariant *parameters) 3726s # { 3726s # _ExtendedGDBusSignalInfo *info; 3726s # GVariantIter iter; 3726s # GVariant *child; 3726s # GValue *paramv; 3726s # gsize num_params; 3726s # gsize n; 3726s # guint signal_id; 3726s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 3726s # if (info == NULL) 3726s # return; 3726s # num_params = g_variant_n_children (parameters); 3726s # paramv = g_new0 (GValue, num_params + 1); 3726s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_set_object (¶mv[0], proxy); 3726s # g_variant_iter_init (&iter, parameters); 3726s # n = 1; 3726s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3726s # { 3726s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3726s # if (arg_info->use_gvariant) 3726s # { 3726s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3726s # g_value_set_variant (¶mv[n], child); 3726s # n++; 3726s # } 3726s # else 3726s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3726s # g_variant_unref (child); 3726s # } 3726s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_signal_emitv (paramv, signal_id, 0, NULL); 3726s # for (n = 0; n < num_params + 1; n++) 3726s # g_value_unset (¶mv[n]); 3726s # g_free (paramv); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 3726s # GVariant *changed_properties, 3726s # const gchar *const *invalidated_properties) 3726s # { 3726s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 3726s # guint n; 3726s # const gchar *key; 3726s # GVariantIter *iter; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # g_variant_get (changed_properties, "a{sv}", &iter); 3726s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3726s # { 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 3726s # g_datalist_remove_data (&proxy->priv->qdata, key); 3726s # if (info != NULL) 3726s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3726s # } 3726s # g_variant_iter_free (iter); 3726s # for (n = 0; invalidated_properties[n] != NULL; n++) 3726s # { 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 3726s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3726s # if (info != NULL) 3726s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3726s # } 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 3726s # { 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 3726s # #else 3726s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 3726s # #endif 3726s # 3726s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 3726s # { 3726s # GObjectClass *gobject_class; 3726s # GDBusProxyClass *proxy_class; 3726s # 3726s # gobject_class = G_OBJECT_CLASS (klass); 3726s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 3726s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 3726s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 3726s # 3726s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3726s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 3726s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3726s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 3726s # #endif 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new: 3726s # * @connection: A #GDBusConnection. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3726s # * @user_data: User data to pass to @callback. 3726s # * 3726s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new() for more details. 3726s # * 3726s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3726s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_proxy_new ( 3726s # GDBusConnection *connection, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GAsyncReadyCallback callback, 3726s # gpointer user_data) 3726s # { 3726s # 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); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_finish: 3726s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_finish ( 3726s # GAsyncResult *res, 3726s # GError **error) 3726s # { 3726s # GObject *ret; 3726s # GObject *source_object; 3726s # source_object = g_async_result_get_source_object (res); 3726s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3726s # g_object_unref (source_object); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_sync: 3726s # * @connection: A #GDBusConnection. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new_sync() for more details. 3726s # * 3726s # * The calling thread is blocked until a reply is received. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_sync ( 3726s # GDBusConnection *connection, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GError **error) 3726s # { 3726s # GInitable *ret; 3726s # 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); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus: 3726s # * @bus_type: A #GBusType. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: A bus name (well-known or unique). 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3726s # * @user_data: User data to pass to @callback. 3726s # * 3726s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3726s # * 3726s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3726s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_proxy_new_for_bus ( 3726s # GBusType bus_type, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GAsyncReadyCallback callback, 3726s # gpointer user_data) 3726s # { 3726s # 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); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus_finish: 3726s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_for_bus_finish ( 3726s # GAsyncResult *res, 3726s # GError **error) 3726s # { 3726s # GObject *ret; 3726s # GObject *source_object; 3726s # source_object = g_async_result_get_source_object (res); 3726s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3726s # g_object_unref (source_object); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus_sync: 3726s # * @bus_type: A #GBusType. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: A bus name (well-known or unique). 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3726s # * 3726s # * The calling thread is blocked until a reply is received. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_for_bus_sync ( 3726s # GBusType bus_type, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GError **error) 3726s # { 3726s # GInitable *ret; 3726s # 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); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # 3726s # /* ------------------------------------------------------------------------ */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceSkeleton: 3726s # * 3726s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceSkeletonClass: 3726s # * @parent_class: The parent class. 3726s # * 3726s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 3726s # */ 3726s # 3726s # struct _OrgProjectSignalingIfaceSkeletonPrivate 3726s # { 3726s # GValue *properties; 3726s # GList *changed_properties; 3726s # GSource *changed_properties_idle_source; 3726s # GMainContext *context; 3726s # GMutex lock; 3726s # }; 3726s # 3726s # static void 3726s # _org_project_signaling_iface_skeleton_handle_method_call ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name, 3726s # const gchar *method_name, 3726s # GVariant *parameters, 3726s # GDBusMethodInvocation *invocation, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # _ExtendedGDBusMethodInfo *info; 3726s # GVariantIter iter; 3726s # GVariant *child; 3726s # GValue *paramv; 3726s # gsize num_params; 3726s # guint num_extra; 3726s # gsize n; 3726s # guint signal_id; 3726s # GValue return_value = G_VALUE_INIT; 3726s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3726s # g_assert (info != NULL); 3726s # num_params = g_variant_n_children (parameters); 3726s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3726s # n = 0; 3726s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_set_object (¶mv[n++], skeleton); 3726s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3726s # g_value_set_object (¶mv[n++], invocation); 3726s # if (info->pass_fdlist) 3726s # { 3726s # #ifdef G_OS_UNIX 3726s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3726s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3726s # #else 3726s # g_assert_not_reached (); 3726s # #endif 3726s # } 3726s # g_variant_iter_init (&iter, parameters); 3726s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3726s # { 3726s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3726s # if (arg_info->use_gvariant) 3726s # { 3726s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3726s # g_value_set_variant (¶mv[n], child); 3726s # n++; 3726s # } 3726s # else 3726s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3726s # g_variant_unref (child); 3726s # } 3726s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3726s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3726s # if (!g_value_get_boolean (&return_value)) 3726s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3726s # g_value_unset (&return_value); 3726s # for (n = 0; n < num_params + num_extra; n++) 3726s # g_value_unset (¶mv[n]); 3726s # g_free (paramv); 3726s # } 3726s # 3726s # static GVariant * 3726s # _org_project_signaling_iface_skeleton_handle_get_property ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name G_GNUC_UNUSED, 3726s # const gchar *property_name, 3726s # GError **error, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # GValue value = G_VALUE_INIT; 3726s # GParamSpec *pspec; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # GVariant *ret; 3726s # ret = NULL; 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3726s # g_assert (info != NULL); 3726s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3726s # if (pspec == NULL) 3726s # { 3726s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3726s # } 3726s # else 3726s # { 3726s # g_value_init (&value, pspec->value_type); 3726s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3726s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3726s # g_value_unset (&value); 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # static gboolean 3726s # _org_project_signaling_iface_skeleton_handle_set_property ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name G_GNUC_UNUSED, 3726s # const gchar *property_name, 3726s # GVariant *variant, 3726s # GError **error, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # GValue value = G_VALUE_INIT; 3726s # GParamSpec *pspec; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # gboolean ret; 3726s # ret = FALSE; 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3726s # g_assert (info != NULL); 3726s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3726s # if (pspec == NULL) 3726s # { 3726s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3726s # } 3726s # else 3726s # { 3726s # if (info->use_gvariant) 3726s # g_value_set_variant (&value, variant); 3726s # else 3726s # g_dbus_gvariant_to_gvalue (variant, &value); 3726s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3726s # g_value_unset (&value); 3726s # ret = TRUE; 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 3726s # { 3726s # _org_project_signaling_iface_skeleton_handle_method_call, 3726s # _org_project_signaling_iface_skeleton_handle_get_property, 3726s # _org_project_signaling_iface_skeleton_handle_set_property, 3726s # {NULL} 3726s # }; 3726s # 3726s # static GDBusInterfaceInfo * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3726s # { 3726s # return org_project_signaling_iface_interface_info (); 3726s # } 3726s # 3726s # static GDBusInterfaceVTable * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3726s # { 3726s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 3726s # } 3726s # 3726s # static GVariant * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 3726s # 3726s # GVariantBuilder builder; 3726s # guint n; 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3726s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3726s # #else 3726s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3726s # #endif 3726s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 3726s # goto out; 3726s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 3726s # { 3726s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 3726s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3726s # { 3726s # GVariant *value; 3726s # 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); 3726s # if (value != NULL) 3726s # { 3726s # g_variant_take_ref (value); 3726s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3726s # g_variant_unref (value); 3726s # } 3726s # } 3726s # } 3726s # out: 3726s # return g_variant_builder_end (&builder); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # _org_project_signaling_iface_on_signal_simple_signal ( 3726s # OrgProjectSignalingIface *object) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # 3726s # GList *connections, *l; 3726s # GVariant *signal_variant; 3726s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3726s # 3726s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 3726s # for (l = connections; l != NULL; l = l->next) 3726s # { 3726s # GDBusConnection *connection = l->data; 3726s # g_dbus_connection_emit_signal (connection, 3726s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 3726s # signal_variant, NULL); 3726s # } 3726s # g_variant_unref (signal_variant); 3726s # g_list_free_full (connections, g_object_unref); 3726s # } 3726s # 3726s # static void 3726s # _org_project_signaling_iface_on_signal_single_arg_signal_o ( 3726s # OrgProjectSignalingIface *object, 3726s # const gchar *arg_arg_o) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # 3726s # GList *connections, *l; 3726s # GVariant *signal_variant; 3726s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3726s # 3726s # signal_variant = g_variant_ref_sink (g_variant_new ("(o)", 3726s # arg_arg_o)); 3726s # for (l = connections; l != NULL; l = l->next) 3726s # { 3726s # GDBusConnection *connection = l->data; 3726s # g_dbus_connection_emit_signal (connection, 3726s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalO", 3726s # signal_variant, NULL); 3726s # } 3726s # g_variant_unref (signal_variant); 3726s # g_list_free_full (connections, g_object_unref); 3726s # } 3726s # 3726s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3726s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3726s # 3726s # #else 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3726s # 3726s # #endif 3726s # static void 3726s # org_project_signaling_iface_skeleton_finalize (GObject *object) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3726s # if (skeleton->priv->changed_properties_idle_source != NULL) 3726s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3726s # g_main_context_unref (skeleton->priv->context); 3726s # g_mutex_clear (&skeleton->priv->lock); 3726s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 3726s # { 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 3726s # #else 3726s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 3726s # #endif 3726s # 3726s # g_mutex_init (&skeleton->priv->lock); 3726s # skeleton->priv->context = g_main_context_ref_thread_default (); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 3726s # { 3726s # GObjectClass *gobject_class; 3726s # GDBusInterfaceSkeletonClass *skeleton_class; 3726s # 3726s # gobject_class = G_OBJECT_CLASS (klass); 3726s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 3726s # 3726s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3726s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 3726s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 3726s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 3726s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3726s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 3726s # #endif 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 3726s # { 3726s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 3726s # iface->single_arg_signal_o = _org_project_signaling_iface_on_signal_single_arg_signal_o; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_skeleton_new: 3726s # * 3726s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_skeleton_new (void) 3726s # { 3726s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 3726s # } 3726s # Error: 3726s # 3726s # /tmp/tmp9symyp9z/tmpptj2fd3s.xml: 3726s # <node> 3726s # <interface name="org.project.SignalingIface"> 3726s # <signal name="SimpleSignal"/> 3726s # <signal name="SingleArgSignalG"> 3726s # <arg name="arg_g" type="g"/> 3726s # </signal> 3726s # </interface> 3726s # </node> 3726s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9symyp9z/tmpptj2fd3s.xml', '--output', '-', '--body'] 3726s # Return code: 0 3726s # Output: 3726s # /* 3726s # * This file is generated by gdbus-codegen, do not modify it. 3726s # * 3726s # * The license of this code is the same as for the D-Bus interface description 3726s # * it was derived from. Note that it links to GLib, so must comply with the 3726s # * LGPL linking clauses. 3726s # */ 3726s # 3726s # #ifdef HAVE_CONFIG_H 3726s # # include "config.h" 3726s # #endif 3726s # 3726s # #include <string.h> 3726s # #ifdef G_OS_UNIX 3726s # # include <gio/gunixfdlist.h> 3726s # #endif 3726s # 3726s # #ifdef G_ENABLE_DEBUG 3726s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3726s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3726s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3726s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3726s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3726s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3726s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3726s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3726s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3726s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3726s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3726s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3726s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3726s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3726s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3726s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3726s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3726s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3726s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3726s # #else /* !G_ENABLE_DEBUG */ 3726s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3726s # * Do not access GValues directly in your code. Instead, use the 3726s # * g_value_get_*() functions 3726s # */ 3726s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3726s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3726s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3726s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3726s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3726s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3726s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3726s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3726s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3726s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3726s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3726s # #endif /* !G_ENABLE_DEBUG */ 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusArgInfo parent_struct; 3726s # gboolean use_gvariant; 3726s # } _ExtendedGDBusArgInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusMethodInfo parent_struct; 3726s # const gchar *signal_name; 3726s # gboolean pass_fdlist; 3726s # } _ExtendedGDBusMethodInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusSignalInfo parent_struct; 3726s # const gchar *signal_name; 3726s # } _ExtendedGDBusSignalInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusPropertyInfo parent_struct; 3726s # const gchar *hyphen_name; 3726s # guint use_gvariant : 1; 3726s # guint emits_changed_signal : 1; 3726s # } _ExtendedGDBusPropertyInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusInterfaceInfo parent_struct; 3726s # const gchar *hyphen_name; 3726s # } _ExtendedGDBusInterfaceInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # const _ExtendedGDBusPropertyInfo *info; 3726s # guint prop_id; 3726s # GValue orig_value; /* the value before the change */ 3726s # } ChangedProperty; 3726s # 3726s # static void 3726s # _changed_property_free (ChangedProperty *data) 3726s # { 3726s # g_value_unset (&data->orig_value); 3726s # g_free (data); 3726s # } 3726s # 3726s # static gboolean 3726s # _g_strv_equal0 (gchar **a, gchar **b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # guint n; 3726s # if (a == NULL && b == NULL) 3726s # { 3726s # ret = TRUE; 3726s # goto out; 3726s # } 3726s # if (a == NULL || b == NULL) 3726s # goto out; 3726s # if (g_strv_length (a) != g_strv_length (b)) 3726s # goto out; 3726s # for (n = 0; a[n] != NULL; n++) 3726s # if (g_strcmp0 (a[n], b[n]) != 0) 3726s # goto out; 3726s # ret = TRUE; 3726s # out: 3726s # return ret; 3726s # } 3726s # 3726s # static gboolean 3726s # _g_variant_equal0 (GVariant *a, GVariant *b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # if (a == NULL && b == NULL) 3726s # { 3726s # ret = TRUE; 3726s # goto out; 3726s # } 3726s # if (a == NULL || b == NULL) 3726s # goto out; 3726s # ret = g_variant_equal (a, b); 3726s # out: 3726s # return ret; 3726s # } 3726s # 3726s # G_GNUC_UNUSED static gboolean 3726s # _g_value_equal (const GValue *a, const GValue *b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3726s # switch (G_VALUE_TYPE (a)) 3726s # { 3726s # case G_TYPE_BOOLEAN: 3726s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3726s # break; 3726s # case G_TYPE_UCHAR: 3726s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3726s # break; 3726s # case G_TYPE_INT: 3726s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3726s # break; 3726s # case G_TYPE_UINT: 3726s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3726s # break; 3726s # case G_TYPE_INT64: 3726s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3726s # break; 3726s # case G_TYPE_UINT64: 3726s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3726s # break; 3726s # case G_TYPE_DOUBLE: 3726s # { 3726s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3726s # gdouble da = g_value_get_double (a); 3726s # gdouble db = g_value_get_double (b); 3726s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3726s # } 3726s # break; 3726s # case G_TYPE_STRING: 3726s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3726s # break; 3726s # case G_TYPE_VARIANT: 3726s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3726s # break; 3726s # default: 3726s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3726s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3726s # else 3726s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3726s # break; 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # /* ------------------------------------------------------------------------ 3726s # * Code for interface org.project.SignalingIface 3726s # * ------------------------------------------------------------------------ 3726s # */ 3726s # 3726s # /** 3726s # * SECTION:OrgProjectSignalingIface 3726s # * @title: OrgProjectSignalingIface 3726s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 3726s # * 3726s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface in C. 3726s # */ 3726s # 3726s # enum 3726s # { 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 3726s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G, 3726s # }; 3726s # 3726s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 3726s # 3726s # /* ---- Introspection data for org.project.SignalingIface ---- */ 3726s # 3726s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "SimpleSignal", 3726s # NULL, 3726s # NULL 3726s # }, 3726s # "simple-signal" 3726s # }; 3726s # 3726s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_arg_g = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "arg_g", 3726s # (gchar *) "g", 3726s # NULL 3726s # }, 3726s # FALSE 3726s # }; 3726s # 3726s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers[] = 3726s # { 3726s # &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_arg_g.parent_struct, 3726s # NULL 3726s # }; 3726s # 3726s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_g = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "SingleArgSignalG", 3726s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers, 3726s # NULL 3726s # }, 3726s # "single-arg-signal-g" 3726s # }; 3726s # 3726s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 3726s # { 3726s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 3726s # &_org_project_signaling_iface_signal_info_single_arg_signal_g.parent_struct, 3726s # NULL 3726s # }; 3726s # 3726s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "org.project.SignalingIface", 3726s # NULL, 3726s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 3726s # NULL, 3726s # NULL 3726s # }, 3726s # "org-project-signaling-iface", 3726s # }; 3726s # 3726s # 3726s # /** 3726s # * org_project_signaling_iface_interface_info: 3726s # * 3726s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface. 3726s # * 3726s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3726s # */ 3726s # GDBusInterfaceInfo * 3726s # org_project_signaling_iface_interface_info (void) 3726s # { 3726s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_override_properties: 3726s # * @klass: The class structure for a #GObject derived class. 3726s # * @property_id_begin: The property id to assign to the first overridden property. 3726s # * 3726s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 3726s # * The properties are overridden in the order they are defined. 3726s # * 3726s # * Returns: The last property id. 3726s # */ 3726s # guint 3726s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3726s # { 3726s # return property_id_begin - 1; 3726s # } 3726s # 3726s # 3726s # inline static void 3726s # org_project_signaling_iface_signal_marshal_simple_signal ( 3726s # GClosure *closure, 3726s # GValue *return_value, 3726s # unsigned int n_param_values, 3726s # const GValue *param_values, 3726s # void *invocation_hint, 3726s # void *marshal_data) 3726s # { 3726s # g_cclosure_marshal_VOID__VOID (closure, 3726s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3726s # } 3726s # 3726s # inline static void 3726s # org_project_signaling_iface_signal_marshal_single_arg_signal_g ( 3726s # GClosure *closure, 3726s # GValue *return_value, 3726s # unsigned int n_param_values, 3726s # const GValue *param_values, 3726s # void *invocation_hint, 3726s # void *marshal_data) 3726s # { 3726s # g_cclosure_marshal_VOID__STRING (closure, 3726s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3726s # } 3726s # 3726s # 3726s # /** 3726s # * OrgProjectSignalingIface: 3726s # * 3726s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceIface: 3726s # * @parent_iface: The parent interface. 3726s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 3726s # * @single_arg_signal_g: Handler for the #OrgProjectSignalingIface::single-arg-signal-g signal. 3726s # * 3726s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # */ 3726s # 3726s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 3726s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 3726s # 3726s # static void 3726s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 3726s # { 3726s # /* GObject signals for received D-Bus signals: */ 3726s # /** 3726s # * OrgProjectSignalingIface::simple-signal: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * 3726s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SimpleSignal">"SimpleSignal"</link> is received. 3726s # * 3726s # * 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. 3726s # */ 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 3726s # g_signal_new ("simple-signal", 3726s # G_TYPE_FROM_INTERFACE (iface), 3726s # G_SIGNAL_RUN_LAST, 3726s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 3726s # NULL, 3726s # NULL, 3726s # org_project_signaling_iface_signal_marshal_simple_signal, 3726s # G_TYPE_NONE, 3726s # 0); 3726s # 3726s # /** 3726s # * OrgProjectSignalingIface::single-arg-signal-g: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * @arg_arg_g: Argument. 3726s # * 3726s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalG">"SingleArgSignalG"</link> is received. 3726s # * 3726s # * 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. 3726s # */ 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G] = 3726s # g_signal_new ("single-arg-signal-g", 3726s # G_TYPE_FROM_INTERFACE (iface), 3726s # G_SIGNAL_RUN_LAST, 3726s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_g), 3726s # NULL, 3726s # NULL, 3726s # org_project_signaling_iface_signal_marshal_single_arg_signal_g, 3726s # G_TYPE_NONE, 3726s # 1, G_TYPE_STRING); 3726s # 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_emit_simple_signal: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * 3726s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SimpleSignal">"SimpleSignal"</link> D-Bus signal. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_emit_simple_signal ( 3726s # OrgProjectSignalingIface *object) 3726s # { 3726s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_emit_single_arg_signal_g: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * @arg_arg_g: Argument to pass with the signal. 3726s # * 3726s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalG">"SingleArgSignalG"</link> D-Bus signal. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_emit_single_arg_signal_g ( 3726s # OrgProjectSignalingIface *object, 3726s # const gchar *arg_arg_g) 3726s # { 3726s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G], 0, arg_arg_g); 3726s # } 3726s # 3726s # /* ------------------------------------------------------------------------ */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceProxy: 3726s # * 3726s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceProxyClass: 3726s # * @parent_class: The parent class. 3726s # * 3726s # * Class structure for #OrgProjectSignalingIfaceProxy. 3726s # */ 3726s # 3726s # struct _OrgProjectSignalingIfaceProxyPrivate 3726s # { 3726s # GData *qdata; 3726s # }; 3726s # 3726s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3726s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3726s # 3726s # #else 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3726s # 3726s # #endif 3726s # static void 3726s # org_project_signaling_iface_proxy_finalize (GObject *object) 3726s # { 3726s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 3726s # g_datalist_clear (&proxy->priv->qdata); 3726s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3726s # guint prop_id G_GNUC_UNUSED, 3726s # GValue *value G_GNUC_UNUSED, 3726s # GParamSpec *pspec G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3726s # guint prop_id G_GNUC_UNUSED, 3726s # const GValue *value G_GNUC_UNUSED, 3726s # GParamSpec *pspec G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 3726s # const gchar *sender_name G_GNUC_UNUSED, 3726s # const gchar *signal_name, 3726s # GVariant *parameters) 3726s # { 3726s # _ExtendedGDBusSignalInfo *info; 3726s # GVariantIter iter; 3726s # GVariant *child; 3726s # GValue *paramv; 3726s # gsize num_params; 3726s # gsize n; 3726s # guint signal_id; 3726s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 3726s # if (info == NULL) 3726s # return; 3726s # num_params = g_variant_n_children (parameters); 3726s # paramv = g_new0 (GValue, num_params + 1); 3726s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_set_object (¶mv[0], proxy); 3726s # g_variant_iter_init (&iter, parameters); 3726s # n = 1; 3726s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3726s # { 3726s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3726s # if (arg_info->use_gvariant) 3726s # { 3726s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3726s # g_value_set_variant (¶mv[n], child); 3726s # n++; 3726s # } 3726s # else 3726s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3726s # g_variant_unref (child); 3726s # } 3726s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_signal_emitv (paramv, signal_id, 0, NULL); 3726s # for (n = 0; n < num_params + 1; n++) 3726s # g_value_unset (¶mv[n]); 3726s # g_free (paramv); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 3726s # GVariant *changed_properties, 3726s # const gchar *const *invalidated_properties) 3726s # { 3726s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 3726s # guint n; 3726s # const gchar *key; 3726s # GVariantIter *iter; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # g_variant_get (changed_properties, "a{sv}", &iter); 3726s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3726s # { 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 3726s # g_datalist_remove_data (&proxy->priv->qdata, key); 3726s # if (info != NULL) 3726s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3726s # } 3726s # g_variant_iter_free (iter); 3726s # for (n = 0; invalidated_properties[n] != NULL; n++) 3726s # { 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 3726s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3726s # if (info != NULL) 3726s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3726s # } 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 3726s # { 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 3726s # #else 3726s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 3726s # #endif 3726s # 3726s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 3726s # { 3726s # GObjectClass *gobject_class; 3726s # GDBusProxyClass *proxy_class; 3726s # 3726s # gobject_class = G_OBJECT_CLASS (klass); 3726s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 3726s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 3726s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 3726s # 3726s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3726s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 3726s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3726s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 3726s # #endif 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new: 3726s # * @connection: A #GDBusConnection. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3726s # * @user_data: User data to pass to @callback. 3726s # * 3726s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new() for more details. 3726s # * 3726s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3726s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_proxy_new ( 3726s # GDBusConnection *connection, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GAsyncReadyCallback callback, 3726s # gpointer user_data) 3726s # { 3726s # 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); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_finish: 3726s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_finish ( 3726s # GAsyncResult *res, 3726s # GError **error) 3726s # { 3726s # GObject *ret; 3726s # GObject *source_object; 3726s # source_object = g_async_result_get_source_object (res); 3726s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3726s # g_object_unref (source_object); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_sync: 3726s # * @connection: A #GDBusConnection. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new_sync() for more details. 3726s # * 3726s # * The calling thread is blocked until a reply is received. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_sync ( 3726s # GDBusConnection *connection, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GError **error) 3726s # { 3726s # GInitable *ret; 3726s # 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); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus: 3726s # * @bus_type: A #GBusType. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: A bus name (well-known or unique). 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3726s # * @user_data: User data to pass to @callback. 3726s # * 3726s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3726s # * 3726s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3726s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_proxy_new_for_bus ( 3726s # GBusType bus_type, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GAsyncReadyCallback callback, 3726s # gpointer user_data) 3726s # { 3726s # 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); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus_finish: 3726s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_for_bus_finish ( 3726s # GAsyncResult *res, 3726s # GError **error) 3726s # { 3726s # GObject *ret; 3726s # GObject *source_object; 3726s # source_object = g_async_result_get_source_object (res); 3726s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3726s # g_object_unref (source_object); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus_sync: 3726s # * @bus_type: A #GBusType. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: A bus name (well-known or unique). 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3726s # * 3726s # * The calling thread is blocked until a reply is received. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_for_bus_sync ( 3726s # GBusType bus_type, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GError **error) 3726s # { 3726s # GInitable *ret; 3726s # 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); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # 3726s # /* ------------------------------------------------------------------------ */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceSkeleton: 3726s # * 3726s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceSkeletonClass: 3726s # * @parent_class: The parent class. 3726s # * 3726s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 3726s # */ 3726s # 3726s # struct _OrgProjectSignalingIfaceSkeletonPrivate 3726s # { 3726s # GValue *properties; 3726s # GList *changed_properties; 3726s # GSource *changed_properties_idle_source; 3726s # GMainContext *context; 3726s # GMutex lock; 3726s # }; 3726s # 3726s # static void 3726s # _org_project_signaling_iface_skeleton_handle_method_call ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name, 3726s # const gchar *method_name, 3726s # GVariant *parameters, 3726s # GDBusMethodInvocation *invocation, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # _ExtendedGDBusMethodInfo *info; 3726s # GVariantIter iter; 3726s # GVariant *child; 3726s # GValue *paramv; 3726s # gsize num_params; 3726s # guint num_extra; 3726s # gsize n; 3726s # guint signal_id; 3726s # GValue return_value = G_VALUE_INIT; 3726s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3726s # g_assert (info != NULL); 3726s # num_params = g_variant_n_children (parameters); 3726s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3726s # n = 0; 3726s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_set_object (¶mv[n++], skeleton); 3726s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3726s # g_value_set_object (¶mv[n++], invocation); 3726s # if (info->pass_fdlist) 3726s # { 3726s # #ifdef G_OS_UNIX 3726s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3726s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3726s # #else 3726s # g_assert_not_reached (); 3726s # #endif 3726s # } 3726s # g_variant_iter_init (&iter, parameters); 3726s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3726s # { 3726s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3726s # if (arg_info->use_gvariant) 3726s # { 3726s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3726s # g_value_set_variant (¶mv[n], child); 3726s # n++; 3726s # } 3726s # else 3726s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3726s # g_variant_unref (child); 3726s # } 3726s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3726s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3726s # if (!g_value_get_boolean (&return_value)) 3726s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3726s # g_value_unset (&return_value); 3726s # for (n = 0; n < num_params + num_extra; n++) 3726s # g_value_unset (¶mv[n]); 3726s # g_free (paramv); 3726s # } 3726s # 3726s # static GVariant * 3726s # _org_project_signaling_iface_skeleton_handle_get_property ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name G_GNUC_UNUSED, 3726s # const gchar *property_name, 3726s # GError **error, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # GValue value = G_VALUE_INIT; 3726s # GParamSpec *pspec; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # GVariant *ret; 3726s # ret = NULL; 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3726s # g_assert (info != NULL); 3726s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3726s # if (pspec == NULL) 3726s # { 3726s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3726s # } 3726s # else 3726s # { 3726s # g_value_init (&value, pspec->value_type); 3726s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3726s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3726s # g_value_unset (&value); 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # static gboolean 3726s # _org_project_signaling_iface_skeleton_handle_set_property ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name G_GNUC_UNUSED, 3726s # const gchar *property_name, 3726s # GVariant *variant, 3726s # GError **error, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # GValue value = G_VALUE_INIT; 3726s # GParamSpec *pspec; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # gboolean ret; 3726s # ret = FALSE; 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3726s # g_assert (info != NULL); 3726s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3726s # if (pspec == NULL) 3726s # { 3726s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3726s # } 3726s # else 3726s # { 3726s # if (info->use_gvariant) 3726s # g_value_set_variant (&value, variant); 3726s # else 3726s # g_dbus_gvariant_to_gvalue (variant, &value); 3726s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3726s # g_value_unset (&value); 3726s # ret = TRUE; 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 3726s # { 3726s # _org_project_signaling_iface_skeleton_handle_method_call, 3726s # _org_project_signaling_iface_skeleton_handle_get_property, 3726s # _org_project_signaling_iface_skeleton_handle_set_property, 3726s # {NULL} 3726s # }; 3726s # 3726s # static GDBusInterfaceInfo * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3726s # { 3726s # return org_project_signaling_iface_interface_info (); 3726s # } 3726s # 3726s # static GDBusInterfaceVTable * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3726s # { 3726s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 3726s # } 3726s # 3726s # static GVariant * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 3726s # 3726s # GVariantBuilder builder; 3726s # guint n; 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3726s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3726s # #else 3726s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3726s # #endif 3726s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 3726s # goto out; 3726s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 3726s # { 3726s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 3726s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3726s # { 3726s # GVariant *value; 3726s # 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); 3726s # if (value != NULL) 3726s # { 3726s # g_variant_take_ref (value); 3726s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3726s # g_variant_unref (value); 3726s # } 3726s # } 3726s # } 3726s # out: 3726s # return g_variant_builder_end (&builder); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # _org_project_signaling_iface_on_signal_simple_signal ( 3726s # OrgProjectSignalingIface *object) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # 3726s # GList *connections, *l; 3726s # GVariant *signal_variant; 3726s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3726s # 3726s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 3726s # for (l = connections; l != NULL; l = l->next) 3726s # { 3726s # GDBusConnection *connection = l->data; 3726s # g_dbus_connection_emit_signal (connection, 3726s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 3726s # signal_variant, NULL); 3726s # } 3726s # g_variant_unref (signal_variant); 3726s # g_list_free_full (connections, g_object_unref); 3726s # } 3726s # 3726s # static void 3726s # _org_project_signaling_iface_on_signal_single_arg_signal_g ( 3726s # OrgProjectSignalingIface *object, 3726s # const gchar *arg_arg_g) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # 3726s # GList *connections, *l; 3726s # GVariant *signal_variant; 3726s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3726s # 3726s # signal_variant = g_variant_ref_sink (g_variant_new ("(g)", 3726s # arg_arg_g)); 3726s # for (l = connections; l != NULL; l = l->next) 3726s # { 3726s # GDBusConnection *connection = l->data; 3726s # g_dbus_connection_emit_signal (connection, 3726s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalG", 3726s # signal_variant, NULL); 3726s # } 3726s # g_variant_unref (signal_variant); 3726s # g_list_free_full (connections, g_object_unref); 3726s # } 3726s # 3726s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3726s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3726s # 3726s # #else 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3726s # 3726s # #endif 3726s # static void 3726s # org_project_signaling_iface_skeleton_finalize (GObject *object) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3726s # if (skeleton->priv->changed_properties_idle_source != NULL) 3726s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3726s # g_main_context_unref (skeleton->priv->context); 3726s # g_mutex_clear (&skeleton->priv->lock); 3726s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 3726s # { 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 3726s # #else 3726s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 3726s # #endif 3726s # 3726s # g_mutex_init (&skeleton->priv->lock); 3726s # skeleton->priv->context = g_main_context_ref_thread_default (); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 3726s # { 3726s # GObjectClass *gobject_class; 3726s # GDBusInterfaceSkeletonClass *skeleton_class; 3726s # 3726s # gobject_class = G_OBJECT_CLASS (klass); 3726s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 3726s # 3726s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3726s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 3726s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 3726s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 3726s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3726s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 3726s # #endif 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 3726s # { 3726s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 3726s # iface->single_arg_signal_g = _org_project_signaling_iface_on_signal_single_arg_signal_g; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_skeleton_new: 3726s # * 3726s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_skeleton_new (void) 3726s # { 3726s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 3726s # } 3726s # Error: 3726s # 3726s # /tmp/tmp9symyp9z/tmpbxdkexau.xml: 3726s # <node> 3726s # <interface name="org.project.SignalingIface"> 3726s # <signal name="SimpleSignal"/> 3726s # <signal name="SingleArgSignalH"> 3726s # <arg name="arg_h" type="h"/> 3726s # </signal> 3726s # </interface> 3726s # </node> 3726s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9symyp9z/tmpbxdkexau.xml', '--output', '-', '--body'] 3726s # Return code: 0 3726s # Output: 3726s # /* 3726s # * This file is generated by gdbus-codegen, do not modify it. 3726s # * 3726s # * The license of this code is the same as for the D-Bus interface description 3726s # * it was derived from. Note that it links to GLib, so must comply with the 3726s # * LGPL linking clauses. 3726s # */ 3726s # 3726s # #ifdef HAVE_CONFIG_H 3726s # # include "config.h" 3726s # #endif 3726s # 3726s # #include <string.h> 3726s # #ifdef G_OS_UNIX 3726s # # include <gio/gunixfdlist.h> 3726s # #endif 3726s # 3726s # #ifdef G_ENABLE_DEBUG 3726s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3726s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3726s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3726s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3726s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3726s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3726s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3726s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3726s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3726s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3726s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3726s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3726s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3726s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3726s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3726s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3726s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3726s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3726s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3726s # #else /* !G_ENABLE_DEBUG */ 3726s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3726s # * Do not access GValues directly in your code. Instead, use the 3726s # * g_value_get_*() functions 3726s # */ 3726s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3726s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3726s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3726s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3726s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3726s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3726s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3726s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3726s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3726s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3726s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3726s # #endif /* !G_ENABLE_DEBUG */ 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusArgInfo parent_struct; 3726s # gboolean use_gvariant; 3726s # } _ExtendedGDBusArgInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusMethodInfo parent_struct; 3726s # const gchar *signal_name; 3726s # gboolean pass_fdlist; 3726s # } _ExtendedGDBusMethodInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusSignalInfo parent_struct; 3726s # const gchar *signal_name; 3726s # } _ExtendedGDBusSignalInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusPropertyInfo parent_struct; 3726s # const gchar *hyphen_name; 3726s # guint use_gvariant : 1; 3726s # guint emits_changed_signal : 1; 3726s # } _ExtendedGDBusPropertyInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusInterfaceInfo parent_struct; 3726s # const gchar *hyphen_name; 3726s # } _ExtendedGDBusInterfaceInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # const _ExtendedGDBusPropertyInfo *info; 3726s # guint prop_id; 3726s # GValue orig_value; /* the value before the change */ 3726s # } ChangedProperty; 3726s # 3726s # static void 3726s # _changed_property_free (ChangedProperty *data) 3726s # { 3726s # g_value_unset (&data->orig_value); 3726s # g_free (data); 3726s # } 3726s # 3726s # static gboolean 3726s # _g_strv_equal0 (gchar **a, gchar **b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # guint n; 3726s # if (a == NULL && b == NULL) 3726s # { 3726s # ret = TRUE; 3726s # goto out; 3726s # } 3726s # if (a == NULL || b == NULL) 3726s # goto out; 3726s # if (g_strv_length (a) != g_strv_length (b)) 3726s # goto out; 3726s # for (n = 0; a[n] != NULL; n++) 3726s # if (g_strcmp0 (a[n], b[n]) != 0) 3726s # goto out; 3726s # ret = TRUE; 3726s # out: 3726s # return ret; 3726s # } 3726s # 3726s # static gboolean 3726s # _g_variant_equal0 (GVariant *a, GVariant *b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # if (a == NULL && b == NULL) 3726s # { 3726s # ret = TRUE; 3726s # goto out; 3726s # } 3726s # if (a == NULL || b == NULL) 3726s # goto out; 3726s # ret = g_variant_equal (a, b); 3726s # out: 3726s # return ret; 3726s # } 3726s # 3726s # G_GNUC_UNUSED static gboolean 3726s # _g_value_equal (const GValue *a, const GValue *b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3726s # switch (G_VALUE_TYPE (a)) 3726s # { 3726s # case G_TYPE_BOOLEAN: 3726s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3726s # break; 3726s # case G_TYPE_UCHAR: 3726s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3726s # break; 3726s # case G_TYPE_INT: 3726s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3726s # break; 3726s # case G_TYPE_UINT: 3726s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3726s # break; 3726s # case G_TYPE_INT64: 3726s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3726s # break; 3726s # case G_TYPE_UINT64: 3726s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3726s # break; 3726s # case G_TYPE_DOUBLE: 3726s # { 3726s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3726s # gdouble da = g_value_get_double (a); 3726s # gdouble db = g_value_get_double (b); 3726s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3726s # } 3726s # break; 3726s # case G_TYPE_STRING: 3726s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3726s # break; 3726s # case G_TYPE_VARIANT: 3726s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3726s # break; 3726s # default: 3726s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3726s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3726s # else 3726s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3726s # break; 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # /* ------------------------------------------------------------------------ 3726s # * Code for interface org.project.SignalingIface 3726s # * ------------------------------------------------------------------------ 3726s # */ 3726s # 3726s # /** 3726s # * SECTION:OrgProjectSignalingIface 3726s # * @title: OrgProjectSignalingIface 3726s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 3726s # * 3726s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface in C. 3726s # */ 3726s # 3726s # enum 3726s # { 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 3726s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H, 3726s # }; 3726s # 3726s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 3726s # 3726s # /* ---- Introspection data for org.project.SignalingIface ---- */ 3726s # 3726s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "SimpleSignal", 3726s # NULL, 3726s # NULL 3726s # }, 3726s # "simple-signal" 3726s # }; 3726s # 3726s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_arg_h = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "arg_h", 3726s # (gchar *) "h", 3726s # NULL 3726s # }, 3726s # FALSE 3726s # }; 3726s # 3726s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers[] = 3726s # { 3726s # &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_arg_h.parent_struct, 3726s # NULL 3726s # }; 3726s # 3726s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_h = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "SingleArgSignalH", 3726s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers, 3726s # NULL 3726s # }, 3726s # "single-arg-signal-h" 3726s # }; 3726s # 3726s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 3726s # { 3726s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 3726s # &_org_project_signaling_iface_signal_info_single_arg_signal_h.parent_struct, 3726s # NULL 3726s # }; 3726s # 3726s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "org.project.SignalingIface", 3726s # NULL, 3726s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 3726s # NULL, 3726s # NULL 3726s # }, 3726s # "org-project-signaling-iface", 3726s # }; 3726s # 3726s # 3726s # /** 3726s # * org_project_signaling_iface_interface_info: 3726s # * 3726s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface. 3726s # * 3726s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3726s # */ 3726s # GDBusInterfaceInfo * 3726s # org_project_signaling_iface_interface_info (void) 3726s # { 3726s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_override_properties: 3726s # * @klass: The class structure for a #GObject derived class. 3726s # * @property_id_begin: The property id to assign to the first overridden property. 3726s # * 3726s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 3726s # * The properties are overridden in the order they are defined. 3726s # * 3726s # * Returns: The last property id. 3726s # */ 3726s # guint 3726s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3726s # { 3726s # return property_id_begin - 1; 3726s # } 3726s # 3726s # 3726s # inline static void 3726s # org_project_signaling_iface_signal_marshal_simple_signal ( 3726s # GClosure *closure, 3726s # GValue *return_value, 3726s # unsigned int n_param_values, 3726s # const GValue *param_values, 3726s # void *invocation_hint, 3726s # void *marshal_data) 3726s # { 3726s # g_cclosure_marshal_VOID__VOID (closure, 3726s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3726s # } 3726s # 3726s # inline static void 3726s # org_project_signaling_iface_signal_marshal_single_arg_signal_h ( 3726s # GClosure *closure, 3726s # GValue *return_value, 3726s # unsigned int n_param_values, 3726s # const GValue *param_values, 3726s # void *invocation_hint, 3726s # void *marshal_data) 3726s # { 3726s # g_cclosure_marshal_VOID__VARIANT (closure, 3726s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3726s # } 3726s # 3726s # 3726s # /** 3726s # * OrgProjectSignalingIface: 3726s # * 3726s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceIface: 3726s # * @parent_iface: The parent interface. 3726s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 3726s # * @single_arg_signal_h: Handler for the #OrgProjectSignalingIface::single-arg-signal-h signal. 3726s # * 3726s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # */ 3726s # 3726s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 3726s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 3726s # 3726s # static void 3726s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 3726s # { 3726s # /* GObject signals for received D-Bus signals: */ 3726s # /** 3726s # * OrgProjectSignalingIface::simple-signal: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * 3726s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SimpleSignal">"SimpleSignal"</link> is received. 3726s # * 3726s # * 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. 3726s # */ 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 3726s # g_signal_new ("simple-signal", 3726s # G_TYPE_FROM_INTERFACE (iface), 3726s # G_SIGNAL_RUN_LAST, 3726s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 3726s # NULL, 3726s # NULL, 3726s # org_project_signaling_iface_signal_marshal_simple_signal, 3726s # G_TYPE_NONE, 3726s # 0); 3726s # 3726s # /** 3726s # * OrgProjectSignalingIface::single-arg-signal-h: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * @arg_arg_h: Argument. 3726s # * 3726s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalH">"SingleArgSignalH"</link> is received. 3726s # * 3726s # * 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. 3726s # */ 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H] = 3726s # g_signal_new ("single-arg-signal-h", 3726s # G_TYPE_FROM_INTERFACE (iface), 3726s # G_SIGNAL_RUN_LAST, 3726s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_h), 3726s # NULL, 3726s # NULL, 3726s # org_project_signaling_iface_signal_marshal_single_arg_signal_h, 3726s # G_TYPE_NONE, 3726s # 1, G_TYPE_VARIANT); 3726s # 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_emit_simple_signal: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * 3726s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SimpleSignal">"SimpleSignal"</link> D-Bus signal. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_emit_simple_signal ( 3726s # OrgProjectSignalingIface *object) 3726s # { 3726s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_emit_single_arg_signal_h: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * @arg_arg_h: Argument to pass with the signal. 3726s # * 3726s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalH">"SingleArgSignalH"</link> D-Bus signal. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_emit_single_arg_signal_h ( 3726s # OrgProjectSignalingIface *object, 3726s # GVariant *arg_arg_h) 3726s # { 3726s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H], 0, arg_arg_h); 3726s # } 3726s # 3726s # /* ------------------------------------------------------------------------ */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceProxy: 3726s # * 3726s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceProxyClass: 3726s # * @parent_class: The parent class. 3726s # * 3726s # * Class structure for #OrgProjectSignalingIfaceProxy. 3726s # */ 3726s # 3726s # struct _OrgProjectSignalingIfaceProxyPrivate 3726s # { 3726s # GData *qdata; 3726s # }; 3726s # 3726s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3726s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3726s # 3726s # #else 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3726s # 3726s # #endif 3726s # static void 3726s # org_project_signaling_iface_proxy_finalize (GObject *object) 3726s # { 3726s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 3726s # g_datalist_clear (&proxy->priv->qdata); 3726s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3726s # guint prop_id G_GNUC_UNUSED, 3726s # GValue *value G_GNUC_UNUSED, 3726s # GParamSpec *pspec G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3726s # guint prop_id G_GNUC_UNUSED, 3726s # const GValue *value G_GNUC_UNUSED, 3726s # GParamSpec *pspec G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 3726s # const gchar *sender_name G_GNUC_UNUSED, 3726s # const gchar *signal_name, 3726s # GVariant *parameters) 3726s # { 3726s # _ExtendedGDBusSignalInfo *info; 3726s # GVariantIter iter; 3726s # GVariant *child; 3726s # GValue *paramv; 3726s # gsize num_params; 3726s # gsize n; 3726s # guint signal_id; 3726s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 3726s # if (info == NULL) 3726s # return; 3726s # num_params = g_variant_n_children (parameters); 3726s # paramv = g_new0 (GValue, num_params + 1); 3726s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_set_object (¶mv[0], proxy); 3726s # g_variant_iter_init (&iter, parameters); 3726s # n = 1; 3726s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3726s # { 3726s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3726s # if (arg_info->use_gvariant) 3726s # { 3726s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3726s # g_value_set_variant (¶mv[n], child); 3726s # n++; 3726s # } 3726s # else 3726s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3726s # g_variant_unref (child); 3726s # } 3726s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_signal_emitv (paramv, signal_id, 0, NULL); 3726s # for (n = 0; n < num_params + 1; n++) 3726s # g_value_unset (¶mv[n]); 3726s # g_free (paramv); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 3726s # GVariant *changed_properties, 3726s # const gchar *const *invalidated_properties) 3726s # { 3726s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 3726s # guint n; 3726s # const gchar *key; 3726s # GVariantIter *iter; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # g_variant_get (changed_properties, "a{sv}", &iter); 3726s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3726s # { 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 3726s # g_datalist_remove_data (&proxy->priv->qdata, key); 3726s # if (info != NULL) 3726s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3726s # } 3726s # g_variant_iter_free (iter); 3726s # for (n = 0; invalidated_properties[n] != NULL; n++) 3726s # { 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 3726s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3726s # if (info != NULL) 3726s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3726s # } 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 3726s # { 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 3726s # #else 3726s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 3726s # #endif 3726s # 3726s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 3726s # { 3726s # GObjectClass *gobject_class; 3726s # GDBusProxyClass *proxy_class; 3726s # 3726s # gobject_class = G_OBJECT_CLASS (klass); 3726s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 3726s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 3726s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 3726s # 3726s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3726s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 3726s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3726s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 3726s # #endif 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new: 3726s # * @connection: A #GDBusConnection. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3726s # * @user_data: User data to pass to @callback. 3726s # * 3726s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new() for more details. 3726s # * 3726s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3726s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_proxy_new ( 3726s # GDBusConnection *connection, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GAsyncReadyCallback callback, 3726s # gpointer user_data) 3726s # { 3726s # 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); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_finish: 3726s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_finish ( 3726s # GAsyncResult *res, 3726s # GError **error) 3726s # { 3726s # GObject *ret; 3726s # GObject *source_object; 3726s # source_object = g_async_result_get_source_object (res); 3726s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3726s # g_object_unref (source_object); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_sync: 3726s # * @connection: A #GDBusConnection. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new_sync() for more details. 3726s # * 3726s # * The calling thread is blocked until a reply is received. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_sync ( 3726s # GDBusConnection *connection, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GError **error) 3726s # { 3726s # GInitable *ret; 3726s # 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); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus: 3726s # * @bus_type: A #GBusType. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: A bus name (well-known or unique). 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3726s # * @user_data: User data to pass to @callback. 3726s # * 3726s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3726s # * 3726s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3726s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_proxy_new_for_bus ( 3726s # GBusType bus_type, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GAsyncReadyCallback callback, 3726s # gpointer user_data) 3726s # { 3726s # 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); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus_finish: 3726s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_for_bus_finish ( 3726s # GAsyncResult *res, 3726s # GError **error) 3726s # { 3726s # GObject *ret; 3726s # GObject *source_object; 3726s # source_object = g_async_result_get_source_object (res); 3726s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3726s # g_object_unref (source_object); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus_sync: 3726s # * @bus_type: A #GBusType. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: A bus name (well-known or unique). 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3726s # * 3726s # * The calling thread is blocked until a reply is received. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_for_bus_sync ( 3726s # GBusType bus_type, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GError **error) 3726s # { 3726s # GInitable *ret; 3726s # 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); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # 3726s # /* ------------------------------------------------------------------------ */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceSkeleton: 3726s # * 3726s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceSkeletonClass: 3726s # * @parent_class: The parent class. 3726s # * 3726s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 3726s # */ 3726s # 3726s # struct _OrgProjectSignalingIfaceSkeletonPrivate 3726s # { 3726s # GValue *properties; 3726s # GList *changed_properties; 3726s # GSource *changed_properties_idle_source; 3726s # GMainContext *context; 3726s # GMutex lock; 3726s # }; 3726s # 3726s # static void 3726s # _org_project_signaling_iface_skeleton_handle_method_call ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name, 3726s # const gchar *method_name, 3726s # GVariant *parameters, 3726s # GDBusMethodInvocation *invocation, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # _ExtendedGDBusMethodInfo *info; 3726s # GVariantIter iter; 3726s # GVariant *child; 3726s # GValue *paramv; 3726s # gsize num_params; 3726s # guint num_extra; 3726s # gsize n; 3726s # guint signal_id; 3726s # GValue return_value = G_VALUE_INIT; 3726s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3726s # g_assert (info != NULL); 3726s # num_params = g_variant_n_children (parameters); 3726s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3726s # n = 0; 3726s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_set_object (¶mv[n++], skeleton); 3726s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3726s # g_value_set_object (¶mv[n++], invocation); 3726s # if (info->pass_fdlist) 3726s # { 3726s # #ifdef G_OS_UNIX 3726s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3726s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3726s # #else 3726s # g_assert_not_reached (); 3726s # #endif 3726s # } 3726s # g_variant_iter_init (&iter, parameters); 3726s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3726s # { 3726s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3726s # if (arg_info->use_gvariant) 3726s # { 3726s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3726s # g_value_set_variant (¶mv[n], child); 3726s # n++; 3726s # } 3726s # else 3726s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3726s # g_variant_unref (child); 3726s # } 3726s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3726s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3726s # if (!g_value_get_boolean (&return_value)) 3726s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3726s # g_value_unset (&return_value); 3726s # for (n = 0; n < num_params + num_extra; n++) 3726s # g_value_unset (¶mv[n]); 3726s # g_free (paramv); 3726s # } 3726s # 3726s # static GVariant * 3726s # _org_project_signaling_iface_skeleton_handle_get_property ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name G_GNUC_UNUSED, 3726s # const gchar *property_name, 3726s # GError **error, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # GValue value = G_VALUE_INIT; 3726s # GParamSpec *pspec; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # GVariant *ret; 3726s # ret = NULL; 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3726s # g_assert (info != NULL); 3726s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3726s # if (pspec == NULL) 3726s # { 3726s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3726s # } 3726s # else 3726s # { 3726s # g_value_init (&value, pspec->value_type); 3726s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3726s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3726s # g_value_unset (&value); 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # static gboolean 3726s # _org_project_signaling_iface_skeleton_handle_set_property ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name G_GNUC_UNUSED, 3726s # const gchar *property_name, 3726s # GVariant *variant, 3726s # GError **error, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # GValue value = G_VALUE_INIT; 3726s # GParamSpec *pspec; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # gboolean ret; 3726s # ret = FALSE; 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3726s # g_assert (info != NULL); 3726s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3726s # if (pspec == NULL) 3726s # { 3726s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3726s # } 3726s # else 3726s # { 3726s # if (info->use_gvariant) 3726s # g_value_set_variant (&value, variant); 3726s # else 3726s # g_dbus_gvariant_to_gvalue (variant, &value); 3726s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3726s # g_value_unset (&value); 3726s # ret = TRUE; 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 3726s # { 3726s # _org_project_signaling_iface_skeleton_handle_method_call, 3726s # _org_project_signaling_iface_skeleton_handle_get_property, 3726s # _org_project_signaling_iface_skeleton_handle_set_property, 3726s # {NULL} 3726s # }; 3726s # 3726s # static GDBusInterfaceInfo * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3726s # { 3726s # return org_project_signaling_iface_interface_info (); 3726s # } 3726s # 3726s # static GDBusInterfaceVTable * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3726s # { 3726s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 3726s # } 3726s # 3726s # static GVariant * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 3726s # 3726s # GVariantBuilder builder; 3726s # guint n; 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3726s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3726s # #else 3726s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3726s # #endif 3726s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 3726s # goto out; 3726s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 3726s # { 3726s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 3726s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3726s # { 3726s # GVariant *value; 3726s # 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); 3726s # if (value != NULL) 3726s # { 3726s # g_variant_take_ref (value); 3726s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3726s # g_variant_unref (value); 3726s # } 3726s # } 3726s # } 3726s # out: 3726s # return g_variant_builder_end (&builder); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # _org_project_signaling_iface_on_signal_simple_signal ( 3726s # OrgProjectSignalingIface *object) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # 3726s # GList *connections, *l; 3726s # GVariant *signal_variant; 3726s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3726s # 3726s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 3726s # for (l = connections; l != NULL; l = l->next) 3726s # { 3726s # GDBusConnection *connection = l->data; 3726s # g_dbus_connection_emit_signal (connection, 3726s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 3726s # signal_variant, NULL); 3726s # } 3726s # g_variant_unref (signal_variant); 3726s # g_list_free_full (connections, g_object_unref); 3726s # } 3726s # 3726s # static void 3726s # _org_project_signaling_iface_on_signal_single_arg_signal_h ( 3726s # OrgProjectSignalingIface *object, 3726s # GVariant *arg_arg_h) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # 3726s # GList *connections, *l; 3726s # GVariant *signal_variant; 3726s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3726s # 3726s # signal_variant = g_variant_ref_sink (g_variant_new ("(@h)", 3726s # arg_arg_h)); 3726s # for (l = connections; l != NULL; l = l->next) 3726s # { 3726s # GDBusConnection *connection = l->data; 3726s # g_dbus_connection_emit_signal (connection, 3726s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalH", 3726s # signal_variant, NULL); 3726s # } 3726s # g_variant_unref (signal_variant); 3726s # g_list_free_full (connections, g_object_unref); 3726s # } 3726s # 3726s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3726s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3726s # 3726s # #else 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3726s # 3726s # #endif 3726s # static void 3726s # org_project_signaling_iface_skeleton_finalize (GObject *object) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3726s # if (skeleton->priv->changed_properties_idle_source != NULL) 3726s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3726s # g_main_context_unref (skeleton->priv->context); 3726s # g_mutex_clear (&skeleton->priv->lock); 3726s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 3726s # { 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 3726s # #else 3726s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 3726s # #endif 3726s # 3726s # g_mutex_init (&skeleton->priv->lock); 3726s # skeleton->priv->context = g_main_context_ref_thread_default (); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 3726s # { 3726s # GObjectClass *gobject_class; 3726s # GDBusInterfaceSkeletonClass *skeleton_class; 3726s # 3726s # gobject_class = G_OBJECT_CLASS (klass); 3726s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 3726s # 3726s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3726s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 3726s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 3726s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 3726s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3726s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 3726s # #endif 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 3726s # { 3726s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 3726s # iface->single_arg_signal_h = _org_project_signaling_iface_on_signal_single_arg_signal_h; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_skeleton_new: 3726s # * 3726s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_skeleton_new (void) 3726s # { 3726s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 3726s # } 3726s # Error: 3726s # 3726s # /tmp/tmp9symyp9z/tmp5svuwe4z.xml: 3726s # <node> 3726s # <interface name="org.project.SignalingIface"> 3726s # <signal name="SimpleSignal"/> 3726s # <signal name="SingleArgSignalAy"> 3726s # <arg name="arg_ay" type="ay"/> 3726s # </signal> 3726s # </interface> 3726s # </node> 3726s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9symyp9z/tmp5svuwe4z.xml', '--output', '-', '--body'] 3726s # Return code: 0 3726s # Output: 3726s # /* 3726s # * This file is generated by gdbus-codegen, do not modify it. 3726s # * 3726s # * The license of this code is the same as for the D-Bus interface description 3726s # * it was derived from. Note that it links to GLib, so must comply with the 3726s # * LGPL linking clauses. 3726s # */ 3726s # 3726s # #ifdef HAVE_CONFIG_H 3726s # # include "config.h" 3726s # #endif 3726s # 3726s # #include <string.h> 3726s # #ifdef G_OS_UNIX 3726s # # include <gio/gunixfdlist.h> 3726s # #endif 3726s # 3726s # #ifdef G_ENABLE_DEBUG 3726s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3726s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3726s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3726s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3726s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3726s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3726s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3726s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3726s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3726s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3726s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3726s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3726s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3726s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3726s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3726s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3726s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3726s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3726s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3726s # #else /* !G_ENABLE_DEBUG */ 3726s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3726s # * Do not access GValues directly in your code. Instead, use the 3726s # * g_value_get_*() functions 3726s # */ 3726s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3726s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3726s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3726s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3726s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3726s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3726s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3726s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3726s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3726s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3726s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3726s # #endif /* !G_ENABLE_DEBUG */ 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusArgInfo parent_struct; 3726s # gboolean use_gvariant; 3726s # } _ExtendedGDBusArgInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusMethodInfo parent_struct; 3726s # const gchar *signal_name; 3726s # gboolean pass_fdlist; 3726s # } _ExtendedGDBusMethodInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusSignalInfo parent_struct; 3726s # const gchar *signal_name; 3726s # } _ExtendedGDBusSignalInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusPropertyInfo parent_struct; 3726s # const gchar *hyphen_name; 3726s # guint use_gvariant : 1; 3726s # guint emits_changed_signal : 1; 3726s # } _ExtendedGDBusPropertyInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusInterfaceInfo parent_struct; 3726s # const gchar *hyphen_name; 3726s # } _ExtendedGDBusInterfaceInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # const _ExtendedGDBusPropertyInfo *info; 3726s # guint prop_id; 3726s # GValue orig_value; /* the value before the change */ 3726s # } ChangedProperty; 3726s # 3726s # static void 3726s # _changed_property_free (ChangedProperty *data) 3726s # { 3726s # g_value_unset (&data->orig_value); 3726s # g_free (data); 3726s # } 3726s # 3726s # static gboolean 3726s # _g_strv_equal0 (gchar **a, gchar **b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # guint n; 3726s # if (a == NULL && b == NULL) 3726s # { 3726s # ret = TRUE; 3726s # goto out; 3726s # } 3726s # if (a == NULL || b == NULL) 3726s # goto out; 3726s # if (g_strv_length (a) != g_strv_length (b)) 3726s # goto out; 3726s # for (n = 0; a[n] != NULL; n++) 3726s # if (g_strcmp0 (a[n], b[n]) != 0) 3726s # goto out; 3726s # ret = TRUE; 3726s # out: 3726s # return ret; 3726s # } 3726s # 3726s # static gboolean 3726s # _g_variant_equal0 (GVariant *a, GVariant *b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # if (a == NULL && b == NULL) 3726s # { 3726s # ret = TRUE; 3726s # goto out; 3726s # } 3726s # if (a == NULL || b == NULL) 3726s # goto out; 3726s # ret = g_variant_equal (a, b); 3726s # out: 3726s # return ret; 3726s # } 3726s # 3726s # G_GNUC_UNUSED static gboolean 3726s # _g_value_equal (const GValue *a, const GValue *b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3726s # switch (G_VALUE_TYPE (a)) 3726s # { 3726s # case G_TYPE_BOOLEAN: 3726s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3726s # break; 3726s # case G_TYPE_UCHAR: 3726s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3726s # break; 3726s # case G_TYPE_INT: 3726s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3726s # break; 3726s # case G_TYPE_UINT: 3726s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3726s # break; 3726s # case G_TYPE_INT64: 3726s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3726s # break; 3726s # case G_TYPE_UINT64: 3726s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3726s # break; 3726s # case G_TYPE_DOUBLE: 3726s # { 3726s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3726s # gdouble da = g_value_get_double (a); 3726s # gdouble db = g_value_get_double (b); 3726s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3726s # } 3726s # break; 3726s # case G_TYPE_STRING: 3726s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3726s # break; 3726s # case G_TYPE_VARIANT: 3726s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3726s # break; 3726s # default: 3726s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3726s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3726s # else 3726s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3726s # break; 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # /* ------------------------------------------------------------------------ 3726s # * Code for interface org.project.SignalingIface 3726s # * ------------------------------------------------------------------------ 3726s # */ 3726s # 3726s # /** 3726s # * SECTION:OrgProjectSignalingIface 3726s # * @title: OrgProjectSignalingIface 3726s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 3726s # * 3726s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface in C. 3726s # */ 3726s # 3726s # enum 3726s # { 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 3726s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY, 3726s # }; 3726s # 3726s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 3726s # 3726s # /* ---- Introspection data for org.project.SignalingIface ---- */ 3726s # 3726s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "SimpleSignal", 3726s # NULL, 3726s # NULL 3726s # }, 3726s # "simple-signal" 3726s # }; 3726s # 3726s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_arg_ay = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "arg_ay", 3726s # (gchar *) "ay", 3726s # NULL 3726s # }, 3726s # FALSE 3726s # }; 3726s # 3726s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers[] = 3726s # { 3726s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_arg_ay.parent_struct, 3726s # NULL 3726s # }; 3726s # 3726s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "SingleArgSignalAy", 3726s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers, 3726s # NULL 3726s # }, 3726s # "single-arg-signal-ay" 3726s # }; 3726s # 3726s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 3726s # { 3726s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 3726s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay.parent_struct, 3726s # NULL 3726s # }; 3726s # 3726s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "org.project.SignalingIface", 3726s # NULL, 3726s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 3726s # NULL, 3726s # NULL 3726s # }, 3726s # "org-project-signaling-iface", 3726s # }; 3726s # 3726s # 3726s # /** 3726s # * org_project_signaling_iface_interface_info: 3726s # * 3726s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface. 3726s # * 3726s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3726s # */ 3726s # GDBusInterfaceInfo * 3726s # org_project_signaling_iface_interface_info (void) 3726s # { 3726s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_override_properties: 3726s # * @klass: The class structure for a #GObject derived class. 3726s # * @property_id_begin: The property id to assign to the first overridden property. 3726s # * 3726s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 3726s # * The properties are overridden in the order they are defined. 3726s # * 3726s # * Returns: The last property id. 3726s # */ 3726s # guint 3726s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3726s # { 3726s # return property_id_begin - 1; 3726s # } 3726s # 3726s # 3726s # inline static void 3726s # org_project_signaling_iface_signal_marshal_simple_signal ( 3726s # GClosure *closure, 3726s # GValue *return_value, 3726s # unsigned int n_param_values, 3726s # const GValue *param_values, 3726s # void *invocation_hint, 3726s # void *marshal_data) 3726s # { 3726s # g_cclosure_marshal_VOID__VOID (closure, 3726s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3726s # } 3726s # 3726s # inline static void 3726s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay ( 3726s # GClosure *closure, 3726s # GValue *return_value, 3726s # unsigned int n_param_values, 3726s # const GValue *param_values, 3726s # void *invocation_hint, 3726s # void *marshal_data) 3726s # { 3726s # g_cclosure_marshal_VOID__STRING (closure, 3726s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3726s # } 3726s # 3726s # 3726s # /** 3726s # * OrgProjectSignalingIface: 3726s # * 3726s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceIface: 3726s # * @parent_iface: The parent interface. 3726s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 3726s # * @single_arg_signal_ay: Handler for the #OrgProjectSignalingIface::single-arg-signal-ay signal. 3726s # * 3726s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # */ 3726s # 3726s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 3726s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 3726s # 3726s # static void 3726s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 3726s # { 3726s # /* GObject signals for received D-Bus signals: */ 3726s # /** 3726s # * OrgProjectSignalingIface::simple-signal: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * 3726s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SimpleSignal">"SimpleSignal"</link> is received. 3726s # * 3726s # * 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. 3726s # */ 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 3726s # g_signal_new ("simple-signal", 3726s # G_TYPE_FROM_INTERFACE (iface), 3726s # G_SIGNAL_RUN_LAST, 3726s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 3726s # NULL, 3726s # NULL, 3726s # org_project_signaling_iface_signal_marshal_simple_signal, 3726s # G_TYPE_NONE, 3726s # 0); 3726s # 3726s # /** 3726s # * OrgProjectSignalingIface::single-arg-signal-ay: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * @arg_arg_ay: Argument. 3726s # * 3726s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalAy">"SingleArgSignalAy"</link> is received. 3726s # * 3726s # * 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. 3726s # */ 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY] = 3726s # g_signal_new ("single-arg-signal-ay", 3726s # G_TYPE_FROM_INTERFACE (iface), 3726s # G_SIGNAL_RUN_LAST, 3726s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ay), 3726s # NULL, 3726s # NULL, 3726s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay, 3726s # G_TYPE_NONE, 3726s # 1, G_TYPE_STRING); 3726s # 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_emit_simple_signal: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * 3726s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SimpleSignal">"SimpleSignal"</link> D-Bus signal. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_emit_simple_signal ( 3726s # OrgProjectSignalingIface *object) 3726s # { 3726s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_emit_single_arg_signal_ay: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * @arg_arg_ay: Argument to pass with the signal. 3726s # * 3726s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalAy">"SingleArgSignalAy"</link> D-Bus signal. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_emit_single_arg_signal_ay ( 3726s # OrgProjectSignalingIface *object, 3726s # const gchar *arg_arg_ay) 3726s # { 3726s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY], 0, arg_arg_ay); 3726s # } 3726s # 3726s # /* ------------------------------------------------------------------------ */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceProxy: 3726s # * 3726s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceProxyClass: 3726s # * @parent_class: The parent class. 3726s # * 3726s # * Class structure for #OrgProjectSignalingIfaceProxy. 3726s # */ 3726s # 3726s # struct _OrgProjectSignalingIfaceProxyPrivate 3726s # { 3726s # GData *qdata; 3726s # }; 3726s # 3726s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3726s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3726s # 3726s # #else 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3726s # 3726s # #endif 3726s # static void 3726s # org_project_signaling_iface_proxy_finalize (GObject *object) 3726s # { 3726s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 3726s # g_datalist_clear (&proxy->priv->qdata); 3726s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3726s # guint prop_id G_GNUC_UNUSED, 3726s # GValue *value G_GNUC_UNUSED, 3726s # GParamSpec *pspec G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3726s # guint prop_id G_GNUC_UNUSED, 3726s # const GValue *value G_GNUC_UNUSED, 3726s # GParamSpec *pspec G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 3726s # const gchar *sender_name G_GNUC_UNUSED, 3726s # const gchar *signal_name, 3726s # GVariant *parameters) 3726s # { 3726s # _ExtendedGDBusSignalInfo *info; 3726s # GVariantIter iter; 3726s # GVariant *child; 3726s # GValue *paramv; 3726s # gsize num_params; 3726s # gsize n; 3726s # guint signal_id; 3726s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 3726s # if (info == NULL) 3726s # return; 3726s # num_params = g_variant_n_children (parameters); 3726s # paramv = g_new0 (GValue, num_params + 1); 3726s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_set_object (¶mv[0], proxy); 3726s # g_variant_iter_init (&iter, parameters); 3726s # n = 1; 3726s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3726s # { 3726s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3726s # if (arg_info->use_gvariant) 3726s # { 3726s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3726s # g_value_set_variant (¶mv[n], child); 3726s # n++; 3726s # } 3726s # else 3726s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3726s # g_variant_unref (child); 3726s # } 3726s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_signal_emitv (paramv, signal_id, 0, NULL); 3726s # for (n = 0; n < num_params + 1; n++) 3726s # g_value_unset (¶mv[n]); 3726s # g_free (paramv); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 3726s # GVariant *changed_properties, 3726s # const gchar *const *invalidated_properties) 3726s # { 3726s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 3726s # guint n; 3726s # const gchar *key; 3726s # GVariantIter *iter; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # g_variant_get (changed_properties, "a{sv}", &iter); 3726s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3726s # { 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 3726s # g_datalist_remove_data (&proxy->priv->qdata, key); 3726s # if (info != NULL) 3726s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3726s # } 3726s # g_variant_iter_free (iter); 3726s # for (n = 0; invalidated_properties[n] != NULL; n++) 3726s # { 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 3726s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3726s # if (info != NULL) 3726s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3726s # } 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 3726s # { 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 3726s # #else 3726s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 3726s # #endif 3726s # 3726s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 3726s # { 3726s # GObjectClass *gobject_class; 3726s # GDBusProxyClass *proxy_class; 3726s # 3726s # gobject_class = G_OBJECT_CLASS (klass); 3726s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 3726s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 3726s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 3726s # 3726s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3726s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 3726s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3726s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 3726s # #endif 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new: 3726s # * @connection: A #GDBusConnection. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3726s # * @user_data: User data to pass to @callback. 3726s # * 3726s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new() for more details. 3726s # * 3726s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3726s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_proxy_new ( 3726s # GDBusConnection *connection, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GAsyncReadyCallback callback, 3726s # gpointer user_data) 3726s # { 3726s # 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); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_finish: 3726s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_finish ( 3726s # GAsyncResult *res, 3726s # GError **error) 3726s # { 3726s # GObject *ret; 3726s # GObject *source_object; 3726s # source_object = g_async_result_get_source_object (res); 3726s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3726s # g_object_unref (source_object); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_sync: 3726s # * @connection: A #GDBusConnection. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new_sync() for more details. 3726s # * 3726s # * The calling thread is blocked until a reply is received. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_sync ( 3726s # GDBusConnection *connection, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GError **error) 3726s # { 3726s # GInitable *ret; 3726s # 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); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus: 3726s # * @bus_type: A #GBusType. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: A bus name (well-known or unique). 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3726s # * @user_data: User data to pass to @callback. 3726s # * 3726s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3726s # * 3726s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3726s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_proxy_new_for_bus ( 3726s # GBusType bus_type, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GAsyncReadyCallback callback, 3726s # gpointer user_data) 3726s # { 3726s # 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); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus_finish: 3726s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_for_bus_finish ( 3726s # GAsyncResult *res, 3726s # GError **error) 3726s # { 3726s # GObject *ret; 3726s # GObject *source_object; 3726s # source_object = g_async_result_get_source_object (res); 3726s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3726s # g_object_unref (source_object); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus_sync: 3726s # * @bus_type: A #GBusType. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: A bus name (well-known or unique). 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3726s # * 3726s # * The calling thread is blocked until a reply is received. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_for_bus_sync ( 3726s # GBusType bus_type, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GError **error) 3726s # { 3726s # GInitable *ret; 3726s # 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); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # 3726s # /* ------------------------------------------------------------------------ */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceSkeleton: 3726s # * 3726s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceSkeletonClass: 3726s # * @parent_class: The parent class. 3726s # * 3726s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 3726s # */ 3726s # 3726s # struct _OrgProjectSignalingIfaceSkeletonPrivate 3726s # { 3726s # GValue *properties; 3726s # GList *changed_properties; 3726s # GSource *changed_properties_idle_source; 3726s # GMainContext *context; 3726s # GMutex lock; 3726s # }; 3726s # 3726s # static void 3726s # _org_project_signaling_iface_skeleton_handle_method_call ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name, 3726s # const gchar *method_name, 3726s # GVariant *parameters, 3726s # GDBusMethodInvocation *invocation, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # _ExtendedGDBusMethodInfo *info; 3726s # GVariantIter iter; 3726s # GVariant *child; 3726s # GValue *paramv; 3726s # gsize num_params; 3726s # guint num_extra; 3726s # gsize n; 3726s # guint signal_id; 3726s # GValue return_value = G_VALUE_INIT; 3726s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3726s # g_assert (info != NULL); 3726s # num_params = g_variant_n_children (parameters); 3726s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3726s # n = 0; 3726s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_set_object (¶mv[n++], skeleton); 3726s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3726s # g_value_set_object (¶mv[n++], invocation); 3726s # if (info->pass_fdlist) 3726s # { 3726s # #ifdef G_OS_UNIX 3726s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3726s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3726s # #else 3726s # g_assert_not_reached (); 3726s # #endif 3726s # } 3726s # g_variant_iter_init (&iter, parameters); 3726s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3726s # { 3726s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3726s # if (arg_info->use_gvariant) 3726s # { 3726s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3726s # g_value_set_variant (¶mv[n], child); 3726s # n++; 3726s # } 3726s # else 3726s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3726s # g_variant_unref (child); 3726s # } 3726s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3726s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3726s # if (!g_value_get_boolean (&return_value)) 3726s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3726s # g_value_unset (&return_value); 3726s # for (n = 0; n < num_params + num_extra; n++) 3726s # g_value_unset (¶mv[n]); 3726s # g_free (paramv); 3726s # } 3726s # 3726s # static GVariant * 3726s # _org_project_signaling_iface_skeleton_handle_get_property ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name G_GNUC_UNUSED, 3726s # const gchar *property_name, 3726s # GError **error, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # GValue value = G_VALUE_INIT; 3726s # GParamSpec *pspec; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # GVariant *ret; 3726s # ret = NULL; 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3726s # g_assert (info != NULL); 3726s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3726s # if (pspec == NULL) 3726s # { 3726s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3726s # } 3726s # else 3726s # { 3726s # g_value_init (&value, pspec->value_type); 3726s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3726s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3726s # g_value_unset (&value); 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # static gboolean 3726s # _org_project_signaling_iface_skeleton_handle_set_property ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name G_GNUC_UNUSED, 3726s # const gchar *property_name, 3726s # GVariant *variant, 3726s # GError **error, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # GValue value = G_VALUE_INIT; 3726s # GParamSpec *pspec; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # gboolean ret; 3726s # ret = FALSE; 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3726s # g_assert (info != NULL); 3726s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3726s # if (pspec == NULL) 3726s # { 3726s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3726s # } 3726s # else 3726s # { 3726s # if (info->use_gvariant) 3726s # g_value_set_variant (&value, variant); 3726s # else 3726s # g_dbus_gvariant_to_gvalue (variant, &value); 3726s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3726s # g_value_unset (&value); 3726s # ret = TRUE; 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 3726s # { 3726s # _org_project_signaling_iface_skeleton_handle_method_call, 3726s # _org_project_signaling_iface_skeleton_handle_get_property, 3726s # _org_project_signaling_iface_skeleton_handle_set_property, 3726s # {NULL} 3726s # }; 3726s # 3726s # static GDBusInterfaceInfo * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3726s # { 3726s # return org_project_signaling_iface_interface_info (); 3726s # } 3726s # 3726s # static GDBusInterfaceVTable * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3726s # { 3726s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 3726s # } 3726s # 3726s # static GVariant * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 3726s # 3726s # GVariantBuilder builder; 3726s # guint n; 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3726s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3726s # #else 3726s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3726s # #endif 3726s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 3726s # goto out; 3726s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 3726s # { 3726s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 3726s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3726s # { 3726s # GVariant *value; 3726s # 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); 3726s # if (value != NULL) 3726s # { 3726s # g_variant_take_ref (value); 3726s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3726s # g_variant_unref (value); 3726s # } 3726s # } 3726s # } 3726s # out: 3726s # return g_variant_builder_end (&builder); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # _org_project_signaling_iface_on_signal_simple_signal ( 3726s # OrgProjectSignalingIface *object) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # 3726s # GList *connections, *l; 3726s # GVariant *signal_variant; 3726s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3726s # 3726s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 3726s # for (l = connections; l != NULL; l = l->next) 3726s # { 3726s # GDBusConnection *connection = l->data; 3726s # g_dbus_connection_emit_signal (connection, 3726s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 3726s # signal_variant, NULL); 3726s # } 3726s # g_variant_unref (signal_variant); 3726s # g_list_free_full (connections, g_object_unref); 3726s # } 3726s # 3726s # static void 3726s # _org_project_signaling_iface_on_signal_single_arg_signal_ay ( 3726s # OrgProjectSignalingIface *object, 3726s # const gchar *arg_arg_ay) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # 3726s # GList *connections, *l; 3726s # GVariant *signal_variant; 3726s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3726s # 3726s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ay)", 3726s # arg_arg_ay)); 3726s # for (l = connections; l != NULL; l = l->next) 3726s # { 3726s # GDBusConnection *connection = l->data; 3726s # g_dbus_connection_emit_signal (connection, 3726s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAy", 3726s # signal_variant, NULL); 3726s # } 3726s # g_variant_unref (signal_variant); 3726s # g_list_free_full (connections, g_object_unref); 3726s # } 3726s # 3726s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3726s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3726s # 3726s # #else 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3726s # 3726s # #endif 3726s # static void 3726s # org_project_signaling_iface_skeleton_finalize (GObject *object) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3726s # if (skeleton->priv->changed_properties_idle_source != NULL) 3726s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3726s # g_main_context_unref (skeleton->priv->context); 3726s # g_mutex_clear (&skeleton->priv->lock); 3726s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 3726s # { 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 3726s # #else 3726s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 3726s # #endif 3726s # 3726s # g_mutex_init (&skeleton->priv->lock); 3726s # skeleton->priv->context = g_main_context_ref_thread_default (); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 3726s # { 3726s # GObjectClass *gobject_class; 3726s # GDBusInterfaceSkeletonClass *skeleton_class; 3726s # 3726s # gobject_class = G_OBJECT_CLASS (klass); 3726s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 3726s # 3726s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3726s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 3726s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 3726s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 3726s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3726s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 3726s # #endif 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 3726s # { 3726s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 3726s # iface->single_arg_signal_ay = _org_project_signaling_iface_on_signal_single_arg_signal_ay; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_skeleton_new: 3726s # * 3726s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_skeleton_new (void) 3726s # { 3726s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 3726s # } 3726s # Error: 3726s # 3726s # /tmp/tmp9symyp9z/tmppiut7y13.xml: 3726s # <node> 3726s # <interface name="org.project.SignalingIface"> 3726s # <signal name="SimpleSignal"/> 3726s # <signal name="SingleArgSignalAs"> 3726s # <arg name="arg_as" type="as"/> 3726s # </signal> 3726s # </interface> 3726s # </node> 3726s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9symyp9z/tmppiut7y13.xml', '--output', '-', '--body'] 3726s # Return code: 0 3726s # Output: 3726s # /* 3726s # * This file is generated by gdbus-codegen, do not modify it. 3726s # * 3726s # * The license of this code is the same as for the D-Bus interface description 3726s # * it was derived from. Note that it links to GLib, so must comply with the 3726s # * LGPL linking clauses. 3726s # */ 3726s # 3726s # #ifdef HAVE_CONFIG_H 3726s # # include "config.h" 3726s # #endif 3726s # 3726s # #include <string.h> 3726s # #ifdef G_OS_UNIX 3726s # # include <gio/gunixfdlist.h> 3726s # #endif 3726s # 3726s # #ifdef G_ENABLE_DEBUG 3726s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3726s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3726s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3726s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3726s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3726s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3726s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3726s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3726s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3726s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3726s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3726s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3726s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3726s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3726s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3726s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3726s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3726s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3726s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3726s # #else /* !G_ENABLE_DEBUG */ 3726s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3726s # * Do not access GValues directly in your code. Instead, use the 3726s # * g_value_get_*() functions 3726s # */ 3726s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3726s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3726s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3726s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3726s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3726s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3726s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3726s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3726s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3726s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3726s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3726s # #endif /* !G_ENABLE_DEBUG */ 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusArgInfo parent_struct; 3726s # gboolean use_gvariant; 3726s # } _ExtendedGDBusArgInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusMethodInfo parent_struct; 3726s # const gchar *signal_name; 3726s # gboolean pass_fdlist; 3726s # } _ExtendedGDBusMethodInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusSignalInfo parent_struct; 3726s # const gchar *signal_name; 3726s # } _ExtendedGDBusSignalInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusPropertyInfo parent_struct; 3726s # const gchar *hyphen_name; 3726s # guint use_gvariant : 1; 3726s # guint emits_changed_signal : 1; 3726s # } _ExtendedGDBusPropertyInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusInterfaceInfo parent_struct; 3726s # const gchar *hyphen_name; 3726s # } _ExtendedGDBusInterfaceInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # const _ExtendedGDBusPropertyInfo *info; 3726s # guint prop_id; 3726s # GValue orig_value; /* the value before the change */ 3726s # } ChangedProperty; 3726s # 3726s # static void 3726s # _changed_property_free (ChangedProperty *data) 3726s # { 3726s # g_value_unset (&data->orig_value); 3726s # g_free (data); 3726s # } 3726s # 3726s # static gboolean 3726s # _g_strv_equal0 (gchar **a, gchar **b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # guint n; 3726s # if (a == NULL && b == NULL) 3726s # { 3726s # ret = TRUE; 3726s # goto out; 3726s # } 3726s # if (a == NULL || b == NULL) 3726s # goto out; 3726s # if (g_strv_length (a) != g_strv_length (b)) 3726s # goto out; 3726s # for (n = 0; a[n] != NULL; n++) 3726s # if (g_strcmp0 (a[n], b[n]) != 0) 3726s # goto out; 3726s # ret = TRUE; 3726s # out: 3726s # return ret; 3726s # } 3726s # 3726s # static gboolean 3726s # _g_variant_equal0 (GVariant *a, GVariant *b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # if (a == NULL && b == NULL) 3726s # { 3726s # ret = TRUE; 3726s # goto out; 3726s # } 3726s # if (a == NULL || b == NULL) 3726s # goto out; 3726s # ret = g_variant_equal (a, b); 3726s # out: 3726s # return ret; 3726s # } 3726s # 3726s # G_GNUC_UNUSED static gboolean 3726s # _g_value_equal (const GValue *a, const GValue *b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3726s # switch (G_VALUE_TYPE (a)) 3726s # { 3726s # case G_TYPE_BOOLEAN: 3726s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3726s # break; 3726s # case G_TYPE_UCHAR: 3726s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3726s # break; 3726s # case G_TYPE_INT: 3726s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3726s # break; 3726s # case G_TYPE_UINT: 3726s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3726s # break; 3726s # case G_TYPE_INT64: 3726s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3726s # break; 3726s # case G_TYPE_UINT64: 3726s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3726s # break; 3726s # case G_TYPE_DOUBLE: 3726s # { 3726s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3726s # gdouble da = g_value_get_double (a); 3726s # gdouble db = g_value_get_double (b); 3726s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3726s # } 3726s # break; 3726s # case G_TYPE_STRING: 3726s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3726s # break; 3726s # case G_TYPE_VARIANT: 3726s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3726s # break; 3726s # default: 3726s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3726s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3726s # else 3726s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3726s # break; 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # /* ------------------------------------------------------------------------ 3726s # * Code for interface org.project.SignalingIface 3726s # * ------------------------------------------------------------------------ 3726s # */ 3726s # 3726s # /** 3726s # * SECTION:OrgProjectSignalingIface 3726s # * @title: OrgProjectSignalingIface 3726s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 3726s # * 3726s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface in C. 3726s # */ 3726s # 3726s # enum 3726s # { 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 3726s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS, 3726s # }; 3726s # 3726s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 3726s # 3726s # /* ---- Introspection data for org.project.SignalingIface ---- */ 3726s # 3726s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "SimpleSignal", 3726s # NULL, 3726s # NULL 3726s # }, 3726s # "simple-signal" 3726s # }; 3726s # 3726s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_arg_as = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "arg_as", 3726s # (gchar *) "as", 3726s # NULL 3726s # }, 3726s # FALSE 3726s # }; 3726s # 3726s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers[] = 3726s # { 3726s # &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_arg_as.parent_struct, 3726s # NULL 3726s # }; 3726s # 3726s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_as = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "SingleArgSignalAs", 3726s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers, 3726s # NULL 3726s # }, 3726s # "single-arg-signal-as" 3726s # }; 3726s # 3726s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 3726s # { 3726s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 3726s # &_org_project_signaling_iface_signal_info_single_arg_signal_as.parent_struct, 3726s # NULL 3726s # }; 3726s # 3726s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 3726s # { 3726s # { 3726s # -1, 3726s # (gchar *) "org.project.SignalingIface", 3726s # NULL, 3726s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 3726s # NULL, 3726s # NULL 3726s # }, 3726s # "org-project-signaling-iface", 3726s # }; 3726s # 3726s # 3726s # /** 3726s # * org_project_signaling_iface_interface_info: 3726s # * 3726s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface. 3726s # * 3726s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3726s # */ 3726s # GDBusInterfaceInfo * 3726s # org_project_signaling_iface_interface_info (void) 3726s # { 3726s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_override_properties: 3726s # * @klass: The class structure for a #GObject derived class. 3726s # * @property_id_begin: The property id to assign to the first overridden property. 3726s # * 3726s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 3726s # * The properties are overridden in the order they are defined. 3726s # * 3726s # * Returns: The last property id. 3726s # */ 3726s # guint 3726s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3726s # { 3726s # return property_id_begin - 1; 3726s # } 3726s # 3726s # 3726s # inline static void 3726s # org_project_signaling_iface_signal_marshal_simple_signal ( 3726s # GClosure *closure, 3726s # GValue *return_value, 3726s # unsigned int n_param_values, 3726s # const GValue *param_values, 3726s # void *invocation_hint, 3726s # void *marshal_data) 3726s # { 3726s # g_cclosure_marshal_VOID__VOID (closure, 3726s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3726s # } 3726s # 3726s # inline static void 3726s # org_project_signaling_iface_signal_marshal_single_arg_signal_as ( 3726s # GClosure *closure, 3726s # GValue *return_value, 3726s # unsigned int n_param_values, 3726s # const GValue *param_values, 3726s # void *invocation_hint, 3726s # void *marshal_data) 3726s # { 3726s # g_cclosure_marshal_VOID__BOXED (closure, 3726s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3726s # } 3726s # 3726s # 3726s # /** 3726s # * OrgProjectSignalingIface: 3726s # * 3726s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceIface: 3726s # * @parent_iface: The parent interface. 3726s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 3726s # * @single_arg_signal_as: Handler for the #OrgProjectSignalingIface::single-arg-signal-as signal. 3726s # * 3726s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # */ 3726s # 3726s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 3726s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 3726s # 3726s # static void 3726s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 3726s # { 3726s # /* GObject signals for received D-Bus signals: */ 3726s # /** 3726s # * OrgProjectSignalingIface::simple-signal: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * 3726s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SimpleSignal">"SimpleSignal"</link> is received. 3726s # * 3726s # * 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. 3726s # */ 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 3726s # g_signal_new ("simple-signal", 3726s # G_TYPE_FROM_INTERFACE (iface), 3726s # G_SIGNAL_RUN_LAST, 3726s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 3726s # NULL, 3726s # NULL, 3726s # org_project_signaling_iface_signal_marshal_simple_signal, 3726s # G_TYPE_NONE, 3726s # 0); 3726s # 3726s # /** 3726s # * OrgProjectSignalingIface::single-arg-signal-as: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * @arg_arg_as: Argument. 3726s # * 3726s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalAs">"SingleArgSignalAs"</link> is received. 3726s # * 3726s # * 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. 3726s # */ 3726s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS] = 3726s # g_signal_new ("single-arg-signal-as", 3726s # G_TYPE_FROM_INTERFACE (iface), 3726s # G_SIGNAL_RUN_LAST, 3726s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_as), 3726s # NULL, 3726s # NULL, 3726s # org_project_signaling_iface_signal_marshal_single_arg_signal_as, 3726s # G_TYPE_NONE, 3726s # 1, G_TYPE_STRV); 3726s # 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_emit_simple_signal: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * 3726s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SimpleSignal">"SimpleSignal"</link> D-Bus signal. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_emit_simple_signal ( 3726s # OrgProjectSignalingIface *object) 3726s # { 3726s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_emit_single_arg_signal_as: 3726s # * @object: A #OrgProjectSignalingIface. 3726s # * @arg_arg_as: Argument to pass with the signal. 3726s # * 3726s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalAs">"SingleArgSignalAs"</link> D-Bus signal. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_emit_single_arg_signal_as ( 3726s # OrgProjectSignalingIface *object, 3726s # const gchar *const *arg_arg_as) 3726s # { 3726s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS], 0, arg_arg_as); 3726s # } 3726s # 3726s # /* ------------------------------------------------------------------------ */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceProxy: 3726s # * 3726s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceProxyClass: 3726s # * @parent_class: The parent class. 3726s # * 3726s # * Class structure for #OrgProjectSignalingIfaceProxy. 3726s # */ 3726s # 3726s # struct _OrgProjectSignalingIfaceProxyPrivate 3726s # { 3726s # GData *qdata; 3726s # }; 3726s # 3726s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3726s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3726s # 3726s # #else 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3726s # 3726s # #endif 3726s # static void 3726s # org_project_signaling_iface_proxy_finalize (GObject *object) 3726s # { 3726s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 3726s # g_datalist_clear (&proxy->priv->qdata); 3726s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3726s # guint prop_id G_GNUC_UNUSED, 3726s # GValue *value G_GNUC_UNUSED, 3726s # GParamSpec *pspec G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3726s # guint prop_id G_GNUC_UNUSED, 3726s # const GValue *value G_GNUC_UNUSED, 3726s # GParamSpec *pspec G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 3726s # const gchar *sender_name G_GNUC_UNUSED, 3726s # const gchar *signal_name, 3726s # GVariant *parameters) 3726s # { 3726s # _ExtendedGDBusSignalInfo *info; 3726s # GVariantIter iter; 3726s # GVariant *child; 3726s # GValue *paramv; 3726s # gsize num_params; 3726s # gsize n; 3726s # guint signal_id; 3726s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 3726s # if (info == NULL) 3726s # return; 3726s # num_params = g_variant_n_children (parameters); 3726s # paramv = g_new0 (GValue, num_params + 1); 3726s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_set_object (¶mv[0], proxy); 3726s # g_variant_iter_init (&iter, parameters); 3726s # n = 1; 3726s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3726s # { 3726s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3726s # if (arg_info->use_gvariant) 3726s # { 3726s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3726s # g_value_set_variant (¶mv[n], child); 3726s # n++; 3726s # } 3726s # else 3726s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3726s # g_variant_unref (child); 3726s # } 3726s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_signal_emitv (paramv, signal_id, 0, NULL); 3726s # for (n = 0; n < num_params + 1; n++) 3726s # g_value_unset (¶mv[n]); 3726s # g_free (paramv); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 3726s # GVariant *changed_properties, 3726s # const gchar *const *invalidated_properties) 3726s # { 3726s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 3726s # guint n; 3726s # const gchar *key; 3726s # GVariantIter *iter; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # g_variant_get (changed_properties, "a{sv}", &iter); 3726s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3726s # { 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 3726s # g_datalist_remove_data (&proxy->priv->qdata, key); 3726s # if (info != NULL) 3726s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3726s # } 3726s # g_variant_iter_free (iter); 3726s # for (n = 0; invalidated_properties[n] != NULL; n++) 3726s # { 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 3726s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3726s # if (info != NULL) 3726s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3726s # } 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 3726s # { 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 3726s # #else 3726s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 3726s # #endif 3726s # 3726s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 3726s # { 3726s # GObjectClass *gobject_class; 3726s # GDBusProxyClass *proxy_class; 3726s # 3726s # gobject_class = G_OBJECT_CLASS (klass); 3726s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 3726s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 3726s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 3726s # 3726s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3726s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 3726s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3726s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 3726s # #endif 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new: 3726s # * @connection: A #GDBusConnection. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3726s # * @user_data: User data to pass to @callback. 3726s # * 3726s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new() for more details. 3726s # * 3726s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3726s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_proxy_new ( 3726s # GDBusConnection *connection, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GAsyncReadyCallback callback, 3726s # gpointer user_data) 3726s # { 3726s # 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); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_finish: 3726s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_finish ( 3726s # GAsyncResult *res, 3726s # GError **error) 3726s # { 3726s # GObject *ret; 3726s # GObject *source_object; 3726s # source_object = g_async_result_get_source_object (res); 3726s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3726s # g_object_unref (source_object); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_sync: 3726s # * @connection: A #GDBusConnection. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new_sync() for more details. 3726s # * 3726s # * The calling thread is blocked until a reply is received. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_sync ( 3726s # GDBusConnection *connection, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GError **error) 3726s # { 3726s # GInitable *ret; 3726s # 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); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus: 3726s # * @bus_type: A #GBusType. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: A bus name (well-known or unique). 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3726s # * @user_data: User data to pass to @callback. 3726s # * 3726s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3726s # * 3726s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3726s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3726s # */ 3726s # void 3726s # org_project_signaling_iface_proxy_new_for_bus ( 3726s # GBusType bus_type, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GAsyncReadyCallback callback, 3726s # gpointer user_data) 3726s # { 3726s # 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); 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus_finish: 3726s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_for_bus_finish ( 3726s # GAsyncResult *res, 3726s # GError **error) 3726s # { 3726s # GObject *ret; 3726s # GObject *source_object; 3726s # source_object = g_async_result_get_source_object (res); 3726s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3726s # g_object_unref (source_object); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_proxy_new_for_bus_sync: 3726s # * @bus_type: A #GBusType. 3726s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3726s # * @name: A bus name (well-known or unique). 3726s # * @object_path: An object path. 3726s # * @cancellable: (nullable): A #GCancellable or %NULL. 3726s # * @error: Return location for error or %NULL 3726s # * 3726s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3726s # * 3726s # * The calling thread is blocked until a reply is received. 3726s # * 3726s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_proxy_new_for_bus_sync ( 3726s # GBusType bus_type, 3726s # GDBusProxyFlags flags, 3726s # const gchar *name, 3726s # const gchar *object_path, 3726s # GCancellable *cancellable, 3726s # GError **error) 3726s # { 3726s # GInitable *ret; 3726s # 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); 3726s # if (ret != NULL) 3726s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3726s # else 3726s # return NULL; 3726s # } 3726s # 3726s # 3726s # /* ------------------------------------------------------------------------ */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceSkeleton: 3726s # * 3726s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3726s # */ 3726s # 3726s # /** 3726s # * OrgProjectSignalingIfaceSkeletonClass: 3726s # * @parent_class: The parent class. 3726s # * 3726s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 3726s # */ 3726s # 3726s # struct _OrgProjectSignalingIfaceSkeletonPrivate 3726s # { 3726s # GValue *properties; 3726s # GList *changed_properties; 3726s # GSource *changed_properties_idle_source; 3726s # GMainContext *context; 3726s # GMutex lock; 3726s # }; 3726s # 3726s # static void 3726s # _org_project_signaling_iface_skeleton_handle_method_call ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name, 3726s # const gchar *method_name, 3726s # GVariant *parameters, 3726s # GDBusMethodInvocation *invocation, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # _ExtendedGDBusMethodInfo *info; 3726s # GVariantIter iter; 3726s # GVariant *child; 3726s # GValue *paramv; 3726s # gsize num_params; 3726s # guint num_extra; 3726s # gsize n; 3726s # guint signal_id; 3726s # GValue return_value = G_VALUE_INIT; 3726s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3726s # g_assert (info != NULL); 3726s # num_params = g_variant_n_children (parameters); 3726s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3726s # n = 0; 3726s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_set_object (¶mv[n++], skeleton); 3726s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3726s # g_value_set_object (¶mv[n++], invocation); 3726s # if (info->pass_fdlist) 3726s # { 3726s # #ifdef G_OS_UNIX 3726s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3726s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3726s # #else 3726s # g_assert_not_reached (); 3726s # #endif 3726s # } 3726s # g_variant_iter_init (&iter, parameters); 3726s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3726s # { 3726s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3726s # if (arg_info->use_gvariant) 3726s # { 3726s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3726s # g_value_set_variant (¶mv[n], child); 3726s # n++; 3726s # } 3726s # else 3726s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3726s # g_variant_unref (child); 3726s # } 3726s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3726s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3726s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3726s # if (!g_value_get_boolean (&return_value)) 3726s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3726s # g_value_unset (&return_value); 3726s # for (n = 0; n < num_params + num_extra; n++) 3726s # g_value_unset (¶mv[n]); 3726s # g_free (paramv); 3726s # } 3726s # 3726s # static GVariant * 3726s # _org_project_signaling_iface_skeleton_handle_get_property ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name G_GNUC_UNUSED, 3726s # const gchar *property_name, 3726s # GError **error, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # GValue value = G_VALUE_INIT; 3726s # GParamSpec *pspec; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # GVariant *ret; 3726s # ret = NULL; 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3726s # g_assert (info != NULL); 3726s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3726s # if (pspec == NULL) 3726s # { 3726s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3726s # } 3726s # else 3726s # { 3726s # g_value_init (&value, pspec->value_type); 3726s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3726s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3726s # g_value_unset (&value); 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # static gboolean 3726s # _org_project_signaling_iface_skeleton_handle_set_property ( 3726s # GDBusConnection *connection G_GNUC_UNUSED, 3726s # const gchar *sender G_GNUC_UNUSED, 3726s # const gchar *object_path G_GNUC_UNUSED, 3726s # const gchar *interface_name G_GNUC_UNUSED, 3726s # const gchar *property_name, 3726s # GVariant *variant, 3726s # GError **error, 3726s # gpointer user_data) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3726s # GValue value = G_VALUE_INIT; 3726s # GParamSpec *pspec; 3726s # _ExtendedGDBusPropertyInfo *info; 3726s # gboolean ret; 3726s # ret = FALSE; 3726s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3726s # g_assert (info != NULL); 3726s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3726s # if (pspec == NULL) 3726s # { 3726s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3726s # } 3726s # else 3726s # { 3726s # if (info->use_gvariant) 3726s # g_value_set_variant (&value, variant); 3726s # else 3726s # g_dbus_gvariant_to_gvalue (variant, &value); 3726s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3726s # g_value_unset (&value); 3726s # ret = TRUE; 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 3726s # { 3726s # _org_project_signaling_iface_skeleton_handle_method_call, 3726s # _org_project_signaling_iface_skeleton_handle_get_property, 3726s # _org_project_signaling_iface_skeleton_handle_set_property, 3726s # {NULL} 3726s # }; 3726s # 3726s # static GDBusInterfaceInfo * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3726s # { 3726s # return org_project_signaling_iface_interface_info (); 3726s # } 3726s # 3726s # static GDBusInterfaceVTable * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3726s # { 3726s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 3726s # } 3726s # 3726s # static GVariant * 3726s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 3726s # 3726s # GVariantBuilder builder; 3726s # guint n; 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3726s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3726s # #else 3726s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3726s # #endif 3726s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 3726s # goto out; 3726s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 3726s # { 3726s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 3726s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3726s # { 3726s # GVariant *value; 3726s # 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); 3726s # if (value != NULL) 3726s # { 3726s # g_variant_take_ref (value); 3726s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3726s # g_variant_unref (value); 3726s # } 3726s # } 3726s # } 3726s # out: 3726s # return g_variant_builder_end (&builder); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3726s # { 3726s # } 3726s # 3726s # static void 3726s # _org_project_signaling_iface_on_signal_simple_signal ( 3726s # OrgProjectSignalingIface *object) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # 3726s # GList *connections, *l; 3726s # GVariant *signal_variant; 3726s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3726s # 3726s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 3726s # for (l = connections; l != NULL; l = l->next) 3726s # { 3726s # GDBusConnection *connection = l->data; 3726s # g_dbus_connection_emit_signal (connection, 3726s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 3726s # signal_variant, NULL); 3726s # } 3726s # g_variant_unref (signal_variant); 3726s # g_list_free_full (connections, g_object_unref); 3726s # } 3726s # 3726s # static void 3726s # _org_project_signaling_iface_on_signal_single_arg_signal_as ( 3726s # OrgProjectSignalingIface *object, 3726s # const gchar *const *arg_arg_as) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # 3726s # GList *connections, *l; 3726s # GVariant *signal_variant; 3726s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3726s # 3726s # signal_variant = g_variant_ref_sink (g_variant_new ("(^as)", 3726s # arg_arg_as)); 3726s # for (l = connections; l != NULL; l = l->next) 3726s # { 3726s # GDBusConnection *connection = l->data; 3726s # g_dbus_connection_emit_signal (connection, 3726s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAs", 3726s # signal_variant, NULL); 3726s # } 3726s # g_variant_unref (signal_variant); 3726s # g_list_free_full (connections, g_object_unref); 3726s # } 3726s # 3726s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3726s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3726s # 3726s # #else 3726s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3726s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3726s # 3726s # #endif 3726s # static void 3726s # org_project_signaling_iface_skeleton_finalize (GObject *object) 3726s # { 3726s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3726s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3726s # if (skeleton->priv->changed_properties_idle_source != NULL) 3726s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3726s # g_main_context_unref (skeleton->priv->context); 3726s # g_mutex_clear (&skeleton->priv->lock); 3726s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 3726s # { 3726s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3726s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 3726s # #else 3726s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 3726s # #endif 3726s # 3726s # g_mutex_init (&skeleton->priv->lock); 3726s # skeleton->priv->context = g_main_context_ref_thread_default (); 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 3726s # { 3726s # GObjectClass *gobject_class; 3726s # GDBusInterfaceSkeletonClass *skeleton_class; 3726s # 3726s # gobject_class = G_OBJECT_CLASS (klass); 3726s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 3726s # 3726s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3726s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 3726s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 3726s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 3726s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 3726s # 3726s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3726s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 3726s # #endif 3726s # } 3726s # 3726s # static void 3726s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 3726s # { 3726s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 3726s # iface->single_arg_signal_as = _org_project_signaling_iface_on_signal_single_arg_signal_as; 3726s # } 3726s # 3726s # /** 3726s # * org_project_signaling_iface_skeleton_new: 3726s # * 3726s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3726s # * 3726s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 3726s # */ 3726s # OrgProjectSignalingIface * 3726s # org_project_signaling_iface_skeleton_new (void) 3726s # { 3726s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 3726s # } 3726s # Error: 3726s # 3726s # /tmp/tmp9symyp9z/tmphfhv7es8.xml: 3726s # <node> 3726s # <interface name="org.project.SignalingIface"> 3726s # <signal name="SimpleSignal"/> 3726s # <signal name="SingleArgSignalAo"> 3726s # <arg name="arg_ao" type="ao"/> 3726s # </signal> 3726s # </interface> 3726s # </node> 3726s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9symyp9z/tmphfhv7es8.xml', '--output', '-', '--body'] 3726s # Return code: 0 3726s # Output: 3726s # /* 3726s # * This file is generated by gdbus-codegen, do not modify it. 3726s # * 3726s # * The license of this code is the same as for the D-Bus interface description 3726s # * it was derived from. Note that it links to GLib, so must comply with the 3726s # * LGPL linking clauses. 3726s # */ 3726s # 3726s # #ifdef HAVE_CONFIG_H 3726s # # include "config.h" 3726s # #endif 3726s # 3726s # #include <string.h> 3726s # #ifdef G_OS_UNIX 3726s # # include <gio/gunixfdlist.h> 3726s # #endif 3726s # 3726s # #ifdef G_ENABLE_DEBUG 3726s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3726s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3726s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3726s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3726s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3726s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3726s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3726s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3726s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3726s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3726s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3726s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3726s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3726s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3726s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3726s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3726s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3726s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3726s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3726s # #else /* !G_ENABLE_DEBUG */ 3726s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3726s # * Do not access GValues directly in your code. Instead, use the 3726s # * g_value_get_*() functions 3726s # */ 3726s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3726s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3726s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3726s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3726s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3726s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3726s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3726s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3726s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3726s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3726s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3726s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3726s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3726s # #endif /* !G_ENABLE_DEBUG */ 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusArgInfo parent_struct; 3726s # gboolean use_gvariant; 3726s # } _ExtendedGDBusArgInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusMethodInfo parent_struct; 3726s # const gchar *signal_name; 3726s # gboolean pass_fdlist; 3726s # } _ExtendedGDBusMethodInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusSignalInfo parent_struct; 3726s # const gchar *signal_name; 3726s # } _ExtendedGDBusSignalInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusPropertyInfo parent_struct; 3726s # const gchar *hyphen_name; 3726s # guint use_gvariant : 1; 3726s # guint emits_changed_signal : 1; 3726s # } _ExtendedGDBusPropertyInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # GDBusInterfaceInfo parent_struct; 3726s # const gchar *hyphen_name; 3726s # } _ExtendedGDBusInterfaceInfo; 3726s # 3726s # typedef struct 3726s # { 3726s # const _ExtendedGDBusPropertyInfo *info; 3726s # guint prop_id; 3726s # GValue orig_value; /* the value before the change */ 3726s # } ChangedProperty; 3726s # 3726s # static void 3726s # _changed_property_free (ChangedProperty *data) 3726s # { 3726s # g_value_unset (&data->orig_value); 3726s # g_free (data); 3726s # } 3726s # 3726s # static gboolean 3726s # _g_strv_equal0 (gchar **a, gchar **b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # guint n; 3726s # if (a == NULL && b == NULL) 3726s # { 3726s # ret = TRUE; 3726s # goto out; 3726s # } 3726s # if (a == NULL || b == NULL) 3726s # goto out; 3726s # if (g_strv_length (a) != g_strv_length (b)) 3726s # goto out; 3726s # for (n = 0; a[n] != NULL; n++) 3726s # if (g_strcmp0 (a[n], b[n]) != 0) 3726s # goto out; 3726s # ret = TRUE; 3726s # out: 3726s # return ret; 3726s # } 3726s # 3726s # static gboolean 3726s # _g_variant_equal0 (GVariant *a, GVariant *b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # if (a == NULL && b == NULL) 3726s # { 3726s # ret = TRUE; 3726s # goto out; 3726s # } 3726s # if (a == NULL || b == NULL) 3726s # goto out; 3726s # ret = g_variant_equal (a, b); 3726s # out: 3726s # return ret; 3726s # } 3726s # 3726s # G_GNUC_UNUSED static gboolean 3726s # _g_value_equal (const GValue *a, const GValue *b) 3726s # { 3726s # gboolean ret = FALSE; 3726s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3726s # switch (G_VALUE_TYPE (a)) 3726s # { 3726s # case G_TYPE_BOOLEAN: 3726s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3726s # break; 3726s # case G_TYPE_UCHAR: 3726s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3726s # break; 3726s # case G_TYPE_INT: 3726s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3726s # break; 3726s # case G_TYPE_UINT: 3726s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3726s # break; 3726s # case G_TYPE_INT64: 3726s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3726s # break; 3726s # case G_TYPE_UINT64: 3726s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3726s # break; 3726s # case G_TYPE_DOUBLE: 3726s # { 3726s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3726s # gdouble da = g_value_get_double (a); 3726s # gdouble db = g_value_get_double (b); 3726s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3726s # } 3726s # break; 3726s # case G_TYPE_STRING: 3726s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3726s # break; 3726s # case G_TYPE_VARIANT: 3726s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3726s # break; 3726s # default: 3726s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3726s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3726s # else 3726s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3726s # break; 3726s # } 3726s # return ret; 3726s # } 3726s # 3726s # /* ------------------------------------------------------------------------ 3727s # * Code for interface org.project.SignalingIface 3727s # * ------------------------------------------------------------------------ 3727s # */ 3727s # 3727s # /** 3727s # * SECTION:OrgProjectSignalingIface 3727s # * @title: OrgProjectSignalingIface 3727s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 3727s # * 3727s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface in C. 3727s # */ 3727s # 3727s # enum 3727s # { 3727s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 3727s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO, 3727s # }; 3727s # 3727s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 3727s # 3727s # /* ---- Introspection data for org.project.SignalingIface ---- */ 3727s # 3727s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 3727s # { 3727s # { 3727s # -1, 3727s # (gchar *) "SimpleSignal", 3727s # NULL, 3727s # NULL 3727s # }, 3727s # "simple-signal" 3727s # }; 3727s # 3727s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_arg_ao = 3727s # { 3727s # { 3727s # -1, 3727s # (gchar *) "arg_ao", 3727s # (gchar *) "ao", 3727s # NULL 3727s # }, 3727s # FALSE 3727s # }; 3727s # 3727s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers[] = 3727s # { 3727s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_arg_ao.parent_struct, 3727s # NULL 3727s # }; 3727s # 3727s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao = 3727s # { 3727s # { 3727s # -1, 3727s # (gchar *) "SingleArgSignalAo", 3727s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers, 3727s # NULL 3727s # }, 3727s # "single-arg-signal-ao" 3727s # }; 3727s # 3727s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 3727s # { 3727s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 3727s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao.parent_struct, 3727s # NULL 3727s # }; 3727s # 3727s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 3727s # { 3727s # { 3727s # -1, 3727s # (gchar *) "org.project.SignalingIface", 3727s # NULL, 3727s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 3727s # NULL, 3727s # NULL 3727s # }, 3727s # "org-project-signaling-iface", 3727s # }; 3727s # 3727s # 3727s # /** 3727s # * org_project_signaling_iface_interface_info: 3727s # * 3727s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface. 3727s # * 3727s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3727s # */ 3727s # GDBusInterfaceInfo * 3727s # org_project_signaling_iface_interface_info (void) 3727s # { 3727s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 3727s # } 3727s # 3727s # /** 3727s # * org_project_signaling_iface_override_properties: 3727s # * @klass: The class structure for a #GObject derived class. 3727s # * @property_id_begin: The property id to assign to the first overridden property. 3727s # * 3727s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 3727s # * The properties are overridden in the order they are defined. 3727s # * 3727s # * Returns: The last property id. 3727s # */ 3727s # guint 3727s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3727s # { 3727s # return property_id_begin - 1; 3727s # } 3727s # 3727s # 3727s # inline static void 3727s # org_project_signaling_iface_signal_marshal_simple_signal ( 3727s # GClosure *closure, 3727s # GValue *return_value, 3727s # unsigned int n_param_values, 3727s # const GValue *param_values, 3727s # void *invocation_hint, 3727s # void *marshal_data) 3727s # { 3727s # g_cclosure_marshal_VOID__VOID (closure, 3727s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3727s # } 3727s # 3727s # inline static void 3727s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao ( 3727s # GClosure *closure, 3727s # GValue *return_value, 3727s # unsigned int n_param_values, 3727s # const GValue *param_values, 3727s # void *invocation_hint, 3727s # void *marshal_data) 3727s # { 3727s # g_cclosure_marshal_VOID__BOXED (closure, 3727s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3727s # } 3727s # 3727s # 3727s # /** 3727s # * OrgProjectSignalingIface: 3727s # * 3727s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3727s # */ 3727s # 3727s # /** 3727s # * OrgProjectSignalingIfaceIface: 3727s # * @parent_iface: The parent interface. 3727s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 3727s # * @single_arg_signal_ao: Handler for the #OrgProjectSignalingIface::single-arg-signal-ao signal. 3727s # * 3727s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3727s # */ 3727s # 3727s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 3727s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 3727s # 3727s # static void 3727s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 3727s # { 3727s # /* GObject signals for received D-Bus signals: */ 3727s # /** 3727s # * OrgProjectSignalingIface::simple-signal: 3727s # * @object: A #OrgProjectSignalingIface. 3727s # * 3727s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SimpleSignal">"SimpleSignal"</link> is received. 3727s # * 3727s # * 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. 3727s # */ 3727s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 3727s # g_signal_new ("simple-signal", 3727s # G_TYPE_FROM_INTERFACE (iface), 3727s # G_SIGNAL_RUN_LAST, 3727s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 3727s # NULL, 3727s # NULL, 3727s # org_project_signaling_iface_signal_marshal_simple_signal, 3727s # G_TYPE_NONE, 3727s # 0); 3727s # 3727s # /** 3727s # * OrgProjectSignalingIface::single-arg-signal-ao: 3727s # * @object: A #OrgProjectSignalingIface. 3727s # * @arg_arg_ao: Argument. 3727s # * 3727s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalAo">"SingleArgSignalAo"</link> is received. 3727s # * 3727s # * 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. 3727s # */ 3727s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO] = 3727s # g_signal_new ("single-arg-signal-ao", 3727s # G_TYPE_FROM_INTERFACE (iface), 3727s # G_SIGNAL_RUN_LAST, 3727s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ao), 3727s # NULL, 3727s # NULL, 3727s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao, 3727s # G_TYPE_NONE, 3727s # 1, G_TYPE_STRV); 3727s # 3727s # } 3727s # 3727s # /** 3727s # * org_project_signaling_iface_emit_simple_signal: 3727s # * @object: A #OrgProjectSignalingIface. 3727s # * 3727s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SimpleSignal">"SimpleSignal"</link> D-Bus signal. 3727s # */ 3727s # void 3727s # org_project_signaling_iface_emit_simple_signal ( 3727s # OrgProjectSignalingIface *object) 3727s # { 3727s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 3727s # } 3727s # 3727s # /** 3727s # * org_project_signaling_iface_emit_single_arg_signal_ao: 3727s # * @object: A #OrgProjectSignalingIface. 3727s # * @arg_arg_ao: Argument to pass with the signal. 3727s # * 3727s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalAo">"SingleArgSignalAo"</link> D-Bus signal. 3727s # */ 3727s # void 3727s # org_project_signaling_iface_emit_single_arg_signal_ao ( 3727s # OrgProjectSignalingIface *object, 3727s # const gchar *const *arg_arg_ao) 3727s # { 3727s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO], 0, arg_arg_ao); 3727s # } 3727s # 3727s # /* ------------------------------------------------------------------------ */ 3727s # 3727s # /** 3727s # * OrgProjectSignalingIfaceProxy: 3727s # * 3727s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 3727s # */ 3727s # 3727s # /** 3727s # * OrgProjectSignalingIfaceProxyClass: 3727s # * @parent_class: The parent class. 3727s # * 3727s # * Class structure for #OrgProjectSignalingIfaceProxy. 3727s # */ 3727s # 3727s # struct _OrgProjectSignalingIfaceProxyPrivate 3727s # { 3727s # GData *qdata; 3727s # }; 3727s # 3727s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 3727s # 3727s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3727s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3727s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 3727s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3727s # 3727s # #else 3727s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3727s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3727s # 3727s # #endif 3727s # static void 3727s # org_project_signaling_iface_proxy_finalize (GObject *object) 3727s # { 3727s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 3727s # g_datalist_clear (&proxy->priv->qdata); 3727s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3727s # guint prop_id G_GNUC_UNUSED, 3727s # GValue *value G_GNUC_UNUSED, 3727s # GParamSpec *pspec G_GNUC_UNUSED) 3727s # { 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3727s # guint prop_id G_GNUC_UNUSED, 3727s # const GValue *value G_GNUC_UNUSED, 3727s # GParamSpec *pspec G_GNUC_UNUSED) 3727s # { 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 3727s # const gchar *sender_name G_GNUC_UNUSED, 3727s # const gchar *signal_name, 3727s # GVariant *parameters) 3727s # { 3727s # _ExtendedGDBusSignalInfo *info; 3727s # GVariantIter iter; 3727s # GVariant *child; 3727s # GValue *paramv; 3727s # gsize num_params; 3727s # gsize n; 3727s # guint signal_id; 3727s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 3727s # if (info == NULL) 3727s # return; 3727s # num_params = g_variant_n_children (parameters); 3727s # paramv = g_new0 (GValue, num_params + 1); 3727s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3727s # g_value_set_object (¶mv[0], proxy); 3727s # g_variant_iter_init (&iter, parameters); 3727s # n = 1; 3727s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3727s # { 3727s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3727s # if (arg_info->use_gvariant) 3727s # { 3727s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3727s # g_value_set_variant (¶mv[n], child); 3727s # n++; 3727s # } 3727s # else 3727s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3727s # g_variant_unref (child); 3727s # } 3727s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3727s # g_signal_emitv (paramv, signal_id, 0, NULL); 3727s # for (n = 0; n < num_params + 1; n++) 3727s # g_value_unset (¶mv[n]); 3727s # g_free (paramv); 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 3727s # GVariant *changed_properties, 3727s # const gchar *const *invalidated_properties) 3727s # { 3727s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 3727s # guint n; 3727s # const gchar *key; 3727s # GVariantIter *iter; 3727s # _ExtendedGDBusPropertyInfo *info; 3727s # g_variant_get (changed_properties, "a{sv}", &iter); 3727s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3727s # { 3727s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 3727s # g_datalist_remove_data (&proxy->priv->qdata, key); 3727s # if (info != NULL) 3727s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3727s # } 3727s # g_variant_iter_free (iter); 3727s # for (n = 0; invalidated_properties[n] != NULL; n++) 3727s # { 3727s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 3727s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3727s # if (info != NULL) 3727s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3727s # } 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 3727s # { 3727s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3727s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 3727s # #else 3727s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 3727s # #endif 3727s # 3727s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 3727s # { 3727s # GObjectClass *gobject_class; 3727s # GDBusProxyClass *proxy_class; 3727s # 3727s # gobject_class = G_OBJECT_CLASS (klass); 3727s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 3727s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 3727s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 3727s # 3727s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3727s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 3727s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 3727s # 3727s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3727s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 3727s # #endif 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 3727s # { 3727s # } 3727s # 3727s # /** 3727s # * org_project_signaling_iface_proxy_new: 3727s # * @connection: A #GDBusConnection. 3727s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3727s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3727s # * @object_path: An object path. 3727s # * @cancellable: (nullable): A #GCancellable or %NULL. 3727s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3727s # * @user_data: User data to pass to @callback. 3727s # * 3727s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new() for more details. 3727s # * 3727s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3727s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 3727s # * 3727s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3727s # */ 3727s # void 3727s # org_project_signaling_iface_proxy_new ( 3727s # GDBusConnection *connection, 3727s # GDBusProxyFlags flags, 3727s # const gchar *name, 3727s # const gchar *object_path, 3727s # GCancellable *cancellable, 3727s # GAsyncReadyCallback callback, 3727s # gpointer user_data) 3727s # { 3727s # 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); 3727s # } 3727s # 3727s # /** 3727s # * org_project_signaling_iface_proxy_new_finish: 3727s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 3727s # * @error: Return location for error or %NULL 3727s # * 3727s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 3727s # * 3727s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3727s # */ 3727s # OrgProjectSignalingIface * 3727s # org_project_signaling_iface_proxy_new_finish ( 3727s # GAsyncResult *res, 3727s # GError **error) 3727s # { 3727s # GObject *ret; 3727s # GObject *source_object; 3727s # source_object = g_async_result_get_source_object (res); 3727s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3727s # g_object_unref (source_object); 3727s # if (ret != NULL) 3727s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3727s # else 3727s # return NULL; 3727s # } 3727s # 3727s # /** 3727s # * org_project_signaling_iface_proxy_new_sync: 3727s # * @connection: A #GDBusConnection. 3727s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3727s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3727s # * @object_path: An object path. 3727s # * @cancellable: (nullable): A #GCancellable or %NULL. 3727s # * @error: Return location for error or %NULL 3727s # * 3727s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new_sync() for more details. 3727s # * 3727s # * The calling thread is blocked until a reply is received. 3727s # * 3727s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 3727s # * 3727s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3727s # */ 3727s # OrgProjectSignalingIface * 3727s # org_project_signaling_iface_proxy_new_sync ( 3727s # GDBusConnection *connection, 3727s # GDBusProxyFlags flags, 3727s # const gchar *name, 3727s # const gchar *object_path, 3727s # GCancellable *cancellable, 3727s # GError **error) 3727s # { 3727s # GInitable *ret; 3727s # 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); 3727s # if (ret != NULL) 3727s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3727s # else 3727s # return NULL; 3727s # } 3727s # 3727s # 3727s # /** 3727s # * org_project_signaling_iface_proxy_new_for_bus: 3727s # * @bus_type: A #GBusType. 3727s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3727s # * @name: A bus name (well-known or unique). 3727s # * @object_path: An object path. 3727s # * @cancellable: (nullable): A #GCancellable or %NULL. 3727s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3727s # * @user_data: User data to pass to @callback. 3727s # * 3727s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3727s # * 3727s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3727s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 3727s # * 3727s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3727s # */ 3727s # void 3727s # org_project_signaling_iface_proxy_new_for_bus ( 3727s # GBusType bus_type, 3727s # GDBusProxyFlags flags, 3727s # const gchar *name, 3727s # const gchar *object_path, 3727s # GCancellable *cancellable, 3727s # GAsyncReadyCallback callback, 3727s # gpointer user_data) 3727s # { 3727s # 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); 3727s # } 3727s # 3727s # /** 3727s # * org_project_signaling_iface_proxy_new_for_bus_finish: 3727s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 3727s # * @error: Return location for error or %NULL 3727s # * 3727s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 3727s # * 3727s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3727s # */ 3727s # OrgProjectSignalingIface * 3727s # org_project_signaling_iface_proxy_new_for_bus_finish ( 3727s # GAsyncResult *res, 3727s # GError **error) 3727s # { 3727s # GObject *ret; 3727s # GObject *source_object; 3727s # source_object = g_async_result_get_source_object (res); 3727s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3727s # g_object_unref (source_object); 3727s # if (ret != NULL) 3727s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3727s # else 3727s # return NULL; 3727s # } 3727s # 3727s # /** 3727s # * org_project_signaling_iface_proxy_new_for_bus_sync: 3727s # * @bus_type: A #GBusType. 3727s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3727s # * @name: A bus name (well-known or unique). 3727s # * @object_path: An object path. 3727s # * @cancellable: (nullable): A #GCancellable or %NULL. 3727s # * @error: Return location for error or %NULL 3727s # * 3727s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3727s # * 3727s # * The calling thread is blocked until a reply is received. 3727s # * 3727s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 3727s # * 3727s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3727s # */ 3727s # OrgProjectSignalingIface * 3727s # org_project_signaling_iface_proxy_new_for_bus_sync ( 3727s # GBusType bus_type, 3727s # GDBusProxyFlags flags, 3727s # const gchar *name, 3727s # const gchar *object_path, 3727s # GCancellable *cancellable, 3727s # GError **error) 3727s # { 3727s # GInitable *ret; 3727s # 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); 3727s # if (ret != NULL) 3727s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3727s # else 3727s # return NULL; 3727s # } 3727s # 3727s # 3727s # /* ------------------------------------------------------------------------ */ 3727s # 3727s # /** 3727s # * OrgProjectSignalingIfaceSkeleton: 3727s # * 3727s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3727s # */ 3727s # 3727s # /** 3727s # * OrgProjectSignalingIfaceSkeletonClass: 3727s # * @parent_class: The parent class. 3727s # * 3727s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 3727s # */ 3727s # 3727s # struct _OrgProjectSignalingIfaceSkeletonPrivate 3727s # { 3727s # GValue *properties; 3727s # GList *changed_properties; 3727s # GSource *changed_properties_idle_source; 3727s # GMainContext *context; 3727s # GMutex lock; 3727s # }; 3727s # 3727s # static void 3727s # _org_project_signaling_iface_skeleton_handle_method_call ( 3727s # GDBusConnection *connection G_GNUC_UNUSED, 3727s # const gchar *sender G_GNUC_UNUSED, 3727s # const gchar *object_path G_GNUC_UNUSED, 3727s # const gchar *interface_name, 3727s # const gchar *method_name, 3727s # GVariant *parameters, 3727s # GDBusMethodInvocation *invocation, 3727s # gpointer user_data) 3727s # { 3727s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3727s # _ExtendedGDBusMethodInfo *info; 3727s # GVariantIter iter; 3727s # GVariant *child; 3727s # GValue *paramv; 3727s # gsize num_params; 3727s # guint num_extra; 3727s # gsize n; 3727s # guint signal_id; 3727s # GValue return_value = G_VALUE_INIT; 3727s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3727s # g_assert (info != NULL); 3727s # num_params = g_variant_n_children (parameters); 3727s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3727s # n = 0; 3727s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3727s # g_value_set_object (¶mv[n++], skeleton); 3727s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3727s # g_value_set_object (¶mv[n++], invocation); 3727s # if (info->pass_fdlist) 3727s # { 3727s # #ifdef G_OS_UNIX 3727s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3727s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3727s # #else 3727s # g_assert_not_reached (); 3727s # #endif 3727s # } 3727s # g_variant_iter_init (&iter, parameters); 3727s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3727s # { 3727s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3727s # if (arg_info->use_gvariant) 3727s # { 3727s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3727s # g_value_set_variant (¶mv[n], child); 3727s # n++; 3727s # } 3727s # else 3727s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3727s # g_variant_unref (child); 3727s # } 3727s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3727s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3727s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3727s # if (!g_value_get_boolean (&return_value)) 3727s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3727s # g_value_unset (&return_value); 3727s # for (n = 0; n < num_params + num_extra; n++) 3727s # g_value_unset (¶mv[n]); 3727s # g_free (paramv); 3727s # } 3727s # 3727s # static GVariant * 3727s # _org_project_signaling_iface_skeleton_handle_get_property ( 3727s # GDBusConnection *connection G_GNUC_UNUSED, 3727s # const gchar *sender G_GNUC_UNUSED, 3727s # const gchar *object_path G_GNUC_UNUSED, 3727s # const gchar *interface_name G_GNUC_UNUSED, 3727s # const gchar *property_name, 3727s # GError **error, 3727s # gpointer user_data) 3727s # { 3727s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3727s # GValue value = G_VALUE_INIT; 3727s # GParamSpec *pspec; 3727s # _ExtendedGDBusPropertyInfo *info; 3727s # GVariant *ret; 3727s # ret = NULL; 3727s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3727s # g_assert (info != NULL); 3727s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3727s # if (pspec == NULL) 3727s # { 3727s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3727s # } 3727s # else 3727s # { 3727s # g_value_init (&value, pspec->value_type); 3727s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3727s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3727s # g_value_unset (&value); 3727s # } 3727s # return ret; 3727s # } 3727s # 3727s # static gboolean 3727s # _org_project_signaling_iface_skeleton_handle_set_property ( 3727s # GDBusConnection *connection G_GNUC_UNUSED, 3727s # const gchar *sender G_GNUC_UNUSED, 3727s # const gchar *object_path G_GNUC_UNUSED, 3727s # const gchar *interface_name G_GNUC_UNUSED, 3727s # const gchar *property_name, 3727s # GVariant *variant, 3727s # GError **error, 3727s # gpointer user_data) 3727s # { 3727s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3727s # GValue value = G_VALUE_INIT; 3727s # GParamSpec *pspec; 3727s # _ExtendedGDBusPropertyInfo *info; 3727s # gboolean ret; 3727s # ret = FALSE; 3727s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3727s # g_assert (info != NULL); 3727s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3727s # if (pspec == NULL) 3727s # { 3727s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3727s # } 3727s # else 3727s # { 3727s # if (info->use_gvariant) 3727s # g_value_set_variant (&value, variant); 3727s # else 3727s # g_dbus_gvariant_to_gvalue (variant, &value); 3727s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3727s # g_value_unset (&value); 3727s # ret = TRUE; 3727s # } 3727s # return ret; 3727s # } 3727s # 3727s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 3727s # { 3727s # _org_project_signaling_iface_skeleton_handle_method_call, 3727s # _org_project_signaling_iface_skeleton_handle_get_property, 3727s # _org_project_signaling_iface_skeleton_handle_set_property, 3727s # {NULL} 3727s # }; 3727s # 3727s # static GDBusInterfaceInfo * 3727s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3727s # { 3727s # return org_project_signaling_iface_interface_info (); 3727s # } 3727s # 3727s # static GDBusInterfaceVTable * 3727s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3727s # { 3727s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 3727s # } 3727s # 3727s # static GVariant * 3727s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3727s # { 3727s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 3727s # 3727s # GVariantBuilder builder; 3727s # guint n; 3727s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3727s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3727s # #else 3727s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3727s # #endif 3727s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 3727s # goto out; 3727s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 3727s # { 3727s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 3727s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3727s # { 3727s # GVariant *value; 3727s # 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); 3727s # if (value != NULL) 3727s # { 3727s # g_variant_take_ref (value); 3727s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3727s # g_variant_unref (value); 3727s # } 3727s # } 3727s # } 3727s # out: 3727s # return g_variant_builder_end (&builder); 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3727s # { 3727s # } 3727s # 3727s # static void 3727s # _org_project_signaling_iface_on_signal_simple_signal ( 3727s # OrgProjectSignalingIface *object) 3727s # { 3727s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3727s # 3727s # GList *connections, *l; 3727s # GVariant *signal_variant; 3727s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3727s # 3727s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 3727s # for (l = connections; l != NULL; l = l->next) 3727s # { 3727s # GDBusConnection *connection = l->data; 3727s # g_dbus_connection_emit_signal (connection, 3727s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 3727s # signal_variant, NULL); 3727s # } 3727s # g_variant_unref (signal_variant); 3727s # g_list_free_full (connections, g_object_unref); 3727s # } 3727s # 3727s # static void 3727s # _org_project_signaling_iface_on_signal_single_arg_signal_ao ( 3727s # OrgProjectSignalingIface *object, 3727s # const gchar *const *arg_arg_ao) 3727s # { 3727s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3727s # 3727s # GList *connections, *l; 3727s # GVariant *signal_variant; 3727s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3727s # 3727s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ao)", 3727s # arg_arg_ao)); 3727s # for (l = connections; l != NULL; l = l->next) 3727s # { 3727s # GDBusConnection *connection = l->data; 3727s # g_dbus_connection_emit_signal (connection, 3727s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAo", 3727s # signal_variant, NULL); 3727s # } 3727s # g_variant_unref (signal_variant); 3727s # g_list_free_full (connections, g_object_unref); 3727s # } 3727s # 3727s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 3727s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3727s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3727s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 3727s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3727s # 3727s # #else 3727s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3727s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3727s # 3727s # #endif 3727s # static void 3727s # org_project_signaling_iface_skeleton_finalize (GObject *object) 3727s # { 3727s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3727s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3727s # if (skeleton->priv->changed_properties_idle_source != NULL) 3727s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3727s # g_main_context_unref (skeleton->priv->context); 3727s # g_mutex_clear (&skeleton->priv->lock); 3727s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 3727s # { 3727s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3727s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 3727s # #else 3727s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 3727s # #endif 3727s # 3727s # g_mutex_init (&skeleton->priv->lock); 3727s # skeleton->priv->context = g_main_context_ref_thread_default (); 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 3727s # { 3727s # GObjectClass *gobject_class; 3727s # GDBusInterfaceSkeletonClass *skeleton_class; 3727s # 3727s # gobject_class = G_OBJECT_CLASS (klass); 3727s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 3727s # 3727s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3727s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 3727s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 3727s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 3727s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 3727s # 3727s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3727s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 3727s # #endif 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 3727s # { 3727s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 3727s # iface->single_arg_signal_ao = _org_project_signaling_iface_on_signal_single_arg_signal_ao; 3727s # } 3727s # 3727s # /** 3727s # * org_project_signaling_iface_skeleton_new: 3727s # * 3727s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3727s # * 3727s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 3727s # */ 3727s # OrgProjectSignalingIface * 3727s # org_project_signaling_iface_skeleton_new (void) 3727s # { 3727s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 3727s # } 3727s # Error: 3727s # 3727s # /tmp/tmp9symyp9z/tmp179bc8vg.xml: 3727s # <node> 3727s # <interface name="org.project.SignalingIface"> 3727s # <signal name="SimpleSignal"/> 3727s # <signal name="SingleArgSignalAay"> 3727s # <arg name="arg_aay" type="aay"/> 3727s # </signal> 3727s # </interface> 3727s # </node> 3727s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9symyp9z/tmp179bc8vg.xml', '--output', '-', '--body'] 3727s # Return code: 0 3727s # Output: 3727s # /* 3727s # * This file is generated by gdbus-codegen, do not modify it. 3727s # * 3727s # * The license of this code is the same as for the D-Bus interface description 3727s # * it was derived from. Note that it links to GLib, so must comply with the 3727s # * LGPL linking clauses. 3727s # */ 3727s # 3727s # #ifdef HAVE_CONFIG_H 3727s # # include "config.h" 3727s # #endif 3727s # 3727s # #include <string.h> 3727s # #ifdef G_OS_UNIX 3727s # # include <gio/gunixfdlist.h> 3727s # #endif 3727s # 3727s # #ifdef G_ENABLE_DEBUG 3727s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3727s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3727s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3727s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3727s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3727s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3727s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3727s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3727s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3727s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3727s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3727s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3727s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3727s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3727s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3727s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3727s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3727s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3727s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3727s # #else /* !G_ENABLE_DEBUG */ 3727s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3727s # * Do not access GValues directly in your code. Instead, use the 3727s # * g_value_get_*() functions 3727s # */ 3727s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3727s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3727s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3727s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3727s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3727s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3727s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3727s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3727s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3727s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3727s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3727s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3727s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3727s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3727s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3727s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3727s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3727s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3727s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3727s # #endif /* !G_ENABLE_DEBUG */ 3727s # 3727s # typedef struct 3727s # { 3727s # GDBusArgInfo parent_struct; 3727s # gboolean use_gvariant; 3727s # } _ExtendedGDBusArgInfo; 3727s # 3727s # typedef struct 3727s # { 3727s # GDBusMethodInfo parent_struct; 3727s # const gchar *signal_name; 3727s # gboolean pass_fdlist; 3727s # } _ExtendedGDBusMethodInfo; 3727s # 3727s # typedef struct 3727s # { 3727s # GDBusSignalInfo parent_struct; 3727s # const gchar *signal_name; 3727s # } _ExtendedGDBusSignalInfo; 3727s # 3727s # typedef struct 3727s # { 3727s # GDBusPropertyInfo parent_struct; 3727s # const gchar *hyphen_name; 3727s # guint use_gvariant : 1; 3727s # guint emits_changed_signal : 1; 3727s # } _ExtendedGDBusPropertyInfo; 3727s # 3727s # typedef struct 3727s # { 3727s # GDBusInterfaceInfo parent_struct; 3727s # const gchar *hyphen_name; 3727s # } _ExtendedGDBusInterfaceInfo; 3727s # 3727s # typedef struct 3727s # { 3727s # const _ExtendedGDBusPropertyInfo *info; 3727s # guint prop_id; 3727s # GValue orig_value; /* the value before the change */ 3727s # } ChangedProperty; 3727s # 3727s # static void 3727s # _changed_property_free (ChangedProperty *data) 3727s # { 3727s # g_value_unset (&data->orig_value); 3727s # g_free (data); 3727s # } 3727s # 3727s # static gboolean 3727s # _g_strv_equal0 (gchar **a, gchar **b) 3727s # { 3727s # gboolean ret = FALSE; 3727s # guint n; 3727s # if (a == NULL && b == NULL) 3727s # { 3727s # ret = TRUE; 3727s # goto out; 3727s # } 3727s # if (a == NULL || b == NULL) 3727s # goto out; 3727s # if (g_strv_length (a) != g_strv_length (b)) 3727s # goto out; 3727s # for (n = 0; a[n] != NULL; n++) 3727s # if (g_strcmp0 (a[n], b[n]) != 0) 3727s # goto out; 3727s # ret = TRUE; 3727s # out: 3727s # return ret; 3727s # } 3727s # 3727s # static gboolean 3727s # _g_variant_equal0 (GVariant *a, GVariant *b) 3727s # { 3727s # gboolean ret = FALSE; 3727s # if (a == NULL && b == NULL) 3727s # { 3727s # ret = TRUE; 3727s # goto out; 3727s # } 3727s # if (a == NULL || b == NULL) 3727s # goto out; 3727s # ret = g_variant_equal (a, b); 3727s # out: 3727s # return ret; 3727s # } 3727s # 3727s # G_GNUC_UNUSED static gboolean 3727s # _g_value_equal (const GValue *a, const GValue *b) 3727s # { 3727s # gboolean ret = FALSE; 3727s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3727s # switch (G_VALUE_TYPE (a)) 3727s # { 3727s # case G_TYPE_BOOLEAN: 3727s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3727s # break; 3727s # case G_TYPE_UCHAR: 3727s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3727s # break; 3727s # case G_TYPE_INT: 3727s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3727s # break; 3727s # case G_TYPE_UINT: 3727s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3727s # break; 3727s # case G_TYPE_INT64: 3727s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3727s # break; 3727s # case G_TYPE_UINT64: 3727s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3727s # break; 3727s # case G_TYPE_DOUBLE: 3727s # { 3727s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3727s # gdouble da = g_value_get_double (a); 3727s # gdouble db = g_value_get_double (b); 3727s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3727s # } 3727s # break; 3727s # case G_TYPE_STRING: 3727s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3727s # break; 3727s # case G_TYPE_VARIANT: 3727s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3727s # break; 3727s # default: 3727s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3727s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3727s # else 3727s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3727s # break; 3727s # } 3727s # return ret; 3727s # } 3727s # 3727s # /* ------------------------------------------------------------------------ 3727s # * Code for interface org.project.SignalingIface 3727s # * ------------------------------------------------------------------------ 3727s # */ 3727s # 3727s # /** 3727s # * SECTION:OrgProjectSignalingIface 3727s # * @title: OrgProjectSignalingIface 3727s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 3727s # * 3727s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface in C. 3727s # */ 3727s # 3727s # enum 3727s # { 3727s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 3727s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY, 3727s # }; 3727s # 3727s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 3727s # 3727s # /* ---- Introspection data for org.project.SignalingIface ---- */ 3727s # 3727s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 3727s # { 3727s # { 3727s # -1, 3727s # (gchar *) "SimpleSignal", 3727s # NULL, 3727s # NULL 3727s # }, 3727s # "simple-signal" 3727s # }; 3727s # 3727s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_arg_aay = 3727s # { 3727s # { 3727s # -1, 3727s # (gchar *) "arg_aay", 3727s # (gchar *) "aay", 3727s # NULL 3727s # }, 3727s # FALSE 3727s # }; 3727s # 3727s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers[] = 3727s # { 3727s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_arg_aay.parent_struct, 3727s # NULL 3727s # }; 3727s # 3727s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay = 3727s # { 3727s # { 3727s # -1, 3727s # (gchar *) "SingleArgSignalAay", 3727s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers, 3727s # NULL 3727s # }, 3727s # "single-arg-signal-aay" 3727s # }; 3727s # 3727s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 3727s # { 3727s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 3727s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay.parent_struct, 3727s # NULL 3727s # }; 3727s # 3727s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 3727s # { 3727s # { 3727s # -1, 3727s # (gchar *) "org.project.SignalingIface", 3727s # NULL, 3727s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 3727s # NULL, 3727s # NULL 3727s # }, 3727s # "org-project-signaling-iface", 3727s # }; 3727s # 3727s # 3727s # /** 3727s # * org_project_signaling_iface_interface_info: 3727s # * 3727s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface. 3727s # * 3727s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3727s # */ 3727s # GDBusInterfaceInfo * 3727s # org_project_signaling_iface_interface_info (void) 3727s # { 3727s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 3727s # } 3727s # 3727s # /** 3727s # * org_project_signaling_iface_override_properties: 3727s # * @klass: The class structure for a #GObject derived class. 3727s # * @property_id_begin: The property id to assign to the first overridden property. 3727s # * 3727s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 3727s # * The properties are overridden in the order they are defined. 3727s # * 3727s # * Returns: The last property id. 3727s # */ 3727s # guint 3727s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3727s # { 3727s # return property_id_begin - 1; 3727s # } 3727s # 3727s # 3727s # inline static void 3727s # org_project_signaling_iface_signal_marshal_simple_signal ( 3727s # GClosure *closure, 3727s # GValue *return_value, 3727s # unsigned int n_param_values, 3727s # const GValue *param_values, 3727s # void *invocation_hint, 3727s # void *marshal_data) 3727s # { 3727s # g_cclosure_marshal_VOID__VOID (closure, 3727s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3727s # } 3727s # 3727s # inline static void 3727s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay ( 3727s # GClosure *closure, 3727s # GValue *return_value, 3727s # unsigned int n_param_values, 3727s # const GValue *param_values, 3727s # void *invocation_hint, 3727s # void *marshal_data) 3727s # { 3727s # g_cclosure_marshal_VOID__BOXED (closure, 3727s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3727s # } 3727s # 3727s # 3727s # /** 3727s # * OrgProjectSignalingIface: 3727s # * 3727s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3727s # */ 3727s # 3727s # /** 3727s # * OrgProjectSignalingIfaceIface: 3727s # * @parent_iface: The parent interface. 3727s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 3727s # * @single_arg_signal_aay: Handler for the #OrgProjectSignalingIface::single-arg-signal-aay signal. 3727s # * 3727s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3727s # */ 3727s # 3727s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 3727s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 3727s # 3727s # static void 3727s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 3727s # { 3727s # /* GObject signals for received D-Bus signals: */ 3727s # /** 3727s # * OrgProjectSignalingIface::simple-signal: 3727s # * @object: A #OrgProjectSignalingIface. 3727s # * 3727s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SimpleSignal">"SimpleSignal"</link> is received. 3727s # * 3727s # * 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. 3727s # */ 3727s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 3727s # g_signal_new ("simple-signal", 3727s # G_TYPE_FROM_INTERFACE (iface), 3727s # G_SIGNAL_RUN_LAST, 3727s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 3727s # NULL, 3727s # NULL, 3727s # org_project_signaling_iface_signal_marshal_simple_signal, 3727s # G_TYPE_NONE, 3727s # 0); 3727s # 3727s # /** 3727s # * OrgProjectSignalingIface::single-arg-signal-aay: 3727s # * @object: A #OrgProjectSignalingIface. 3727s # * @arg_arg_aay: Argument. 3727s # * 3727s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalAay">"SingleArgSignalAay"</link> is received. 3727s # * 3727s # * 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. 3727s # */ 3727s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY] = 3727s # g_signal_new ("single-arg-signal-aay", 3727s # G_TYPE_FROM_INTERFACE (iface), 3727s # G_SIGNAL_RUN_LAST, 3727s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_aay), 3727s # NULL, 3727s # NULL, 3727s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay, 3727s # G_TYPE_NONE, 3727s # 1, G_TYPE_STRV); 3727s # 3727s # } 3727s # 3727s # /** 3727s # * org_project_signaling_iface_emit_simple_signal: 3727s # * @object: A #OrgProjectSignalingIface. 3727s # * 3727s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SimpleSignal">"SimpleSignal"</link> D-Bus signal. 3727s # */ 3727s # void 3727s # org_project_signaling_iface_emit_simple_signal ( 3727s # OrgProjectSignalingIface *object) 3727s # { 3727s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 3727s # } 3727s # 3727s # /** 3727s # * org_project_signaling_iface_emit_single_arg_signal_aay: 3727s # * @object: A #OrgProjectSignalingIface. 3727s # * @arg_arg_aay: Argument to pass with the signal. 3727s # * 3727s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalAay">"SingleArgSignalAay"</link> D-Bus signal. 3727s # */ 3727s # void 3727s # org_project_signaling_iface_emit_single_arg_signal_aay ( 3727s # OrgProjectSignalingIface *object, 3727s # const gchar *const *arg_arg_aay) 3727s # { 3727s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY], 0, arg_arg_aay); 3727s # } 3727s # 3727s # /* ------------------------------------------------------------------------ */ 3727s # 3727s # /** 3727s # * OrgProjectSignalingIfaceProxy: 3727s # * 3727s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 3727s # */ 3727s # 3727s # /** 3727s # * OrgProjectSignalingIfaceProxyClass: 3727s # * @parent_class: The parent class. 3727s # * 3727s # * Class structure for #OrgProjectSignalingIfaceProxy. 3727s # */ 3727s # 3727s # struct _OrgProjectSignalingIfaceProxyPrivate 3727s # { 3727s # GData *qdata; 3727s # }; 3727s # 3727s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 3727s # 3727s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3727s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3727s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 3727s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3727s # 3727s # #else 3727s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3727s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3727s # 3727s # #endif 3727s # static void 3727s # org_project_signaling_iface_proxy_finalize (GObject *object) 3727s # { 3727s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 3727s # g_datalist_clear (&proxy->priv->qdata); 3727s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3727s # guint prop_id G_GNUC_UNUSED, 3727s # GValue *value G_GNUC_UNUSED, 3727s # GParamSpec *pspec G_GNUC_UNUSED) 3727s # { 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3727s # guint prop_id G_GNUC_UNUSED, 3727s # const GValue *value G_GNUC_UNUSED, 3727s # GParamSpec *pspec G_GNUC_UNUSED) 3727s # { 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 3727s # const gchar *sender_name G_GNUC_UNUSED, 3727s # const gchar *signal_name, 3727s # GVariant *parameters) 3727s # { 3727s # _ExtendedGDBusSignalInfo *info; 3727s # GVariantIter iter; 3727s # GVariant *child; 3727s # GValue *paramv; 3727s # gsize num_params; 3727s # gsize n; 3727s # guint signal_id; 3727s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 3727s # if (info == NULL) 3727s # return; 3727s # num_params = g_variant_n_children (parameters); 3727s # paramv = g_new0 (GValue, num_params + 1); 3727s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3727s # g_value_set_object (¶mv[0], proxy); 3727s # g_variant_iter_init (&iter, parameters); 3727s # n = 1; 3727s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3727s # { 3727s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3727s # if (arg_info->use_gvariant) 3727s # { 3727s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3727s # g_value_set_variant (¶mv[n], child); 3727s # n++; 3727s # } 3727s # else 3727s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3727s # g_variant_unref (child); 3727s # } 3727s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3727s # g_signal_emitv (paramv, signal_id, 0, NULL); 3727s # for (n = 0; n < num_params + 1; n++) 3727s # g_value_unset (¶mv[n]); 3727s # g_free (paramv); 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 3727s # GVariant *changed_properties, 3727s # const gchar *const *invalidated_properties) 3727s # { 3727s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 3727s # guint n; 3727s # const gchar *key; 3727s # GVariantIter *iter; 3727s # _ExtendedGDBusPropertyInfo *info; 3727s # g_variant_get (changed_properties, "a{sv}", &iter); 3727s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3727s # { 3727s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 3727s # g_datalist_remove_data (&proxy->priv->qdata, key); 3727s # if (info != NULL) 3727s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3727s # } 3727s # g_variant_iter_free (iter); 3727s # for (n = 0; invalidated_properties[n] != NULL; n++) 3727s # { 3727s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 3727s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3727s # if (info != NULL) 3727s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3727s # } 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 3727s # { 3727s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3727s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 3727s # #else 3727s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 3727s # #endif 3727s # 3727s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 3727s # { 3727s # GObjectClass *gobject_class; 3727s # GDBusProxyClass *proxy_class; 3727s # 3727s # gobject_class = G_OBJECT_CLASS (klass); 3727s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 3727s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 3727s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 3727s # 3727s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3727s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 3727s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 3727s # 3727s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3727s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 3727s # #endif 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 3727s # { 3727s # } 3727s # 3727s # /** 3727s # * org_project_signaling_iface_proxy_new: 3727s # * @connection: A #GDBusConnection. 3727s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3727s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3727s # * @object_path: An object path. 3727s # * @cancellable: (nullable): A #GCancellable or %NULL. 3727s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3727s # * @user_data: User data to pass to @callback. 3727s # * 3727s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new() for more details. 3727s # * 3727s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3727s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 3727s # * 3727s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3727s # */ 3727s # void 3727s # org_project_signaling_iface_proxy_new ( 3727s # GDBusConnection *connection, 3727s # GDBusProxyFlags flags, 3727s # const gchar *name, 3727s # const gchar *object_path, 3727s # GCancellable *cancellable, 3727s # GAsyncReadyCallback callback, 3727s # gpointer user_data) 3727s # { 3727s # 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); 3727s # } 3727s # 3727s # /** 3727s # * org_project_signaling_iface_proxy_new_finish: 3727s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 3727s # * @error: Return location for error or %NULL 3727s # * 3727s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 3727s # * 3727s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3727s # */ 3727s # OrgProjectSignalingIface * 3727s # org_project_signaling_iface_proxy_new_finish ( 3727s # GAsyncResult *res, 3727s # GError **error) 3727s # { 3727s # GObject *ret; 3727s # GObject *source_object; 3727s # source_object = g_async_result_get_source_object (res); 3727s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3727s # g_object_unref (source_object); 3727s # if (ret != NULL) 3727s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3727s # else 3727s # return NULL; 3727s # } 3727s # 3727s # /** 3727s # * org_project_signaling_iface_proxy_new_sync: 3727s # * @connection: A #GDBusConnection. 3727s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3727s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3727s # * @object_path: An object path. 3727s # * @cancellable: (nullable): A #GCancellable or %NULL. 3727s # * @error: Return location for error or %NULL 3727s # * 3727s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new_sync() for more details. 3727s # * 3727s # * The calling thread is blocked until a reply is received. 3727s # * 3727s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 3727s # * 3727s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3727s # */ 3727s # OrgProjectSignalingIface * 3727s # org_project_signaling_iface_proxy_new_sync ( 3727s # GDBusConnection *connection, 3727s # GDBusProxyFlags flags, 3727s # const gchar *name, 3727s # const gchar *object_path, 3727s # GCancellable *cancellable, 3727s # GError **error) 3727s # { 3727s # GInitable *ret; 3727s # 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); 3727s # if (ret != NULL) 3727s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3727s # else 3727s # return NULL; 3727s # } 3727s # 3727s # 3727s # /** 3727s # * org_project_signaling_iface_proxy_new_for_bus: 3727s # * @bus_type: A #GBusType. 3727s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3727s # * @name: A bus name (well-known or unique). 3727s # * @object_path: An object path. 3727s # * @cancellable: (nullable): A #GCancellable or %NULL. 3727s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3727s # * @user_data: User data to pass to @callback. 3727s # * 3727s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3727s # * 3727s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3727s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 3727s # * 3727s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3727s # */ 3727s # void 3727s # org_project_signaling_iface_proxy_new_for_bus ( 3727s # GBusType bus_type, 3727s # GDBusProxyFlags flags, 3727s # const gchar *name, 3727s # const gchar *object_path, 3727s # GCancellable *cancellable, 3727s # GAsyncReadyCallback callback, 3727s # gpointer user_data) 3727s # { 3727s # 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); 3727s # } 3727s # 3727s # /** 3727s # * org_project_signaling_iface_proxy_new_for_bus_finish: 3727s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 3727s # * @error: Return location for error or %NULL 3727s # * 3727s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 3727s # * 3727s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3727s # */ 3727s # OrgProjectSignalingIface * 3727s # org_project_signaling_iface_proxy_new_for_bus_finish ( 3727s # GAsyncResult *res, 3727s # GError **error) 3727s # { 3727s # GObject *ret; 3727s # GObject *source_object; 3727s # source_object = g_async_result_get_source_object (res); 3727s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3727s # g_object_unref (source_object); 3727s # if (ret != NULL) 3727s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3727s # else 3727s # return NULL; 3727s # } 3727s # 3727s # /** 3727s # * org_project_signaling_iface_proxy_new_for_bus_sync: 3727s # * @bus_type: A #GBusType. 3727s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3727s # * @name: A bus name (well-known or unique). 3727s # * @object_path: An object path. 3727s # * @cancellable: (nullable): A #GCancellable or %NULL. 3727s # * @error: Return location for error or %NULL 3727s # * 3727s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3727s # * 3727s # * The calling thread is blocked until a reply is received. 3727s # * 3727s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 3727s # * 3727s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3727s # */ 3727s # OrgProjectSignalingIface * 3727s # org_project_signaling_iface_proxy_new_for_bus_sync ( 3727s # GBusType bus_type, 3727s # GDBusProxyFlags flags, 3727s # const gchar *name, 3727s # const gchar *object_path, 3727s # GCancellable *cancellable, 3727s # GError **error) 3727s # { 3727s # GInitable *ret; 3727s # 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); 3727s # if (ret != NULL) 3727s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3727s # else 3727s # return NULL; 3727s # } 3727s # 3727s # 3727s # /* ------------------------------------------------------------------------ */ 3727s # 3727s # /** 3727s # * OrgProjectSignalingIfaceSkeleton: 3727s # * 3727s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3727s # */ 3727s # 3727s # /** 3727s # * OrgProjectSignalingIfaceSkeletonClass: 3727s # * @parent_class: The parent class. 3727s # * 3727s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 3727s # */ 3727s # 3727s # struct _OrgProjectSignalingIfaceSkeletonPrivate 3727s # { 3727s # GValue *properties; 3727s # GList *changed_properties; 3727s # GSource *changed_properties_idle_source; 3727s # GMainContext *context; 3727s # GMutex lock; 3727s # }; 3727s # 3727s # static void 3727s # _org_project_signaling_iface_skeleton_handle_method_call ( 3727s # GDBusConnection *connection G_GNUC_UNUSED, 3727s # const gchar *sender G_GNUC_UNUSED, 3727s # const gchar *object_path G_GNUC_UNUSED, 3727s # const gchar *interface_name, 3727s # const gchar *method_name, 3727s # GVariant *parameters, 3727s # GDBusMethodInvocation *invocation, 3727s # gpointer user_data) 3727s # { 3727s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3727s # _ExtendedGDBusMethodInfo *info; 3727s # GVariantIter iter; 3727s # GVariant *child; 3727s # GValue *paramv; 3727s # gsize num_params; 3727s # guint num_extra; 3727s # gsize n; 3727s # guint signal_id; 3727s # GValue return_value = G_VALUE_INIT; 3727s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3727s # g_assert (info != NULL); 3727s # num_params = g_variant_n_children (parameters); 3727s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3727s # n = 0; 3727s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3727s # g_value_set_object (¶mv[n++], skeleton); 3727s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3727s # g_value_set_object (¶mv[n++], invocation); 3727s # if (info->pass_fdlist) 3727s # { 3727s # #ifdef G_OS_UNIX 3727s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3727s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3727s # #else 3727s # g_assert_not_reached (); 3727s # #endif 3727s # } 3727s # g_variant_iter_init (&iter, parameters); 3727s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3727s # { 3727s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3727s # if (arg_info->use_gvariant) 3727s # { 3727s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3727s # g_value_set_variant (¶mv[n], child); 3727s # n++; 3727s # } 3727s # else 3727s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3727s # g_variant_unref (child); 3727s # } 3727s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3727s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3727s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3727s # if (!g_value_get_boolean (&return_value)) 3727s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3727s # g_value_unset (&return_value); 3727s # for (n = 0; n < num_params + num_extra; n++) 3727s # g_value_unset (¶mv[n]); 3727s # g_free (paramv); 3727s # } 3727s # 3727s # static GVariant * 3727s # _org_project_signaling_iface_skeleton_handle_get_property ( 3727s # GDBusConnection *connection G_GNUC_UNUSED, 3727s # const gchar *sender G_GNUC_UNUSED, 3727s # const gchar *object_path G_GNUC_UNUSED, 3727s # const gchar *interface_name G_GNUC_UNUSED, 3727s # const gchar *property_name, 3727s # GError **error, 3727s # gpointer user_data) 3727s # { 3727s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3727s # GValue value = G_VALUE_INIT; 3727s # GParamSpec *pspec; 3727s # _ExtendedGDBusPropertyInfo *info; 3727s # GVariant *ret; 3727s # ret = NULL; 3727s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3727s # g_assert (info != NULL); 3727s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3727s # if (pspec == NULL) 3727s # { 3727s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3727s # } 3727s # else 3727s # { 3727s # g_value_init (&value, pspec->value_type); 3727s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3727s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3727s # g_value_unset (&value); 3727s # } 3727s # return ret; 3727s # } 3727s # 3727s # static gboolean 3727s # _org_project_signaling_iface_skeleton_handle_set_property ( 3727s # GDBusConnection *connection G_GNUC_UNUSED, 3727s # const gchar *sender G_GNUC_UNUSED, 3727s # const gchar *object_path G_GNUC_UNUSED, 3727s # const gchar *interface_name G_GNUC_UNUSED, 3727s # const gchar *property_name, 3727s # GVariant *variant, 3727s # GError **error, 3727s # gpointer user_data) 3727s # { 3727s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3727s # GValue value = G_VALUE_INIT; 3727s # GParamSpec *pspec; 3727s # _ExtendedGDBusPropertyInfo *info; 3727s # gboolean ret; 3727s # ret = FALSE; 3727s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3727s # g_assert (info != NULL); 3727s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3727s # if (pspec == NULL) 3727s # { 3727s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3727s # } 3727s # else 3727s # { 3727s # if (info->use_gvariant) 3727s # g_value_set_variant (&value, variant); 3727s # else 3727s # g_dbus_gvariant_to_gvalue (variant, &value); 3727s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3727s # g_value_unset (&value); 3727s # ret = TRUE; 3727s # } 3727s # return ret; 3727s # } 3727s # 3727s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 3727s # { 3727s # _org_project_signaling_iface_skeleton_handle_method_call, 3727s # _org_project_signaling_iface_skeleton_handle_get_property, 3727s # _org_project_signaling_iface_skeleton_handle_set_property, 3727s # {NULL} 3727s # }; 3727s # 3727s # static GDBusInterfaceInfo * 3727s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3727s # { 3727s # return org_project_signaling_iface_interface_info (); 3727s # } 3727s # 3727s # static GDBusInterfaceVTable * 3727s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3727s # { 3727s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 3727s # } 3727s # 3727s # static GVariant * 3727s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3727s # { 3727s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 3727s # 3727s # GVariantBuilder builder; 3727s # guint n; 3727s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3727s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3727s # #else 3727s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3727s # #endif 3727s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 3727s # goto out; 3727s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 3727s # { 3727s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 3727s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3727s # { 3727s # GVariant *value; 3727s # 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); 3727s # if (value != NULL) 3727s # { 3727s # g_variant_take_ref (value); 3727s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3727s # g_variant_unref (value); 3727s # } 3727s # } 3727s # } 3727s # out: 3727s # return g_variant_builder_end (&builder); 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3727s # { 3727s # } 3727s # 3727s # static void 3727s # _org_project_signaling_iface_on_signal_simple_signal ( 3727s # OrgProjectSignalingIface *object) 3727s # { 3727s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3727s # 3727s # GList *connections, *l; 3727s # GVariant *signal_variant; 3727s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3727s # 3727s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 3727s # for (l = connections; l != NULL; l = l->next) 3727s # { 3727s # GDBusConnection *connection = l->data; 3727s # g_dbus_connection_emit_signal (connection, 3727s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 3727s # signal_variant, NULL); 3727s # } 3727s # g_variant_unref (signal_variant); 3727s # g_list_free_full (connections, g_object_unref); 3727s # } 3727s # 3727s # static void 3727s # _org_project_signaling_iface_on_signal_single_arg_signal_aay ( 3727s # OrgProjectSignalingIface *object, 3727s # const gchar *const *arg_arg_aay) 3727s # { 3727s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3727s # 3727s # GList *connections, *l; 3727s # GVariant *signal_variant; 3727s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3727s # 3727s # signal_variant = g_variant_ref_sink (g_variant_new ("(^aay)", 3727s # arg_arg_aay)); 3727s # for (l = connections; l != NULL; l = l->next) 3727s # { 3727s # GDBusConnection *connection = l->data; 3727s # g_dbus_connection_emit_signal (connection, 3727s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAay", 3727s # signal_variant, NULL); 3727s # } 3727s # g_variant_unref (signal_variant); 3727s # g_list_free_full (connections, g_object_unref); 3727s # } 3727s # 3727s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 3727s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3727s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3727s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 3727s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3727s # 3727s # #else 3727s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3727s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3727s # 3727s # #endif 3727s # static void 3727s # org_project_signaling_iface_skeleton_finalize (GObject *object) 3727s # { 3727s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3727s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3727s # if (skeleton->priv->changed_properties_idle_source != NULL) 3727s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3727s # g_main_context_unref (skeleton->priv->context); 3727s # g_mutex_clear (&skeleton->priv->lock); 3727s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 3727s # { 3727s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3727s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 3727s # #else 3727s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 3727s # #endif 3727s # 3727s # g_mutex_init (&skeleton->priv->lock); 3727s # skeleton->priv->context = g_main_context_ref_thread_default (); 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 3727s # { 3727s # GObjectClass *gobject_class; 3727s # GDBusInterfaceSkeletonClass *skeleton_class; 3727s # 3727s # gobject_class = G_OBJECT_CLASS (klass); 3727s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 3727s # 3727s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3727s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 3727s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 3727s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 3727s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 3727s # 3727s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3727s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 3727s # #endif 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 3727s # { 3727s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 3727s # iface->single_arg_signal_aay = _org_project_signaling_iface_on_signal_single_arg_signal_aay; 3727s # } 3727s # 3727s # /** 3727s # * org_project_signaling_iface_skeleton_new: 3727s # * 3727s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3727s # * 3727s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 3727s # */ 3727s # OrgProjectSignalingIface * 3727s # org_project_signaling_iface_skeleton_new (void) 3727s # { 3727s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 3727s # } 3727s # Error: 3727s # 3727s # /tmp/tmp9symyp9z/tmpyixu7smz.xml: 3727s # <node> 3727s # <interface name="org.project.SignalingIface"> 3727s # <signal name="SimpleSignal"/> 3727s # <signal name="SingleArgSignalAsv"> 3727s # <arg name="arg_asv" type="a{sv}"/> 3727s # </signal> 3727s # </interface> 3727s # </node> 3727s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9symyp9z/tmpyixu7smz.xml', '--output', '-', '--body'] 3727s # Return code: 0 3727s # Output: 3727s # /* 3727s # * This file is generated by gdbus-codegen, do not modify it. 3727s # * 3727s # * The license of this code is the same as for the D-Bus interface description 3727s # * it was derived from. Note that it links to GLib, so must comply with the 3727s # * LGPL linking clauses. 3727s # */ 3727s # 3727s # #ifdef HAVE_CONFIG_H 3727s # # include "config.h" 3727s # #endif 3727s # 3727s # #include <string.h> 3727s # #ifdef G_OS_UNIX 3727s # # include <gio/gunixfdlist.h> 3727s # #endif 3727s # 3727s # #ifdef G_ENABLE_DEBUG 3727s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3727s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3727s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3727s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3727s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3727s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3727s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3727s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3727s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3727s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3727s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3727s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3727s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3727s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3727s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3727s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3727s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3727s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3727s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3727s # #else /* !G_ENABLE_DEBUG */ 3727s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3727s # * Do not access GValues directly in your code. Instead, use the 3727s # * g_value_get_*() functions 3727s # */ 3727s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3727s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3727s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3727s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3727s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3727s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3727s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3727s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3727s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3727s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3727s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3727s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3727s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3727s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3727s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3727s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3727s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3727s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3727s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3727s # #endif /* !G_ENABLE_DEBUG */ 3727s # 3727s # typedef struct 3727s # { 3727s # GDBusArgInfo parent_struct; 3727s # gboolean use_gvariant; 3727s # } _ExtendedGDBusArgInfo; 3727s # 3727s # typedef struct 3727s # { 3727s # GDBusMethodInfo parent_struct; 3727s # const gchar *signal_name; 3727s # gboolean pass_fdlist; 3727s # } _ExtendedGDBusMethodInfo; 3727s # 3727s # typedef struct 3727s # { 3727s # GDBusSignalInfo parent_struct; 3727s # const gchar *signal_name; 3727s # } _ExtendedGDBusSignalInfo; 3727s # 3727s # typedef struct 3727s # { 3727s # GDBusPropertyInfo parent_struct; 3727s # const gchar *hyphen_name; 3727s # guint use_gvariant : 1; 3727s # guint emits_changed_signal : 1; 3727s # } _ExtendedGDBusPropertyInfo; 3727s # 3727s # typedef struct 3727s # { 3727s # GDBusInterfaceInfo parent_struct; 3727s # const gchar *hyphen_name; 3727s # } _ExtendedGDBusInterfaceInfo; 3727s # 3727s # typedef struct 3727s # { 3727s # const _ExtendedGDBusPropertyInfo *info; 3727s # guint prop_id; 3727s # GValue orig_value; /* the value before the change */ 3727s # } ChangedProperty; 3727s # 3727s # static void 3727s # _changed_property_free (ChangedProperty *data) 3727s # { 3727s # g_value_unset (&data->orig_value); 3727s # g_free (data); 3727s # } 3727s # 3727s # static gboolean 3727s # _g_strv_equal0 (gchar **a, gchar **b) 3727s # { 3727s # gboolean ret = FALSE; 3727s # guint n; 3727s # if (a == NULL && b == NULL) 3727s # { 3727s # ret = TRUE; 3727s # goto out; 3727s # } 3727s # if (a == NULL || b == NULL) 3727s # goto out; 3727s # if (g_strv_length (a) != g_strv_length (b)) 3727s # goto out; 3727s # for (n = 0; a[n] != NULL; n++) 3727s # if (g_strcmp0 (a[n], b[n]) != 0) 3727s # goto out; 3727s # ret = TRUE; 3727s # out: 3727s # return ret; 3727s # } 3727s # 3727s # static gboolean 3727s # _g_variant_equal0 (GVariant *a, GVariant *b) 3727s # { 3727s # gboolean ret = FALSE; 3727s # if (a == NULL && b == NULL) 3727s # { 3727s # ret = TRUE; 3727s # goto out; 3727s # } 3727s # if (a == NULL || b == NULL) 3727s # goto out; 3727s # ret = g_variant_equal (a, b); 3727s # out: 3727s # return ret; 3727s # } 3727s # 3727s # G_GNUC_UNUSED static gboolean 3727s # _g_value_equal (const GValue *a, const GValue *b) 3727s # { 3727s # gboolean ret = FALSE; 3727s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3727s # switch (G_VALUE_TYPE (a)) 3727s # { 3727s # case G_TYPE_BOOLEAN: 3727s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3727s # break; 3727s # case G_TYPE_UCHAR: 3727s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3727s # break; 3727s # case G_TYPE_INT: 3727s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3727s # break; 3727s # case G_TYPE_UINT: 3727s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3727s # break; 3727s # case G_TYPE_INT64: 3727s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3727s # break; 3727s # case G_TYPE_UINT64: 3727s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3727s # break; 3727s # case G_TYPE_DOUBLE: 3727s # { 3727s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3727s # gdouble da = g_value_get_double (a); 3727s # gdouble db = g_value_get_double (b); 3727s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3727s # } 3727s # break; 3727s # case G_TYPE_STRING: 3727s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3727s # break; 3727s # case G_TYPE_VARIANT: 3727s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3727s # break; 3727s # default: 3727s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3727s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3727s # else 3727s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3727s # break; 3727s # } 3727s # return ret; 3727s # } 3727s # 3727s # /* ------------------------------------------------------------------------ 3727s # * Code for interface org.project.SignalingIface 3727s # * ------------------------------------------------------------------------ 3727s # */ 3727s # 3727s # /** 3727s # * SECTION:OrgProjectSignalingIface 3727s # * @title: OrgProjectSignalingIface 3727s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 3727s # * 3727s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface in C. 3727s # */ 3727s # 3727s # enum 3727s # { 3727s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 3727s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV, 3727s # }; 3727s # 3727s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 3727s # 3727s # /* ---- Introspection data for org.project.SignalingIface ---- */ 3727s # 3727s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 3727s # { 3727s # { 3727s # -1, 3727s # (gchar *) "SimpleSignal", 3727s # NULL, 3727s # NULL 3727s # }, 3727s # "simple-signal" 3727s # }; 3727s # 3727s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_arg_asv = 3727s # { 3727s # { 3727s # -1, 3727s # (gchar *) "arg_asv", 3727s # (gchar *) "a{sv}", 3727s # NULL 3727s # }, 3727s # FALSE 3727s # }; 3727s # 3727s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers[] = 3727s # { 3727s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_arg_asv.parent_struct, 3727s # NULL 3727s # }; 3727s # 3727s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv = 3727s # { 3727s # { 3727s # -1, 3727s # (gchar *) "SingleArgSignalAsv", 3727s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers, 3727s # NULL 3727s # }, 3727s # "single-arg-signal-asv" 3727s # }; 3727s # 3727s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 3727s # { 3727s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 3727s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv.parent_struct, 3727s # NULL 3727s # }; 3727s # 3727s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 3727s # { 3727s # { 3727s # -1, 3727s # (gchar *) "org.project.SignalingIface", 3727s # NULL, 3727s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 3727s # NULL, 3727s # NULL 3727s # }, 3727s # "org-project-signaling-iface", 3727s # }; 3727s # 3727s # 3727s # /** 3727s # * org_project_signaling_iface_interface_info: 3727s # * 3727s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface. 3727s # * 3727s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3727s # */ 3727s # GDBusInterfaceInfo * 3727s # org_project_signaling_iface_interface_info (void) 3727s # { 3727s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 3727s # } 3727s # 3727s # /** 3727s # * org_project_signaling_iface_override_properties: 3727s # * @klass: The class structure for a #GObject derived class. 3727s # * @property_id_begin: The property id to assign to the first overridden property. 3727s # * 3727s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 3727s # * The properties are overridden in the order they are defined. 3727s # * 3727s # * Returns: The last property id. 3727s # */ 3727s # guint 3727s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3727s # { 3727s # return property_id_begin - 1; 3727s # } 3727s # 3727s # 3727s # inline static void 3727s # org_project_signaling_iface_signal_marshal_simple_signal ( 3727s # GClosure *closure, 3727s # GValue *return_value, 3727s # unsigned int n_param_values, 3727s # const GValue *param_values, 3727s # void *invocation_hint, 3727s # void *marshal_data) 3727s # { 3727s # g_cclosure_marshal_VOID__VOID (closure, 3727s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3727s # } 3727s # 3727s # inline static void 3727s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv ( 3727s # GClosure *closure, 3727s # GValue *return_value, 3727s # unsigned int n_param_values, 3727s # const GValue *param_values, 3727s # void *invocation_hint, 3727s # void *marshal_data) 3727s # { 3727s # g_cclosure_marshal_VOID__VARIANT (closure, 3727s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3727s # } 3727s # 3727s # 3727s # /** 3727s # * OrgProjectSignalingIface: 3727s # * 3727s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3727s # */ 3727s # 3727s # /** 3727s # * OrgProjectSignalingIfaceIface: 3727s # * @parent_iface: The parent interface. 3727s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 3727s # * @single_arg_signal_asv: Handler for the #OrgProjectSignalingIface::single-arg-signal-asv signal. 3727s # * 3727s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3727s # */ 3727s # 3727s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 3727s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 3727s # 3727s # static void 3727s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 3727s # { 3727s # /* GObject signals for received D-Bus signals: */ 3727s # /** 3727s # * OrgProjectSignalingIface::simple-signal: 3727s # * @object: A #OrgProjectSignalingIface. 3727s # * 3727s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SimpleSignal">"SimpleSignal"</link> is received. 3727s # * 3727s # * 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. 3727s # */ 3727s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 3727s # g_signal_new ("simple-signal", 3727s # G_TYPE_FROM_INTERFACE (iface), 3727s # G_SIGNAL_RUN_LAST, 3727s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 3727s # NULL, 3727s # NULL, 3727s # org_project_signaling_iface_signal_marshal_simple_signal, 3727s # G_TYPE_NONE, 3727s # 0); 3727s # 3727s # /** 3727s # * OrgProjectSignalingIface::single-arg-signal-asv: 3727s # * @object: A #OrgProjectSignalingIface. 3727s # * @arg_arg_asv: Argument. 3727s # * 3727s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalAsv">"SingleArgSignalAsv"</link> is received. 3727s # * 3727s # * 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. 3727s # */ 3727s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV] = 3727s # g_signal_new ("single-arg-signal-asv", 3727s # G_TYPE_FROM_INTERFACE (iface), 3727s # G_SIGNAL_RUN_LAST, 3727s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_asv), 3727s # NULL, 3727s # NULL, 3727s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv, 3727s # G_TYPE_NONE, 3727s # 1, G_TYPE_VARIANT); 3727s # 3727s # } 3727s # 3727s # /** 3727s # * org_project_signaling_iface_emit_simple_signal: 3727s # * @object: A #OrgProjectSignalingIface. 3727s # * 3727s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SimpleSignal">"SimpleSignal"</link> D-Bus signal. 3727s # */ 3727s # void 3727s # org_project_signaling_iface_emit_simple_signal ( 3727s # OrgProjectSignalingIface *object) 3727s # { 3727s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 3727s # } 3727s # 3727s # /** 3727s # * org_project_signaling_iface_emit_single_arg_signal_asv: 3727s # * @object: A #OrgProjectSignalingIface. 3727s # * @arg_arg_asv: Argument to pass with the signal. 3727s # * 3727s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SingleArgSignalAsv">"SingleArgSignalAsv"</link> D-Bus signal. 3727s # */ 3727s # void 3727s # org_project_signaling_iface_emit_single_arg_signal_asv ( 3727s # OrgProjectSignalingIface *object, 3727s # GVariant *arg_arg_asv) 3727s # { 3727s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV], 0, arg_arg_asv); 3727s # } 3727s # 3727s # /* ------------------------------------------------------------------------ */ 3727s # 3727s # /** 3727s # * OrgProjectSignalingIfaceProxy: 3727s # * 3727s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 3727s # */ 3727s # 3727s # /** 3727s # * OrgProjectSignalingIfaceProxyClass: 3727s # * @parent_class: The parent class. 3727s # * 3727s # * Class structure for #OrgProjectSignalingIfaceProxy. 3727s # */ 3727s # 3727s # struct _OrgProjectSignalingIfaceProxyPrivate 3727s # { 3727s # GData *qdata; 3727s # }; 3727s # 3727s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 3727s # 3727s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3727s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3727s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 3727s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3727s # 3727s # #else 3727s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3727s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3727s # 3727s # #endif 3727s # static void 3727s # org_project_signaling_iface_proxy_finalize (GObject *object) 3727s # { 3727s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 3727s # g_datalist_clear (&proxy->priv->qdata); 3727s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3727s # guint prop_id G_GNUC_UNUSED, 3727s # GValue *value G_GNUC_UNUSED, 3727s # GParamSpec *pspec G_GNUC_UNUSED) 3727s # { 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3727s # guint prop_id G_GNUC_UNUSED, 3727s # const GValue *value G_GNUC_UNUSED, 3727s # GParamSpec *pspec G_GNUC_UNUSED) 3727s # { 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 3727s # const gchar *sender_name G_GNUC_UNUSED, 3727s # const gchar *signal_name, 3727s # GVariant *parameters) 3727s # { 3727s # _ExtendedGDBusSignalInfo *info; 3727s # GVariantIter iter; 3727s # GVariant *child; 3727s # GValue *paramv; 3727s # gsize num_params; 3727s # gsize n; 3727s # guint signal_id; 3727s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 3727s # if (info == NULL) 3727s # return; 3727s # num_params = g_variant_n_children (parameters); 3727s # paramv = g_new0 (GValue, num_params + 1); 3727s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3727s # g_value_set_object (¶mv[0], proxy); 3727s # g_variant_iter_init (&iter, parameters); 3727s # n = 1; 3727s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3727s # { 3727s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3727s # if (arg_info->use_gvariant) 3727s # { 3727s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3727s # g_value_set_variant (¶mv[n], child); 3727s # n++; 3727s # } 3727s # else 3727s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3727s # g_variant_unref (child); 3727s # } 3727s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3727s # g_signal_emitv (paramv, signal_id, 0, NULL); 3727s # for (n = 0; n < num_params + 1; n++) 3727s # g_value_unset (¶mv[n]); 3727s # g_free (paramv); 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 3727s # GVariant *changed_properties, 3727s # const gchar *const *invalidated_properties) 3727s # { 3727s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 3727s # guint n; 3727s # const gchar *key; 3727s # GVariantIter *iter; 3727s # _ExtendedGDBusPropertyInfo *info; 3727s # g_variant_get (changed_properties, "a{sv}", &iter); 3727s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3727s # { 3727s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 3727s # g_datalist_remove_data (&proxy->priv->qdata, key); 3727s # if (info != NULL) 3727s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3727s # } 3727s # g_variant_iter_free (iter); 3727s # for (n = 0; invalidated_properties[n] != NULL; n++) 3727s # { 3727s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 3727s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3727s # if (info != NULL) 3727s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3727s # } 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 3727s # { 3727s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3727s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 3727s # #else 3727s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 3727s # #endif 3727s # 3727s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 3727s # { 3727s # GObjectClass *gobject_class; 3727s # GDBusProxyClass *proxy_class; 3727s # 3727s # gobject_class = G_OBJECT_CLASS (klass); 3727s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 3727s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 3727s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 3727s # 3727s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3727s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 3727s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 3727s # 3727s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3727s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 3727s # #endif 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 3727s # { 3727s # } 3727s # 3727s # /** 3727s # * org_project_signaling_iface_proxy_new: 3727s # * @connection: A #GDBusConnection. 3727s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3727s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3727s # * @object_path: An object path. 3727s # * @cancellable: (nullable): A #GCancellable or %NULL. 3727s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3727s # * @user_data: User data to pass to @callback. 3727s # * 3727s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new() for more details. 3727s # * 3727s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3727s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 3727s # * 3727s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3727s # */ 3727s # void 3727s # org_project_signaling_iface_proxy_new ( 3727s # GDBusConnection *connection, 3727s # GDBusProxyFlags flags, 3727s # const gchar *name, 3727s # const gchar *object_path, 3727s # GCancellable *cancellable, 3727s # GAsyncReadyCallback callback, 3727s # gpointer user_data) 3727s # { 3727s # 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); 3727s # } 3727s # 3727s # /** 3727s # * org_project_signaling_iface_proxy_new_finish: 3727s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 3727s # * @error: Return location for error or %NULL 3727s # * 3727s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 3727s # * 3727s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3727s # */ 3727s # OrgProjectSignalingIface * 3727s # org_project_signaling_iface_proxy_new_finish ( 3727s # GAsyncResult *res, 3727s # GError **error) 3727s # { 3727s # GObject *ret; 3727s # GObject *source_object; 3727s # source_object = g_async_result_get_source_object (res); 3727s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3727s # g_object_unref (source_object); 3727s # if (ret != NULL) 3727s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3727s # else 3727s # return NULL; 3727s # } 3727s # 3727s # /** 3727s # * org_project_signaling_iface_proxy_new_sync: 3727s # * @connection: A #GDBusConnection. 3727s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3727s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3727s # * @object_path: An object path. 3727s # * @cancellable: (nullable): A #GCancellable or %NULL. 3727s # * @error: Return location for error or %NULL 3727s # * 3727s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new_sync() for more details. 3727s # * 3727s # * The calling thread is blocked until a reply is received. 3727s # * 3727s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 3727s # * 3727s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3727s # */ 3727s # OrgProjectSignalingIface * 3727s # org_project_signaling_iface_proxy_new_sync ( 3727s # GDBusConnection *connection, 3727s # GDBusProxyFlags flags, 3727s # const gchar *name, 3727s # const gchar *object_path, 3727s # GCancellable *cancellable, 3727s # GError **error) 3727s # { 3727s # GInitable *ret; 3727s # 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); 3727s # if (ret != NULL) 3727s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3727s # else 3727s # return NULL; 3727s # } 3727s # 3727s # 3727s # /** 3727s # * org_project_signaling_iface_proxy_new_for_bus: 3727s # * @bus_type: A #GBusType. 3727s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3727s # * @name: A bus name (well-known or unique). 3727s # * @object_path: An object path. 3727s # * @cancellable: (nullable): A #GCancellable or %NULL. 3727s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3727s # * @user_data: User data to pass to @callback. 3727s # * 3727s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3727s # * 3727s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3727s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 3727s # * 3727s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3727s # */ 3727s # void 3727s # org_project_signaling_iface_proxy_new_for_bus ( 3727s # GBusType bus_type, 3727s # GDBusProxyFlags flags, 3727s # const gchar *name, 3727s # const gchar *object_path, 3727s # GCancellable *cancellable, 3727s # GAsyncReadyCallback callback, 3727s # gpointer user_data) 3727s # { 3727s # 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); 3727s # } 3727s # 3727s # /** 3727s # * org_project_signaling_iface_proxy_new_for_bus_finish: 3727s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 3727s # * @error: Return location for error or %NULL 3727s # * 3727s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 3727s # * 3727s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3727s # */ 3727s # OrgProjectSignalingIface * 3727s # org_project_signaling_iface_proxy_new_for_bus_finish ( 3727s # GAsyncResult *res, 3727s # GError **error) 3727s # { 3727s # GObject *ret; 3727s # GObject *source_object; 3727s # source_object = g_async_result_get_source_object (res); 3727s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3727s # g_object_unref (source_object); 3727s # if (ret != NULL) 3727s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3727s # else 3727s # return NULL; 3727s # } 3727s # 3727s # /** 3727s # * org_project_signaling_iface_proxy_new_for_bus_sync: 3727s # * @bus_type: A #GBusType. 3727s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3727s # * @name: A bus name (well-known or unique). 3727s # * @object_path: An object path. 3727s # * @cancellable: (nullable): A #GCancellable or %NULL. 3727s # * @error: Return location for error or %NULL 3727s # * 3727s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3727s # * 3727s # * The calling thread is blocked until a reply is received. 3727s # * 3727s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 3727s # * 3727s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3727s # */ 3727s # OrgProjectSignalingIface * 3727s # org_project_signaling_iface_proxy_new_for_bus_sync ( 3727s # GBusType bus_type, 3727s # GDBusProxyFlags flags, 3727s # const gchar *name, 3727s # const gchar *object_path, 3727s # GCancellable *cancellable, 3727s # GError **error) 3727s # { 3727s # GInitable *ret; 3727s # 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); 3727s # if (ret != NULL) 3727s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3727s # else 3727s # return NULL; 3727s # } 3727s # 3727s # 3727s # /* ------------------------------------------------------------------------ */ 3727s # 3727s # /** 3727s # * OrgProjectSignalingIfaceSkeleton: 3727s # * 3727s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3727s # */ 3727s # 3727s # /** 3727s # * OrgProjectSignalingIfaceSkeletonClass: 3727s # * @parent_class: The parent class. 3727s # * 3727s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 3727s # */ 3727s # 3727s # struct _OrgProjectSignalingIfaceSkeletonPrivate 3727s # { 3727s # GValue *properties; 3727s # GList *changed_properties; 3727s # GSource *changed_properties_idle_source; 3727s # GMainContext *context; 3727s # GMutex lock; 3727s # }; 3727s # 3727s # static void 3727s # _org_project_signaling_iface_skeleton_handle_method_call ( 3727s # GDBusConnection *connection G_GNUC_UNUSED, 3727s # const gchar *sender G_GNUC_UNUSED, 3727s # const gchar *object_path G_GNUC_UNUSED, 3727s # const gchar *interface_name, 3727s # const gchar *method_name, 3727s # GVariant *parameters, 3727s # GDBusMethodInvocation *invocation, 3727s # gpointer user_data) 3727s # { 3727s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3727s # _ExtendedGDBusMethodInfo *info; 3727s # GVariantIter iter; 3727s # GVariant *child; 3727s # GValue *paramv; 3727s # gsize num_params; 3727s # guint num_extra; 3727s # gsize n; 3727s # guint signal_id; 3727s # GValue return_value = G_VALUE_INIT; 3727s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3727s # g_assert (info != NULL); 3727s # num_params = g_variant_n_children (parameters); 3727s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3727s # n = 0; 3727s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3727s # g_value_set_object (¶mv[n++], skeleton); 3727s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3727s # g_value_set_object (¶mv[n++], invocation); 3727s # if (info->pass_fdlist) 3727s # { 3727s # #ifdef G_OS_UNIX 3727s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3727s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3727s # #else 3727s # g_assert_not_reached (); 3727s # #endif 3727s # } 3727s # g_variant_iter_init (&iter, parameters); 3727s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3727s # { 3727s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3727s # if (arg_info->use_gvariant) 3727s # { 3727s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3727s # g_value_set_variant (¶mv[n], child); 3727s # n++; 3727s # } 3727s # else 3727s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3727s # g_variant_unref (child); 3727s # } 3727s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3727s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3727s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3727s # if (!g_value_get_boolean (&return_value)) 3727s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3727s # g_value_unset (&return_value); 3727s # for (n = 0; n < num_params + num_extra; n++) 3727s # g_value_unset (¶mv[n]); 3727s # g_free (paramv); 3727s # } 3727s # 3727s # static GVariant * 3727s # _org_project_signaling_iface_skeleton_handle_get_property ( 3727s # GDBusConnection *connection G_GNUC_UNUSED, 3727s # const gchar *sender G_GNUC_UNUSED, 3727s # const gchar *object_path G_GNUC_UNUSED, 3727s # const gchar *interface_name G_GNUC_UNUSED, 3727s # const gchar *property_name, 3727s # GError **error, 3727s # gpointer user_data) 3727s # { 3727s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3727s # GValue value = G_VALUE_INIT; 3727s # GParamSpec *pspec; 3727s # _ExtendedGDBusPropertyInfo *info; 3727s # GVariant *ret; 3727s # ret = NULL; 3727s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3727s # g_assert (info != NULL); 3727s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3727s # if (pspec == NULL) 3727s # { 3727s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3727s # } 3727s # else 3727s # { 3727s # g_value_init (&value, pspec->value_type); 3727s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3727s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3727s # g_value_unset (&value); 3727s # } 3727s # return ret; 3727s # } 3727s # 3727s # static gboolean 3727s # _org_project_signaling_iface_skeleton_handle_set_property ( 3727s # GDBusConnection *connection G_GNUC_UNUSED, 3727s # const gchar *sender G_GNUC_UNUSED, 3727s # const gchar *object_path G_GNUC_UNUSED, 3727s # const gchar *interface_name G_GNUC_UNUSED, 3727s # const gchar *property_name, 3727s # GVariant *variant, 3727s # GError **error, 3727s # gpointer user_data) 3727s # { 3727s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3727s # GValue value = G_VALUE_INIT; 3727s # GParamSpec *pspec; 3727s # _ExtendedGDBusPropertyInfo *info; 3727s # gboolean ret; 3727s # ret = FALSE; 3727s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3727s # g_assert (info != NULL); 3727s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3727s # if (pspec == NULL) 3727s # { 3727s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3727s # } 3727s # else 3727s # { 3727s # if (info->use_gvariant) 3727s # g_value_set_variant (&value, variant); 3727s # else 3727s # g_dbus_gvariant_to_gvalue (variant, &value); 3727s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3727s # g_value_unset (&value); 3727s # ret = TRUE; 3727s # } 3727s # return ret; 3727s # } 3727s # 3727s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 3727s # { 3727s # _org_project_signaling_iface_skeleton_handle_method_call, 3727s # _org_project_signaling_iface_skeleton_handle_get_property, 3727s # _org_project_signaling_iface_skeleton_handle_set_property, 3727s # {NULL} 3727s # }; 3727s # 3727s # static GDBusInterfaceInfo * 3727s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3727s # { 3727s # return org_project_signaling_iface_interface_info (); 3727s # } 3727s # 3727s # static GDBusInterfaceVTable * 3727s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3727s # { 3727s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 3727s # } 3727s # 3727s # static GVariant * 3727s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3727s # { 3727s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 3727s # 3727s # GVariantBuilder builder; 3727s # guint n; 3727s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3727s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3727s # #else 3727s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3727s # #endif 3727s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 3727s # goto out; 3727s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 3727s # { 3727s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 3727s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3727s # { 3727s # GVariant *value; 3727s # 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); 3727s # if (value != NULL) 3727s # { 3727s # g_variant_take_ref (value); 3727s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3727s # g_variant_unref (value); 3727s # } 3727s # } 3727s # } 3727s # out: 3727s # return g_variant_builder_end (&builder); 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3727s # { 3727s # } 3727s # 3727s # static void 3727s # _org_project_signaling_iface_on_signal_simple_signal ( 3727s # OrgProjectSignalingIface *object) 3727s # { 3727s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3727s # 3727s # GList *connections, *l; 3727s # GVariant *signal_variant; 3727s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3727s # 3727s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 3727s # for (l = connections; l != NULL; l = l->next) 3727s # { 3727s # GDBusConnection *connection = l->data; 3727s # g_dbus_connection_emit_signal (connection, 3727s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 3727s # signal_variant, NULL); 3727s # } 3727s # g_variant_unref (signal_variant); 3727s # g_list_free_full (connections, g_object_unref); 3727s # } 3727s # 3727s # static void 3727s # _org_project_signaling_iface_on_signal_single_arg_signal_asv ( 3727s # OrgProjectSignalingIface *object, 3727s # GVariant *arg_arg_asv) 3727s # { 3727s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3727s # 3727s # GList *connections, *l; 3727s # GVariant *signal_variant; 3727s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3727s # 3727s # signal_variant = g_variant_ref_sink (g_variant_new ("(@a{sv})", 3727s # arg_arg_asv)); 3727s # for (l = connections; l != NULL; l = l->next) 3727s # { 3727s # GDBusConnection *connection = l->data; 3727s # g_dbus_connection_emit_signal (connection, 3727s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAsv", 3727s # signal_variant, NULL); 3727s # } 3727s # g_variant_unref (signal_variant); 3727s # g_list_free_full (connections, g_object_unref); 3727s # } 3727s # 3727s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 3727s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3727s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3727s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 3727s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3727s # 3727s # #else 3727s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3727s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3727s # 3727s # #endif 3727s # static void 3727s # org_project_signaling_iface_skeleton_finalize (GObject *object) 3727s # { 3727s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3727s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3727s # if (skeleton->priv->changed_properties_idle_source != NULL) 3727s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3727s # g_main_context_unref (skeleton->priv->context); 3727s # g_mutex_clear (&skeleton->priv->lock); 3727s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 3727s # { 3727s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3727s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 3727s # #else 3727s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 3727s # #endif 3727s # 3727s # g_mutex_init (&skeleton->priv->lock); 3727s # skeleton->priv->context = g_main_context_ref_thread_default (); 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 3727s # { 3727s # GObjectClass *gobject_class; 3727s # GDBusInterfaceSkeletonClass *skeleton_class; 3727s # 3727s # gobject_class = G_OBJECT_CLASS (klass); 3727s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 3727s # 3727s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3727s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 3727s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 3727s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 3727s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 3727s # 3727s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3727s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 3727s # #endif 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 3727s # { 3727s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 3727s # iface->single_arg_signal_asv = _org_project_signaling_iface_on_signal_single_arg_signal_asv; 3727s # } 3727s # 3727s # /** 3727s # * org_project_signaling_iface_skeleton_new: 3727s # * 3727s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3727s # * 3727s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 3727s # */ 3727s # OrgProjectSignalingIface * 3727s # org_project_signaling_iface_skeleton_new (void) 3727s # { 3727s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 3727s # } 3727s # Error: 3727s ok 24 __main__.TestCodegen.test_generate_signals_marshallers_multiple_args 3727s # gdbus-codegen: /usr/bin/gdbus-codegen 3727s # tmpdir: /tmp/tmpqwjp725d 3727s # /tmp/tmpqwjp725d/tmp6simz4e6.xml: 3727s # <node> 3727s # <interface name="org.project.SignalingIface"> 3727s # <signal name="SimpleSignal"/> 3727s # <signal name="SignalWithManyArgs"> 3727s # <arg name='an_b' type='b'/> 3727s # <arg name='an_y' type='y'/> 3727s # <arg name='an_n' type='n'/> 3727s # <arg name='an_q' type='q'/> 3727s # <arg name='an_i' type='i'/> 3727s # <arg name='an_u' type='u'/> 3727s # <arg name='an_x' type='x'/> 3727s # <arg name='an_t' type='t'/> 3727s # <arg name='an_d' type='d'/> 3727s # <arg name='an_s' type='s'/> 3727s # <arg name='an_o' type='o'/> 3727s # <arg name='an_g' type='g'/> 3727s # <arg name='an_h' type='h'/> 3727s # <arg name='an_ay' type='ay'/> 3727s # <arg name='an_as' type='as'/> 3727s # <arg name='an_ao' type='ao'/> 3727s # <arg name='an_aay' type='aay'/> 3727s # <arg name='an_asv' type='a{sv}'/> 3727s # 3727s # </signal> 3727s # </interface> 3727s # </node> 3727s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpqwjp725d/tmp6simz4e6.xml', '--output', '-', '--body'] 3727s # Return code: 0 3727s # Output: 3727s # /* 3727s # * This file is generated by gdbus-codegen, do not modify it. 3727s # * 3727s # * The license of this code is the same as for the D-Bus interface description 3727s # * it was derived from. Note that it links to GLib, so must comply with the 3727s # * LGPL linking clauses. 3727s # */ 3727s # 3727s # #ifdef HAVE_CONFIG_H 3727s # # include "config.h" 3727s # #endif 3727s # 3727s # #include <string.h> 3727s # #ifdef G_OS_UNIX 3727s # # include <gio/gunixfdlist.h> 3727s # #endif 3727s # 3727s # #ifdef G_ENABLE_DEBUG 3727s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3727s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3727s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3727s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3727s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3727s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3727s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3727s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3727s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3727s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3727s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3727s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3727s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3727s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3727s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3727s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3727s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3727s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3727s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3727s # #else /* !G_ENABLE_DEBUG */ 3727s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3727s # * Do not access GValues directly in your code. Instead, use the 3727s # * g_value_get_*() functions 3727s # */ 3727s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3727s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3727s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3727s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3727s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3727s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3727s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3727s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3727s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3727s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3727s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3727s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3727s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3727s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3727s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3727s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3727s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3727s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3727s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3727s # #endif /* !G_ENABLE_DEBUG */ 3727s # 3727s # typedef struct 3727s # { 3727s # GDBusArgInfo parent_struct; 3727s # gboolean use_gvariant; 3727s # } _ExtendedGDBusArgInfo; 3727s # 3727s # typedef struct 3727s # { 3727s # GDBusMethodInfo parent_struct; 3727s # const gchar *signal_name; 3727s # gboolean pass_fdlist; 3727s # } _ExtendedGDBusMethodInfo; 3727s # 3727s # typedef struct 3727s # { 3727s # GDBusSignalInfo parent_struct; 3727s # const gchar *signal_name; 3727s # } _ExtendedGDBusSignalInfo; 3727s # 3727s # typedef struct 3727s # { 3727s # GDBusPropertyInfo parent_struct; 3727s # const gchar *hyphen_name; 3727s # guint use_gvariant : 1; 3727s # guint emits_changed_signal : 1; 3727s # } _ExtendedGDBusPropertyInfo; 3727s # 3727s # typedef struct 3727s # { 3727s # GDBusInterfaceInfo parent_struct; 3727s # const gchar *hyphen_name; 3727s # } _ExtendedGDBusInterfaceInfo; 3727s # 3727s # typedef struct 3727s # { 3727s # const _ExtendedGDBusPropertyInfo *info; 3727s # guint prop_id; 3727s # GValue orig_value; /* the value before the change */ 3727s # } ChangedProperty; 3727s # 3727s # static void 3727s # _changed_property_free (ChangedProperty *data) 3727s # { 3727s # g_value_unset (&data->orig_value); 3727s # g_free (data); 3727s # } 3727s # 3727s # static gboolean 3727s # _g_strv_equal0 (gchar **a, gchar **b) 3727s # { 3727s # gboolean ret = FALSE; 3727s # guint n; 3727s # if (a == NULL && b == NULL) 3727s # { 3727s # ret = TRUE; 3727s # goto out; 3727s # } 3727s # if (a == NULL || b == NULL) 3727s # goto out; 3727s # if (g_strv_length (a) != g_strv_length (b)) 3727s # goto out; 3727s # for (n = 0; a[n] != NULL; n++) 3727s # if (g_strcmp0 (a[n], b[n]) != 0) 3727s # goto out; 3727s # ret = TRUE; 3727s # out: 3727s # return ret; 3727s # } 3727s # 3727s # static gboolean 3727s # _g_variant_equal0 (GVariant *a, GVariant *b) 3727s # { 3727s # gboolean ret = FALSE; 3727s # if (a == NULL && b == NULL) 3727s # { 3727s # ret = TRUE; 3727s # goto out; 3727s # } 3727s # if (a == NULL || b == NULL) 3727s # goto out; 3727s # ret = g_variant_equal (a, b); 3727s # out: 3727s # return ret; 3727s # } 3727s # 3727s # G_GNUC_UNUSED static gboolean 3727s # _g_value_equal (const GValue *a, const GValue *b) 3727s # { 3727s # gboolean ret = FALSE; 3727s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3727s # switch (G_VALUE_TYPE (a)) 3727s # { 3727s # case G_TYPE_BOOLEAN: 3727s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3727s # break; 3727s # case G_TYPE_UCHAR: 3727s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3727s # break; 3727s # case G_TYPE_INT: 3727s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3727s # break; 3727s # case G_TYPE_UINT: 3727s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3727s # break; 3727s # case G_TYPE_INT64: 3727s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3727s # break; 3727s # case G_TYPE_UINT64: 3727s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3727s # break; 3727s # case G_TYPE_DOUBLE: 3727s # { 3727s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3727s # gdouble da = g_value_get_double (a); 3727s # gdouble db = g_value_get_double (b); 3727s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3727s # } 3727s # break; 3727s # case G_TYPE_STRING: 3727s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3727s # break; 3727s # case G_TYPE_VARIANT: 3727s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3727s # break; 3727s # default: 3727s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3727s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3727s # else 3727s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3727s # break; 3727s # } 3727s # return ret; 3727s # } 3727s # 3727s # static void 3727s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 3727s # GClosure *closure, 3727s # GValue *return_value G_GNUC_UNUSED, 3727s # unsigned int n_param_values, 3727s # const GValue *param_values, 3727s # void *invocation_hint G_GNUC_UNUSED, 3727s # void *marshal_data) 3727s # { 3727s # typedef void (*_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 3727s # (void *data1, 3727s # gboolean arg_an_b, 3727s # guchar arg_an_y, 3727s # gint16 arg_an_n, 3727s # guint16 arg_an_q, 3727s # gint arg_an_i, 3727s # guint arg_an_u, 3727s # gint64 arg_an_x, 3727s # guint64 arg_an_t, 3727s # gdouble arg_an_d, 3727s # const gchar *arg_an_s, 3727s # const gchar *arg_an_o, 3727s # const gchar *arg_an_g, 3727s # GVariant *arg_an_h, 3727s # const gchar *arg_an_ay, 3727s # const gchar *const *arg_an_as, 3727s # const gchar *const *arg_an_ao, 3727s # const gchar *const *arg_an_aay, 3727s # GVariant *arg_an_asv, 3727s # void *data2); 3727s # _GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 3727s # GCClosure *cc = (GCClosure*) closure; 3727s # void *data1, *data2; 3727s # 3727s # g_return_if_fail (n_param_values == 19); 3727s # 3727s # if (G_CCLOSURE_SWAP_DATA (closure)) 3727s # { 3727s # data1 = closure->data; 3727s # data2 = g_value_peek_pointer (param_values + 0); 3727s # } 3727s # else 3727s # { 3727s # data1 = g_value_peek_pointer (param_values + 0); 3727s # data2 = closure->data; 3727s # } 3727s # 3727s # callback = (_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 3727s # (marshal_data ? marshal_data : cc->callback); 3727s # 3727s # callback (data1, 3727s # g_marshal_value_peek_boolean (param_values + 1), 3727s # g_marshal_value_peek_uchar (param_values + 2), 3727s # g_marshal_value_peek_int (param_values + 3), 3727s # g_marshal_value_peek_uint (param_values + 4), 3727s # g_marshal_value_peek_int (param_values + 5), 3727s # g_marshal_value_peek_uint (param_values + 6), 3727s # g_marshal_value_peek_int64 (param_values + 7), 3727s # g_marshal_value_peek_uint64 (param_values + 8), 3727s # g_marshal_value_peek_double (param_values + 9), 3727s # g_marshal_value_peek_string (param_values + 10), 3727s # g_marshal_value_peek_string (param_values + 11), 3727s # g_marshal_value_peek_string (param_values + 12), 3727s # g_marshal_value_peek_variant (param_values + 13), 3727s # g_marshal_value_peek_string (param_values + 14), 3727s # g_marshal_value_peek_boxed (param_values + 15), 3727s # g_marshal_value_peek_boxed (param_values + 16), 3727s # g_marshal_value_peek_boxed (param_values + 17), 3727s # g_marshal_value_peek_variant (param_values + 18), 3727s # data2); 3727s # } 3727s # 3727s # /* ------------------------------------------------------------------------ 3727s # * Code for interface org.project.SignalingIface 3727s # * ------------------------------------------------------------------------ 3727s # */ 3727s # 3727s # /** 3727s # * SECTION:OrgProjectSignalingIface 3727s # * @title: OrgProjectSignalingIface 3727s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 3727s # * 3727s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface in C. 3727s # */ 3727s # 3727s # enum 3727s # { 3727s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 3727s # _ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS, 3727s # }; 3727s # 3727s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 3727s # 3727s # /* ---- Introspection data for org.project.SignalingIface ---- */ 3727s # 3727s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 3727s # { 3727s # { 3727s # -1, 3727s # (gchar *) "SimpleSignal", 3727s # NULL, 3727s # NULL 3727s # }, 3727s # "simple-signal" 3727s # }; 3727s # 3727s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b = 3727s # { 3727s # { 3727s # -1, 3727s # (gchar *) "an_b", 3727s # (gchar *) "b", 3727s # NULL 3727s # }, 3727s # FALSE 3727s # }; 3727s # 3727s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y = 3727s # { 3727s # { 3727s # -1, 3727s # (gchar *) "an_y", 3727s # (gchar *) "y", 3727s # NULL 3727s # }, 3727s # FALSE 3727s # }; 3727s # 3727s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n = 3727s # { 3727s # { 3727s # -1, 3727s # (gchar *) "an_n", 3727s # (gchar *) "n", 3727s # NULL 3727s # }, 3727s # FALSE 3727s # }; 3727s # 3727s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q = 3727s # { 3727s # { 3727s # -1, 3727s # (gchar *) "an_q", 3727s # (gchar *) "q", 3727s # NULL 3727s # }, 3727s # FALSE 3727s # }; 3727s # 3727s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i = 3727s # { 3727s # { 3727s # -1, 3727s # (gchar *) "an_i", 3727s # (gchar *) "i", 3727s # NULL 3727s # }, 3727s # FALSE 3727s # }; 3727s # 3727s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u = 3727s # { 3727s # { 3727s # -1, 3727s # (gchar *) "an_u", 3727s # (gchar *) "u", 3727s # NULL 3727s # }, 3727s # FALSE 3727s # }; 3727s # 3727s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x = 3727s # { 3727s # { 3727s # -1, 3727s # (gchar *) "an_x", 3727s # (gchar *) "x", 3727s # NULL 3727s # }, 3727s # FALSE 3727s # }; 3727s # 3727s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t = 3727s # { 3727s # { 3727s # -1, 3727s # (gchar *) "an_t", 3727s # (gchar *) "t", 3727s # NULL 3727s # }, 3727s # FALSE 3727s # }; 3727s # 3727s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d = 3727s # { 3727s # { 3727s # -1, 3727s # (gchar *) "an_d", 3727s # (gchar *) "d", 3727s # NULL 3727s # }, 3727s # FALSE 3727s # }; 3727s # 3727s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s = 3727s # { 3727s # { 3727s # -1, 3727s # (gchar *) "an_s", 3727s # (gchar *) "s", 3727s # NULL 3727s # }, 3727s # FALSE 3727s # }; 3727s # 3727s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o = 3727s # { 3727s # { 3727s # -1, 3727s # (gchar *) "an_o", 3727s # (gchar *) "o", 3727s # NULL 3727s # }, 3727s # FALSE 3727s # }; 3727s # 3727s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g = 3727s # { 3727s # { 3727s # -1, 3727s # (gchar *) "an_g", 3727s # (gchar *) "g", 3727s # NULL 3727s # }, 3727s # FALSE 3727s # }; 3727s # 3727s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h = 3727s # { 3727s # { 3727s # -1, 3727s # (gchar *) "an_h", 3727s # (gchar *) "h", 3727s # NULL 3727s # }, 3727s # FALSE 3727s # }; 3727s # 3727s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay = 3727s # { 3727s # { 3727s # -1, 3727s # (gchar *) "an_ay", 3727s # (gchar *) "ay", 3727s # NULL 3727s # }, 3727s # FALSE 3727s # }; 3727s # 3727s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as = 3727s # { 3727s # { 3727s # -1, 3727s # (gchar *) "an_as", 3727s # (gchar *) "as", 3727s # NULL 3727s # }, 3727s # FALSE 3727s # }; 3727s # 3727s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao = 3727s # { 3727s # { 3727s # -1, 3727s # (gchar *) "an_ao", 3727s # (gchar *) "ao", 3727s # NULL 3727s # }, 3727s # FALSE 3727s # }; 3727s # 3727s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay = 3727s # { 3727s # { 3727s # -1, 3727s # (gchar *) "an_aay", 3727s # (gchar *) "aay", 3727s # NULL 3727s # }, 3727s # FALSE 3727s # }; 3727s # 3727s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv = 3727s # { 3727s # { 3727s # -1, 3727s # (gchar *) "an_asv", 3727s # (gchar *) "a{sv}", 3727s # NULL 3727s # }, 3727s # FALSE 3727s # }; 3727s # 3727s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers[] = 3727s # { 3727s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b.parent_struct, 3727s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y.parent_struct, 3727s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n.parent_struct, 3727s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q.parent_struct, 3727s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i.parent_struct, 3727s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u.parent_struct, 3727s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x.parent_struct, 3727s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t.parent_struct, 3727s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d.parent_struct, 3727s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s.parent_struct, 3727s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o.parent_struct, 3727s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g.parent_struct, 3727s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h.parent_struct, 3727s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay.parent_struct, 3727s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as.parent_struct, 3727s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao.parent_struct, 3727s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay.parent_struct, 3727s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv.parent_struct, 3727s # NULL 3727s # }; 3727s # 3727s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_signal_with_many_args = 3727s # { 3727s # { 3727s # -1, 3727s # (gchar *) "SignalWithManyArgs", 3727s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers, 3727s # NULL 3727s # }, 3727s # "signal-with-many-args" 3727s # }; 3727s # 3727s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 3727s # { 3727s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 3727s # &_org_project_signaling_iface_signal_info_signal_with_many_args.parent_struct, 3727s # NULL 3727s # }; 3727s # 3727s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 3727s # { 3727s # { 3727s # -1, 3727s # (gchar *) "org.project.SignalingIface", 3727s # NULL, 3727s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 3727s # NULL, 3727s # NULL 3727s # }, 3727s # "org-project-signaling-iface", 3727s # }; 3727s # 3727s # 3727s # /** 3727s # * org_project_signaling_iface_interface_info: 3727s # * 3727s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link> D-Bus interface. 3727s # * 3727s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3727s # */ 3727s # GDBusInterfaceInfo * 3727s # org_project_signaling_iface_interface_info (void) 3727s # { 3727s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 3727s # } 3727s # 3727s # /** 3727s # * org_project_signaling_iface_override_properties: 3727s # * @klass: The class structure for a #GObject derived class. 3727s # * @property_id_begin: The property id to assign to the first overridden property. 3727s # * 3727s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 3727s # * The properties are overridden in the order they are defined. 3727s # * 3727s # * Returns: The last property id. 3727s # */ 3727s # guint 3727s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3727s # { 3727s # return property_id_begin - 1; 3727s # } 3727s # 3727s # 3727s # inline static void 3727s # org_project_signaling_iface_signal_marshal_simple_signal ( 3727s # GClosure *closure, 3727s # GValue *return_value, 3727s # unsigned int n_param_values, 3727s # const GValue *param_values, 3727s # void *invocation_hint, 3727s # void *marshal_data) 3727s # { 3727s # g_cclosure_marshal_VOID__VOID (closure, 3727s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3727s # } 3727s # 3727s # inline static void 3727s # org_project_signaling_iface_signal_marshal_signal_with_many_args ( 3727s # GClosure *closure, 3727s # GValue *return_value, 3727s # unsigned int n_param_values, 3727s # const GValue *param_values, 3727s # void *invocation_hint, 3727s # void *marshal_data) 3727s # { 3727s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT (closure, 3727s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3727s # } 3727s # 3727s # 3727s # /** 3727s # * OrgProjectSignalingIface: 3727s # * 3727s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3727s # */ 3727s # 3727s # /** 3727s # * OrgProjectSignalingIfaceIface: 3727s # * @parent_iface: The parent interface. 3727s # * @signal_with_many_args: Handler for the #OrgProjectSignalingIface::signal-with-many-args signal. 3727s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 3727s # * 3727s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3727s # */ 3727s # 3727s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 3727s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 3727s # 3727s # static void 3727s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 3727s # { 3727s # /* GObject signals for received D-Bus signals: */ 3727s # /** 3727s # * OrgProjectSignalingIface::simple-signal: 3727s # * @object: A #OrgProjectSignalingIface. 3727s # * 3727s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SimpleSignal">"SimpleSignal"</link> is received. 3727s # * 3727s # * 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. 3727s # */ 3727s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 3727s # g_signal_new ("simple-signal", 3727s # G_TYPE_FROM_INTERFACE (iface), 3727s # G_SIGNAL_RUN_LAST, 3727s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 3727s # NULL, 3727s # NULL, 3727s # org_project_signaling_iface_signal_marshal_simple_signal, 3727s # G_TYPE_NONE, 3727s # 0); 3727s # 3727s # /** 3727s # * OrgProjectSignalingIface::signal-with-many-args: 3727s # * @object: A #OrgProjectSignalingIface. 3727s # * @arg_an_b: Argument. 3727s # * @arg_an_y: Argument. 3727s # * @arg_an_n: Argument. 3727s # * @arg_an_q: Argument. 3727s # * @arg_an_i: Argument. 3727s # * @arg_an_u: Argument. 3727s # * @arg_an_x: Argument. 3727s # * @arg_an_t: Argument. 3727s # * @arg_an_d: Argument. 3727s # * @arg_an_s: Argument. 3727s # * @arg_an_o: Argument. 3727s # * @arg_an_g: Argument. 3727s # * @arg_an_h: Argument. 3727s # * @arg_an_ay: Argument. 3727s # * @arg_an_as: Argument. 3727s # * @arg_an_ao: Argument. 3727s # * @arg_an_aay: Argument. 3727s # * @arg_an_asv: Argument. 3727s # * 3727s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-project-SignalingIface.SignalWithManyArgs">"SignalWithManyArgs"</link> is received. 3727s # * 3727s # * 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. 3727s # */ 3727s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS] = 3727s # g_signal_new ("signal-with-many-args", 3727s # G_TYPE_FROM_INTERFACE (iface), 3727s # G_SIGNAL_RUN_LAST, 3727s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, signal_with_many_args), 3727s # NULL, 3727s # NULL, 3727s # org_project_signaling_iface_signal_marshal_signal_with_many_args, 3727s # G_TYPE_NONE, 3727s # 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); 3727s # 3727s # } 3727s # 3727s # /** 3727s # * org_project_signaling_iface_emit_simple_signal: 3727s # * @object: A #OrgProjectSignalingIface. 3727s # * 3727s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SimpleSignal">"SimpleSignal"</link> D-Bus signal. 3727s # */ 3727s # void 3727s # org_project_signaling_iface_emit_simple_signal ( 3727s # OrgProjectSignalingIface *object) 3727s # { 3727s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 3727s # } 3727s # 3727s # /** 3727s # * org_project_signaling_iface_emit_signal_with_many_args: 3727s # * @object: A #OrgProjectSignalingIface. 3727s # * @arg_an_b: Argument to pass with the signal. 3727s # * @arg_an_y: Argument to pass with the signal. 3727s # * @arg_an_n: Argument to pass with the signal. 3727s # * @arg_an_q: Argument to pass with the signal. 3727s # * @arg_an_i: Argument to pass with the signal. 3727s # * @arg_an_u: Argument to pass with the signal. 3727s # * @arg_an_x: Argument to pass with the signal. 3727s # * @arg_an_t: Argument to pass with the signal. 3727s # * @arg_an_d: Argument to pass with the signal. 3727s # * @arg_an_s: Argument to pass with the signal. 3727s # * @arg_an_o: Argument to pass with the signal. 3727s # * @arg_an_g: Argument to pass with the signal. 3727s # * @arg_an_h: Argument to pass with the signal. 3727s # * @arg_an_ay: Argument to pass with the signal. 3727s # * @arg_an_as: Argument to pass with the signal. 3727s # * @arg_an_ao: Argument to pass with the signal. 3727s # * @arg_an_aay: Argument to pass with the signal. 3727s # * @arg_an_asv: Argument to pass with the signal. 3727s # * 3727s # * Emits the <link linkend="gdbus-signal-org-project-SignalingIface.SignalWithManyArgs">"SignalWithManyArgs"</link> D-Bus signal. 3727s # */ 3727s # void 3727s # org_project_signaling_iface_emit_signal_with_many_args ( 3727s # OrgProjectSignalingIface *object, 3727s # gboolean arg_an_b, 3727s # guchar arg_an_y, 3727s # gint16 arg_an_n, 3727s # guint16 arg_an_q, 3727s # gint arg_an_i, 3727s # guint arg_an_u, 3727s # gint64 arg_an_x, 3727s # guint64 arg_an_t, 3727s # gdouble arg_an_d, 3727s # const gchar *arg_an_s, 3727s # const gchar *arg_an_o, 3727s # const gchar *arg_an_g, 3727s # GVariant *arg_an_h, 3727s # const gchar *arg_an_ay, 3727s # const gchar *const *arg_an_as, 3727s # const gchar *const *arg_an_ao, 3727s # const gchar *const *arg_an_aay, 3727s # GVariant *arg_an_asv) 3727s # { 3727s # 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); 3727s # } 3727s # 3727s # /* ------------------------------------------------------------------------ */ 3727s # 3727s # /** 3727s # * OrgProjectSignalingIfaceProxy: 3727s # * 3727s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 3727s # */ 3727s # 3727s # /** 3727s # * OrgProjectSignalingIfaceProxyClass: 3727s # * @parent_class: The parent class. 3727s # * 3727s # * Class structure for #OrgProjectSignalingIfaceProxy. 3727s # */ 3727s # 3727s # struct _OrgProjectSignalingIfaceProxyPrivate 3727s # { 3727s # GData *qdata; 3727s # }; 3727s # 3727s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 3727s # 3727s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3727s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3727s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 3727s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3727s # 3727s # #else 3727s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 3727s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 3727s # 3727s # #endif 3727s # static void 3727s # org_project_signaling_iface_proxy_finalize (GObject *object) 3727s # { 3727s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 3727s # g_datalist_clear (&proxy->priv->qdata); 3727s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 3727s # guint prop_id G_GNUC_UNUSED, 3727s # GValue *value G_GNUC_UNUSED, 3727s # GParamSpec *pspec G_GNUC_UNUSED) 3727s # { 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 3727s # guint prop_id G_GNUC_UNUSED, 3727s # const GValue *value G_GNUC_UNUSED, 3727s # GParamSpec *pspec G_GNUC_UNUSED) 3727s # { 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 3727s # const gchar *sender_name G_GNUC_UNUSED, 3727s # const gchar *signal_name, 3727s # GVariant *parameters) 3727s # { 3727s # _ExtendedGDBusSignalInfo *info; 3727s # GVariantIter iter; 3727s # GVariant *child; 3727s # GValue *paramv; 3727s # gsize num_params; 3727s # gsize n; 3727s # guint signal_id; 3727s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 3727s # if (info == NULL) 3727s # return; 3727s # num_params = g_variant_n_children (parameters); 3727s # paramv = g_new0 (GValue, num_params + 1); 3727s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3727s # g_value_set_object (¶mv[0], proxy); 3727s # g_variant_iter_init (&iter, parameters); 3727s # n = 1; 3727s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3727s # { 3727s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3727s # if (arg_info->use_gvariant) 3727s # { 3727s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3727s # g_value_set_variant (¶mv[n], child); 3727s # n++; 3727s # } 3727s # else 3727s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3727s # g_variant_unref (child); 3727s # } 3727s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3727s # g_signal_emitv (paramv, signal_id, 0, NULL); 3727s # for (n = 0; n < num_params + 1; n++) 3727s # g_value_unset (¶mv[n]); 3727s # g_free (paramv); 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 3727s # GVariant *changed_properties, 3727s # const gchar *const *invalidated_properties) 3727s # { 3727s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 3727s # guint n; 3727s # const gchar *key; 3727s # GVariantIter *iter; 3727s # _ExtendedGDBusPropertyInfo *info; 3727s # g_variant_get (changed_properties, "a{sv}", &iter); 3727s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3727s # { 3727s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 3727s # g_datalist_remove_data (&proxy->priv->qdata, key); 3727s # if (info != NULL) 3727s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3727s # } 3727s # g_variant_iter_free (iter); 3727s # for (n = 0; invalidated_properties[n] != NULL; n++) 3727s # { 3727s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 3727s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3727s # if (info != NULL) 3727s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3727s # } 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 3727s # { 3727s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3727s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 3727s # #else 3727s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 3727s # #endif 3727s # 3727s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 3727s # { 3727s # GObjectClass *gobject_class; 3727s # GDBusProxyClass *proxy_class; 3727s # 3727s # gobject_class = G_OBJECT_CLASS (klass); 3727s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 3727s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 3727s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 3727s # 3727s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3727s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 3727s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 3727s # 3727s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3727s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 3727s # #endif 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 3727s # { 3727s # } 3727s # 3727s # /** 3727s # * org_project_signaling_iface_proxy_new: 3727s # * @connection: A #GDBusConnection. 3727s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3727s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3727s # * @object_path: An object path. 3727s # * @cancellable: (nullable): A #GCancellable or %NULL. 3727s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3727s # * @user_data: User data to pass to @callback. 3727s # * 3727s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new() for more details. 3727s # * 3727s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3727s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 3727s # * 3727s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 3727s # */ 3727s # void 3727s # org_project_signaling_iface_proxy_new ( 3727s # GDBusConnection *connection, 3727s # GDBusProxyFlags flags, 3727s # const gchar *name, 3727s # const gchar *object_path, 3727s # GCancellable *cancellable, 3727s # GAsyncReadyCallback callback, 3727s # gpointer user_data) 3727s # { 3727s # 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); 3727s # } 3727s # 3727s # /** 3727s # * org_project_signaling_iface_proxy_new_finish: 3727s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 3727s # * @error: Return location for error or %NULL 3727s # * 3727s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 3727s # * 3727s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3727s # */ 3727s # OrgProjectSignalingIface * 3727s # org_project_signaling_iface_proxy_new_finish ( 3727s # GAsyncResult *res, 3727s # GError **error) 3727s # { 3727s # GObject *ret; 3727s # GObject *source_object; 3727s # source_object = g_async_result_get_source_object (res); 3727s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3727s # g_object_unref (source_object); 3727s # if (ret != NULL) 3727s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3727s # else 3727s # return NULL; 3727s # } 3727s # 3727s # /** 3727s # * org_project_signaling_iface_proxy_new_sync: 3727s # * @connection: A #GDBusConnection. 3727s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3727s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3727s # * @object_path: An object path. 3727s # * @cancellable: (nullable): A #GCancellable or %NULL. 3727s # * @error: Return location for error or %NULL 3727s # * 3727s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. See g_dbus_proxy_new_sync() for more details. 3727s # * 3727s # * The calling thread is blocked until a reply is received. 3727s # * 3727s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 3727s # * 3727s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3727s # */ 3727s # OrgProjectSignalingIface * 3727s # org_project_signaling_iface_proxy_new_sync ( 3727s # GDBusConnection *connection, 3727s # GDBusProxyFlags flags, 3727s # const gchar *name, 3727s # const gchar *object_path, 3727s # GCancellable *cancellable, 3727s # GError **error) 3727s # { 3727s # GInitable *ret; 3727s # 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); 3727s # if (ret != NULL) 3727s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3727s # else 3727s # return NULL; 3727s # } 3727s # 3727s # 3727s # /** 3727s # * org_project_signaling_iface_proxy_new_for_bus: 3727s # * @bus_type: A #GBusType. 3727s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3727s # * @name: A bus name (well-known or unique). 3727s # * @object_path: An object path. 3727s # * @cancellable: (nullable): A #GCancellable or %NULL. 3727s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3727s # * @user_data: User data to pass to @callback. 3727s # * 3727s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3727s # * 3727s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3727s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 3727s # * 3727s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3727s # */ 3727s # void 3727s # org_project_signaling_iface_proxy_new_for_bus ( 3727s # GBusType bus_type, 3727s # GDBusProxyFlags flags, 3727s # const gchar *name, 3727s # const gchar *object_path, 3727s # GCancellable *cancellable, 3727s # GAsyncReadyCallback callback, 3727s # gpointer user_data) 3727s # { 3727s # 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); 3727s # } 3727s # 3727s # /** 3727s # * org_project_signaling_iface_proxy_new_for_bus_finish: 3727s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 3727s # * @error: Return location for error or %NULL 3727s # * 3727s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 3727s # * 3727s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3727s # */ 3727s # OrgProjectSignalingIface * 3727s # org_project_signaling_iface_proxy_new_for_bus_finish ( 3727s # GAsyncResult *res, 3727s # GError **error) 3727s # { 3727s # GObject *ret; 3727s # GObject *source_object; 3727s # source_object = g_async_result_get_source_object (res); 3727s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3727s # g_object_unref (source_object); 3727s # if (ret != NULL) 3727s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3727s # else 3727s # return NULL; 3727s # } 3727s # 3727s # /** 3727s # * org_project_signaling_iface_proxy_new_for_bus_sync: 3727s # * @bus_type: A #GBusType. 3727s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3727s # * @name: A bus name (well-known or unique). 3727s # * @object_path: An object path. 3727s # * @cancellable: (nullable): A #GCancellable or %NULL. 3727s # * @error: Return location for error or %NULL 3727s # * 3727s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3727s # * 3727s # * The calling thread is blocked until a reply is received. 3727s # * 3727s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 3727s # * 3727s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 3727s # */ 3727s # OrgProjectSignalingIface * 3727s # org_project_signaling_iface_proxy_new_for_bus_sync ( 3727s # GBusType bus_type, 3727s # GDBusProxyFlags flags, 3727s # const gchar *name, 3727s # const gchar *object_path, 3727s # GCancellable *cancellable, 3727s # GError **error) 3727s # { 3727s # GInitable *ret; 3727s # 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); 3727s # if (ret != NULL) 3727s # return ORG_PROJECT_SIGNALING_IFACE (ret); 3727s # else 3727s # return NULL; 3727s # } 3727s # 3727s # 3727s # /* ------------------------------------------------------------------------ */ 3727s # 3727s # /** 3727s # * OrgProjectSignalingIfaceSkeleton: 3727s # * 3727s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 3727s # */ 3727s # 3727s # /** 3727s # * OrgProjectSignalingIfaceSkeletonClass: 3727s # * @parent_class: The parent class. 3727s # * 3727s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 3727s # */ 3727s # 3727s # struct _OrgProjectSignalingIfaceSkeletonPrivate 3727s # { 3727s # GValue *properties; 3727s # GList *changed_properties; 3727s # GSource *changed_properties_idle_source; 3727s # GMainContext *context; 3727s # GMutex lock; 3727s # }; 3727s # 3727s # static void 3727s # _org_project_signaling_iface_skeleton_handle_method_call ( 3727s # GDBusConnection *connection G_GNUC_UNUSED, 3727s # const gchar *sender G_GNUC_UNUSED, 3727s # const gchar *object_path G_GNUC_UNUSED, 3727s # const gchar *interface_name, 3727s # const gchar *method_name, 3727s # GVariant *parameters, 3727s # GDBusMethodInvocation *invocation, 3727s # gpointer user_data) 3727s # { 3727s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3727s # _ExtendedGDBusMethodInfo *info; 3727s # GVariantIter iter; 3727s # GVariant *child; 3727s # GValue *paramv; 3727s # gsize num_params; 3727s # guint num_extra; 3727s # gsize n; 3727s # guint signal_id; 3727s # GValue return_value = G_VALUE_INIT; 3727s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3727s # g_assert (info != NULL); 3727s # num_params = g_variant_n_children (parameters); 3727s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3727s # n = 0; 3727s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 3727s # g_value_set_object (¶mv[n++], skeleton); 3727s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3727s # g_value_set_object (¶mv[n++], invocation); 3727s # if (info->pass_fdlist) 3727s # { 3727s # #ifdef G_OS_UNIX 3727s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3727s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3727s # #else 3727s # g_assert_not_reached (); 3727s # #endif 3727s # } 3727s # g_variant_iter_init (&iter, parameters); 3727s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3727s # { 3727s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3727s # if (arg_info->use_gvariant) 3727s # { 3727s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3727s # g_value_set_variant (¶mv[n], child); 3727s # n++; 3727s # } 3727s # else 3727s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3727s # g_variant_unref (child); 3727s # } 3727s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 3727s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3727s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3727s # if (!g_value_get_boolean (&return_value)) 3727s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3727s # g_value_unset (&return_value); 3727s # for (n = 0; n < num_params + num_extra; n++) 3727s # g_value_unset (¶mv[n]); 3727s # g_free (paramv); 3727s # } 3727s # 3727s # static GVariant * 3727s # _org_project_signaling_iface_skeleton_handle_get_property ( 3727s # GDBusConnection *connection G_GNUC_UNUSED, 3727s # const gchar *sender G_GNUC_UNUSED, 3727s # const gchar *object_path G_GNUC_UNUSED, 3727s # const gchar *interface_name G_GNUC_UNUSED, 3727s # const gchar *property_name, 3727s # GError **error, 3727s # gpointer user_data) 3727s # { 3727s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3727s # GValue value = G_VALUE_INIT; 3727s # GParamSpec *pspec; 3727s # _ExtendedGDBusPropertyInfo *info; 3727s # GVariant *ret; 3727s # ret = NULL; 3727s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3727s # g_assert (info != NULL); 3727s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3727s # if (pspec == NULL) 3727s # { 3727s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3727s # } 3727s # else 3727s # { 3727s # g_value_init (&value, pspec->value_type); 3727s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3727s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3727s # g_value_unset (&value); 3727s # } 3727s # return ret; 3727s # } 3727s # 3727s # static gboolean 3727s # _org_project_signaling_iface_skeleton_handle_set_property ( 3727s # GDBusConnection *connection G_GNUC_UNUSED, 3727s # const gchar *sender G_GNUC_UNUSED, 3727s # const gchar *object_path G_GNUC_UNUSED, 3727s # const gchar *interface_name G_GNUC_UNUSED, 3727s # const gchar *property_name, 3727s # GVariant *variant, 3727s # GError **error, 3727s # gpointer user_data) 3727s # { 3727s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 3727s # GValue value = G_VALUE_INIT; 3727s # GParamSpec *pspec; 3727s # _ExtendedGDBusPropertyInfo *info; 3727s # gboolean ret; 3727s # ret = FALSE; 3727s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 3727s # g_assert (info != NULL); 3727s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3727s # if (pspec == NULL) 3727s # { 3727s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3727s # } 3727s # else 3727s # { 3727s # if (info->use_gvariant) 3727s # g_value_set_variant (&value, variant); 3727s # else 3727s # g_dbus_gvariant_to_gvalue (variant, &value); 3727s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3727s # g_value_unset (&value); 3727s # ret = TRUE; 3727s # } 3727s # return ret; 3727s # } 3727s # 3727s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 3727s # { 3727s # _org_project_signaling_iface_skeleton_handle_method_call, 3727s # _org_project_signaling_iface_skeleton_handle_get_property, 3727s # _org_project_signaling_iface_skeleton_handle_set_property, 3727s # {NULL} 3727s # }; 3727s # 3727s # static GDBusInterfaceInfo * 3727s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3727s # { 3727s # return org_project_signaling_iface_interface_info (); 3727s # } 3727s # 3727s # static GDBusInterfaceVTable * 3727s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3727s # { 3727s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 3727s # } 3727s # 3727s # static GVariant * 3727s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3727s # { 3727s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 3727s # 3727s # GVariantBuilder builder; 3727s # guint n; 3727s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3727s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3727s # #else 3727s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3727s # #endif 3727s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 3727s # goto out; 3727s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 3727s # { 3727s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 3727s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3727s # { 3727s # GVariant *value; 3727s # 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); 3727s # if (value != NULL) 3727s # { 3727s # g_variant_take_ref (value); 3727s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3727s # g_variant_unref (value); 3727s # } 3727s # } 3727s # } 3727s # out: 3727s # return g_variant_builder_end (&builder); 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3727s # { 3727s # } 3727s # 3727s # static void 3727s # _org_project_signaling_iface_on_signal_simple_signal ( 3727s # OrgProjectSignalingIface *object) 3727s # { 3727s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3727s # 3727s # GList *connections, *l; 3727s # GVariant *signal_variant; 3727s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3727s # 3727s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 3727s # for (l = connections; l != NULL; l = l->next) 3727s # { 3727s # GDBusConnection *connection = l->data; 3727s # g_dbus_connection_emit_signal (connection, 3727s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 3727s # signal_variant, NULL); 3727s # } 3727s # g_variant_unref (signal_variant); 3727s # g_list_free_full (connections, g_object_unref); 3727s # } 3727s # 3727s # static void 3727s # _org_project_signaling_iface_on_signal_signal_with_many_args ( 3727s # OrgProjectSignalingIface *object, 3727s # gboolean arg_an_b, 3727s # guchar arg_an_y, 3727s # gint16 arg_an_n, 3727s # guint16 arg_an_q, 3727s # gint arg_an_i, 3727s # guint arg_an_u, 3727s # gint64 arg_an_x, 3727s # guint64 arg_an_t, 3727s # gdouble arg_an_d, 3727s # const gchar *arg_an_s, 3727s # const gchar *arg_an_o, 3727s # const gchar *arg_an_g, 3727s # GVariant *arg_an_h, 3727s # const gchar *arg_an_ay, 3727s # const gchar *const *arg_an_as, 3727s # const gchar *const *arg_an_ao, 3727s # const gchar *const *arg_an_aay, 3727s # GVariant *arg_an_asv) 3727s # { 3727s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3727s # 3727s # GList *connections, *l; 3727s # GVariant *signal_variant; 3727s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3727s # 3727s # signal_variant = g_variant_ref_sink (g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 3727s # arg_an_b, 3727s # arg_an_y, 3727s # arg_an_n, 3727s # arg_an_q, 3727s # arg_an_i, 3727s # arg_an_u, 3727s # arg_an_x, 3727s # arg_an_t, 3727s # arg_an_d, 3727s # arg_an_s, 3727s # arg_an_o, 3727s # arg_an_g, 3727s # arg_an_h, 3727s # arg_an_ay, 3727s # arg_an_as, 3727s # arg_an_ao, 3727s # arg_an_aay, 3727s # arg_an_asv)); 3727s # for (l = connections; l != NULL; l = l->next) 3727s # { 3727s # GDBusConnection *connection = l->data; 3727s # g_dbus_connection_emit_signal (connection, 3727s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SignalWithManyArgs", 3727s # signal_variant, NULL); 3727s # } 3727s # g_variant_unref (signal_variant); 3727s # g_list_free_full (connections, g_object_unref); 3727s # } 3727s # 3727s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 3727s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3727s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3727s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 3727s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3727s # 3727s # #else 3727s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3727s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 3727s # 3727s # #endif 3727s # static void 3727s # org_project_signaling_iface_skeleton_finalize (GObject *object) 3727s # { 3727s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 3727s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3727s # if (skeleton->priv->changed_properties_idle_source != NULL) 3727s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3727s # g_main_context_unref (skeleton->priv->context); 3727s # g_mutex_clear (&skeleton->priv->lock); 3727s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 3727s # { 3727s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3727s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 3727s # #else 3727s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 3727s # #endif 3727s # 3727s # g_mutex_init (&skeleton->priv->lock); 3727s # skeleton->priv->context = g_main_context_ref_thread_default (); 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 3727s # { 3727s # GObjectClass *gobject_class; 3727s # GDBusInterfaceSkeletonClass *skeleton_class; 3727s # 3727s # gobject_class = G_OBJECT_CLASS (klass); 3727s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 3727s # 3727s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3727s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 3727s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 3727s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 3727s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 3727s # 3727s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3727s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 3727s # #endif 3727s # } 3727s # 3727s # static void 3727s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 3727s # { 3727s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 3727s # iface->signal_with_many_args = _org_project_signaling_iface_on_signal_signal_with_many_args; 3727s # } 3727s # 3727s # /** 3727s # * org_project_signaling_iface_skeleton_new: 3727s # * 3727s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-SignalingIface.top_of_page">org.project.SignalingIface</link>. 3727s # * 3727s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 3727s # */ 3727s # OrgProjectSignalingIface * 3727s # org_project_signaling_iface_skeleton_new (void) 3727s # { 3727s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 3727s # } 3727s # Error: 3727s ok 25 __main__.TestCodegen.test_generate_valid_docbook 3727s # gdbus-codegen: /usr/bin/gdbus-codegen 3727s # tmpdir: /tmp/tmplc1ng5gm 3727s # /tmp/tmplc1ng5gm/tmp7s5q56oz.xml: 3727s # <node> 3727s # <interface name="org.project.Bar.Frobnicator"> 3727s # <!-- Resize: 3727s # @size: New partition size in bytes, 0 for maximal size. 3727s # @options: Options. 3727s # @since 2.7.2 3727s # 3727s # Resizes the partition. 3727s # 3727s # The partition will not change its position but might be slightly bigger 3727s # than requested due to sector counts and alignment (e.g. 1MiB). 3727s # If the requested size can't be allocated it results in an error. 3727s # The maximal size can automatically be set by using 0 as size. 3727s # --> 3727s # <method name="Resize"> 3727s # <arg name="size" direction="in" type="t"/> 3727s # <arg name="options" direction="in" type="a{sv}"/> 3727s # </method> 3727s # </interface> 3727s # </node> 3727s # 3727s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplc1ng5gm/tmp7s5q56oz.xml', '--generate-docbook', 'test'] 3727s # Return code: 0 3727s # Output: 3727s # 3727s # Error: 3728s ok 26 __main__.TestCodegen.test_glib_max_allowed_less_than_min_required 3728s # gdbus-codegen: /usr/bin/gdbus-codegen 3728s # tmpdir: /tmp/tmpqjq7jeky 3728s # /tmp/tmpqjq7jeky/tmp92s1a1qp.xml: 3728s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpqjq7jeky/tmp92s1a1qp.xml', '--output', '-', '--body', '--glib-max-allowed', '2.62', '--glib-min-required', '2.64'] 3728s # Return code: 1 3728s # Output: 3728s # 3728s # Error: 3728s # ERROR: Invalid versions: --glib-min-required ((2, 64)) must be less than or equal to --glib-max-allowed ((2, 62)) 3728s ok 27 __main__.TestCodegen.test_glib_max_allowed_major_only 3728s # gdbus-codegen: /usr/bin/gdbus-codegen 3728s # tmpdir: /tmp/tmp9_7sucau 3728s # /tmp/tmp9_7sucau/tmpzcni16mq.xml: 3728s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9_7sucau/tmpzcni16mq.xml', '--output', '-', '--header', '--glib-max-allowed', '3'] 3728s # Return code: 0 3728s # Output: 3728s # /* 3728s # * This file is generated by gdbus-codegen, do not modify it. 3728s # * 3728s # * The license of this code is the same as for the D-Bus interface description 3728s # * it was derived from. Note that it links to GLib, so must comply with the 3728s # * LGPL linking clauses. 3728s # */ 3728s # 3728s # #ifndef __STDOUT__ 3728s # #define __STDOUT__ 3728s # 3728s # #include <gio/gio.h> 3728s # 3728s # G_BEGIN_DECLS 3728s # 3728s # 3728s # G_END_DECLS 3728s # 3728s # #endif /* __STDOUT__ */ 3728s # Error: 3729s # Executing: glib/codegen.py.test 3729s ok 28 __main__.TestCodegen.test_glib_max_allowed_too_low 3729s # gdbus-codegen: /usr/bin/gdbus-codegen 3729s # tmpdir: /tmp/tmpxhrxduj8 3729s # /tmp/tmpxhrxduj8/tmpeci7cku6.xml: 3729s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxhrxduj8/tmpeci7cku6.xml', '--output', '-', '--body', '--glib-max-allowed', '2.6'] 3729s # Return code: 1 3729s # Output: 3729s # 3729s # Error: 3729s # ERROR: Invalid versions: --glib-min-required ((2, 30)) must be less than or equal to --glib-max-allowed ((2, 6)) 3730s ok 29 __main__.TestCodegen.test_glib_max_allowed_unstable 3730s # gdbus-codegen: /usr/bin/gdbus-codegen 3730s # tmpdir: /tmp/tmp0dlvhn6b 3730s # /tmp/tmp0dlvhn6b/tmptu3rjl7i.xml: 3730s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp0dlvhn6b/tmptu3rjl7i.xml', '--output', '-', '--header', '--glib-max-allowed', '2.63', '--glib-min-required', '2.64'] 3730s # Return code: 0 3730s # Output: 3730s # /* 3730s # * This file is generated by gdbus-codegen, do not modify it. 3730s # * 3730s # * The license of this code is the same as for the D-Bus interface description 3730s # * it was derived from. Note that it links to GLib, so must comply with the 3730s # * LGPL linking clauses. 3730s # */ 3730s # 3730s # #ifndef __STDOUT__ 3730s # #define __STDOUT__ 3730s # 3730s # #include <gio/gio.h> 3730s # 3730s # G_BEGIN_DECLS 3730s # 3730s # 3730s # G_END_DECLS 3730s # 3730s # #endif /* __STDOUT__ */ 3730s # Error: 3730s ok 30 __main__.TestCodegen.test_glib_max_allowed_with_micro 3730s # gdbus-codegen: /usr/bin/gdbus-codegen 3730s # tmpdir: /tmp/tmptgr7vb6y 3730s # /tmp/tmptgr7vb6y/tmp75cxax9r.xml: 3730s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmptgr7vb6y/tmp75cxax9r.xml', '--output', '-', '--header', '--glib-max-allowed', '2.46.2'] 3730s # Return code: 0 3730s # Output: 3730s # /* 3730s # * This file is generated by gdbus-codegen, do not modify it. 3730s # * 3730s # * The license of this code is the same as for the D-Bus interface description 3730s # * it was derived from. Note that it links to GLib, so must comply with the 3730s # * LGPL linking clauses. 3730s # */ 3730s # 3730s # #ifndef __STDOUT__ 3730s # #define __STDOUT__ 3730s # 3730s # #include <gio/gio.h> 3730s # 3730s # G_BEGIN_DECLS 3730s # 3730s # 3730s # G_END_DECLS 3730s # 3730s # #endif /* __STDOUT__ */ 3730s # Error: 3731s ok 31 __main__.TestCodegen.test_glib_min_required_invalid 3731s # gdbus-codegen: /usr/bin/gdbus-codegen 3731s # tmpdir: /tmp/tmpyc8y8u3r 3731s # /tmp/tmpyc8y8u3r/tmp5le8i86d.xml: 3731s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpyc8y8u3r/tmp5le8i86d.xml', '--output', '-', '--body', '--glib-min-required', 'hello mum'] 3731s # Return code: 1 3731s # Output: 3731s # 3731s # Error: 3731s # ERROR: Unrecognized --glib-min-required string ‘hello mum’ 3731s ok 32 __main__.TestCodegen.test_glib_min_required_major_only 3731s # gdbus-codegen: /usr/bin/gdbus-codegen 3731s # tmpdir: /tmp/tmp9w3i7l6m 3731s # /tmp/tmp9w3i7l6m/tmp1flp2ypr.xml: 3731s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9w3i7l6m/tmp1flp2ypr.xml', '--output', '-', '--header', '--glib-min-required', '3', '--glib-max-allowed', '3.2'] 3731s # Return code: 0 3731s # Output: 3731s # /* 3731s # * This file is generated by gdbus-codegen, do not modify it. 3731s # * 3731s # * The license of this code is the same as for the D-Bus interface description 3731s # * it was derived from. Note that it links to GLib, so must comply with the 3731s # * LGPL linking clauses. 3731s # */ 3731s # 3731s # #ifndef __STDOUT__ 3731s # #define __STDOUT__ 3731s # 3731s # #include <gio/gio.h> 3731s # 3731s # G_BEGIN_DECLS 3731s # 3731s # 3731s # G_END_DECLS 3731s # 3731s # #endif /* __STDOUT__ */ 3731s # Error: 3732s ok 33 __main__.TestCodegen.test_glib_min_required_too_low 3732s # gdbus-codegen: /usr/bin/gdbus-codegen 3732s # tmpdir: /tmp/tmpfxjhl_90 3732s # /tmp/tmpfxjhl_90/tmp3y7cj3bq.xml: 3732s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpfxjhl_90/tmp3y7cj3bq.xml', '--output', '-', '--body', '--glib-min-required', '2.6'] 3732s # Return code: 1 3732s # Output: 3732s # 3732s # Error: 3732s # ERROR: Invalid --glib-min-required string ‘2.6’: minimum version is 2.30 3732s ok 34 __main__.TestCodegen.test_glib_min_required_with_micro 3732s # gdbus-codegen: /usr/bin/gdbus-codegen 3732s # tmpdir: /tmp/tmpbvr5hkyc 3732s # /tmp/tmpbvr5hkyc/tmpfdven9ob.xml: 3732s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpbvr5hkyc/tmpfdven9ob.xml', '--output', '-', '--header', '--glib-min-required', '2.46.2'] 3732s # Return code: 0 3732s # Output: 3732s # /* 3732s # * This file is generated by gdbus-codegen, do not modify it. 3732s # * 3732s # * The license of this code is the same as for the D-Bus interface description 3732s # * it was derived from. Note that it links to GLib, so must comply with the 3732s # * LGPL linking clauses. 3732s # */ 3732s # 3732s # #ifndef __STDOUT__ 3732s # #define __STDOUT__ 3732s # 3732s # #include <gio/gio.h> 3732s # 3732s # G_BEGIN_DECLS 3732s # 3732s # 3732s # G_END_DECLS 3732s # 3732s # #endif /* __STDOUT__ */ 3732s # Error: 3733s ok 35 __main__.TestCodegen.test_help 3733s # gdbus-codegen: /usr/bin/gdbus-codegen 3733s # tmpdir: /tmp/tmp3k8muxdr 3733s # Running: ['/usr/bin/gdbus-codegen', '--help'] 3733s # Return code: 0 3733s # Output: 3733s # usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 3733s # [--c-namespace NAMESPACE] [--c-generate-object-manager] 3733s # [--c-generate-autocleanup {none,objects,all}] 3733s # [--generate-docbook OUTFILES] [--generate-md OUTFILES] 3733s # [--generate-rst OUTFILES] [--pragma-once] 3733s # [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 3733s # [--glib-min-required VERSION] 3733s # [--glib-max-allowed VERSION] 3733s # [--symbol-decorator SYMBOL_DECORATOR] 3733s # [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 3733s # [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 3733s # [--generate-c-code OUTFILES | --header | --body | 3733s # --interface-info-header | --interface-info-body] 3733s # [--output FILE | --output-directory OUTDIR] 3733s # FILE [FILE ...] 3733s # 3733s # D-Bus code and documentation generator 3733s # 3733s # positional arguments: 3733s # FILE D-Bus introspection XML file 3733s # 3733s # options: 3733s # -h, --help show this help message and exit 3733s # --interface-prefix PREFIX 3733s # String to strip from D-Bus interface names for code 3733s # and docs 3733s # --c-namespace NAMESPACE 3733s # The namespace to use for generated C code 3733s # --c-generate-object-manager 3733s # Generate a GDBusObjectManagerClient subclass when 3733s # generating C code 3733s # --c-generate-autocleanup {none,objects,all} 3733s # Generate autocleanup support 3733s # --generate-docbook OUTFILES 3733s # Generate Docbook in OUTFILES-org.Project.IFace.xml 3733s # --generate-md OUTFILES 3733s # Generate Markdown in OUTFILES-org.Project.IFace.md 3733s # --generate-rst OUTFILES 3733s # Generate reStructuredText in OUTFILES- 3733s # org.Project.IFace.rst 3733s # --pragma-once Use "pragma once" as the inclusion guard 3733s # --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 3733s # Add annotation (may be used several times) 3733s # --glib-min-required VERSION 3733s # Minimum version of GLib to be supported by the 3733s # outputted code (default: 2.30) 3733s # --glib-max-allowed VERSION 3733s # Maximum version of GLib to be used by the outputted 3733s # code (default: current GLib version) 3733s # --symbol-decorator SYMBOL_DECORATOR 3733s # Macro used to decorate a symbol in the outputted 3733s # header, possibly to export symbols 3733s # --symbol-decorator-header SYMBOL_DECORATOR_HEADER 3733s # Additional header required for decorator specified by 3733s # --symbol-decorator 3733s # --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 3733s # Additional define required for decorator specified by 3733s # --symbol-decorator 3733s # --generate-c-code OUTFILES 3733s # Generate C code in OUTFILES.[ch] 3733s # --header Generate C headers 3733s # --body Generate C code 3733s # --interface-info-header 3733s # Generate GDBusInterfaceInfo C header 3733s # --interface-info-body 3733s # Generate GDBusInterfaceInfo C code 3733s # --output FILE Write output into the specified file 3733s # --output-directory OUTDIR 3733s # Location to output generated files 3733s # Error: 3734s # Executing: glib/codegen.py.test 3735s ok 36 __main__.TestCodegen.test_indentation_preservation_in_comments 3735s # gdbus-codegen: /usr/bin/gdbus-codegen 3735s # tmpdir: /tmp/tmpczar3ujc 3735s # /tmp/tmpczar3ujc/tmp0rrn8qj7.xml: 3735s # <node> 3735s # <interface name="org.project.Bar.Frobnicator"> 3735s # <!-- GetKeyBinding: 3735s # @index: 0-based index of the action to query. 3735s # 3735s # Gets the keybinding which can be used to activate this action, if one 3735s # exists. The string returned should contain localized, human-readable, 3735s # key sequences as they would appear when displayed on screen. It must 3735s # be in the format "mnemonic;sequence;shortcut". 3735s # 3735s # - The mnemonic key activates the object if it is presently enabled onscreen. 3735s # This typically corresponds to the underlined letter within the widget. 3735s # Example: "n" in a traditional "New..." menu item or the "a" in "Apply" for 3735s # a button. 3735s # 3735s # If there is no key binding for this action, return "". 3735s # --> 3735s # <method name="GetKeyBinding"> 3735s # <arg type="i" name="index" direction="in"/> 3735s # <arg type="s" direction="out"/> 3735s # </method> 3735s # </interface> 3735s # </node> 3735s # 3735s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpczar3ujc/tmp0rrn8qj7.xml', '--generate-rst', 'test'] 3735s # Return code: 0 3735s # Output: 3735s # 3735s # Error: 3735s # 3735s # /tmp/tmpczar3ujc/tmpu5qxygxo.xml: 3735s # <node> 3735s # <interface name="org.project.Bar.Frobnicator"> 3735s # <!-- GetKeyBinding: 3735s # @index: 0-based index of the action to query. 3735s # 3735s # Gets the keybinding which can be used to activate this action, if one 3735s # exists. The string returned should contain localized, human-readable, 3735s # key sequences as they would appear when displayed on screen. It must 3735s # be in the format "mnemonic;sequence;shortcut". 3735s # 3735s # - The mnemonic key activates the object if it is presently enabled onscreen. 3735s # This typically corresponds to the underlined letter within the widget. 3735s # Example: "n" in a traditional "New..." menu item or the "a" in "Apply" for 3735s # a button. 3735s # 3735s # If there is no key binding for this action, return "". 3735s # --> 3735s # <method name="GetKeyBinding"> 3735s # <arg type="i" name="index" direction="in"/> 3735s # <arg type="s" direction="out"/> 3735s # </method> 3735s # </interface> 3735s # </node> 3735s # 3735s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpczar3ujc/tmpu5qxygxo.xml', '--generate-md', 'test'] 3735s # Return code: 0 3735s # Output: 3735s # 3735s # Error: 3735s # 3735s # /tmp/tmpczar3ujc/tmp0zcrn6wc.xml: 3735s # <node> 3735s # <interface name="org.project.Bar.Frobnicator"> 3735s # <!-- GetKeyBinding: 3735s # @index: 0-based index of the action to query. 3735s # 3735s # Gets the keybinding which can be used to activate this action, if one 3735s # exists. The string returned should contain localized, human-readable, 3735s # key sequences as they would appear when displayed on screen. It must 3735s # be in the format "mnemonic;sequence;shortcut". 3735s # 3735s # - The mnemonic key activates the object if it is presently enabled onscreen. 3735s # This typically corresponds to the underlined letter within the widget. 3735s # Example: "n" in a traditional "New..." menu item or the "a" in "Apply" for 3735s # a button. 3735s # 3735s # If there is no key binding for this action, return "". 3735s # --> 3735s # <method name="GetKeyBinding"> 3735s # <arg type="i" name="index" direction="in"/> 3735s # <arg type="s" direction="out"/> 3735s # </method> 3735s # </interface> 3735s # </node> 3735s # 3735s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpczar3ujc/tmp0zcrn6wc.xml', '--generate-docbook', 'test'] 3735s # Return code: 0 3735s # Output: 3735s # 3735s # Error: 3735s ok 37 __main__.TestCodegen.test_no_args 3735s # gdbus-codegen: /usr/bin/gdbus-codegen 3735s # tmpdir: /tmp/tmp4r49t1iy 3735s # Running: ['/usr/bin/gdbus-codegen'] 3735s # Return code: 2 3735s # Output: 3735s # 3735s # Error: 3735s # usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 3735s # [--c-namespace NAMESPACE] [--c-generate-object-manager] 3735s # [--c-generate-autocleanup {none,objects,all}] 3735s # [--generate-docbook OUTFILES] [--generate-md OUTFILES] 3735s # [--generate-rst OUTFILES] [--pragma-once] 3735s # [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 3735s # [--glib-min-required VERSION] 3735s # [--glib-max-allowed VERSION] 3735s # [--symbol-decorator SYMBOL_DECORATOR] 3735s # [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 3735s # [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 3735s # [--generate-c-code OUTFILES | --header | --body | 3735s # --interface-info-header | --interface-info-body] 3735s # [--output FILE | --output-directory OUTDIR] 3735s # FILE [FILE ...] 3735s # gdbus-codegen: error: the following arguments are required: FILE 3738s ok 38 __main__.TestCodegen.test_reproducible 3738s # gdbus-codegen: /usr/bin/gdbus-codegen 3738s # tmpdir: /tmp/tmplxrnoyuu 3738s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplxrnoyuu/tmp9aaamg3v1.xml', '/tmp/tmplxrnoyuu/tmpm0tv316y2.xml', '--output', '-', '--header'] 3738s # Return code: 0 3738s # Output: 3738s # /* 3738s # * This file is generated by gdbus-codegen, do not modify it. 3738s # * 3738s # * The license of this code is the same as for the D-Bus interface description 3738s # * it was derived from. Note that it links to GLib, so must comply with the 3738s # * LGPL linking clauses. 3738s # */ 3738s # 3738s # #ifndef __STDOUT__ 3738s # #define __STDOUT__ 3738s # 3738s # #include <gio/gio.h> 3738s # 3738s # G_BEGIN_DECLS 3738s # 3738s # 3738s # /* ------------------------------------------------------------------------ */ 3738s # /* Declarations for com.acme.Coyote */ 3738s # 3738s # #define TYPE_COM_ACME_COYOTE (com_acme_coyote_get_type ()) 3738s # #define COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyote)) 3738s # #define IS_COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE)) 3738s # #define COM_ACME_COYOTE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyoteIface)) 3738s # 3738s # struct _ComAcmeCoyote; 3738s # typedef struct _ComAcmeCoyote ComAcmeCoyote; 3738s # typedef struct _ComAcmeCoyoteIface ComAcmeCoyoteIface; 3738s # 3738s # struct _ComAcmeCoyoteIface 3738s # { 3738s # GTypeInterface parent_iface; 3738s # 3738s # 3738s # 3738s # gboolean (*handle_attack) ( 3738s # ComAcmeCoyote *object, 3738s # GDBusMethodInvocation *invocation); 3738s # 3738s # gboolean (*handle_run) ( 3738s # ComAcmeCoyote *object, 3738s # GDBusMethodInvocation *invocation); 3738s # 3738s # gboolean (*handle_sleep) ( 3738s # ComAcmeCoyote *object, 3738s # GDBusMethodInvocation *invocation); 3738s # 3738s # const gchar * (*get_mood) (ComAcmeCoyote *object); 3738s # 3738s # void (*surprised) ( 3738s # ComAcmeCoyote *object); 3738s # 3738s # }; 3738s # 3738s # GType com_acme_coyote_get_type (void) G_GNUC_CONST; 3738s # 3738s # GDBusInterfaceInfo *com_acme_coyote_interface_info (void); 3738s # guint com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin); 3738s # 3738s # 3738s # /* D-Bus method call completion functions: */ 3738s # void com_acme_coyote_complete_run ( 3738s # ComAcmeCoyote *object, 3738s # GDBusMethodInvocation *invocation); 3738s # 3738s # void com_acme_coyote_complete_sleep ( 3738s # ComAcmeCoyote *object, 3738s # GDBusMethodInvocation *invocation); 3738s # 3738s # void com_acme_coyote_complete_attack ( 3738s # ComAcmeCoyote *object, 3738s # GDBusMethodInvocation *invocation); 3738s # 3738s # 3738s # 3738s # /* D-Bus signal emissions functions: */ 3738s # void com_acme_coyote_emit_surprised ( 3738s # ComAcmeCoyote *object); 3738s # 3738s # 3738s # 3738s # /* D-Bus method calls: */ 3738s # void com_acme_coyote_call_run ( 3738s # ComAcmeCoyote *proxy, 3738s # GCancellable *cancellable, 3738s # GAsyncReadyCallback callback, 3738s # gpointer user_data); 3738s # 3738s # gboolean com_acme_coyote_call_run_finish ( 3738s # ComAcmeCoyote *proxy, 3738s # GAsyncResult *res, 3738s # GError **error); 3738s # 3738s # gboolean com_acme_coyote_call_run_sync ( 3738s # ComAcmeCoyote *proxy, 3738s # GCancellable *cancellable, 3738s # GError **error); 3738s # 3738s # void com_acme_coyote_call_sleep ( 3738s # ComAcmeCoyote *proxy, 3738s # GCancellable *cancellable, 3738s # GAsyncReadyCallback callback, 3738s # gpointer user_data); 3738s # 3738s # gboolean com_acme_coyote_call_sleep_finish ( 3738s # ComAcmeCoyote *proxy, 3738s # GAsyncResult *res, 3738s # GError **error); 3738s # 3738s # gboolean com_acme_coyote_call_sleep_sync ( 3738s # ComAcmeCoyote *proxy, 3738s # GCancellable *cancellable, 3738s # GError **error); 3738s # 3738s # void com_acme_coyote_call_attack ( 3738s # ComAcmeCoyote *proxy, 3738s # GCancellable *cancellable, 3738s # GAsyncReadyCallback callback, 3738s # gpointer user_data); 3738s # 3738s # gboolean com_acme_coyote_call_attack_finish ( 3738s # ComAcmeCoyote *proxy, 3738s # GAsyncResult *res, 3738s # GError **error); 3738s # 3738s # gboolean com_acme_coyote_call_attack_sync ( 3738s # ComAcmeCoyote *proxy, 3738s # GCancellable *cancellable, 3738s # GError **error); 3738s # 3738s # 3738s # 3738s # /* D-Bus property accessors: */ 3738s # const gchar *com_acme_coyote_get_mood (ComAcmeCoyote *object); 3738s # gchar *com_acme_coyote_dup_mood (ComAcmeCoyote *object); 3738s # void com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value); 3738s # 3738s # 3738s # /* ---- */ 3738s # 3738s # #define TYPE_COM_ACME_COYOTE_PROXY (com_acme_coyote_proxy_get_type ()) 3738s # #define COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxy)) 3738s # #define COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 3738s # #define COM_ACME_COYOTE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 3738s # #define IS_COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_PROXY)) 3738s # #define IS_COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_PROXY)) 3738s # 3738s # typedef struct _ComAcmeCoyoteProxy ComAcmeCoyoteProxy; 3738s # typedef struct _ComAcmeCoyoteProxyClass ComAcmeCoyoteProxyClass; 3738s # typedef struct _ComAcmeCoyoteProxyPrivate ComAcmeCoyoteProxyPrivate; 3738s # 3738s # struct _ComAcmeCoyoteProxy 3738s # { 3738s # /*< private >*/ 3738s # GDBusProxy parent_instance; 3738s # ComAcmeCoyoteProxyPrivate *priv; 3738s # }; 3738s # 3738s # struct _ComAcmeCoyoteProxyClass 3738s # { 3738s # GDBusProxyClass parent_class; 3738s # }; 3738s # 3738s # GType com_acme_coyote_proxy_get_type (void) G_GNUC_CONST; 3738s # 3738s # #if GLIB_CHECK_VERSION(2, 44, 0) 3738s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteProxy, g_object_unref) 3738s # #endif 3738s # 3738s # void com_acme_coyote_proxy_new ( 3738s # GDBusConnection *connection, 3738s # GDBusProxyFlags flags, 3738s # const gchar *name, 3738s # const gchar *object_path, 3738s # GCancellable *cancellable, 3738s # GAsyncReadyCallback callback, 3738s # gpointer user_data); 3738s # ComAcmeCoyote *com_acme_coyote_proxy_new_finish ( 3738s # GAsyncResult *res, 3738s # GError **error); 3738s # ComAcmeCoyote *com_acme_coyote_proxy_new_sync ( 3738s # GDBusConnection *connection, 3738s # GDBusProxyFlags flags, 3738s # const gchar *name, 3738s # const gchar *object_path, 3738s # GCancellable *cancellable, 3738s # GError **error); 3738s # 3738s # void com_acme_coyote_proxy_new_for_bus ( 3738s # GBusType bus_type, 3738s # GDBusProxyFlags flags, 3738s # const gchar *name, 3738s # const gchar *object_path, 3738s # GCancellable *cancellable, 3738s # GAsyncReadyCallback callback, 3738s # gpointer user_data); 3738s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_finish ( 3738s # GAsyncResult *res, 3738s # GError **error); 3738s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_sync ( 3738s # GBusType bus_type, 3738s # GDBusProxyFlags flags, 3738s # const gchar *name, 3738s # const gchar *object_path, 3738s # GCancellable *cancellable, 3738s # GError **error); 3738s # 3738s # 3738s # /* ---- */ 3738s # 3738s # #define TYPE_COM_ACME_COYOTE_SKELETON (com_acme_coyote_skeleton_get_type ()) 3738s # #define COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeleton)) 3738s # #define COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 3738s # #define COM_ACME_COYOTE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 3738s # #define IS_COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_SKELETON)) 3738s # #define IS_COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_SKELETON)) 3738s # 3738s # typedef struct _ComAcmeCoyoteSkeleton ComAcmeCoyoteSkeleton; 3738s # typedef struct _ComAcmeCoyoteSkeletonClass ComAcmeCoyoteSkeletonClass; 3738s # typedef struct _ComAcmeCoyoteSkeletonPrivate ComAcmeCoyoteSkeletonPrivate; 3738s # 3738s # struct _ComAcmeCoyoteSkeleton 3738s # { 3738s # /*< private >*/ 3738s # GDBusInterfaceSkeleton parent_instance; 3738s # ComAcmeCoyoteSkeletonPrivate *priv; 3738s # }; 3738s # 3738s # struct _ComAcmeCoyoteSkeletonClass 3738s # { 3738s # GDBusInterfaceSkeletonClass parent_class; 3738s # }; 3738s # 3738s # GType com_acme_coyote_skeleton_get_type (void) G_GNUC_CONST; 3738s # 3738s # #if GLIB_CHECK_VERSION(2, 44, 0) 3738s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteSkeleton, g_object_unref) 3738s # #endif 3738s # 3738s # ComAcmeCoyote *com_acme_coyote_skeleton_new (void); 3738s # 3738s # 3738s # /* ------------------------------------------------------------------------ */ 3738s # /* Declarations for org.project.Bar.Frobnicator */ 3738s # 3738s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR (org_project_bar_frobnicator_get_type ()) 3738s # #define ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicator)) 3738s # #define IS_ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR)) 3738s # #define ORG_PROJECT_BAR_FROBNICATOR_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicatorIface)) 3738s # 3738s # struct _OrgProjectBarFrobnicator; 3738s # typedef struct _OrgProjectBarFrobnicator OrgProjectBarFrobnicator; 3738s # typedef struct _OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorIface; 3738s # 3738s # struct _OrgProjectBarFrobnicatorIface 3738s # { 3738s # GTypeInterface parent_iface; 3738s # 3738s # gboolean (*handle_random_method) ( 3738s # OrgProjectBarFrobnicator *object, 3738s # GDBusMethodInvocation *invocation); 3738s # 3738s # }; 3738s # 3738s # GType org_project_bar_frobnicator_get_type (void) G_GNUC_CONST; 3738s # 3738s # GDBusInterfaceInfo *org_project_bar_frobnicator_interface_info (void); 3738s # guint org_project_bar_frobnicator_override_properties (GObjectClass *klass, guint property_id_begin); 3738s # 3738s # 3738s # /* D-Bus method call completion functions: */ 3738s # void org_project_bar_frobnicator_complete_random_method ( 3738s # OrgProjectBarFrobnicator *object, 3738s # GDBusMethodInvocation *invocation); 3738s # 3738s # 3738s # 3738s # /* D-Bus method calls: */ 3738s # void org_project_bar_frobnicator_call_random_method ( 3738s # OrgProjectBarFrobnicator *proxy, 3738s # GCancellable *cancellable, 3738s # GAsyncReadyCallback callback, 3738s # gpointer user_data); 3738s # 3738s # gboolean org_project_bar_frobnicator_call_random_method_finish ( 3738s # OrgProjectBarFrobnicator *proxy, 3738s # GAsyncResult *res, 3738s # GError **error); 3738s # 3738s # gboolean org_project_bar_frobnicator_call_random_method_sync ( 3738s # OrgProjectBarFrobnicator *proxy, 3738s # GCancellable *cancellable, 3738s # GError **error); 3738s # 3738s # 3738s # 3738s # /* ---- */ 3738s # 3738s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY (org_project_bar_frobnicator_proxy_get_type ()) 3738s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxy)) 3738s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 3738s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 3738s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 3738s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 3738s # 3738s # typedef struct _OrgProjectBarFrobnicatorProxy OrgProjectBarFrobnicatorProxy; 3738s # typedef struct _OrgProjectBarFrobnicatorProxyClass OrgProjectBarFrobnicatorProxyClass; 3738s # typedef struct _OrgProjectBarFrobnicatorProxyPrivate OrgProjectBarFrobnicatorProxyPrivate; 3738s # 3738s # struct _OrgProjectBarFrobnicatorProxy 3738s # { 3738s # /*< private >*/ 3738s # GDBusProxy parent_instance; 3738s # OrgProjectBarFrobnicatorProxyPrivate *priv; 3738s # }; 3738s # 3738s # struct _OrgProjectBarFrobnicatorProxyClass 3738s # { 3738s # GDBusProxyClass parent_class; 3738s # }; 3738s # 3738s # GType org_project_bar_frobnicator_proxy_get_type (void) G_GNUC_CONST; 3738s # 3738s # #if GLIB_CHECK_VERSION(2, 44, 0) 3738s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorProxy, g_object_unref) 3738s # #endif 3738s # 3738s # void org_project_bar_frobnicator_proxy_new ( 3738s # GDBusConnection *connection, 3738s # GDBusProxyFlags flags, 3738s # const gchar *name, 3738s # const gchar *object_path, 3738s # GCancellable *cancellable, 3738s # GAsyncReadyCallback callback, 3738s # gpointer user_data); 3738s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_finish ( 3738s # GAsyncResult *res, 3738s # GError **error); 3738s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_sync ( 3738s # GDBusConnection *connection, 3738s # GDBusProxyFlags flags, 3738s # const gchar *name, 3738s # const gchar *object_path, 3738s # GCancellable *cancellable, 3738s # GError **error); 3738s # 3738s # void org_project_bar_frobnicator_proxy_new_for_bus ( 3738s # GBusType bus_type, 3738s # GDBusProxyFlags flags, 3738s # const gchar *name, 3738s # const gchar *object_path, 3738s # GCancellable *cancellable, 3738s # GAsyncReadyCallback callback, 3738s # gpointer user_data); 3738s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_finish ( 3738s # GAsyncResult *res, 3738s # GError **error); 3738s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_sync ( 3738s # GBusType bus_type, 3738s # GDBusProxyFlags flags, 3738s # const gchar *name, 3738s # const gchar *object_path, 3738s # GCancellable *cancellable, 3738s # GError **error); 3738s # 3738s # 3738s # /* ---- */ 3738s # 3738s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON (org_project_bar_frobnicator_skeleton_get_type ()) 3738s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeleton)) 3738s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 3738s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 3738s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 3738s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 3738s # 3738s # typedef struct _OrgProjectBarFrobnicatorSkeleton OrgProjectBarFrobnicatorSkeleton; 3738s # typedef struct _OrgProjectBarFrobnicatorSkeletonClass OrgProjectBarFrobnicatorSkeletonClass; 3738s # typedef struct _OrgProjectBarFrobnicatorSkeletonPrivate OrgProjectBarFrobnicatorSkeletonPrivate; 3738s # 3738s # struct _OrgProjectBarFrobnicatorSkeleton 3738s # { 3738s # /*< private >*/ 3738s # GDBusInterfaceSkeleton parent_instance; 3738s # OrgProjectBarFrobnicatorSkeletonPrivate *priv; 3738s # }; 3738s # 3738s # struct _OrgProjectBarFrobnicatorSkeletonClass 3738s # { 3738s # GDBusInterfaceSkeletonClass parent_class; 3738s # }; 3738s # 3738s # GType org_project_bar_frobnicator_skeleton_get_type (void) G_GNUC_CONST; 3738s # 3738s # #if GLIB_CHECK_VERSION(2, 44, 0) 3738s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorSkeleton, g_object_unref) 3738s # #endif 3738s # 3738s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_skeleton_new (void); 3738s # 3738s # 3738s # G_END_DECLS 3738s # 3738s # #endif /* __STDOUT__ */ 3738s # Error: 3738s # 3738s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplxrnoyuu/tmpm0tv316y2.xml', '/tmp/tmplxrnoyuu/tmp9aaamg3v1.xml', '--output', '-', '--header'] 3738s # Return code: 0 3738s # Output: 3738s # /* 3738s # * This file is generated by gdbus-codegen, do not modify it. 3738s # * 3738s # * The license of this code is the same as for the D-Bus interface description 3738s # * it was derived from. Note that it links to GLib, so must comply with the 3738s # * LGPL linking clauses. 3738s # */ 3738s # 3738s # #ifndef __STDOUT__ 3738s # #define __STDOUT__ 3738s # 3738s # #include <gio/gio.h> 3738s # 3738s # G_BEGIN_DECLS 3738s # 3738s # 3738s # /* ------------------------------------------------------------------------ */ 3738s # /* Declarations for com.acme.Coyote */ 3738s # 3738s # #define TYPE_COM_ACME_COYOTE (com_acme_coyote_get_type ()) 3738s # #define COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyote)) 3738s # #define IS_COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE)) 3738s # #define COM_ACME_COYOTE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyoteIface)) 3738s # 3738s # struct _ComAcmeCoyote; 3738s # typedef struct _ComAcmeCoyote ComAcmeCoyote; 3738s # typedef struct _ComAcmeCoyoteIface ComAcmeCoyoteIface; 3738s # 3738s # struct _ComAcmeCoyoteIface 3738s # { 3738s # GTypeInterface parent_iface; 3738s # 3738s # 3738s # 3738s # gboolean (*handle_attack) ( 3738s # ComAcmeCoyote *object, 3738s # GDBusMethodInvocation *invocation); 3738s # 3738s # gboolean (*handle_run) ( 3738s # ComAcmeCoyote *object, 3738s # GDBusMethodInvocation *invocation); 3738s # 3738s # gboolean (*handle_sleep) ( 3738s # ComAcmeCoyote *object, 3738s # GDBusMethodInvocation *invocation); 3738s # 3738s # const gchar * (*get_mood) (ComAcmeCoyote *object); 3738s # 3738s # void (*surprised) ( 3738s # ComAcmeCoyote *object); 3738s # 3738s # }; 3738s # 3738s # GType com_acme_coyote_get_type (void) G_GNUC_CONST; 3738s # 3738s # GDBusInterfaceInfo *com_acme_coyote_interface_info (void); 3738s # guint com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin); 3738s # 3738s # 3738s # /* D-Bus method call completion functions: */ 3738s # void com_acme_coyote_complete_run ( 3738s # ComAcmeCoyote *object, 3738s # GDBusMethodInvocation *invocation); 3738s # 3738s # void com_acme_coyote_complete_sleep ( 3738s # ComAcmeCoyote *object, 3738s # GDBusMethodInvocation *invocation); 3738s # 3738s # void com_acme_coyote_complete_attack ( 3738s # ComAcmeCoyote *object, 3738s # GDBusMethodInvocation *invocation); 3738s # 3738s # 3738s # 3738s # /* D-Bus signal emissions functions: */ 3738s # void com_acme_coyote_emit_surprised ( 3738s # ComAcmeCoyote *object); 3738s # 3738s # 3738s # 3738s # /* D-Bus method calls: */ 3738s # void com_acme_coyote_call_run ( 3738s # ComAcmeCoyote *proxy, 3738s # GCancellable *cancellable, 3738s # GAsyncReadyCallback callback, 3738s # gpointer user_data); 3738s # 3738s # gboolean com_acme_coyote_call_run_finish ( 3738s # ComAcmeCoyote *proxy, 3738s # GAsyncResult *res, 3738s # GError **error); 3738s # 3738s # gboolean com_acme_coyote_call_run_sync ( 3738s # ComAcmeCoyote *proxy, 3738s # GCancellable *cancellable, 3738s # GError **error); 3738s # 3738s # void com_acme_coyote_call_sleep ( 3738s # ComAcmeCoyote *proxy, 3738s # GCancellable *cancellable, 3738s # GAsyncReadyCallback callback, 3738s # gpointer user_data); 3738s # 3738s # gboolean com_acme_coyote_call_sleep_finish ( 3738s # ComAcmeCoyote *proxy, 3738s # GAsyncResult *res, 3738s # GError **error); 3738s # 3738s # gboolean com_acme_coyote_call_sleep_sync ( 3738s # ComAcmeCoyote *proxy, 3738s # GCancellable *cancellable, 3738s # GError **error); 3738s # 3738s # void com_acme_coyote_call_attack ( 3738s # ComAcmeCoyote *proxy, 3738s # GCancellable *cancellable, 3738s # GAsyncReadyCallback callback, 3738s # gpointer user_data); 3738s # 3738s # gboolean com_acme_coyote_call_attack_finish ( 3738s # ComAcmeCoyote *proxy, 3738s # GAsyncResult *res, 3738s # GError **error); 3738s # 3738s # gboolean com_acme_coyote_call_attack_sync ( 3738s # ComAcmeCoyote *proxy, 3738s # GCancellable *cancellable, 3738s # GError **error); 3738s # 3738s # 3738s # 3738s # /* D-Bus property accessors: */ 3738s # const gchar *com_acme_coyote_get_mood (ComAcmeCoyote *object); 3738s # gchar *com_acme_coyote_dup_mood (ComAcmeCoyote *object); 3738s # void com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value); 3738s # 3738s # 3738s # /* ---- */ 3738s # 3738s # #define TYPE_COM_ACME_COYOTE_PROXY (com_acme_coyote_proxy_get_type ()) 3738s # #define COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxy)) 3738s # #define COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 3738s # #define COM_ACME_COYOTE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 3738s # #define IS_COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_PROXY)) 3738s # #define IS_COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_PROXY)) 3738s # 3738s # typedef struct _ComAcmeCoyoteProxy ComAcmeCoyoteProxy; 3738s # typedef struct _ComAcmeCoyoteProxyClass ComAcmeCoyoteProxyClass; 3738s # typedef struct _ComAcmeCoyoteProxyPrivate ComAcmeCoyoteProxyPrivate; 3738s # 3738s # struct _ComAcmeCoyoteProxy 3738s # { 3738s # /*< private >*/ 3738s # GDBusProxy parent_instance; 3738s # ComAcmeCoyoteProxyPrivate *priv; 3738s # }; 3738s # 3738s # struct _ComAcmeCoyoteProxyClass 3738s # { 3738s # GDBusProxyClass parent_class; 3738s # }; 3738s # 3738s # GType com_acme_coyote_proxy_get_type (void) G_GNUC_CONST; 3738s # 3738s # #if GLIB_CHECK_VERSION(2, 44, 0) 3738s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteProxy, g_object_unref) 3738s # #endif 3738s # 3738s # void com_acme_coyote_proxy_new ( 3738s # GDBusConnection *connection, 3738s # GDBusProxyFlags flags, 3738s # const gchar *name, 3738s # const gchar *object_path, 3738s # GCancellable *cancellable, 3738s # GAsyncReadyCallback callback, 3738s # gpointer user_data); 3738s # ComAcmeCoyote *com_acme_coyote_proxy_new_finish ( 3738s # GAsyncResult *res, 3738s # GError **error); 3738s # ComAcmeCoyote *com_acme_coyote_proxy_new_sync ( 3738s # GDBusConnection *connection, 3738s # GDBusProxyFlags flags, 3738s # const gchar *name, 3738s # const gchar *object_path, 3738s # GCancellable *cancellable, 3738s # GError **error); 3738s # 3738s # void com_acme_coyote_proxy_new_for_bus ( 3738s # GBusType bus_type, 3738s # GDBusProxyFlags flags, 3738s # const gchar *name, 3738s # const gchar *object_path, 3738s # GCancellable *cancellable, 3738s # GAsyncReadyCallback callback, 3738s # gpointer user_data); 3738s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_finish ( 3738s # GAsyncResult *res, 3738s # GError **error); 3738s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_sync ( 3738s # GBusType bus_type, 3738s # GDBusProxyFlags flags, 3738s # const gchar *name, 3738s # const gchar *object_path, 3738s # GCancellable *cancellable, 3738s # GError **error); 3738s # 3738s # 3738s # /* ---- */ 3738s # 3738s # #define TYPE_COM_ACME_COYOTE_SKELETON (com_acme_coyote_skeleton_get_type ()) 3738s # #define COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeleton)) 3738s # #define COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 3738s # #define COM_ACME_COYOTE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 3738s # #define IS_COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_SKELETON)) 3738s # #define IS_COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_SKELETON)) 3738s # 3738s # typedef struct _ComAcmeCoyoteSkeleton ComAcmeCoyoteSkeleton; 3738s # typedef struct _ComAcmeCoyoteSkeletonClass ComAcmeCoyoteSkeletonClass; 3738s # typedef struct _ComAcmeCoyoteSkeletonPrivate ComAcmeCoyoteSkeletonPrivate; 3738s # 3738s # struct _ComAcmeCoyoteSkeleton 3738s # { 3738s # /*< private >*/ 3738s # GDBusInterfaceSkeleton parent_instance; 3738s # ComAcmeCoyoteSkeletonPrivate *priv; 3738s # }; 3738s # 3738s # struct _ComAcmeCoyoteSkeletonClass 3738s # { 3738s # GDBusInterfaceSkeletonClass parent_class; 3738s # }; 3738s # 3738s # GType com_acme_coyote_skeleton_get_type (void) G_GNUC_CONST; 3738s # 3738s # #if GLIB_CHECK_VERSION(2, 44, 0) 3738s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteSkeleton, g_object_unref) 3738s # #endif 3738s # 3738s # ComAcmeCoyote *com_acme_coyote_skeleton_new (void); 3738s # 3738s # 3738s # /* ------------------------------------------------------------------------ */ 3738s # /* Declarations for org.project.Bar.Frobnicator */ 3738s # 3738s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR (org_project_bar_frobnicator_get_type ()) 3738s # #define ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicator)) 3738s # #define IS_ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR)) 3738s # #define ORG_PROJECT_BAR_FROBNICATOR_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicatorIface)) 3738s # 3738s # struct _OrgProjectBarFrobnicator; 3738s # typedef struct _OrgProjectBarFrobnicator OrgProjectBarFrobnicator; 3738s # typedef struct _OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorIface; 3738s # 3738s # struct _OrgProjectBarFrobnicatorIface 3738s # { 3738s # GTypeInterface parent_iface; 3738s # 3738s # gboolean (*handle_random_method) ( 3738s # OrgProjectBarFrobnicator *object, 3738s # GDBusMethodInvocation *invocation); 3738s # 3738s # }; 3738s # 3738s # GType org_project_bar_frobnicator_get_type (void) G_GNUC_CONST; 3738s # 3738s # GDBusInterfaceInfo *org_project_bar_frobnicator_interface_info (void); 3738s # guint org_project_bar_frobnicator_override_properties (GObjectClass *klass, guint property_id_begin); 3738s # 3738s # 3738s # /* D-Bus method call completion functions: */ 3738s # void org_project_bar_frobnicator_complete_random_method ( 3738s # OrgProjectBarFrobnicator *object, 3738s # GDBusMethodInvocation *invocation); 3738s # 3738s # 3738s # 3738s # /* D-Bus method calls: */ 3738s # void org_project_bar_frobnicator_call_random_method ( 3738s # OrgProjectBarFrobnicator *proxy, 3738s # GCancellable *cancellable, 3738s # GAsyncReadyCallback callback, 3738s # gpointer user_data); 3738s # 3738s # gboolean org_project_bar_frobnicator_call_random_method_finish ( 3738s # OrgProjectBarFrobnicator *proxy, 3738s # GAsyncResult *res, 3738s # GError **error); 3738s # 3738s # gboolean org_project_bar_frobnicator_call_random_method_sync ( 3738s # OrgProjectBarFrobnicator *proxy, 3738s # GCancellable *cancellable, 3738s # GError **error); 3738s # 3738s # 3738s # 3738s # /* ---- */ 3738s # 3738s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY (org_project_bar_frobnicator_proxy_get_type ()) 3738s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxy)) 3738s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 3738s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 3738s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 3738s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 3738s # 3738s # typedef struct _OrgProjectBarFrobnicatorProxy OrgProjectBarFrobnicatorProxy; 3738s # typedef struct _OrgProjectBarFrobnicatorProxyClass OrgProjectBarFrobnicatorProxyClass; 3738s # typedef struct _OrgProjectBarFrobnicatorProxyPrivate OrgProjectBarFrobnicatorProxyPrivate; 3738s # 3738s # struct _OrgProjectBarFrobnicatorProxy 3738s # { 3738s # /*< private >*/ 3738s # GDBusProxy parent_instance; 3738s # OrgProjectBarFrobnicatorProxyPrivate *priv; 3738s # }; 3738s # 3738s # struct _OrgProjectBarFrobnicatorProxyClass 3738s # { 3738s # GDBusProxyClass parent_class; 3738s # }; 3738s # 3738s # GType org_project_bar_frobnicator_proxy_get_type (void) G_GNUC_CONST; 3738s # 3738s # #if GLIB_CHECK_VERSION(2, 44, 0) 3738s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorProxy, g_object_unref) 3738s # #endif 3738s # 3738s # void org_project_bar_frobnicator_proxy_new ( 3738s # GDBusConnection *connection, 3738s # GDBusProxyFlags flags, 3738s # const gchar *name, 3738s # const gchar *object_path, 3738s # GCancellable *cancellable, 3738s # GAsyncReadyCallback callback, 3738s # gpointer user_data); 3738s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_finish ( 3738s # GAsyncResult *res, 3738s # GError **error); 3738s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_sync ( 3738s # GDBusConnection *connection, 3738s # GDBusProxyFlags flags, 3738s # const gchar *name, 3738s # const gchar *object_path, 3738s # GCancellable *cancellable, 3738s # GError **error); 3738s # 3738s # void org_project_bar_frobnicator_proxy_new_for_bus ( 3738s # GBusType bus_type, 3738s # GDBusProxyFlags flags, 3738s # const gchar *name, 3738s # const gchar *object_path, 3738s # GCancellable *cancellable, 3738s # GAsyncReadyCallback callback, 3738s # gpointer user_data); 3738s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_finish ( 3738s # GAsyncResult *res, 3738s # GError **error); 3738s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_sync ( 3738s # GBusType bus_type, 3738s # GDBusProxyFlags flags, 3738s # const gchar *name, 3738s # const gchar *object_path, 3738s # GCancellable *cancellable, 3738s # GError **error); 3738s # 3738s # 3738s # /* ---- */ 3738s # 3738s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON (org_project_bar_frobnicator_skeleton_get_type ()) 3738s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeleton)) 3738s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 3738s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 3738s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 3738s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 3738s # 3738s # typedef struct _OrgProjectBarFrobnicatorSkeleton OrgProjectBarFrobnicatorSkeleton; 3738s # typedef struct _OrgProjectBarFrobnicatorSkeletonClass OrgProjectBarFrobnicatorSkeletonClass; 3738s # typedef struct _OrgProjectBarFrobnicatorSkeletonPrivate OrgProjectBarFrobnicatorSkeletonPrivate; 3738s # 3738s # struct _OrgProjectBarFrobnicatorSkeleton 3738s # { 3738s # /*< private >*/ 3738s # GDBusInterfaceSkeleton parent_instance; 3738s # OrgProjectBarFrobnicatorSkeletonPrivate *priv; 3738s # }; 3738s # 3738s # struct _OrgProjectBarFrobnicatorSkeletonClass 3738s # { 3738s # GDBusInterfaceSkeletonClass parent_class; 3738s # }; 3738s # 3738s # GType org_project_bar_frobnicator_skeleton_get_type (void) G_GNUC_CONST; 3738s # 3738s # #if GLIB_CHECK_VERSION(2, 44, 0) 3738s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorSkeleton, g_object_unref) 3738s # #endif 3738s # 3738s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_skeleton_new (void); 3738s # 3738s # 3738s # G_END_DECLS 3738s # 3738s # #endif /* __STDOUT__ */ 3738s # Error: 3738s # 3738s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplxrnoyuu/tmp9aaamg3v1.xml', '/tmp/tmplxrnoyuu/tmpm0tv316y2.xml', '--output', '-', '--body'] 3738s # Return code: 0 3738s # Output: 3738s # /* 3738s # * This file is generated by gdbus-codegen, do not modify it. 3738s # * 3738s # * The license of this code is the same as for the D-Bus interface description 3738s # * it was derived from. Note that it links to GLib, so must comply with the 3738s # * LGPL linking clauses. 3738s # */ 3738s # 3738s # #ifdef HAVE_CONFIG_H 3738s # # include "config.h" 3738s # #endif 3738s # 3738s # #include <string.h> 3738s # #ifdef G_OS_UNIX 3738s # # include <gio/gunixfdlist.h> 3738s # #endif 3738s # 3738s # #ifdef G_ENABLE_DEBUG 3738s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3738s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3738s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3738s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3738s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3738s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3738s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3738s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3738s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3738s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3738s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3738s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3738s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3738s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3738s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3738s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3738s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3738s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3738s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3738s # #else /* !G_ENABLE_DEBUG */ 3738s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3738s # * Do not access GValues directly in your code. Instead, use the 3738s # * g_value_get_*() functions 3738s # */ 3738s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3738s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3738s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3738s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3738s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3738s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3738s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3738s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3738s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3738s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3738s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3738s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3738s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3738s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3738s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3738s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3738s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3738s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3738s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3738s # #endif /* !G_ENABLE_DEBUG */ 3738s # 3738s # typedef struct 3738s # { 3738s # GDBusArgInfo parent_struct; 3738s # gboolean use_gvariant; 3738s # } _ExtendedGDBusArgInfo; 3738s # 3738s # typedef struct 3738s # { 3738s # GDBusMethodInfo parent_struct; 3738s # const gchar *signal_name; 3738s # gboolean pass_fdlist; 3738s # } _ExtendedGDBusMethodInfo; 3738s # 3738s # typedef struct 3738s # { 3738s # GDBusSignalInfo parent_struct; 3738s # const gchar *signal_name; 3738s # } _ExtendedGDBusSignalInfo; 3738s # 3738s # typedef struct 3738s # { 3738s # GDBusPropertyInfo parent_struct; 3738s # const gchar *hyphen_name; 3738s # guint use_gvariant : 1; 3738s # guint emits_changed_signal : 1; 3738s # } _ExtendedGDBusPropertyInfo; 3738s # 3738s # typedef struct 3738s # { 3738s # GDBusInterfaceInfo parent_struct; 3738s # const gchar *hyphen_name; 3738s # } _ExtendedGDBusInterfaceInfo; 3738s # 3738s # typedef struct 3738s # { 3738s # const _ExtendedGDBusPropertyInfo *info; 3738s # guint prop_id; 3738s # GValue orig_value; /* the value before the change */ 3738s # } ChangedProperty; 3738s # 3738s # static void 3738s # _changed_property_free (ChangedProperty *data) 3738s # { 3738s # g_value_unset (&data->orig_value); 3738s # g_free (data); 3738s # } 3738s # 3738s # static gboolean 3738s # _g_strv_equal0 (gchar **a, gchar **b) 3738s # { 3738s # gboolean ret = FALSE; 3738s # guint n; 3738s # if (a == NULL && b == NULL) 3738s # { 3738s # ret = TRUE; 3738s # goto out; 3738s # } 3738s # if (a == NULL || b == NULL) 3738s # goto out; 3738s # if (g_strv_length (a) != g_strv_length (b)) 3738s # goto out; 3738s # for (n = 0; a[n] != NULL; n++) 3738s # if (g_strcmp0 (a[n], b[n]) != 0) 3738s # goto out; 3738s # ret = TRUE; 3738s # out: 3738s # return ret; 3738s # } 3738s # 3738s # static gboolean 3738s # _g_variant_equal0 (GVariant *a, GVariant *b) 3738s # { 3738s # gboolean ret = FALSE; 3738s # if (a == NULL && b == NULL) 3738s # { 3738s # ret = TRUE; 3738s # goto out; 3738s # } 3738s # if (a == NULL || b == NULL) 3738s # goto out; 3738s # ret = g_variant_equal (a, b); 3738s # out: 3738s # return ret; 3738s # } 3738s # 3738s # G_GNUC_UNUSED static gboolean 3738s # _g_value_equal (const GValue *a, const GValue *b) 3738s # { 3738s # gboolean ret = FALSE; 3738s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3738s # switch (G_VALUE_TYPE (a)) 3738s # { 3738s # case G_TYPE_BOOLEAN: 3738s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3738s # break; 3738s # case G_TYPE_UCHAR: 3738s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3738s # break; 3738s # case G_TYPE_INT: 3738s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3738s # break; 3738s # case G_TYPE_UINT: 3738s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3738s # break; 3738s # case G_TYPE_INT64: 3738s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3738s # break; 3738s # case G_TYPE_UINT64: 3738s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3738s # break; 3738s # case G_TYPE_DOUBLE: 3738s # { 3738s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3738s # gdouble da = g_value_get_double (a); 3738s # gdouble db = g_value_get_double (b); 3738s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3738s # } 3738s # break; 3738s # case G_TYPE_STRING: 3738s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3738s # break; 3738s # case G_TYPE_VARIANT: 3738s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3738s # break; 3738s # default: 3738s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3738s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3738s # else 3738s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3738s # break; 3738s # } 3738s # return ret; 3738s # } 3738s # 3738s # static void 3738s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 3738s # GClosure *closure, 3738s # GValue *return_value, 3738s # unsigned int n_param_values, 3738s # const GValue *param_values, 3738s # void *invocation_hint G_GNUC_UNUSED, 3738s # void *marshal_data) 3738s # { 3738s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 3738s # (void *data1, 3738s # GDBusMethodInvocation *arg_method_invocation, 3738s # void *data2); 3738s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 3738s # GCClosure *cc = (GCClosure*) closure; 3738s # void *data1, *data2; 3738s # gboolean v_return; 3738s # 3738s # g_return_if_fail (return_value != NULL); 3738s # g_return_if_fail (n_param_values == 2); 3738s # 3738s # if (G_CCLOSURE_SWAP_DATA (closure)) 3738s # { 3738s # data1 = closure->data; 3738s # data2 = g_value_peek_pointer (param_values + 0); 3738s # } 3738s # else 3738s # { 3738s # data1 = g_value_peek_pointer (param_values + 0); 3738s # data2 = closure->data; 3738s # } 3738s # 3738s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 3738s # (marshal_data ? marshal_data : cc->callback); 3738s # 3738s # v_return = 3738s # callback (data1, 3738s # g_marshal_value_peek_object (param_values + 1), 3738s # data2); 3738s # 3738s # g_value_set_boolean (return_value, v_return); 3738s # } 3738s # 3738s # /* ------------------------------------------------------------------------ 3738s # * Code for interface com.acme.Coyote 3738s # * ------------------------------------------------------------------------ 3738s # */ 3738s # 3738s # /** 3738s # * SECTION:ComAcmeCoyote 3738s # * @title: ComAcmeCoyote 3738s # * @short_description: Generated C code for the com.acme.Coyote D-Bus interface 3738s # * 3738s # * This section contains code for working with the <link linkend="gdbus-interface-com-acme-Coyote.top_of_page">com.acme.Coyote</link> D-Bus interface in C. 3738s # */ 3738s # 3738s # enum 3738s # { 3738s # _COM_ACME_COYOTE_SURPRISED, 3738s # }; 3738s # 3738s # static unsigned _COM_ACME_COYOTE_SIGNALS[1] = { 0 }; 3738s # 3738s # /* ---- Introspection data for com.acme.Coyote ---- */ 3738s # 3738s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_run = 3738s # { 3738s # { 3738s # -1, 3738s # (gchar *) "Run", 3738s # NULL, 3738s # NULL, 3738s # NULL 3738s # }, 3738s # "handle-run", 3738s # FALSE 3738s # }; 3738s # 3738s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_sleep = 3738s # { 3738s # { 3738s # -1, 3738s # (gchar *) "Sleep", 3738s # NULL, 3738s # NULL, 3738s # NULL 3738s # }, 3738s # "handle-sleep", 3738s # FALSE 3738s # }; 3738s # 3738s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_attack = 3738s # { 3738s # { 3738s # -1, 3738s # (gchar *) "Attack", 3738s # NULL, 3738s # NULL, 3738s # NULL 3738s # }, 3738s # "handle-attack", 3738s # FALSE 3738s # }; 3738s # 3738s # static const GDBusMethodInfo * const _com_acme_coyote_method_info_pointers[] = 3738s # { 3738s # &_com_acme_coyote_method_info_run.parent_struct, 3738s # &_com_acme_coyote_method_info_sleep.parent_struct, 3738s # &_com_acme_coyote_method_info_attack.parent_struct, 3738s # NULL 3738s # }; 3738s # 3738s # static const _ExtendedGDBusSignalInfo _com_acme_coyote_signal_info_surprised = 3738s # { 3738s # { 3738s # -1, 3738s # (gchar *) "Surprised", 3738s # NULL, 3738s # NULL 3738s # }, 3738s # "surprised" 3738s # }; 3738s # 3738s # static const GDBusSignalInfo * const _com_acme_coyote_signal_info_pointers[] = 3738s # { 3738s # &_com_acme_coyote_signal_info_surprised.parent_struct, 3738s # NULL 3738s # }; 3738s # 3738s # static const _ExtendedGDBusPropertyInfo _com_acme_coyote_property_info_mood = 3738s # { 3738s # { 3738s # -1, 3738s # (gchar *) "Mood", 3738s # (gchar *) "s", 3738s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 3738s # NULL 3738s # }, 3738s # "mood", 3738s # FALSE, 3738s # TRUE 3738s # }; 3738s # 3738s # static const GDBusPropertyInfo * const _com_acme_coyote_property_info_pointers[] = 3738s # { 3738s # &_com_acme_coyote_property_info_mood.parent_struct, 3738s # NULL 3738s # }; 3738s # 3738s # static const _ExtendedGDBusInterfaceInfo _com_acme_coyote_interface_info = 3738s # { 3738s # { 3738s # -1, 3738s # (gchar *) "com.acme.Coyote", 3738s # (GDBusMethodInfo **) &_com_acme_coyote_method_info_pointers, 3738s # (GDBusSignalInfo **) &_com_acme_coyote_signal_info_pointers, 3738s # (GDBusPropertyInfo **) &_com_acme_coyote_property_info_pointers, 3738s # NULL 3738s # }, 3738s # "com-acme-coyote", 3738s # }; 3738s # 3738s # 3738s # /** 3738s # * com_acme_coyote_interface_info: 3738s # * 3738s # * Gets a machine-readable description of the <link linkend="gdbus-interface-com-acme-Coyote.top_of_page">com.acme.Coyote</link> D-Bus interface. 3738s # * 3738s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3738s # */ 3738s # GDBusInterfaceInfo * 3738s # com_acme_coyote_interface_info (void) 3738s # { 3738s # return (GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct; 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_override_properties: 3738s # * @klass: The class structure for a #GObject derived class. 3738s # * @property_id_begin: The property id to assign to the first overridden property. 3738s # * 3738s # * Overrides all #GObject properties in the #ComAcmeCoyote interface for a concrete class. 3738s # * The properties are overridden in the order they are defined. 3738s # * 3738s # * Returns: The last property id. 3738s # */ 3738s # guint 3738s # com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin) 3738s # { 3738s # g_object_class_override_property (klass, property_id_begin++, "mood"); 3738s # return property_id_begin - 1; 3738s # } 3738s # 3738s # 3738s # inline static void 3738s # com_acme_coyote_signal_marshal_surprised ( 3738s # GClosure *closure, 3738s # GValue *return_value, 3738s # unsigned int n_param_values, 3738s # const GValue *param_values, 3738s # void *invocation_hint, 3738s # void *marshal_data) 3738s # { 3738s # g_cclosure_marshal_VOID__VOID (closure, 3738s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3738s # } 3738s # 3738s # inline static void 3738s # com_acme_coyote_method_marshal_run ( 3738s # GClosure *closure, 3738s # GValue *return_value, 3738s # unsigned int n_param_values, 3738s # const GValue *param_values, 3738s # void *invocation_hint, 3738s # void *marshal_data) 3738s # { 3738s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 3738s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3738s # } 3738s # 3738s # inline static void 3738s # com_acme_coyote_method_marshal_sleep ( 3738s # GClosure *closure, 3738s # GValue *return_value, 3738s # unsigned int n_param_values, 3738s # const GValue *param_values, 3738s # void *invocation_hint, 3738s # void *marshal_data) 3738s # { 3738s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 3738s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3738s # } 3738s # 3738s # inline static void 3738s # com_acme_coyote_method_marshal_attack ( 3738s # GClosure *closure, 3738s # GValue *return_value, 3738s # unsigned int n_param_values, 3738s # const GValue *param_values, 3738s # void *invocation_hint, 3738s # void *marshal_data) 3738s # { 3738s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 3738s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3738s # } 3738s # 3738s # 3738s # /** 3738s # * ComAcmeCoyote: 3738s # * 3738s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-com-acme-Coyote.top_of_page">com.acme.Coyote</link>. 3738s # */ 3738s # 3738s # /** 3738s # * ComAcmeCoyoteIface: 3738s # * @parent_iface: The parent interface. 3738s # * @handle_attack: Handler for the #ComAcmeCoyote::handle-attack signal. 3738s # * @handle_run: Handler for the #ComAcmeCoyote::handle-run signal. 3738s # * @handle_sleep: Handler for the #ComAcmeCoyote::handle-sleep signal. 3738s # * @get_mood: Getter for the #ComAcmeCoyote:mood property. 3738s # * @surprised: Handler for the #ComAcmeCoyote::surprised signal. 3738s # * 3738s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-com-acme-Coyote.top_of_page">com.acme.Coyote</link>. 3738s # */ 3738s # 3738s # typedef ComAcmeCoyoteIface ComAcmeCoyoteInterface; 3738s # G_DEFINE_INTERFACE (ComAcmeCoyote, com_acme_coyote, G_TYPE_OBJECT) 3738s # 3738s # static void 3738s # com_acme_coyote_default_init (ComAcmeCoyoteIface *iface) 3738s # { 3738s # /* GObject signals for incoming D-Bus method calls: */ 3738s # /** 3738s # * ComAcmeCoyote::handle-run: 3738s # * @object: A #ComAcmeCoyote. 3738s # * @invocation: A #GDBusMethodInvocation. 3738s # * 3738s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-com-acme-Coyote.Run">Run()</link> D-Bus method. 3738s # * 3738s # * 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. 3738s # * 3738s # * 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. 3738s # */ 3738s # g_signal_new ("handle-run", 3738s # G_TYPE_FROM_INTERFACE (iface), 3738s # G_SIGNAL_RUN_LAST, 3738s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_run), 3738s # g_signal_accumulator_true_handled, 3738s # NULL, 3738s # com_acme_coyote_method_marshal_run, 3738s # G_TYPE_BOOLEAN, 3738s # 1, 3738s # G_TYPE_DBUS_METHOD_INVOCATION); 3738s # 3738s # /** 3738s # * ComAcmeCoyote::handle-sleep: 3738s # * @object: A #ComAcmeCoyote. 3738s # * @invocation: A #GDBusMethodInvocation. 3738s # * 3738s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-com-acme-Coyote.Sleep">Sleep()</link> D-Bus method. 3738s # * 3738s # * 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. 3738s # * 3738s # * 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. 3738s # */ 3738s # g_signal_new ("handle-sleep", 3738s # G_TYPE_FROM_INTERFACE (iface), 3738s # G_SIGNAL_RUN_LAST, 3738s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_sleep), 3738s # g_signal_accumulator_true_handled, 3738s # NULL, 3738s # com_acme_coyote_method_marshal_sleep, 3738s # G_TYPE_BOOLEAN, 3738s # 1, 3738s # G_TYPE_DBUS_METHOD_INVOCATION); 3738s # 3738s # /** 3738s # * ComAcmeCoyote::handle-attack: 3738s # * @object: A #ComAcmeCoyote. 3738s # * @invocation: A #GDBusMethodInvocation. 3738s # * 3738s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-com-acme-Coyote.Attack">Attack()</link> D-Bus method. 3738s # * 3738s # * 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. 3738s # * 3738s # * 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. 3738s # */ 3738s # g_signal_new ("handle-attack", 3738s # G_TYPE_FROM_INTERFACE (iface), 3738s # G_SIGNAL_RUN_LAST, 3738s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_attack), 3738s # g_signal_accumulator_true_handled, 3738s # NULL, 3738s # com_acme_coyote_method_marshal_attack, 3738s # G_TYPE_BOOLEAN, 3738s # 1, 3738s # G_TYPE_DBUS_METHOD_INVOCATION); 3738s # 3738s # /* GObject signals for received D-Bus signals: */ 3738s # /** 3738s # * ComAcmeCoyote::surprised: 3738s # * @object: A #ComAcmeCoyote. 3738s # * 3738s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-com-acme-Coyote.Surprised">"Surprised"</link> is received. 3738s # * 3738s # * 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. 3738s # */ 3738s # _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED] = 3738s # g_signal_new ("surprised", 3738s # G_TYPE_FROM_INTERFACE (iface), 3738s # G_SIGNAL_RUN_LAST, 3738s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, surprised), 3738s # NULL, 3738s # NULL, 3738s # com_acme_coyote_signal_marshal_surprised, 3738s # G_TYPE_NONE, 3738s # 0); 3738s # 3738s # /* GObject properties for D-Bus properties: */ 3738s # /** 3738s # * ComAcmeCoyote:mood: 3738s # * 3738s # * Represents the D-Bus property <link linkend="gdbus-property-com-acme-Coyote.Mood">"Mood"</link>. 3738s # * 3738s # * 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. 3738s # */ 3738s # g_object_interface_install_property (iface, 3738s # g_param_spec_string ("mood", "Mood", "Mood", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_get_mood: (skip) 3738s # * @object: A #ComAcmeCoyote. 3738s # * 3738s # * Gets the value of the <link linkend="gdbus-property-com-acme-Coyote.Mood">"Mood"</link> D-Bus property. 3738s # * 3738s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 3738s # * 3738s # * 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. 3738s # * 3738s # * 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. 3738s # */ 3738s # const gchar * 3738s # com_acme_coyote_get_mood (ComAcmeCoyote *object) 3738s # { 3738s # g_return_val_if_fail (IS_COM_ACME_COYOTE (object), NULL); 3738s # 3738s # return COM_ACME_COYOTE_GET_IFACE (object)->get_mood (object); 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_dup_mood: (skip) 3738s # * @object: A #ComAcmeCoyote. 3738s # * 3738s # * Gets a copy of the <link linkend="gdbus-property-com-acme-Coyote.Mood">"Mood"</link> D-Bus property. 3738s # * 3738s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 3738s # * 3738s # * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). 3738s # */ 3738s # gchar * 3738s # com_acme_coyote_dup_mood (ComAcmeCoyote *object) 3738s # { 3738s # gchar *value; 3738s # g_object_get (G_OBJECT (object), "mood", &value, NULL); 3738s # return value; 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_set_mood: (skip) 3738s # * @object: A #ComAcmeCoyote. 3738s # * @value: The value to set. 3738s # * 3738s # * Sets the <link linkend="gdbus-property-com-acme-Coyote.Mood">"Mood"</link> D-Bus property to @value. 3738s # * 3738s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 3738s # */ 3738s # void 3738s # com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value) 3738s # { 3738s # g_object_set (G_OBJECT (object), "mood", value, NULL); 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_emit_surprised: 3738s # * @object: A #ComAcmeCoyote. 3738s # * 3738s # * Emits the <link linkend="gdbus-signal-com-acme-Coyote.Surprised">"Surprised"</link> D-Bus signal. 3738s # */ 3738s # void 3738s # com_acme_coyote_emit_surprised ( 3738s # ComAcmeCoyote *object) 3738s # { 3738s # g_signal_emit (object, _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED], 0); 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_call_run: 3738s # * @proxy: A #ComAcmeCoyoteProxy. 3738s # * @cancellable: (nullable): A #GCancellable or %NULL. 3738s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3738s # * @user_data: User data to pass to @callback. 3738s # * 3738s # * Asynchronously invokes the <link linkend="gdbus-method-com-acme-Coyote.Run">Run()</link> D-Bus method on @proxy. 3738s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3738s # * You can then call com_acme_coyote_call_run_finish() to get the result of the operation. 3738s # * 3738s # * See com_acme_coyote_call_run_sync() for the synchronous, blocking version of this method. 3738s # */ 3738s # void 3738s # com_acme_coyote_call_run ( 3738s # ComAcmeCoyote *proxy, 3738s # GCancellable *cancellable, 3738s # GAsyncReadyCallback callback, 3738s # gpointer user_data) 3738s # { 3738s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3738s # "Run", 3738s # g_variant_new ("()"), 3738s # G_DBUS_CALL_FLAGS_NONE, 3738s # -1, 3738s # cancellable, 3738s # callback, 3738s # user_data); 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_call_run_finish: 3738s # * @proxy: A #ComAcmeCoyoteProxy. 3738s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_run(). 3738s # * @error: Return location for error or %NULL. 3738s # * 3738s # * Finishes an operation started with com_acme_coyote_call_run(). 3738s # * 3738s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3738s # */ 3738s # gboolean 3738s # com_acme_coyote_call_run_finish ( 3738s # ComAcmeCoyote *proxy, 3738s # GAsyncResult *res, 3738s # GError **error) 3738s # { 3738s # GVariant *_ret; 3738s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3738s # if (_ret == NULL) 3738s # goto _out; 3738s # g_variant_get (_ret, 3738s # "()"); 3738s # g_variant_unref (_ret); 3738s # _out: 3738s # return _ret != NULL; 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_call_run_sync: 3738s # * @proxy: A #ComAcmeCoyoteProxy. 3738s # * @cancellable: (nullable): A #GCancellable or %NULL. 3738s # * @error: Return location for error or %NULL. 3738s # * 3738s # * Synchronously invokes the <link linkend="gdbus-method-com-acme-Coyote.Run">Run()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3738s # * 3738s # * See com_acme_coyote_call_run() for the asynchronous version of this method. 3738s # * 3738s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3738s # */ 3738s # gboolean 3738s # com_acme_coyote_call_run_sync ( 3738s # ComAcmeCoyote *proxy, 3738s # GCancellable *cancellable, 3738s # GError **error) 3738s # { 3738s # GVariant *_ret; 3738s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3738s # "Run", 3738s # g_variant_new ("()"), 3738s # G_DBUS_CALL_FLAGS_NONE, 3738s # -1, 3738s # cancellable, 3738s # error); 3738s # if (_ret == NULL) 3738s # goto _out; 3738s # g_variant_get (_ret, 3738s # "()"); 3738s # g_variant_unref (_ret); 3738s # _out: 3738s # return _ret != NULL; 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_call_sleep: 3738s # * @proxy: A #ComAcmeCoyoteProxy. 3738s # * @cancellable: (nullable): A #GCancellable or %NULL. 3738s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3738s # * @user_data: User data to pass to @callback. 3738s # * 3738s # * Asynchronously invokes the <link linkend="gdbus-method-com-acme-Coyote.Sleep">Sleep()</link> D-Bus method on @proxy. 3738s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3738s # * You can then call com_acme_coyote_call_sleep_finish() to get the result of the operation. 3738s # * 3738s # * See com_acme_coyote_call_sleep_sync() for the synchronous, blocking version of this method. 3738s # */ 3738s # void 3738s # com_acme_coyote_call_sleep ( 3738s # ComAcmeCoyote *proxy, 3738s # GCancellable *cancellable, 3738s # GAsyncReadyCallback callback, 3738s # gpointer user_data) 3738s # { 3738s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3738s # "Sleep", 3738s # g_variant_new ("()"), 3738s # G_DBUS_CALL_FLAGS_NONE, 3738s # -1, 3738s # cancellable, 3738s # callback, 3738s # user_data); 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_call_sleep_finish: 3738s # * @proxy: A #ComAcmeCoyoteProxy. 3738s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_sleep(). 3738s # * @error: Return location for error or %NULL. 3738s # * 3738s # * Finishes an operation started with com_acme_coyote_call_sleep(). 3738s # * 3738s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3738s # */ 3738s # gboolean 3738s # com_acme_coyote_call_sleep_finish ( 3738s # ComAcmeCoyote *proxy, 3738s # GAsyncResult *res, 3738s # GError **error) 3738s # { 3738s # GVariant *_ret; 3738s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3738s # if (_ret == NULL) 3738s # goto _out; 3738s # g_variant_get (_ret, 3738s # "()"); 3738s # g_variant_unref (_ret); 3738s # _out: 3738s # return _ret != NULL; 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_call_sleep_sync: 3738s # * @proxy: A #ComAcmeCoyoteProxy. 3738s # * @cancellable: (nullable): A #GCancellable or %NULL. 3738s # * @error: Return location for error or %NULL. 3738s # * 3738s # * Synchronously invokes the <link linkend="gdbus-method-com-acme-Coyote.Sleep">Sleep()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3738s # * 3738s # * See com_acme_coyote_call_sleep() for the asynchronous version of this method. 3738s # * 3738s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3738s # */ 3738s # gboolean 3738s # com_acme_coyote_call_sleep_sync ( 3738s # ComAcmeCoyote *proxy, 3738s # GCancellable *cancellable, 3738s # GError **error) 3738s # { 3738s # GVariant *_ret; 3738s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3738s # "Sleep", 3738s # g_variant_new ("()"), 3738s # G_DBUS_CALL_FLAGS_NONE, 3738s # -1, 3738s # cancellable, 3738s # error); 3738s # if (_ret == NULL) 3738s # goto _out; 3738s # g_variant_get (_ret, 3738s # "()"); 3738s # g_variant_unref (_ret); 3738s # _out: 3738s # return _ret != NULL; 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_call_attack: 3738s # * @proxy: A #ComAcmeCoyoteProxy. 3738s # * @cancellable: (nullable): A #GCancellable or %NULL. 3738s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3738s # * @user_data: User data to pass to @callback. 3738s # * 3738s # * Asynchronously invokes the <link linkend="gdbus-method-com-acme-Coyote.Attack">Attack()</link> D-Bus method on @proxy. 3738s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3738s # * You can then call com_acme_coyote_call_attack_finish() to get the result of the operation. 3738s # * 3738s # * See com_acme_coyote_call_attack_sync() for the synchronous, blocking version of this method. 3738s # */ 3738s # void 3738s # com_acme_coyote_call_attack ( 3738s # ComAcmeCoyote *proxy, 3738s # GCancellable *cancellable, 3738s # GAsyncReadyCallback callback, 3738s # gpointer user_data) 3738s # { 3738s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3738s # "Attack", 3738s # g_variant_new ("()"), 3738s # G_DBUS_CALL_FLAGS_NONE, 3738s # -1, 3738s # cancellable, 3738s # callback, 3738s # user_data); 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_call_attack_finish: 3738s # * @proxy: A #ComAcmeCoyoteProxy. 3738s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_attack(). 3738s # * @error: Return location for error or %NULL. 3738s # * 3738s # * Finishes an operation started with com_acme_coyote_call_attack(). 3738s # * 3738s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3738s # */ 3738s # gboolean 3738s # com_acme_coyote_call_attack_finish ( 3738s # ComAcmeCoyote *proxy, 3738s # GAsyncResult *res, 3738s # GError **error) 3738s # { 3738s # GVariant *_ret; 3738s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3738s # if (_ret == NULL) 3738s # goto _out; 3738s # g_variant_get (_ret, 3738s # "()"); 3738s # g_variant_unref (_ret); 3738s # _out: 3738s # return _ret != NULL; 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_call_attack_sync: 3738s # * @proxy: A #ComAcmeCoyoteProxy. 3738s # * @cancellable: (nullable): A #GCancellable or %NULL. 3738s # * @error: Return location for error or %NULL. 3738s # * 3738s # * Synchronously invokes the <link linkend="gdbus-method-com-acme-Coyote.Attack">Attack()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3738s # * 3738s # * See com_acme_coyote_call_attack() for the asynchronous version of this method. 3738s # * 3738s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3738s # */ 3738s # gboolean 3738s # com_acme_coyote_call_attack_sync ( 3738s # ComAcmeCoyote *proxy, 3738s # GCancellable *cancellable, 3738s # GError **error) 3738s # { 3738s # GVariant *_ret; 3738s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3738s # "Attack", 3738s # g_variant_new ("()"), 3738s # G_DBUS_CALL_FLAGS_NONE, 3738s # -1, 3738s # cancellable, 3738s # error); 3738s # if (_ret == NULL) 3738s # goto _out; 3738s # g_variant_get (_ret, 3738s # "()"); 3738s # g_variant_unref (_ret); 3738s # _out: 3738s # return _ret != NULL; 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_complete_run: 3738s # * @object: A #ComAcmeCoyote. 3738s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3738s # * 3738s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-com-acme-Coyote.Run">Run()</link> 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. 3738s # * 3738s # * This method will free @invocation, you cannot use it afterwards. 3738s # */ 3738s # void 3738s # com_acme_coyote_complete_run ( 3738s # ComAcmeCoyote *object G_GNUC_UNUSED, 3738s # GDBusMethodInvocation *invocation) 3738s # { 3738s # g_dbus_method_invocation_return_value (invocation, 3738s # g_variant_new ("()")); 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_complete_sleep: 3738s # * @object: A #ComAcmeCoyote. 3738s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3738s # * 3738s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-com-acme-Coyote.Sleep">Sleep()</link> 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. 3738s # * 3738s # * This method will free @invocation, you cannot use it afterwards. 3738s # */ 3738s # void 3738s # com_acme_coyote_complete_sleep ( 3738s # ComAcmeCoyote *object G_GNUC_UNUSED, 3738s # GDBusMethodInvocation *invocation) 3738s # { 3738s # g_dbus_method_invocation_return_value (invocation, 3738s # g_variant_new ("()")); 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_complete_attack: 3738s # * @object: A #ComAcmeCoyote. 3738s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3738s # * 3738s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-com-acme-Coyote.Attack">Attack()</link> 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. 3738s # * 3738s # * This method will free @invocation, you cannot use it afterwards. 3738s # */ 3738s # void 3738s # com_acme_coyote_complete_attack ( 3738s # ComAcmeCoyote *object G_GNUC_UNUSED, 3738s # GDBusMethodInvocation *invocation) 3738s # { 3738s # g_dbus_method_invocation_return_value (invocation, 3738s # g_variant_new ("()")); 3738s # } 3738s # 3738s # /* ------------------------------------------------------------------------ */ 3738s # 3738s # /** 3738s # * ComAcmeCoyoteProxy: 3738s # * 3738s # * The #ComAcmeCoyoteProxy structure contains only private data and should only be accessed using the provided API. 3738s # */ 3738s # 3738s # /** 3738s # * ComAcmeCoyoteProxyClass: 3738s # * @parent_class: The parent class. 3738s # * 3738s # * Class structure for #ComAcmeCoyoteProxy. 3738s # */ 3738s # 3738s # struct _ComAcmeCoyoteProxyPrivate 3738s # { 3738s # GData *qdata; 3738s # }; 3738s # 3738s # static void com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface); 3738s # 3738s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3738s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 3738s # G_ADD_PRIVATE (ComAcmeCoyoteProxy) 3738s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 3738s # 3738s # #else 3738s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 3738s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 3738s # 3738s # #endif 3738s # static void 3738s # com_acme_coyote_proxy_finalize (GObject *object) 3738s # { 3738s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 3738s # g_datalist_clear (&proxy->priv->qdata); 3738s # G_OBJECT_CLASS (com_acme_coyote_proxy_parent_class)->finalize (object); 3738s # } 3738s # 3738s # static void 3738s # com_acme_coyote_proxy_get_property (GObject *object, 3738s # guint prop_id, 3738s # GValue *value, 3738s # GParamSpec *pspec G_GNUC_UNUSED) 3738s # { 3738s # const _ExtendedGDBusPropertyInfo *info; 3738s # GVariant *variant; 3738s # g_assert (prop_id != 0 && prop_id - 1 < 1); 3738s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 3738s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 3738s # if (info->use_gvariant) 3738s # { 3738s # g_value_set_variant (value, variant); 3738s # } 3738s # else 3738s # { 3738s # if (variant != NULL) 3738s # g_dbus_gvariant_to_gvalue (variant, value); 3738s # } 3738s # if (variant != NULL) 3738s # g_variant_unref (variant); 3738s # } 3738s # 3738s # static void 3738s # com_acme_coyote_proxy_set_property_cb (GDBusProxy *proxy, 3738s # GAsyncResult *res, 3738s # gpointer user_data) 3738s # { 3738s # const _ExtendedGDBusPropertyInfo *info = user_data; 3738s # GError *error; 3738s # GVariant *_ret; 3738s # error = NULL; 3738s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 3738s # if (!_ret) 3738s # { 3738s # g_warning ("Error setting property '%s' on interface com.acme.Coyote: %s (%s, %d)", 3738s # info->parent_struct.name, 3738s # error->message, g_quark_to_string (error->domain), error->code); 3738s # g_error_free (error); 3738s # } 3738s # else 3738s # { 3738s # g_variant_unref (_ret); 3738s # } 3738s # } 3738s # 3738s # static void 3738s # com_acme_coyote_proxy_set_property (GObject *object, 3738s # guint prop_id, 3738s # const GValue *value, 3738s # GParamSpec *pspec G_GNUC_UNUSED) 3738s # { 3738s # const _ExtendedGDBusPropertyInfo *info; 3738s # GVariant *variant; 3738s # g_assert (prop_id != 0 && prop_id - 1 < 1); 3738s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 3738s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 3738s # g_dbus_proxy_call (G_DBUS_PROXY (object), 3738s # "org.freedesktop.DBus.Properties.Set", 3738s # g_variant_new ("(ssv)", "com.acme.Coyote", info->parent_struct.name, variant), 3738s # G_DBUS_CALL_FLAGS_NONE, 3738s # -1, 3738s # NULL, (GAsyncReadyCallback) com_acme_coyote_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 3738s # g_variant_unref (variant); 3738s # } 3738s # 3738s # static void 3738s # com_acme_coyote_proxy_g_signal (GDBusProxy *proxy, 3738s # const gchar *sender_name G_GNUC_UNUSED, 3738s # const gchar *signal_name, 3738s # GVariant *parameters) 3738s # { 3738s # _ExtendedGDBusSignalInfo *info; 3738s # GVariantIter iter; 3738s # GVariant *child; 3738s # GValue *paramv; 3738s # gsize num_params; 3738s # gsize n; 3738s # guint signal_id; 3738s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, signal_name); 3738s # if (info == NULL) 3738s # return; 3738s # num_params = g_variant_n_children (parameters); 3738s # paramv = g_new0 (GValue, num_params + 1); 3738s # g_value_init (¶mv[0], TYPE_COM_ACME_COYOTE); 3738s # g_value_set_object (¶mv[0], proxy); 3738s # g_variant_iter_init (&iter, parameters); 3738s # n = 1; 3738s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3738s # { 3738s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3738s # if (arg_info->use_gvariant) 3738s # { 3738s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3738s # g_value_set_variant (¶mv[n], child); 3738s # n++; 3738s # } 3738s # else 3738s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3738s # g_variant_unref (child); 3738s # } 3738s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 3738s # g_signal_emitv (paramv, signal_id, 0, NULL); 3738s # for (n = 0; n < num_params + 1; n++) 3738s # g_value_unset (¶mv[n]); 3738s # g_free (paramv); 3738s # } 3738s # 3738s # static void 3738s # com_acme_coyote_proxy_g_properties_changed (GDBusProxy *_proxy, 3738s # GVariant *changed_properties, 3738s # const gchar *const *invalidated_properties) 3738s # { 3738s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (_proxy); 3738s # guint n; 3738s # const gchar *key; 3738s # GVariantIter *iter; 3738s # _ExtendedGDBusPropertyInfo *info; 3738s # g_variant_get (changed_properties, "a{sv}", &iter); 3738s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3738s # { 3738s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, key); 3738s # g_datalist_remove_data (&proxy->priv->qdata, key); 3738s # if (info != NULL) 3738s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3738s # } 3738s # g_variant_iter_free (iter); 3738s # for (n = 0; invalidated_properties[n] != NULL; n++) 3738s # { 3738s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, invalidated_properties[n]); 3738s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3738s # if (info != NULL) 3738s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3738s # } 3738s # } 3738s # 3738s # static const gchar * 3738s # com_acme_coyote_proxy_get_mood (ComAcmeCoyote *object) 3738s # { 3738s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 3738s # GVariant *variant; 3738s # const gchar *value = NULL; 3738s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "Mood"); 3738s # if (variant != NULL) 3738s # { 3738s # value = g_variant_get_string (variant, NULL); 3738s # g_variant_unref (variant); 3738s # } 3738s # return value; 3738s # } 3738s # 3738s # static void 3738s # com_acme_coyote_proxy_init (ComAcmeCoyoteProxy *proxy) 3738s # { 3738s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3738s # proxy->priv = com_acme_coyote_proxy_get_instance_private (proxy); 3738s # #else 3738s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyPrivate); 3738s # #endif 3738s # 3738s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), com_acme_coyote_interface_info ()); 3738s # } 3738s # 3738s # static void 3738s # com_acme_coyote_proxy_class_init (ComAcmeCoyoteProxyClass *klass) 3738s # { 3738s # GObjectClass *gobject_class; 3738s # GDBusProxyClass *proxy_class; 3738s # 3738s # gobject_class = G_OBJECT_CLASS (klass); 3738s # gobject_class->finalize = com_acme_coyote_proxy_finalize; 3738s # gobject_class->get_property = com_acme_coyote_proxy_get_property; 3738s # gobject_class->set_property = com_acme_coyote_proxy_set_property; 3738s # 3738s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3738s # proxy_class->g_signal = com_acme_coyote_proxy_g_signal; 3738s # proxy_class->g_properties_changed = com_acme_coyote_proxy_g_properties_changed; 3738s # 3738s # com_acme_coyote_override_properties (gobject_class, 1); 3738s # 3738s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3738s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteProxyPrivate)); 3738s # #endif 3738s # } 3738s # 3738s # static void 3738s # com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface) 3738s # { 3738s # iface->get_mood = com_acme_coyote_proxy_get_mood; 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_proxy_new: 3738s # * @connection: A #GDBusConnection. 3738s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3738s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3738s # * @object_path: An object path. 3738s # * @cancellable: (nullable): A #GCancellable or %NULL. 3738s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3738s # * @user_data: User data to pass to @callback. 3738s # * 3738s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-com-acme-Coyote.top_of_page">com.acme.Coyote</link>. See g_dbus_proxy_new() for more details. 3738s # * 3738s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3738s # * You can then call com_acme_coyote_proxy_new_finish() to get the result of the operation. 3738s # * 3738s # * See com_acme_coyote_proxy_new_sync() for the synchronous, blocking version of this constructor. 3738s # */ 3738s # void 3738s # com_acme_coyote_proxy_new ( 3738s # GDBusConnection *connection, 3738s # GDBusProxyFlags flags, 3738s # const gchar *name, 3738s # const gchar *object_path, 3738s # GCancellable *cancellable, 3738s # GAsyncReadyCallback callback, 3738s # gpointer user_data) 3738s # { 3738s # 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); 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_proxy_new_finish: 3738s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new(). 3738s # * @error: Return location for error or %NULL 3738s # * 3738s # * Finishes an operation started with com_acme_coyote_proxy_new(). 3738s # * 3738s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 3738s # */ 3738s # ComAcmeCoyote * 3738s # com_acme_coyote_proxy_new_finish ( 3738s # GAsyncResult *res, 3738s # GError **error) 3738s # { 3738s # GObject *ret; 3738s # GObject *source_object; 3738s # source_object = g_async_result_get_source_object (res); 3738s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3738s # g_object_unref (source_object); 3738s # if (ret != NULL) 3738s # return COM_ACME_COYOTE (ret); 3738s # else 3738s # return NULL; 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_proxy_new_sync: 3738s # * @connection: A #GDBusConnection. 3738s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3738s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3738s # * @object_path: An object path. 3738s # * @cancellable: (nullable): A #GCancellable or %NULL. 3738s # * @error: Return location for error or %NULL 3738s # * 3738s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-com-acme-Coyote.top_of_page">com.acme.Coyote</link>. See g_dbus_proxy_new_sync() for more details. 3738s # * 3738s # * The calling thread is blocked until a reply is received. 3738s # * 3738s # * See com_acme_coyote_proxy_new() for the asynchronous version of this constructor. 3738s # * 3738s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 3738s # */ 3738s # ComAcmeCoyote * 3738s # com_acme_coyote_proxy_new_sync ( 3738s # GDBusConnection *connection, 3738s # GDBusProxyFlags flags, 3738s # const gchar *name, 3738s # const gchar *object_path, 3738s # GCancellable *cancellable, 3738s # GError **error) 3738s # { 3738s # GInitable *ret; 3738s # 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); 3738s # if (ret != NULL) 3738s # return COM_ACME_COYOTE (ret); 3738s # else 3738s # return NULL; 3738s # } 3738s # 3738s # 3738s # /** 3738s # * com_acme_coyote_proxy_new_for_bus: 3738s # * @bus_type: A #GBusType. 3738s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3738s # * @name: A bus name (well-known or unique). 3738s # * @object_path: An object path. 3738s # * @cancellable: (nullable): A #GCancellable or %NULL. 3738s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3738s # * @user_data: User data to pass to @callback. 3738s # * 3738s # * Like com_acme_coyote_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3738s # * 3738s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3738s # * You can then call com_acme_coyote_proxy_new_for_bus_finish() to get the result of the operation. 3738s # * 3738s # * See com_acme_coyote_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3738s # */ 3738s # void 3738s # com_acme_coyote_proxy_new_for_bus ( 3738s # GBusType bus_type, 3738s # GDBusProxyFlags flags, 3738s # const gchar *name, 3738s # const gchar *object_path, 3738s # GCancellable *cancellable, 3738s # GAsyncReadyCallback callback, 3738s # gpointer user_data) 3738s # { 3738s # 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); 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_proxy_new_for_bus_finish: 3738s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new_for_bus(). 3738s # * @error: Return location for error or %NULL 3738s # * 3738s # * Finishes an operation started with com_acme_coyote_proxy_new_for_bus(). 3738s # * 3738s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 3738s # */ 3738s # ComAcmeCoyote * 3738s # com_acme_coyote_proxy_new_for_bus_finish ( 3738s # GAsyncResult *res, 3738s # GError **error) 3738s # { 3738s # GObject *ret; 3738s # GObject *source_object; 3738s # source_object = g_async_result_get_source_object (res); 3738s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3738s # g_object_unref (source_object); 3738s # if (ret != NULL) 3738s # return COM_ACME_COYOTE (ret); 3738s # else 3738s # return NULL; 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_proxy_new_for_bus_sync: 3738s # * @bus_type: A #GBusType. 3738s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3738s # * @name: A bus name (well-known or unique). 3738s # * @object_path: An object path. 3738s # * @cancellable: (nullable): A #GCancellable or %NULL. 3738s # * @error: Return location for error or %NULL 3738s # * 3738s # * Like com_acme_coyote_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3738s # * 3738s # * The calling thread is blocked until a reply is received. 3738s # * 3738s # * See com_acme_coyote_proxy_new_for_bus() for the asynchronous version of this constructor. 3738s # * 3738s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 3738s # */ 3738s # ComAcmeCoyote * 3738s # com_acme_coyote_proxy_new_for_bus_sync ( 3738s # GBusType bus_type, 3738s # GDBusProxyFlags flags, 3738s # const gchar *name, 3738s # const gchar *object_path, 3738s # GCancellable *cancellable, 3738s # GError **error) 3738s # { 3738s # GInitable *ret; 3738s # 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); 3738s # if (ret != NULL) 3738s # return COM_ACME_COYOTE (ret); 3738s # else 3738s # return NULL; 3738s # } 3738s # 3738s # 3738s # /* ------------------------------------------------------------------------ */ 3738s # 3738s # /** 3738s # * ComAcmeCoyoteSkeleton: 3738s # * 3738s # * The #ComAcmeCoyoteSkeleton structure contains only private data and should only be accessed using the provided API. 3738s # */ 3738s # 3738s # /** 3738s # * ComAcmeCoyoteSkeletonClass: 3738s # * @parent_class: The parent class. 3738s # * 3738s # * Class structure for #ComAcmeCoyoteSkeleton. 3738s # */ 3738s # 3738s # struct _ComAcmeCoyoteSkeletonPrivate 3738s # { 3738s # GValue *properties; 3738s # GList *changed_properties; 3738s # GSource *changed_properties_idle_source; 3738s # GMainContext *context; 3738s # GMutex lock; 3738s # }; 3738s # 3738s # static void 3738s # _com_acme_coyote_skeleton_handle_method_call ( 3738s # GDBusConnection *connection G_GNUC_UNUSED, 3738s # const gchar *sender G_GNUC_UNUSED, 3738s # const gchar *object_path G_GNUC_UNUSED, 3738s # const gchar *interface_name, 3738s # const gchar *method_name, 3738s # GVariant *parameters, 3738s # GDBusMethodInvocation *invocation, 3738s # gpointer user_data) 3738s # { 3738s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 3738s # _ExtendedGDBusMethodInfo *info; 3738s # GVariantIter iter; 3738s # GVariant *child; 3738s # GValue *paramv; 3738s # gsize num_params; 3738s # guint num_extra; 3738s # gsize n; 3738s # guint signal_id; 3738s # GValue return_value = G_VALUE_INIT; 3738s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3738s # g_assert (info != NULL); 3738s # num_params = g_variant_n_children (parameters); 3738s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3738s # n = 0; 3738s # g_value_init (¶mv[n], TYPE_COM_ACME_COYOTE); 3738s # g_value_set_object (¶mv[n++], skeleton); 3738s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3738s # g_value_set_object (¶mv[n++], invocation); 3738s # if (info->pass_fdlist) 3738s # { 3738s # #ifdef G_OS_UNIX 3738s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3738s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3738s # #else 3738s # g_assert_not_reached (); 3738s # #endif 3738s # } 3738s # g_variant_iter_init (&iter, parameters); 3738s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3738s # { 3738s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3738s # if (arg_info->use_gvariant) 3738s # { 3738s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3738s # g_value_set_variant (¶mv[n], child); 3738s # n++; 3738s # } 3738s # else 3738s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3738s # g_variant_unref (child); 3738s # } 3738s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 3738s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3738s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3738s # if (!g_value_get_boolean (&return_value)) 3738s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3738s # g_value_unset (&return_value); 3738s # for (n = 0; n < num_params + num_extra; n++) 3738s # g_value_unset (¶mv[n]); 3738s # g_free (paramv); 3738s # } 3738s # 3738s # static GVariant * 3738s # _com_acme_coyote_skeleton_handle_get_property ( 3738s # GDBusConnection *connection G_GNUC_UNUSED, 3738s # const gchar *sender G_GNUC_UNUSED, 3738s # const gchar *object_path G_GNUC_UNUSED, 3738s # const gchar *interface_name G_GNUC_UNUSED, 3738s # const gchar *property_name, 3738s # GError **error, 3738s # gpointer user_data) 3738s # { 3738s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 3738s # GValue value = G_VALUE_INIT; 3738s # GParamSpec *pspec; 3738s # _ExtendedGDBusPropertyInfo *info; 3738s # GVariant *ret; 3738s # ret = NULL; 3738s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 3738s # g_assert (info != NULL); 3738s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3738s # if (pspec == NULL) 3738s # { 3738s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3738s # } 3738s # else 3738s # { 3738s # g_value_init (&value, pspec->value_type); 3738s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3738s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3738s # g_value_unset (&value); 3738s # } 3738s # return ret; 3738s # } 3738s # 3738s # static gboolean 3738s # _com_acme_coyote_skeleton_handle_set_property ( 3738s # GDBusConnection *connection G_GNUC_UNUSED, 3738s # const gchar *sender G_GNUC_UNUSED, 3738s # const gchar *object_path G_GNUC_UNUSED, 3738s # const gchar *interface_name G_GNUC_UNUSED, 3738s # const gchar *property_name, 3738s # GVariant *variant, 3738s # GError **error, 3738s # gpointer user_data) 3738s # { 3738s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 3738s # GValue value = G_VALUE_INIT; 3738s # GParamSpec *pspec; 3738s # _ExtendedGDBusPropertyInfo *info; 3738s # gboolean ret; 3738s # ret = FALSE; 3738s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 3738s # g_assert (info != NULL); 3738s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3738s # if (pspec == NULL) 3738s # { 3738s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3738s # } 3738s # else 3738s # { 3738s # if (info->use_gvariant) 3738s # g_value_set_variant (&value, variant); 3738s # else 3738s # g_dbus_gvariant_to_gvalue (variant, &value); 3738s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3738s # g_value_unset (&value); 3738s # ret = TRUE; 3738s # } 3738s # return ret; 3738s # } 3738s # 3738s # static const GDBusInterfaceVTable _com_acme_coyote_skeleton_vtable = 3738s # { 3738s # _com_acme_coyote_skeleton_handle_method_call, 3738s # _com_acme_coyote_skeleton_handle_get_property, 3738s # _com_acme_coyote_skeleton_handle_set_property, 3738s # {NULL} 3738s # }; 3738s # 3738s # static GDBusInterfaceInfo * 3738s # com_acme_coyote_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3738s # { 3738s # return com_acme_coyote_interface_info (); 3738s # } 3738s # 3738s # static GDBusInterfaceVTable * 3738s # com_acme_coyote_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3738s # { 3738s # return (GDBusInterfaceVTable *) &_com_acme_coyote_skeleton_vtable; 3738s # } 3738s # 3738s # static GVariant * 3738s # com_acme_coyote_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3738s # { 3738s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 3738s # 3738s # GVariantBuilder builder; 3738s # guint n; 3738s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3738s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3738s # #else 3738s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3738s # #endif 3738s # if (_com_acme_coyote_interface_info.parent_struct.properties == NULL) 3738s # goto out; 3738s # for (n = 0; _com_acme_coyote_interface_info.parent_struct.properties[n] != NULL; n++) 3738s # { 3738s # GDBusPropertyInfo *info = _com_acme_coyote_interface_info.parent_struct.properties[n]; 3738s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3738s # { 3738s # GVariant *value; 3738s # 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); 3738s # if (value != NULL) 3738s # { 3738s # g_variant_take_ref (value); 3738s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3738s # g_variant_unref (value); 3738s # } 3738s # } 3738s # } 3738s # out: 3738s # return g_variant_builder_end (&builder); 3738s # } 3738s # 3738s # static gboolean _com_acme_coyote_emit_changed (gpointer user_data); 3738s # 3738s # static void 3738s # com_acme_coyote_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 3738s # { 3738s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 3738s # gboolean emit_changed = FALSE; 3738s # 3738s # g_mutex_lock (&skeleton->priv->lock); 3738s # if (skeleton->priv->changed_properties_idle_source != NULL) 3738s # { 3738s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3738s # skeleton->priv->changed_properties_idle_source = NULL; 3738s # emit_changed = TRUE; 3738s # } 3738s # g_mutex_unlock (&skeleton->priv->lock); 3738s # 3738s # if (emit_changed) 3738s # _com_acme_coyote_emit_changed (skeleton); 3738s # } 3738s # 3738s # static void 3738s # _com_acme_coyote_on_signal_surprised ( 3738s # ComAcmeCoyote *object) 3738s # { 3738s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 3738s # 3738s # GList *connections, *l; 3738s # GVariant *signal_variant; 3738s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3738s # 3738s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 3738s # for (l = connections; l != NULL; l = l->next) 3738s # { 3738s # GDBusConnection *connection = l->data; 3738s # g_dbus_connection_emit_signal (connection, 3738s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.acme.Coyote", "Surprised", 3738s # signal_variant, NULL); 3738s # } 3738s # g_variant_unref (signal_variant); 3738s # g_list_free_full (connections, g_object_unref); 3738s # } 3738s # 3738s # static void com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface); 3738s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3738s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3738s # G_ADD_PRIVATE (ComAcmeCoyoteSkeleton) 3738s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 3738s # 3738s # #else 3738s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3738s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 3738s # 3738s # #endif 3738s # static void 3738s # com_acme_coyote_skeleton_finalize (GObject *object) 3738s # { 3738s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 3738s # guint n; 3738s # for (n = 0; n < 1; n++) 3738s # g_value_unset (&skeleton->priv->properties[n]); 3738s # g_free (skeleton->priv->properties); 3738s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3738s # if (skeleton->priv->changed_properties_idle_source != NULL) 3738s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3738s # g_main_context_unref (skeleton->priv->context); 3738s # g_mutex_clear (&skeleton->priv->lock); 3738s # G_OBJECT_CLASS (com_acme_coyote_skeleton_parent_class)->finalize (object); 3738s # } 3738s # 3738s # static void 3738s # com_acme_coyote_skeleton_get_property (GObject *object, 3738s # guint prop_id, 3738s # GValue *value, 3738s # GParamSpec *pspec G_GNUC_UNUSED) 3738s # { 3738s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 3738s # g_assert (prop_id != 0 && prop_id - 1 < 1); 3738s # g_mutex_lock (&skeleton->priv->lock); 3738s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 3738s # g_mutex_unlock (&skeleton->priv->lock); 3738s # } 3738s # 3738s # static gboolean 3738s # _com_acme_coyote_emit_changed (gpointer user_data) 3738s # { 3738s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 3738s # GList *l; 3738s # GVariantBuilder builder; 3738s # GVariantBuilder invalidated_builder; 3738s # guint num_changes; 3738s # 3738s # g_mutex_lock (&skeleton->priv->lock); 3738s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3738s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3738s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 3738s # #else 3738s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 3738s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 3738s # #endif 3738s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 3738s # { 3738s # ChangedProperty *cp = l->data; 3738s # GVariant *variant; 3738s # const GValue *cur_value; 3738s # 3738s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 3738s # if (!_g_value_equal (cur_value, &cp->orig_value)) 3738s # { 3738s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 3738s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 3738s # g_variant_unref (variant); 3738s # num_changes++; 3738s # } 3738s # } 3738s # if (num_changes > 0) 3738s # { 3738s # GList *connections, *ll; 3738s # GVariant *signal_variant; 3738s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "com.acme.Coyote", 3738s # &builder, &invalidated_builder)); 3738s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3738s # for (ll = connections; ll != NULL; ll = ll->next) 3738s # { 3738s # GDBusConnection *connection = ll->data; 3738s # 3738s # g_dbus_connection_emit_signal (connection, 3738s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 3738s # "org.freedesktop.DBus.Properties", 3738s # "PropertiesChanged", 3738s # signal_variant, 3738s # NULL); 3738s # } 3738s # g_variant_unref (signal_variant); 3738s # g_list_free_full (connections, g_object_unref); 3738s # } 3738s # else 3738s # { 3738s # g_variant_builder_clear (&builder); 3738s # g_variant_builder_clear (&invalidated_builder); 3738s # } 3738s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3738s # skeleton->priv->changed_properties = NULL; 3738s # skeleton->priv->changed_properties_idle_source = NULL; 3738s # g_mutex_unlock (&skeleton->priv->lock); 3738s # return FALSE; 3738s # } 3738s # 3738s # static void 3738s # _com_acme_coyote_schedule_emit_changed (ComAcmeCoyoteSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 3738s # { 3738s # ChangedProperty *cp; 3738s # GList *l; 3738s # cp = NULL; 3738s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 3738s # { 3738s # ChangedProperty *i_cp = l->data; 3738s # if (i_cp->info == info) 3738s # { 3738s # cp = i_cp; 3738s # break; 3738s # } 3738s # } 3738s # if (cp == NULL) 3738s # { 3738s # cp = g_new0 (ChangedProperty, 1); 3738s # cp->prop_id = prop_id; 3738s # cp->info = info; 3738s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 3738s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 3738s # g_value_copy (orig_value, &cp->orig_value); 3738s # } 3738s # } 3738s # 3738s # static void 3738s # com_acme_coyote_skeleton_notify (GObject *object, 3738s # GParamSpec *pspec G_GNUC_UNUSED) 3738s # { 3738s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 3738s # g_mutex_lock (&skeleton->priv->lock); 3738s # if (skeleton->priv->changed_properties != NULL && 3738s # skeleton->priv->changed_properties_idle_source == NULL) 3738s # { 3738s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 3738s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 3738s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _com_acme_coyote_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 3738s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _com_acme_coyote_emit_changed"); 3738s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 3738s # g_source_unref (skeleton->priv->changed_properties_idle_source); 3738s # } 3738s # g_mutex_unlock (&skeleton->priv->lock); 3738s # } 3738s # 3738s # static void 3738s # com_acme_coyote_skeleton_set_property (GObject *object, 3738s # guint prop_id, 3738s # const GValue *value, 3738s # GParamSpec *pspec) 3738s # { 3738s # const _ExtendedGDBusPropertyInfo *info; 3738s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 3738s # g_assert (prop_id != 0 && prop_id - 1 < 1); 3738s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 3738s # g_mutex_lock (&skeleton->priv->lock); 3738s # g_object_freeze_notify (object); 3738s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 3738s # { 3738s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 3738s # info->emits_changed_signal) 3738s # _com_acme_coyote_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 3738s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 3738s # g_object_notify_by_pspec (object, pspec); 3738s # } 3738s # g_mutex_unlock (&skeleton->priv->lock); 3738s # g_object_thaw_notify (object); 3738s # } 3738s # 3738s # static void 3738s # com_acme_coyote_skeleton_init (ComAcmeCoyoteSkeleton *skeleton) 3738s # { 3738s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3738s # skeleton->priv = com_acme_coyote_skeleton_get_instance_private (skeleton); 3738s # #else 3738s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonPrivate); 3738s # #endif 3738s # 3738s # g_mutex_init (&skeleton->priv->lock); 3738s # skeleton->priv->context = g_main_context_ref_thread_default (); 3738s # skeleton->priv->properties = g_new0 (GValue, 1); 3738s # g_value_init (&skeleton->priv->properties[0], G_TYPE_STRING); 3738s # } 3738s # 3738s # static const gchar * 3738s # com_acme_coyote_skeleton_get_mood (ComAcmeCoyote *object) 3738s # { 3738s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 3738s # const gchar *value; 3738s # g_mutex_lock (&skeleton->priv->lock); 3738s # value = g_marshal_value_peek_string (&(skeleton->priv->properties[0])); 3738s # g_mutex_unlock (&skeleton->priv->lock); 3738s # return value; 3738s # } 3738s # 3738s # static void 3738s # com_acme_coyote_skeleton_class_init (ComAcmeCoyoteSkeletonClass *klass) 3738s # { 3738s # GObjectClass *gobject_class; 3738s # GDBusInterfaceSkeletonClass *skeleton_class; 3738s # 3738s # gobject_class = G_OBJECT_CLASS (klass); 3738s # gobject_class->finalize = com_acme_coyote_skeleton_finalize; 3738s # gobject_class->get_property = com_acme_coyote_skeleton_get_property; 3738s # gobject_class->set_property = com_acme_coyote_skeleton_set_property; 3738s # gobject_class->notify = com_acme_coyote_skeleton_notify; 3738s # 3738s # 3738s # com_acme_coyote_override_properties (gobject_class, 1); 3738s # 3738s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3738s # skeleton_class->get_info = com_acme_coyote_skeleton_dbus_interface_get_info; 3738s # skeleton_class->get_properties = com_acme_coyote_skeleton_dbus_interface_get_properties; 3738s # skeleton_class->flush = com_acme_coyote_skeleton_dbus_interface_flush; 3738s # skeleton_class->get_vtable = com_acme_coyote_skeleton_dbus_interface_get_vtable; 3738s # 3738s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3738s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteSkeletonPrivate)); 3738s # #endif 3738s # } 3738s # 3738s # static void 3738s # com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface) 3738s # { 3738s # iface->surprised = _com_acme_coyote_on_signal_surprised; 3738s # iface->get_mood = com_acme_coyote_skeleton_get_mood; 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_skeleton_new: 3738s # * 3738s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-com-acme-Coyote.top_of_page">com.acme.Coyote</link>. 3738s # * 3738s # * Returns: (transfer full) (type ComAcmeCoyoteSkeleton): The skeleton object. 3738s # */ 3738s # ComAcmeCoyote * 3738s # com_acme_coyote_skeleton_new (void) 3738s # { 3738s # return COM_ACME_COYOTE (g_object_new (TYPE_COM_ACME_COYOTE_SKELETON, NULL)); 3738s # } 3738s # 3738s # /* ------------------------------------------------------------------------ 3738s # * Code for interface org.project.Bar.Frobnicator 3738s # * ------------------------------------------------------------------------ 3738s # */ 3738s # 3738s # /** 3738s # * SECTION:OrgProjectBarFrobnicator 3738s # * @title: OrgProjectBarFrobnicator 3738s # * @short_description: Generated C code for the org.project.Bar.Frobnicator D-Bus interface 3738s # * 3738s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-Bar-Frobnicator.top_of_page">org.project.Bar.Frobnicator</link> D-Bus interface in C. 3738s # */ 3738s # 3738s # /* ---- Introspection data for org.project.Bar.Frobnicator ---- */ 3738s # 3738s # static const _ExtendedGDBusMethodInfo _org_project_bar_frobnicator_method_info_random_method = 3738s # { 3738s # { 3738s # -1, 3738s # (gchar *) "RandomMethod", 3738s # NULL, 3738s # NULL, 3738s # NULL 3738s # }, 3738s # "handle-random-method", 3738s # FALSE 3738s # }; 3738s # 3738s # static const GDBusMethodInfo * const _org_project_bar_frobnicator_method_info_pointers[] = 3738s # { 3738s # &_org_project_bar_frobnicator_method_info_random_method.parent_struct, 3738s # NULL 3738s # }; 3738s # 3738s # static const _ExtendedGDBusInterfaceInfo _org_project_bar_frobnicator_interface_info = 3738s # { 3738s # { 3738s # -1, 3738s # (gchar *) "org.project.Bar.Frobnicator", 3738s # (GDBusMethodInfo **) &_org_project_bar_frobnicator_method_info_pointers, 3738s # NULL, 3738s # NULL, 3738s # NULL 3738s # }, 3738s # "org-project-bar-frobnicator", 3738s # }; 3738s # 3738s # 3738s # /** 3738s # * org_project_bar_frobnicator_interface_info: 3738s # * 3738s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-Bar-Frobnicator.top_of_page">org.project.Bar.Frobnicator</link> D-Bus interface. 3738s # * 3738s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3738s # */ 3738s # GDBusInterfaceInfo * 3738s # org_project_bar_frobnicator_interface_info (void) 3738s # { 3738s # return (GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct; 3738s # } 3738s # 3738s # /** 3738s # * org_project_bar_frobnicator_override_properties: 3738s # * @klass: The class structure for a #GObject derived class. 3738s # * @property_id_begin: The property id to assign to the first overridden property. 3738s # * 3738s # * Overrides all #GObject properties in the #OrgProjectBarFrobnicator interface for a concrete class. 3738s # * The properties are overridden in the order they are defined. 3738s # * 3738s # * Returns: The last property id. 3738s # */ 3738s # guint 3738s # org_project_bar_frobnicator_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3738s # { 3738s # return property_id_begin - 1; 3738s # } 3738s # 3738s # 3738s # inline static void 3738s # org_project_bar_frobnicator_method_marshal_random_method ( 3738s # GClosure *closure, 3738s # GValue *return_value, 3738s # unsigned int n_param_values, 3738s # const GValue *param_values, 3738s # void *invocation_hint, 3738s # void *marshal_data) 3738s # { 3738s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 3738s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3738s # } 3738s # 3738s # 3738s # /** 3738s # * OrgProjectBarFrobnicator: 3738s # * 3738s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-Bar-Frobnicator.top_of_page">org.project.Bar.Frobnicator</link>. 3738s # */ 3738s # 3738s # /** 3738s # * OrgProjectBarFrobnicatorIface: 3738s # * @parent_iface: The parent interface. 3738s # * @handle_random_method: Handler for the #OrgProjectBarFrobnicator::handle-random-method signal. 3738s # * 3738s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-Bar-Frobnicator.top_of_page">org.project.Bar.Frobnicator</link>. 3738s # */ 3738s # 3738s # typedef OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorInterface; 3738s # G_DEFINE_INTERFACE (OrgProjectBarFrobnicator, org_project_bar_frobnicator, G_TYPE_OBJECT) 3738s # 3738s # static void 3738s # org_project_bar_frobnicator_default_init (OrgProjectBarFrobnicatorIface *iface) 3738s # { 3738s # /* GObject signals for incoming D-Bus method calls: */ 3738s # /** 3738s # * OrgProjectBarFrobnicator::handle-random-method: 3738s # * @object: A #OrgProjectBarFrobnicator. 3738s # * @invocation: A #GDBusMethodInvocation. 3738s # * 3738s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-Bar-Frobnicator.RandomMethod">RandomMethod()</link> D-Bus method. 3738s # * 3738s # * 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. 3738s # * 3738s # * 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. 3738s # */ 3738s # g_signal_new ("handle-random-method", 3738s # G_TYPE_FROM_INTERFACE (iface), 3738s # G_SIGNAL_RUN_LAST, 3738s # G_STRUCT_OFFSET (OrgProjectBarFrobnicatorIface, handle_random_method), 3738s # g_signal_accumulator_true_handled, 3738s # NULL, 3738s # org_project_bar_frobnicator_method_marshal_random_method, 3738s # G_TYPE_BOOLEAN, 3738s # 1, 3738s # G_TYPE_DBUS_METHOD_INVOCATION); 3738s # 3738s # } 3738s # 3738s # /** 3738s # * org_project_bar_frobnicator_call_random_method: 3738s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 3738s # * @cancellable: (nullable): A #GCancellable or %NULL. 3738s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3738s # * @user_data: User data to pass to @callback. 3738s # * 3738s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-Bar-Frobnicator.RandomMethod">RandomMethod()</link> D-Bus method on @proxy. 3738s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3738s # * You can then call org_project_bar_frobnicator_call_random_method_finish() to get the result of the operation. 3738s # * 3738s # * See org_project_bar_frobnicator_call_random_method_sync() for the synchronous, blocking version of this method. 3738s # */ 3738s # void 3738s # org_project_bar_frobnicator_call_random_method ( 3738s # OrgProjectBarFrobnicator *proxy, 3738s # GCancellable *cancellable, 3738s # GAsyncReadyCallback callback, 3738s # gpointer user_data) 3738s # { 3738s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3738s # "RandomMethod", 3738s # g_variant_new ("()"), 3738s # G_DBUS_CALL_FLAGS_NONE, 3738s # -1, 3738s # cancellable, 3738s # callback, 3738s # user_data); 3738s # } 3738s # 3738s # /** 3738s # * org_project_bar_frobnicator_call_random_method_finish: 3738s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 3738s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_call_random_method(). 3738s # * @error: Return location for error or %NULL. 3738s # * 3738s # * Finishes an operation started with org_project_bar_frobnicator_call_random_method(). 3738s # * 3738s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3738s # */ 3738s # gboolean 3738s # org_project_bar_frobnicator_call_random_method_finish ( 3738s # OrgProjectBarFrobnicator *proxy, 3738s # GAsyncResult *res, 3738s # GError **error) 3738s # { 3738s # GVariant *_ret; 3738s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3738s # if (_ret == NULL) 3738s # goto _out; 3738s # g_variant_get (_ret, 3738s # "()"); 3738s # g_variant_unref (_ret); 3738s # _out: 3738s # return _ret != NULL; 3738s # } 3738s # 3738s # /** 3738s # * org_project_bar_frobnicator_call_random_method_sync: 3738s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 3738s # * @cancellable: (nullable): A #GCancellable or %NULL. 3738s # * @error: Return location for error or %NULL. 3738s # * 3738s # * Synchronously invokes the <link linkend="gdbus-method-org-project-Bar-Frobnicator.RandomMethod">RandomMethod()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3738s # * 3738s # * See org_project_bar_frobnicator_call_random_method() for the asynchronous version of this method. 3738s # * 3738s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3738s # */ 3738s # gboolean 3738s # org_project_bar_frobnicator_call_random_method_sync ( 3738s # OrgProjectBarFrobnicator *proxy, 3738s # GCancellable *cancellable, 3738s # GError **error) 3738s # { 3738s # GVariant *_ret; 3738s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3738s # "RandomMethod", 3738s # g_variant_new ("()"), 3738s # G_DBUS_CALL_FLAGS_NONE, 3738s # -1, 3738s # cancellable, 3738s # error); 3738s # if (_ret == NULL) 3738s # goto _out; 3738s # g_variant_get (_ret, 3738s # "()"); 3738s # g_variant_unref (_ret); 3738s # _out: 3738s # return _ret != NULL; 3738s # } 3738s # 3738s # /** 3738s # * org_project_bar_frobnicator_complete_random_method: 3738s # * @object: A #OrgProjectBarFrobnicator. 3738s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3738s # * 3738s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-Bar-Frobnicator.RandomMethod">RandomMethod()</link> 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. 3738s # * 3738s # * This method will free @invocation, you cannot use it afterwards. 3738s # */ 3738s # void 3738s # org_project_bar_frobnicator_complete_random_method ( 3738s # OrgProjectBarFrobnicator *object G_GNUC_UNUSED, 3738s # GDBusMethodInvocation *invocation) 3738s # { 3738s # g_dbus_method_invocation_return_value (invocation, 3738s # g_variant_new ("()")); 3738s # } 3738s # 3738s # /* ------------------------------------------------------------------------ */ 3738s # 3738s # /** 3738s # * OrgProjectBarFrobnicatorProxy: 3738s # * 3738s # * The #OrgProjectBarFrobnicatorProxy structure contains only private data and should only be accessed using the provided API. 3738s # */ 3738s # 3738s # /** 3738s # * OrgProjectBarFrobnicatorProxyClass: 3738s # * @parent_class: The parent class. 3738s # * 3738s # * Class structure for #OrgProjectBarFrobnicatorProxy. 3738s # */ 3738s # 3738s # struct _OrgProjectBarFrobnicatorProxyPrivate 3738s # { 3738s # GData *qdata; 3738s # }; 3738s # 3738s # static void org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface); 3738s # 3738s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3738s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 3738s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorProxy) 3738s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 3738s # 3738s # #else 3738s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 3738s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 3738s # 3738s # #endif 3738s # static void 3738s # org_project_bar_frobnicator_proxy_finalize (GObject *object) 3738s # { 3738s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (object); 3738s # g_datalist_clear (&proxy->priv->qdata); 3738s # G_OBJECT_CLASS (org_project_bar_frobnicator_proxy_parent_class)->finalize (object); 3738s # } 3738s # 3738s # static void 3738s # org_project_bar_frobnicator_proxy_get_property (GObject *object G_GNUC_UNUSED, 3738s # guint prop_id G_GNUC_UNUSED, 3738s # GValue *value G_GNUC_UNUSED, 3738s # GParamSpec *pspec G_GNUC_UNUSED) 3738s # { 3738s # } 3738s # 3738s # static void 3738s # org_project_bar_frobnicator_proxy_set_property (GObject *object G_GNUC_UNUSED, 3738s # guint prop_id G_GNUC_UNUSED, 3738s # const GValue *value G_GNUC_UNUSED, 3738s # GParamSpec *pspec G_GNUC_UNUSED) 3738s # { 3738s # } 3738s # 3738s # static void 3738s # org_project_bar_frobnicator_proxy_g_signal (GDBusProxy *proxy, 3738s # const gchar *sender_name G_GNUC_UNUSED, 3738s # const gchar *signal_name, 3738s # GVariant *parameters) 3738s # { 3738s # _ExtendedGDBusSignalInfo *info; 3738s # GVariantIter iter; 3738s # GVariant *child; 3738s # GValue *paramv; 3738s # gsize num_params; 3738s # gsize n; 3738s # guint signal_id; 3738s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, signal_name); 3738s # if (info == NULL) 3738s # return; 3738s # num_params = g_variant_n_children (parameters); 3738s # paramv = g_new0 (GValue, num_params + 1); 3738s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 3738s # g_value_set_object (¶mv[0], proxy); 3738s # g_variant_iter_init (&iter, parameters); 3738s # n = 1; 3738s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3738s # { 3738s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3738s # if (arg_info->use_gvariant) 3738s # { 3738s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3738s # g_value_set_variant (¶mv[n], child); 3738s # n++; 3738s # } 3738s # else 3738s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3738s # g_variant_unref (child); 3738s # } 3738s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 3738s # g_signal_emitv (paramv, signal_id, 0, NULL); 3738s # for (n = 0; n < num_params + 1; n++) 3738s # g_value_unset (¶mv[n]); 3738s # g_free (paramv); 3738s # } 3738s # 3738s # static void 3738s # org_project_bar_frobnicator_proxy_g_properties_changed (GDBusProxy *_proxy, 3738s # GVariant *changed_properties, 3738s # const gchar *const *invalidated_properties) 3738s # { 3738s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (_proxy); 3738s # guint n; 3738s # const gchar *key; 3738s # GVariantIter *iter; 3738s # _ExtendedGDBusPropertyInfo *info; 3738s # g_variant_get (changed_properties, "a{sv}", &iter); 3738s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3738s # { 3738s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, key); 3738s # g_datalist_remove_data (&proxy->priv->qdata, key); 3738s # if (info != NULL) 3738s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3738s # } 3738s # g_variant_iter_free (iter); 3738s # for (n = 0; invalidated_properties[n] != NULL; n++) 3738s # { 3738s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, invalidated_properties[n]); 3738s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3738s # if (info != NULL) 3738s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3738s # } 3738s # } 3738s # 3738s # static void 3738s # org_project_bar_frobnicator_proxy_init (OrgProjectBarFrobnicatorProxy *proxy) 3738s # { 3738s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3738s # proxy->priv = org_project_bar_frobnicator_proxy_get_instance_private (proxy); 3738s # #else 3738s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyPrivate); 3738s # #endif 3738s # 3738s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_bar_frobnicator_interface_info ()); 3738s # } 3738s # 3738s # static void 3738s # org_project_bar_frobnicator_proxy_class_init (OrgProjectBarFrobnicatorProxyClass *klass) 3738s # { 3738s # GObjectClass *gobject_class; 3738s # GDBusProxyClass *proxy_class; 3738s # 3738s # gobject_class = G_OBJECT_CLASS (klass); 3738s # gobject_class->finalize = org_project_bar_frobnicator_proxy_finalize; 3738s # gobject_class->get_property = org_project_bar_frobnicator_proxy_get_property; 3738s # gobject_class->set_property = org_project_bar_frobnicator_proxy_set_property; 3738s # 3738s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3738s # proxy_class->g_signal = org_project_bar_frobnicator_proxy_g_signal; 3738s # proxy_class->g_properties_changed = org_project_bar_frobnicator_proxy_g_properties_changed; 3738s # 3738s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3738s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorProxyPrivate)); 3738s # #endif 3738s # } 3738s # 3738s # static void 3738s # org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 3738s # { 3738s # } 3738s # 3738s # /** 3738s # * org_project_bar_frobnicator_proxy_new: 3738s # * @connection: A #GDBusConnection. 3738s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3738s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3738s # * @object_path: An object path. 3738s # * @cancellable: (nullable): A #GCancellable or %NULL. 3738s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3738s # * @user_data: User data to pass to @callback. 3738s # * 3738s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-Bar-Frobnicator.top_of_page">org.project.Bar.Frobnicator</link>. See g_dbus_proxy_new() for more details. 3738s # * 3738s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3738s # * You can then call org_project_bar_frobnicator_proxy_new_finish() to get the result of the operation. 3738s # * 3738s # * See org_project_bar_frobnicator_proxy_new_sync() for the synchronous, blocking version of this constructor. 3738s # */ 3738s # void 3738s # org_project_bar_frobnicator_proxy_new ( 3738s # GDBusConnection *connection, 3738s # GDBusProxyFlags flags, 3738s # const gchar *name, 3738s # const gchar *object_path, 3738s # GCancellable *cancellable, 3738s # GAsyncReadyCallback callback, 3738s # gpointer user_data) 3738s # { 3738s # 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); 3738s # } 3738s # 3738s # /** 3738s # * org_project_bar_frobnicator_proxy_new_finish: 3738s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new(). 3738s # * @error: Return location for error or %NULL 3738s # * 3738s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new(). 3738s # * 3738s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 3738s # */ 3738s # OrgProjectBarFrobnicator * 3738s # org_project_bar_frobnicator_proxy_new_finish ( 3738s # GAsyncResult *res, 3738s # GError **error) 3738s # { 3738s # GObject *ret; 3738s # GObject *source_object; 3738s # source_object = g_async_result_get_source_object (res); 3738s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3738s # g_object_unref (source_object); 3738s # if (ret != NULL) 3738s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 3738s # else 3738s # return NULL; 3738s # } 3738s # 3738s # /** 3738s # * org_project_bar_frobnicator_proxy_new_sync: 3738s # * @connection: A #GDBusConnection. 3738s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3738s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3738s # * @object_path: An object path. 3738s # * @cancellable: (nullable): A #GCancellable or %NULL. 3738s # * @error: Return location for error or %NULL 3738s # * 3738s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-Bar-Frobnicator.top_of_page">org.project.Bar.Frobnicator</link>. See g_dbus_proxy_new_sync() for more details. 3738s # * 3738s # * The calling thread is blocked until a reply is received. 3738s # * 3738s # * See org_project_bar_frobnicator_proxy_new() for the asynchronous version of this constructor. 3738s # * 3738s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 3738s # */ 3738s # OrgProjectBarFrobnicator * 3738s # org_project_bar_frobnicator_proxy_new_sync ( 3738s # GDBusConnection *connection, 3738s # GDBusProxyFlags flags, 3738s # const gchar *name, 3738s # const gchar *object_path, 3738s # GCancellable *cancellable, 3738s # GError **error) 3738s # { 3738s # GInitable *ret; 3738s # 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); 3738s # if (ret != NULL) 3738s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 3738s # else 3738s # return NULL; 3738s # } 3738s # 3738s # 3738s # /** 3738s # * org_project_bar_frobnicator_proxy_new_for_bus: 3738s # * @bus_type: A #GBusType. 3738s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3738s # * @name: A bus name (well-known or unique). 3738s # * @object_path: An object path. 3738s # * @cancellable: (nullable): A #GCancellable or %NULL. 3738s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3738s # * @user_data: User data to pass to @callback. 3738s # * 3738s # * Like org_project_bar_frobnicator_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3738s # * 3738s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3738s # * You can then call org_project_bar_frobnicator_proxy_new_for_bus_finish() to get the result of the operation. 3738s # * 3738s # * See org_project_bar_frobnicator_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3738s # */ 3738s # void 3738s # org_project_bar_frobnicator_proxy_new_for_bus ( 3738s # GBusType bus_type, 3738s # GDBusProxyFlags flags, 3738s # const gchar *name, 3738s # const gchar *object_path, 3738s # GCancellable *cancellable, 3738s # GAsyncReadyCallback callback, 3738s # gpointer user_data) 3738s # { 3738s # 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); 3738s # } 3738s # 3738s # /** 3738s # * org_project_bar_frobnicator_proxy_new_for_bus_finish: 3738s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new_for_bus(). 3738s # * @error: Return location for error or %NULL 3738s # * 3738s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new_for_bus(). 3738s # * 3738s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 3738s # */ 3738s # OrgProjectBarFrobnicator * 3738s # org_project_bar_frobnicator_proxy_new_for_bus_finish ( 3738s # GAsyncResult *res, 3738s # GError **error) 3738s # { 3738s # GObject *ret; 3738s # GObject *source_object; 3738s # source_object = g_async_result_get_source_object (res); 3738s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3738s # g_object_unref (source_object); 3738s # if (ret != NULL) 3738s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 3738s # else 3738s # return NULL; 3738s # } 3738s # 3738s # /** 3738s # * org_project_bar_frobnicator_proxy_new_for_bus_sync: 3738s # * @bus_type: A #GBusType. 3738s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3738s # * @name: A bus name (well-known or unique). 3738s # * @object_path: An object path. 3738s # * @cancellable: (nullable): A #GCancellable or %NULL. 3738s # * @error: Return location for error or %NULL 3738s # * 3738s # * Like org_project_bar_frobnicator_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3738s # * 3738s # * The calling thread is blocked until a reply is received. 3738s # * 3738s # * See org_project_bar_frobnicator_proxy_new_for_bus() for the asynchronous version of this constructor. 3738s # * 3738s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 3738s # */ 3738s # OrgProjectBarFrobnicator * 3738s # org_project_bar_frobnicator_proxy_new_for_bus_sync ( 3738s # GBusType bus_type, 3738s # GDBusProxyFlags flags, 3738s # const gchar *name, 3738s # const gchar *object_path, 3738s # GCancellable *cancellable, 3738s # GError **error) 3738s # { 3738s # GInitable *ret; 3738s # 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); 3738s # if (ret != NULL) 3738s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 3738s # else 3738s # return NULL; 3738s # } 3738s # 3738s # 3738s # /* ------------------------------------------------------------------------ */ 3738s # 3738s # /** 3738s # * OrgProjectBarFrobnicatorSkeleton: 3738s # * 3738s # * The #OrgProjectBarFrobnicatorSkeleton structure contains only private data and should only be accessed using the provided API. 3738s # */ 3738s # 3738s # /** 3738s # * OrgProjectBarFrobnicatorSkeletonClass: 3738s # * @parent_class: The parent class. 3738s # * 3738s # * Class structure for #OrgProjectBarFrobnicatorSkeleton. 3738s # */ 3738s # 3738s # struct _OrgProjectBarFrobnicatorSkeletonPrivate 3738s # { 3738s # GValue *properties; 3738s # GList *changed_properties; 3738s # GSource *changed_properties_idle_source; 3738s # GMainContext *context; 3738s # GMutex lock; 3738s # }; 3738s # 3738s # static void 3738s # _org_project_bar_frobnicator_skeleton_handle_method_call ( 3738s # GDBusConnection *connection G_GNUC_UNUSED, 3738s # const gchar *sender G_GNUC_UNUSED, 3738s # const gchar *object_path G_GNUC_UNUSED, 3738s # const gchar *interface_name, 3738s # const gchar *method_name, 3738s # GVariant *parameters, 3738s # GDBusMethodInvocation *invocation, 3738s # gpointer user_data) 3738s # { 3738s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 3738s # _ExtendedGDBusMethodInfo *info; 3738s # GVariantIter iter; 3738s # GVariant *child; 3738s # GValue *paramv; 3738s # gsize num_params; 3738s # guint num_extra; 3738s # gsize n; 3738s # guint signal_id; 3738s # GValue return_value = G_VALUE_INIT; 3738s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3738s # g_assert (info != NULL); 3738s # num_params = g_variant_n_children (parameters); 3738s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3738s # n = 0; 3738s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 3738s # g_value_set_object (¶mv[n++], skeleton); 3738s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3738s # g_value_set_object (¶mv[n++], invocation); 3738s # if (info->pass_fdlist) 3738s # { 3738s # #ifdef G_OS_UNIX 3738s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3738s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3738s # #else 3738s # g_assert_not_reached (); 3738s # #endif 3738s # } 3738s # g_variant_iter_init (&iter, parameters); 3738s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3738s # { 3738s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3738s # if (arg_info->use_gvariant) 3738s # { 3738s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3738s # g_value_set_variant (¶mv[n], child); 3738s # n++; 3738s # } 3738s # else 3738s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3738s # g_variant_unref (child); 3738s # } 3738s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 3738s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3738s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3738s # if (!g_value_get_boolean (&return_value)) 3738s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3738s # g_value_unset (&return_value); 3738s # for (n = 0; n < num_params + num_extra; n++) 3738s # g_value_unset (¶mv[n]); 3738s # g_free (paramv); 3738s # } 3738s # 3738s # static GVariant * 3738s # _org_project_bar_frobnicator_skeleton_handle_get_property ( 3738s # GDBusConnection *connection G_GNUC_UNUSED, 3738s # const gchar *sender G_GNUC_UNUSED, 3738s # const gchar *object_path G_GNUC_UNUSED, 3738s # const gchar *interface_name G_GNUC_UNUSED, 3738s # const gchar *property_name, 3738s # GError **error, 3738s # gpointer user_data) 3738s # { 3738s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 3738s # GValue value = G_VALUE_INIT; 3738s # GParamSpec *pspec; 3738s # _ExtendedGDBusPropertyInfo *info; 3738s # GVariant *ret; 3738s # ret = NULL; 3738s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 3738s # g_assert (info != NULL); 3738s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3738s # if (pspec == NULL) 3738s # { 3738s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3738s # } 3738s # else 3738s # { 3738s # g_value_init (&value, pspec->value_type); 3738s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3738s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3738s # g_value_unset (&value); 3738s # } 3738s # return ret; 3738s # } 3738s # 3738s # static gboolean 3738s # _org_project_bar_frobnicator_skeleton_handle_set_property ( 3738s # GDBusConnection *connection G_GNUC_UNUSED, 3738s # const gchar *sender G_GNUC_UNUSED, 3738s # const gchar *object_path G_GNUC_UNUSED, 3738s # const gchar *interface_name G_GNUC_UNUSED, 3738s # const gchar *property_name, 3738s # GVariant *variant, 3738s # GError **error, 3738s # gpointer user_data) 3738s # { 3738s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 3738s # GValue value = G_VALUE_INIT; 3738s # GParamSpec *pspec; 3738s # _ExtendedGDBusPropertyInfo *info; 3738s # gboolean ret; 3738s # ret = FALSE; 3738s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 3738s # g_assert (info != NULL); 3738s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3738s # if (pspec == NULL) 3738s # { 3738s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3738s # } 3738s # else 3738s # { 3738s # if (info->use_gvariant) 3738s # g_value_set_variant (&value, variant); 3738s # else 3738s # g_dbus_gvariant_to_gvalue (variant, &value); 3738s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3738s # g_value_unset (&value); 3738s # ret = TRUE; 3738s # } 3738s # return ret; 3738s # } 3738s # 3738s # static const GDBusInterfaceVTable _org_project_bar_frobnicator_skeleton_vtable = 3738s # { 3738s # _org_project_bar_frobnicator_skeleton_handle_method_call, 3738s # _org_project_bar_frobnicator_skeleton_handle_get_property, 3738s # _org_project_bar_frobnicator_skeleton_handle_set_property, 3738s # {NULL} 3738s # }; 3738s # 3738s # static GDBusInterfaceInfo * 3738s # org_project_bar_frobnicator_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3738s # { 3738s # return org_project_bar_frobnicator_interface_info (); 3738s # } 3738s # 3738s # static GDBusInterfaceVTable * 3738s # org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3738s # { 3738s # return (GDBusInterfaceVTable *) &_org_project_bar_frobnicator_skeleton_vtable; 3738s # } 3738s # 3738s # static GVariant * 3738s # org_project_bar_frobnicator_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3738s # { 3738s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (_skeleton); 3738s # 3738s # GVariantBuilder builder; 3738s # guint n; 3738s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3738s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3738s # #else 3738s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3738s # #endif 3738s # if (_org_project_bar_frobnicator_interface_info.parent_struct.properties == NULL) 3738s # goto out; 3738s # for (n = 0; _org_project_bar_frobnicator_interface_info.parent_struct.properties[n] != NULL; n++) 3738s # { 3738s # GDBusPropertyInfo *info = _org_project_bar_frobnicator_interface_info.parent_struct.properties[n]; 3738s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3738s # { 3738s # GVariant *value; 3738s # 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); 3738s # if (value != NULL) 3738s # { 3738s # g_variant_take_ref (value); 3738s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3738s # g_variant_unref (value); 3738s # } 3738s # } 3738s # } 3738s # out: 3738s # return g_variant_builder_end (&builder); 3738s # } 3738s # 3738s # static void 3738s # org_project_bar_frobnicator_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3738s # { 3738s # } 3738s # 3738s # static void org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface); 3738s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3738s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3738s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorSkeleton) 3738s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 3738s # 3738s # #else 3738s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3738s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 3738s # 3738s # #endif 3738s # static void 3738s # org_project_bar_frobnicator_skeleton_finalize (GObject *object) 3738s # { 3738s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (object); 3738s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3738s # if (skeleton->priv->changed_properties_idle_source != NULL) 3738s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3738s # g_main_context_unref (skeleton->priv->context); 3738s # g_mutex_clear (&skeleton->priv->lock); 3738s # G_OBJECT_CLASS (org_project_bar_frobnicator_skeleton_parent_class)->finalize (object); 3738s # } 3738s # 3738s # static void 3738s # org_project_bar_frobnicator_skeleton_init (OrgProjectBarFrobnicatorSkeleton *skeleton) 3738s # { 3738s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3738s # skeleton->priv = org_project_bar_frobnicator_skeleton_get_instance_private (skeleton); 3738s # #else 3738s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonPrivate); 3738s # #endif 3738s # 3738s # g_mutex_init (&skeleton->priv->lock); 3738s # skeleton->priv->context = g_main_context_ref_thread_default (); 3738s # } 3738s # 3738s # static void 3738s # org_project_bar_frobnicator_skeleton_class_init (OrgProjectBarFrobnicatorSkeletonClass *klass) 3738s # { 3738s # GObjectClass *gobject_class; 3738s # GDBusInterfaceSkeletonClass *skeleton_class; 3738s # 3738s # gobject_class = G_OBJECT_CLASS (klass); 3738s # gobject_class->finalize = org_project_bar_frobnicator_skeleton_finalize; 3738s # 3738s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3738s # skeleton_class->get_info = org_project_bar_frobnicator_skeleton_dbus_interface_get_info; 3738s # skeleton_class->get_properties = org_project_bar_frobnicator_skeleton_dbus_interface_get_properties; 3738s # skeleton_class->flush = org_project_bar_frobnicator_skeleton_dbus_interface_flush; 3738s # skeleton_class->get_vtable = org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable; 3738s # 3738s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3738s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorSkeletonPrivate)); 3738s # #endif 3738s # } 3738s # 3738s # static void 3738s # org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 3738s # { 3738s # } 3738s # 3738s # /** 3738s # * org_project_bar_frobnicator_skeleton_new: 3738s # * 3738s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-Bar-Frobnicator.top_of_page">org.project.Bar.Frobnicator</link>. 3738s # * 3738s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorSkeleton): The skeleton object. 3738s # */ 3738s # OrgProjectBarFrobnicator * 3738s # org_project_bar_frobnicator_skeleton_new (void) 3738s # { 3738s # return ORG_PROJECT_BAR_FROBNICATOR (g_object_new (TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, NULL)); 3738s # } 3738s # Error: 3738s # 3738s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplxrnoyuu/tmpm0tv316y2.xml', '/tmp/tmplxrnoyuu/tmp9aaamg3v1.xml', '--output', '-', '--body'] 3738s # Return code: 0 3738s # Output: 3738s # /* 3738s # * This file is generated by gdbus-codegen, do not modify it. 3738s # * 3738s # * The license of this code is the same as for the D-Bus interface description 3738s # * it was derived from. Note that it links to GLib, so must comply with the 3738s # * LGPL linking clauses. 3738s # */ 3738s # 3738s # #ifdef HAVE_CONFIG_H 3738s # # include "config.h" 3738s # #endif 3738s # 3738s # #include <string.h> 3738s # #ifdef G_OS_UNIX 3738s # # include <gio/gunixfdlist.h> 3738s # #endif 3738s # 3738s # #ifdef G_ENABLE_DEBUG 3738s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3738s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3738s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3738s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3738s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3738s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3738s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3738s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3738s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3738s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3738s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3738s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3738s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3738s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3738s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3738s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3738s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3738s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3738s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3738s # #else /* !G_ENABLE_DEBUG */ 3738s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3738s # * Do not access GValues directly in your code. Instead, use the 3738s # * g_value_get_*() functions 3738s # */ 3738s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3738s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3738s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3738s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3738s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3738s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3738s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3738s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3738s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3738s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3738s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3738s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3738s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3738s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3738s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3738s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3738s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3738s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3738s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3738s # #endif /* !G_ENABLE_DEBUG */ 3738s # 3738s # typedef struct 3738s # { 3738s # GDBusArgInfo parent_struct; 3738s # gboolean use_gvariant; 3738s # } _ExtendedGDBusArgInfo; 3738s # 3738s # typedef struct 3738s # { 3738s # GDBusMethodInfo parent_struct; 3738s # const gchar *signal_name; 3738s # gboolean pass_fdlist; 3738s # } _ExtendedGDBusMethodInfo; 3738s # 3738s # typedef struct 3738s # { 3738s # GDBusSignalInfo parent_struct; 3738s # const gchar *signal_name; 3738s # } _ExtendedGDBusSignalInfo; 3738s # 3738s # typedef struct 3738s # { 3738s # GDBusPropertyInfo parent_struct; 3738s # const gchar *hyphen_name; 3738s # guint use_gvariant : 1; 3738s # guint emits_changed_signal : 1; 3738s # } _ExtendedGDBusPropertyInfo; 3738s # 3738s # typedef struct 3738s # { 3738s # GDBusInterfaceInfo parent_struct; 3738s # const gchar *hyphen_name; 3738s # } _ExtendedGDBusInterfaceInfo; 3738s # 3738s # typedef struct 3738s # { 3738s # const _ExtendedGDBusPropertyInfo *info; 3738s # guint prop_id; 3738s # GValue orig_value; /* the value before the change */ 3738s # } ChangedProperty; 3738s # 3738s # static void 3738s # _changed_property_free (ChangedProperty *data) 3738s # { 3738s # g_value_unset (&data->orig_value); 3738s # g_free (data); 3738s # } 3738s # 3738s # static gboolean 3738s # _g_strv_equal0 (gchar **a, gchar **b) 3738s # { 3738s # gboolean ret = FALSE; 3738s # guint n; 3738s # if (a == NULL && b == NULL) 3738s # { 3738s # ret = TRUE; 3738s # goto out; 3738s # } 3738s # if (a == NULL || b == NULL) 3738s # goto out; 3738s # if (g_strv_length (a) != g_strv_length (b)) 3738s # goto out; 3738s # for (n = 0; a[n] != NULL; n++) 3738s # if (g_strcmp0 (a[n], b[n]) != 0) 3738s # goto out; 3738s # ret = TRUE; 3738s # out: 3738s # return ret; 3738s # } 3738s # 3738s # static gboolean 3738s # _g_variant_equal0 (GVariant *a, GVariant *b) 3738s # { 3738s # gboolean ret = FALSE; 3738s # if (a == NULL && b == NULL) 3738s # { 3738s # ret = TRUE; 3738s # goto out; 3738s # } 3738s # if (a == NULL || b == NULL) 3738s # goto out; 3738s # ret = g_variant_equal (a, b); 3738s # out: 3738s # return ret; 3738s # } 3738s # 3738s # G_GNUC_UNUSED static gboolean 3738s # _g_value_equal (const GValue *a, const GValue *b) 3738s # { 3738s # gboolean ret = FALSE; 3738s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 3738s # switch (G_VALUE_TYPE (a)) 3738s # { 3738s # case G_TYPE_BOOLEAN: 3738s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 3738s # break; 3738s # case G_TYPE_UCHAR: 3738s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 3738s # break; 3738s # case G_TYPE_INT: 3738s # ret = (g_value_get_int (a) == g_value_get_int (b)); 3738s # break; 3738s # case G_TYPE_UINT: 3738s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 3738s # break; 3738s # case G_TYPE_INT64: 3738s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 3738s # break; 3738s # case G_TYPE_UINT64: 3738s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 3738s # break; 3738s # case G_TYPE_DOUBLE: 3738s # { 3738s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 3738s # gdouble da = g_value_get_double (a); 3738s # gdouble db = g_value_get_double (b); 3738s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 3738s # } 3738s # break; 3738s # case G_TYPE_STRING: 3738s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 3738s # break; 3738s # case G_TYPE_VARIANT: 3738s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 3738s # break; 3738s # default: 3738s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 3738s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 3738s # else 3738s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 3738s # break; 3738s # } 3738s # return ret; 3738s # } 3738s # 3738s # static void 3738s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 3738s # GClosure *closure, 3738s # GValue *return_value, 3738s # unsigned int n_param_values, 3738s # const GValue *param_values, 3738s # void *invocation_hint G_GNUC_UNUSED, 3738s # void *marshal_data) 3738s # { 3738s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 3738s # (void *data1, 3738s # GDBusMethodInvocation *arg_method_invocation, 3738s # void *data2); 3738s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 3738s # GCClosure *cc = (GCClosure*) closure; 3738s # void *data1, *data2; 3738s # gboolean v_return; 3738s # 3738s # g_return_if_fail (return_value != NULL); 3738s # g_return_if_fail (n_param_values == 2); 3738s # 3738s # if (G_CCLOSURE_SWAP_DATA (closure)) 3738s # { 3738s # data1 = closure->data; 3738s # data2 = g_value_peek_pointer (param_values + 0); 3738s # } 3738s # else 3738s # { 3738s # data1 = g_value_peek_pointer (param_values + 0); 3738s # data2 = closure->data; 3738s # } 3738s # 3738s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 3738s # (marshal_data ? marshal_data : cc->callback); 3738s # 3738s # v_return = 3738s # callback (data1, 3738s # g_marshal_value_peek_object (param_values + 1), 3738s # data2); 3738s # 3738s # g_value_set_boolean (return_value, v_return); 3738s # } 3738s # 3738s # /* ------------------------------------------------------------------------ 3738s # * Code for interface com.acme.Coyote 3738s # * ------------------------------------------------------------------------ 3738s # */ 3738s # 3738s # /** 3738s # * SECTION:ComAcmeCoyote 3738s # * @title: ComAcmeCoyote 3738s # * @short_description: Generated C code for the com.acme.Coyote D-Bus interface 3738s # * 3738s # * This section contains code for working with the <link linkend="gdbus-interface-com-acme-Coyote.top_of_page">com.acme.Coyote</link> D-Bus interface in C. 3738s # */ 3738s # 3738s # enum 3738s # { 3738s # _COM_ACME_COYOTE_SURPRISED, 3738s # }; 3738s # 3738s # static unsigned _COM_ACME_COYOTE_SIGNALS[1] = { 0 }; 3738s # 3738s # /* ---- Introspection data for com.acme.Coyote ---- */ 3738s # 3738s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_run = 3738s # { 3738s # { 3738s # -1, 3738s # (gchar *) "Run", 3738s # NULL, 3738s # NULL, 3738s # NULL 3738s # }, 3738s # "handle-run", 3738s # FALSE 3738s # }; 3738s # 3738s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_sleep = 3738s # { 3738s # { 3738s # -1, 3738s # (gchar *) "Sleep", 3738s # NULL, 3738s # NULL, 3738s # NULL 3738s # }, 3738s # "handle-sleep", 3738s # FALSE 3738s # }; 3738s # 3738s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_attack = 3738s # { 3738s # { 3738s # -1, 3738s # (gchar *) "Attack", 3738s # NULL, 3738s # NULL, 3738s # NULL 3738s # }, 3738s # "handle-attack", 3738s # FALSE 3738s # }; 3738s # 3738s # static const GDBusMethodInfo * const _com_acme_coyote_method_info_pointers[] = 3738s # { 3738s # &_com_acme_coyote_method_info_run.parent_struct, 3738s # &_com_acme_coyote_method_info_sleep.parent_struct, 3738s # &_com_acme_coyote_method_info_attack.parent_struct, 3738s # NULL 3738s # }; 3738s # 3738s # static const _ExtendedGDBusSignalInfo _com_acme_coyote_signal_info_surprised = 3738s # { 3738s # { 3738s # -1, 3738s # (gchar *) "Surprised", 3738s # NULL, 3738s # NULL 3738s # }, 3738s # "surprised" 3738s # }; 3738s # 3738s # static const GDBusSignalInfo * const _com_acme_coyote_signal_info_pointers[] = 3738s # { 3738s # &_com_acme_coyote_signal_info_surprised.parent_struct, 3738s # NULL 3738s # }; 3738s # 3738s # static const _ExtendedGDBusPropertyInfo _com_acme_coyote_property_info_mood = 3738s # { 3738s # { 3738s # -1, 3738s # (gchar *) "Mood", 3738s # (gchar *) "s", 3738s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 3738s # NULL 3738s # }, 3738s # "mood", 3738s # FALSE, 3738s # TRUE 3738s # }; 3738s # 3738s # static const GDBusPropertyInfo * const _com_acme_coyote_property_info_pointers[] = 3738s # { 3738s # &_com_acme_coyote_property_info_mood.parent_struct, 3738s # NULL 3738s # }; 3738s # 3738s # static const _ExtendedGDBusInterfaceInfo _com_acme_coyote_interface_info = 3738s # { 3738s # { 3738s # -1, 3738s # (gchar *) "com.acme.Coyote", 3738s # (GDBusMethodInfo **) &_com_acme_coyote_method_info_pointers, 3738s # (GDBusSignalInfo **) &_com_acme_coyote_signal_info_pointers, 3738s # (GDBusPropertyInfo **) &_com_acme_coyote_property_info_pointers, 3738s # NULL 3738s # }, 3738s # "com-acme-coyote", 3738s # }; 3738s # 3738s # 3738s # /** 3738s # * com_acme_coyote_interface_info: 3738s # * 3738s # * Gets a machine-readable description of the <link linkend="gdbus-interface-com-acme-Coyote.top_of_page">com.acme.Coyote</link> D-Bus interface. 3738s # * 3738s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3738s # */ 3738s # GDBusInterfaceInfo * 3738s # com_acme_coyote_interface_info (void) 3738s # { 3738s # return (GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct; 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_override_properties: 3738s # * @klass: The class structure for a #GObject derived class. 3738s # * @property_id_begin: The property id to assign to the first overridden property. 3738s # * 3738s # * Overrides all #GObject properties in the #ComAcmeCoyote interface for a concrete class. 3738s # * The properties are overridden in the order they are defined. 3738s # * 3738s # * Returns: The last property id. 3738s # */ 3738s # guint 3738s # com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin) 3738s # { 3738s # g_object_class_override_property (klass, property_id_begin++, "mood"); 3738s # return property_id_begin - 1; 3738s # } 3738s # 3738s # 3738s # inline static void 3738s # com_acme_coyote_signal_marshal_surprised ( 3738s # GClosure *closure, 3738s # GValue *return_value, 3738s # unsigned int n_param_values, 3738s # const GValue *param_values, 3738s # void *invocation_hint, 3738s # void *marshal_data) 3738s # { 3738s # g_cclosure_marshal_VOID__VOID (closure, 3738s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3738s # } 3738s # 3738s # inline static void 3738s # com_acme_coyote_method_marshal_run ( 3738s # GClosure *closure, 3738s # GValue *return_value, 3738s # unsigned int n_param_values, 3738s # const GValue *param_values, 3738s # void *invocation_hint, 3738s # void *marshal_data) 3738s # { 3738s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 3738s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3738s # } 3738s # 3738s # inline static void 3738s # com_acme_coyote_method_marshal_sleep ( 3738s # GClosure *closure, 3738s # GValue *return_value, 3738s # unsigned int n_param_values, 3738s # const GValue *param_values, 3738s # void *invocation_hint, 3738s # void *marshal_data) 3738s # { 3738s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 3738s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3738s # } 3738s # 3738s # inline static void 3738s # com_acme_coyote_method_marshal_attack ( 3738s # GClosure *closure, 3738s # GValue *return_value, 3738s # unsigned int n_param_values, 3738s # const GValue *param_values, 3738s # void *invocation_hint, 3738s # void *marshal_data) 3738s # { 3738s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 3738s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3738s # } 3738s # 3738s # 3738s # /** 3738s # * ComAcmeCoyote: 3738s # * 3738s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-com-acme-Coyote.top_of_page">com.acme.Coyote</link>. 3738s # */ 3738s # 3738s # /** 3738s # * ComAcmeCoyoteIface: 3738s # * @parent_iface: The parent interface. 3738s # * @handle_attack: Handler for the #ComAcmeCoyote::handle-attack signal. 3738s # * @handle_run: Handler for the #ComAcmeCoyote::handle-run signal. 3738s # * @handle_sleep: Handler for the #ComAcmeCoyote::handle-sleep signal. 3738s # * @get_mood: Getter for the #ComAcmeCoyote:mood property. 3738s # * @surprised: Handler for the #ComAcmeCoyote::surprised signal. 3738s # * 3738s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-com-acme-Coyote.top_of_page">com.acme.Coyote</link>. 3738s # */ 3738s # 3738s # typedef ComAcmeCoyoteIface ComAcmeCoyoteInterface; 3738s # G_DEFINE_INTERFACE (ComAcmeCoyote, com_acme_coyote, G_TYPE_OBJECT) 3738s # 3738s # static void 3738s # com_acme_coyote_default_init (ComAcmeCoyoteIface *iface) 3738s # { 3738s # /* GObject signals for incoming D-Bus method calls: */ 3738s # /** 3738s # * ComAcmeCoyote::handle-run: 3738s # * @object: A #ComAcmeCoyote. 3738s # * @invocation: A #GDBusMethodInvocation. 3738s # * 3738s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-com-acme-Coyote.Run">Run()</link> D-Bus method. 3738s # * 3738s # * 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. 3738s # * 3738s # * 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. 3738s # */ 3738s # g_signal_new ("handle-run", 3738s # G_TYPE_FROM_INTERFACE (iface), 3738s # G_SIGNAL_RUN_LAST, 3738s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_run), 3738s # g_signal_accumulator_true_handled, 3738s # NULL, 3738s # com_acme_coyote_method_marshal_run, 3738s # G_TYPE_BOOLEAN, 3738s # 1, 3738s # G_TYPE_DBUS_METHOD_INVOCATION); 3738s # 3738s # /** 3738s # * ComAcmeCoyote::handle-sleep: 3738s # * @object: A #ComAcmeCoyote. 3738s # * @invocation: A #GDBusMethodInvocation. 3738s # * 3738s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-com-acme-Coyote.Sleep">Sleep()</link> D-Bus method. 3738s # * 3738s # * 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. 3738s # * 3738s # * 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. 3738s # */ 3738s # g_signal_new ("handle-sleep", 3738s # G_TYPE_FROM_INTERFACE (iface), 3738s # G_SIGNAL_RUN_LAST, 3738s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_sleep), 3738s # g_signal_accumulator_true_handled, 3738s # NULL, 3738s # com_acme_coyote_method_marshal_sleep, 3738s # G_TYPE_BOOLEAN, 3738s # 1, 3738s # G_TYPE_DBUS_METHOD_INVOCATION); 3738s # 3738s # /** 3738s # * ComAcmeCoyote::handle-attack: 3738s # * @object: A #ComAcmeCoyote. 3738s # * @invocation: A #GDBusMethodInvocation. 3738s # * 3738s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-com-acme-Coyote.Attack">Attack()</link> D-Bus method. 3738s # * 3738s # * 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. 3738s # * 3738s # * 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. 3738s # */ 3738s # g_signal_new ("handle-attack", 3738s # G_TYPE_FROM_INTERFACE (iface), 3738s # G_SIGNAL_RUN_LAST, 3738s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_attack), 3738s # g_signal_accumulator_true_handled, 3738s # NULL, 3738s # com_acme_coyote_method_marshal_attack, 3738s # G_TYPE_BOOLEAN, 3738s # 1, 3738s # G_TYPE_DBUS_METHOD_INVOCATION); 3738s # 3738s # /* GObject signals for received D-Bus signals: */ 3738s # /** 3738s # * ComAcmeCoyote::surprised: 3738s # * @object: A #ComAcmeCoyote. 3738s # * 3738s # * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-com-acme-Coyote.Surprised">"Surprised"</link> is received. 3738s # * 3738s # * 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. 3738s # */ 3738s # _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED] = 3738s # g_signal_new ("surprised", 3738s # G_TYPE_FROM_INTERFACE (iface), 3738s # G_SIGNAL_RUN_LAST, 3738s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, surprised), 3738s # NULL, 3738s # NULL, 3738s # com_acme_coyote_signal_marshal_surprised, 3738s # G_TYPE_NONE, 3738s # 0); 3738s # 3738s # /* GObject properties for D-Bus properties: */ 3738s # /** 3738s # * ComAcmeCoyote:mood: 3738s # * 3738s # * Represents the D-Bus property <link linkend="gdbus-property-com-acme-Coyote.Mood">"Mood"</link>. 3738s # * 3738s # * 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. 3738s # */ 3738s # g_object_interface_install_property (iface, 3738s # g_param_spec_string ("mood", "Mood", "Mood", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_get_mood: (skip) 3738s # * @object: A #ComAcmeCoyote. 3738s # * 3738s # * Gets the value of the <link linkend="gdbus-property-com-acme-Coyote.Mood">"Mood"</link> D-Bus property. 3738s # * 3738s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 3738s # * 3738s # * 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. 3738s # * 3738s # * 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. 3738s # */ 3738s # const gchar * 3738s # com_acme_coyote_get_mood (ComAcmeCoyote *object) 3738s # { 3738s # g_return_val_if_fail (IS_COM_ACME_COYOTE (object), NULL); 3738s # 3738s # return COM_ACME_COYOTE_GET_IFACE (object)->get_mood (object); 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_dup_mood: (skip) 3738s # * @object: A #ComAcmeCoyote. 3738s # * 3738s # * Gets a copy of the <link linkend="gdbus-property-com-acme-Coyote.Mood">"Mood"</link> D-Bus property. 3738s # * 3738s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 3738s # * 3738s # * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). 3738s # */ 3738s # gchar * 3738s # com_acme_coyote_dup_mood (ComAcmeCoyote *object) 3738s # { 3738s # gchar *value; 3738s # g_object_get (G_OBJECT (object), "mood", &value, NULL); 3738s # return value; 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_set_mood: (skip) 3738s # * @object: A #ComAcmeCoyote. 3738s # * @value: The value to set. 3738s # * 3738s # * Sets the <link linkend="gdbus-property-com-acme-Coyote.Mood">"Mood"</link> D-Bus property to @value. 3738s # * 3738s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 3738s # */ 3738s # void 3738s # com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value) 3738s # { 3738s # g_object_set (G_OBJECT (object), "mood", value, NULL); 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_emit_surprised: 3738s # * @object: A #ComAcmeCoyote. 3738s # * 3738s # * Emits the <link linkend="gdbus-signal-com-acme-Coyote.Surprised">"Surprised"</link> D-Bus signal. 3738s # */ 3738s # void 3738s # com_acme_coyote_emit_surprised ( 3738s # ComAcmeCoyote *object) 3738s # { 3738s # g_signal_emit (object, _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED], 0); 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_call_run: 3738s # * @proxy: A #ComAcmeCoyoteProxy. 3738s # * @cancellable: (nullable): A #GCancellable or %NULL. 3738s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3738s # * @user_data: User data to pass to @callback. 3738s # * 3738s # * Asynchronously invokes the <link linkend="gdbus-method-com-acme-Coyote.Run">Run()</link> D-Bus method on @proxy. 3738s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3738s # * You can then call com_acme_coyote_call_run_finish() to get the result of the operation. 3738s # * 3738s # * See com_acme_coyote_call_run_sync() for the synchronous, blocking version of this method. 3738s # */ 3738s # void 3738s # com_acme_coyote_call_run ( 3738s # ComAcmeCoyote *proxy, 3738s # GCancellable *cancellable, 3738s # GAsyncReadyCallback callback, 3738s # gpointer user_data) 3738s # { 3738s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3738s # "Run", 3738s # g_variant_new ("()"), 3738s # G_DBUS_CALL_FLAGS_NONE, 3738s # -1, 3738s # cancellable, 3738s # callback, 3738s # user_data); 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_call_run_finish: 3738s # * @proxy: A #ComAcmeCoyoteProxy. 3738s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_run(). 3738s # * @error: Return location for error or %NULL. 3738s # * 3738s # * Finishes an operation started with com_acme_coyote_call_run(). 3738s # * 3738s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3738s # */ 3738s # gboolean 3738s # com_acme_coyote_call_run_finish ( 3738s # ComAcmeCoyote *proxy, 3738s # GAsyncResult *res, 3738s # GError **error) 3738s # { 3738s # GVariant *_ret; 3738s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3738s # if (_ret == NULL) 3738s # goto _out; 3738s # g_variant_get (_ret, 3738s # "()"); 3738s # g_variant_unref (_ret); 3738s # _out: 3738s # return _ret != NULL; 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_call_run_sync: 3738s # * @proxy: A #ComAcmeCoyoteProxy. 3738s # * @cancellable: (nullable): A #GCancellable or %NULL. 3738s # * @error: Return location for error or %NULL. 3738s # * 3738s # * Synchronously invokes the <link linkend="gdbus-method-com-acme-Coyote.Run">Run()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3738s # * 3738s # * See com_acme_coyote_call_run() for the asynchronous version of this method. 3738s # * 3738s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3738s # */ 3738s # gboolean 3738s # com_acme_coyote_call_run_sync ( 3738s # ComAcmeCoyote *proxy, 3738s # GCancellable *cancellable, 3738s # GError **error) 3738s # { 3738s # GVariant *_ret; 3738s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3738s # "Run", 3738s # g_variant_new ("()"), 3738s # G_DBUS_CALL_FLAGS_NONE, 3738s # -1, 3738s # cancellable, 3738s # error); 3738s # if (_ret == NULL) 3738s # goto _out; 3738s # g_variant_get (_ret, 3738s # "()"); 3738s # g_variant_unref (_ret); 3738s # _out: 3738s # return _ret != NULL; 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_call_sleep: 3738s # * @proxy: A #ComAcmeCoyoteProxy. 3738s # * @cancellable: (nullable): A #GCancellable or %NULL. 3738s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3738s # * @user_data: User data to pass to @callback. 3738s # * 3738s # * Asynchronously invokes the <link linkend="gdbus-method-com-acme-Coyote.Sleep">Sleep()</link> D-Bus method on @proxy. 3738s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3738s # * You can then call com_acme_coyote_call_sleep_finish() to get the result of the operation. 3738s # * 3738s # * See com_acme_coyote_call_sleep_sync() for the synchronous, blocking version of this method. 3738s # */ 3738s # void 3738s # com_acme_coyote_call_sleep ( 3738s # ComAcmeCoyote *proxy, 3738s # GCancellable *cancellable, 3738s # GAsyncReadyCallback callback, 3738s # gpointer user_data) 3738s # { 3738s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3738s # "Sleep", 3738s # g_variant_new ("()"), 3738s # G_DBUS_CALL_FLAGS_NONE, 3738s # -1, 3738s # cancellable, 3738s # callback, 3738s # user_data); 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_call_sleep_finish: 3738s # * @proxy: A #ComAcmeCoyoteProxy. 3738s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_sleep(). 3738s # * @error: Return location for error or %NULL. 3738s # * 3738s # * Finishes an operation started with com_acme_coyote_call_sleep(). 3738s # * 3738s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3738s # */ 3738s # gboolean 3738s # com_acme_coyote_call_sleep_finish ( 3738s # ComAcmeCoyote *proxy, 3738s # GAsyncResult *res, 3738s # GError **error) 3738s # { 3738s # GVariant *_ret; 3738s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3738s # if (_ret == NULL) 3738s # goto _out; 3738s # g_variant_get (_ret, 3738s # "()"); 3738s # g_variant_unref (_ret); 3738s # _out: 3738s # return _ret != NULL; 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_call_sleep_sync: 3738s # * @proxy: A #ComAcmeCoyoteProxy. 3738s # * @cancellable: (nullable): A #GCancellable or %NULL. 3738s # * @error: Return location for error or %NULL. 3738s # * 3738s # * Synchronously invokes the <link linkend="gdbus-method-com-acme-Coyote.Sleep">Sleep()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3738s # * 3738s # * See com_acme_coyote_call_sleep() for the asynchronous version of this method. 3738s # * 3738s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3738s # */ 3738s # gboolean 3738s # com_acme_coyote_call_sleep_sync ( 3738s # ComAcmeCoyote *proxy, 3738s # GCancellable *cancellable, 3738s # GError **error) 3738s # { 3738s # GVariant *_ret; 3738s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3738s # "Sleep", 3738s # g_variant_new ("()"), 3738s # G_DBUS_CALL_FLAGS_NONE, 3738s # -1, 3738s # cancellable, 3738s # error); 3738s # if (_ret == NULL) 3738s # goto _out; 3738s # g_variant_get (_ret, 3738s # "()"); 3738s # g_variant_unref (_ret); 3738s # _out: 3738s # return _ret != NULL; 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_call_attack: 3738s # * @proxy: A #ComAcmeCoyoteProxy. 3738s # * @cancellable: (nullable): A #GCancellable or %NULL. 3738s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3738s # * @user_data: User data to pass to @callback. 3738s # * 3738s # * Asynchronously invokes the <link linkend="gdbus-method-com-acme-Coyote.Attack">Attack()</link> D-Bus method on @proxy. 3738s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3738s # * You can then call com_acme_coyote_call_attack_finish() to get the result of the operation. 3738s # * 3738s # * See com_acme_coyote_call_attack_sync() for the synchronous, blocking version of this method. 3738s # */ 3738s # void 3738s # com_acme_coyote_call_attack ( 3738s # ComAcmeCoyote *proxy, 3738s # GCancellable *cancellable, 3738s # GAsyncReadyCallback callback, 3738s # gpointer user_data) 3738s # { 3738s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3738s # "Attack", 3738s # g_variant_new ("()"), 3738s # G_DBUS_CALL_FLAGS_NONE, 3738s # -1, 3738s # cancellable, 3738s # callback, 3738s # user_data); 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_call_attack_finish: 3738s # * @proxy: A #ComAcmeCoyoteProxy. 3738s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_attack(). 3738s # * @error: Return location for error or %NULL. 3738s # * 3738s # * Finishes an operation started with com_acme_coyote_call_attack(). 3738s # * 3738s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3738s # */ 3738s # gboolean 3738s # com_acme_coyote_call_attack_finish ( 3738s # ComAcmeCoyote *proxy, 3738s # GAsyncResult *res, 3738s # GError **error) 3738s # { 3738s # GVariant *_ret; 3738s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3738s # if (_ret == NULL) 3738s # goto _out; 3738s # g_variant_get (_ret, 3738s # "()"); 3738s # g_variant_unref (_ret); 3738s # _out: 3738s # return _ret != NULL; 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_call_attack_sync: 3738s # * @proxy: A #ComAcmeCoyoteProxy. 3738s # * @cancellable: (nullable): A #GCancellable or %NULL. 3738s # * @error: Return location for error or %NULL. 3738s # * 3738s # * Synchronously invokes the <link linkend="gdbus-method-com-acme-Coyote.Attack">Attack()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3738s # * 3738s # * See com_acme_coyote_call_attack() for the asynchronous version of this method. 3738s # * 3738s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3738s # */ 3738s # gboolean 3738s # com_acme_coyote_call_attack_sync ( 3738s # ComAcmeCoyote *proxy, 3738s # GCancellable *cancellable, 3738s # GError **error) 3738s # { 3738s # GVariant *_ret; 3738s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3738s # "Attack", 3738s # g_variant_new ("()"), 3738s # G_DBUS_CALL_FLAGS_NONE, 3738s # -1, 3738s # cancellable, 3738s # error); 3738s # if (_ret == NULL) 3738s # goto _out; 3738s # g_variant_get (_ret, 3738s # "()"); 3738s # g_variant_unref (_ret); 3738s # _out: 3738s # return _ret != NULL; 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_complete_run: 3738s # * @object: A #ComAcmeCoyote. 3738s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3738s # * 3738s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-com-acme-Coyote.Run">Run()</link> 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. 3738s # * 3738s # * This method will free @invocation, you cannot use it afterwards. 3738s # */ 3738s # void 3738s # com_acme_coyote_complete_run ( 3738s # ComAcmeCoyote *object G_GNUC_UNUSED, 3738s # GDBusMethodInvocation *invocation) 3738s # { 3738s # g_dbus_method_invocation_return_value (invocation, 3738s # g_variant_new ("()")); 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_complete_sleep: 3738s # * @object: A #ComAcmeCoyote. 3738s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3738s # * 3738s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-com-acme-Coyote.Sleep">Sleep()</link> 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. 3738s # * 3738s # * This method will free @invocation, you cannot use it afterwards. 3738s # */ 3738s # void 3738s # com_acme_coyote_complete_sleep ( 3738s # ComAcmeCoyote *object G_GNUC_UNUSED, 3738s # GDBusMethodInvocation *invocation) 3738s # { 3738s # g_dbus_method_invocation_return_value (invocation, 3738s # g_variant_new ("()")); 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_complete_attack: 3738s # * @object: A #ComAcmeCoyote. 3738s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3738s # * 3738s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-com-acme-Coyote.Attack">Attack()</link> 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. 3738s # * 3738s # * This method will free @invocation, you cannot use it afterwards. 3738s # */ 3738s # void 3738s # com_acme_coyote_complete_attack ( 3738s # ComAcmeCoyote *object G_GNUC_UNUSED, 3738s # GDBusMethodInvocation *invocation) 3738s # { 3738s # g_dbus_method_invocation_return_value (invocation, 3738s # g_variant_new ("()")); 3738s # } 3738s # 3738s # /* ------------------------------------------------------------------------ */ 3738s # 3738s # /** 3738s # * ComAcmeCoyoteProxy: 3738s # * 3738s # * The #ComAcmeCoyoteProxy structure contains only private data and should only be accessed using the provided API. 3738s # */ 3738s # 3738s # /** 3738s # * ComAcmeCoyoteProxyClass: 3738s # * @parent_class: The parent class. 3738s # * 3738s # * Class structure for #ComAcmeCoyoteProxy. 3738s # */ 3738s # 3738s # struct _ComAcmeCoyoteProxyPrivate 3738s # { 3738s # GData *qdata; 3738s # }; 3738s # 3738s # static void com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface); 3738s # 3738s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3738s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 3738s # G_ADD_PRIVATE (ComAcmeCoyoteProxy) 3738s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 3738s # 3738s # #else 3738s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 3738s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 3738s # 3738s # #endif 3738s # static void 3738s # com_acme_coyote_proxy_finalize (GObject *object) 3738s # { 3738s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 3738s # g_datalist_clear (&proxy->priv->qdata); 3738s # G_OBJECT_CLASS (com_acme_coyote_proxy_parent_class)->finalize (object); 3738s # } 3738s # 3738s # static void 3738s # com_acme_coyote_proxy_get_property (GObject *object, 3738s # guint prop_id, 3738s # GValue *value, 3738s # GParamSpec *pspec G_GNUC_UNUSED) 3738s # { 3738s # const _ExtendedGDBusPropertyInfo *info; 3738s # GVariant *variant; 3738s # g_assert (prop_id != 0 && prop_id - 1 < 1); 3738s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 3738s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 3738s # if (info->use_gvariant) 3738s # { 3738s # g_value_set_variant (value, variant); 3738s # } 3738s # else 3738s # { 3738s # if (variant != NULL) 3738s # g_dbus_gvariant_to_gvalue (variant, value); 3738s # } 3738s # if (variant != NULL) 3738s # g_variant_unref (variant); 3738s # } 3738s # 3738s # static void 3738s # com_acme_coyote_proxy_set_property_cb (GDBusProxy *proxy, 3738s # GAsyncResult *res, 3738s # gpointer user_data) 3738s # { 3738s # const _ExtendedGDBusPropertyInfo *info = user_data; 3738s # GError *error; 3738s # GVariant *_ret; 3738s # error = NULL; 3738s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 3738s # if (!_ret) 3738s # { 3738s # g_warning ("Error setting property '%s' on interface com.acme.Coyote: %s (%s, %d)", 3738s # info->parent_struct.name, 3738s # error->message, g_quark_to_string (error->domain), error->code); 3738s # g_error_free (error); 3738s # } 3738s # else 3738s # { 3738s # g_variant_unref (_ret); 3738s # } 3738s # } 3738s # 3738s # static void 3738s # com_acme_coyote_proxy_set_property (GObject *object, 3738s # guint prop_id, 3738s # const GValue *value, 3738s # GParamSpec *pspec G_GNUC_UNUSED) 3738s # { 3738s # const _ExtendedGDBusPropertyInfo *info; 3738s # GVariant *variant; 3738s # g_assert (prop_id != 0 && prop_id - 1 < 1); 3738s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 3738s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 3738s # g_dbus_proxy_call (G_DBUS_PROXY (object), 3738s # "org.freedesktop.DBus.Properties.Set", 3738s # g_variant_new ("(ssv)", "com.acme.Coyote", info->parent_struct.name, variant), 3738s # G_DBUS_CALL_FLAGS_NONE, 3738s # -1, 3738s # NULL, (GAsyncReadyCallback) com_acme_coyote_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 3738s # g_variant_unref (variant); 3738s # } 3738s # 3738s # static void 3738s # com_acme_coyote_proxy_g_signal (GDBusProxy *proxy, 3738s # const gchar *sender_name G_GNUC_UNUSED, 3738s # const gchar *signal_name, 3738s # GVariant *parameters) 3738s # { 3738s # _ExtendedGDBusSignalInfo *info; 3738s # GVariantIter iter; 3738s # GVariant *child; 3738s # GValue *paramv; 3738s # gsize num_params; 3738s # gsize n; 3738s # guint signal_id; 3738s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, signal_name); 3738s # if (info == NULL) 3738s # return; 3738s # num_params = g_variant_n_children (parameters); 3738s # paramv = g_new0 (GValue, num_params + 1); 3738s # g_value_init (¶mv[0], TYPE_COM_ACME_COYOTE); 3738s # g_value_set_object (¶mv[0], proxy); 3738s # g_variant_iter_init (&iter, parameters); 3738s # n = 1; 3738s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3738s # { 3738s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3738s # if (arg_info->use_gvariant) 3738s # { 3738s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3738s # g_value_set_variant (¶mv[n], child); 3738s # n++; 3738s # } 3738s # else 3738s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3738s # g_variant_unref (child); 3738s # } 3738s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 3738s # g_signal_emitv (paramv, signal_id, 0, NULL); 3738s # for (n = 0; n < num_params + 1; n++) 3738s # g_value_unset (¶mv[n]); 3738s # g_free (paramv); 3738s # } 3738s # 3738s # static void 3738s # com_acme_coyote_proxy_g_properties_changed (GDBusProxy *_proxy, 3738s # GVariant *changed_properties, 3738s # const gchar *const *invalidated_properties) 3738s # { 3738s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (_proxy); 3738s # guint n; 3738s # const gchar *key; 3738s # GVariantIter *iter; 3738s # _ExtendedGDBusPropertyInfo *info; 3738s # g_variant_get (changed_properties, "a{sv}", &iter); 3738s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3738s # { 3738s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, key); 3738s # g_datalist_remove_data (&proxy->priv->qdata, key); 3738s # if (info != NULL) 3738s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3738s # } 3738s # g_variant_iter_free (iter); 3738s # for (n = 0; invalidated_properties[n] != NULL; n++) 3738s # { 3738s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, invalidated_properties[n]); 3738s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3738s # if (info != NULL) 3738s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3738s # } 3738s # } 3738s # 3738s # static const gchar * 3738s # com_acme_coyote_proxy_get_mood (ComAcmeCoyote *object) 3738s # { 3738s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 3738s # GVariant *variant; 3738s # const gchar *value = NULL; 3738s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "Mood"); 3738s # if (variant != NULL) 3738s # { 3738s # value = g_variant_get_string (variant, NULL); 3738s # g_variant_unref (variant); 3738s # } 3738s # return value; 3738s # } 3738s # 3738s # static void 3738s # com_acme_coyote_proxy_init (ComAcmeCoyoteProxy *proxy) 3738s # { 3738s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3738s # proxy->priv = com_acme_coyote_proxy_get_instance_private (proxy); 3738s # #else 3738s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyPrivate); 3738s # #endif 3738s # 3738s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), com_acme_coyote_interface_info ()); 3738s # } 3738s # 3738s # static void 3738s # com_acme_coyote_proxy_class_init (ComAcmeCoyoteProxyClass *klass) 3738s # { 3738s # GObjectClass *gobject_class; 3738s # GDBusProxyClass *proxy_class; 3738s # 3738s # gobject_class = G_OBJECT_CLASS (klass); 3738s # gobject_class->finalize = com_acme_coyote_proxy_finalize; 3738s # gobject_class->get_property = com_acme_coyote_proxy_get_property; 3738s # gobject_class->set_property = com_acme_coyote_proxy_set_property; 3738s # 3738s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3738s # proxy_class->g_signal = com_acme_coyote_proxy_g_signal; 3738s # proxy_class->g_properties_changed = com_acme_coyote_proxy_g_properties_changed; 3738s # 3738s # com_acme_coyote_override_properties (gobject_class, 1); 3738s # 3738s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3738s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteProxyPrivate)); 3738s # #endif 3738s # } 3738s # 3738s # static void 3738s # com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface) 3738s # { 3738s # iface->get_mood = com_acme_coyote_proxy_get_mood; 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_proxy_new: 3738s # * @connection: A #GDBusConnection. 3738s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3738s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3738s # * @object_path: An object path. 3738s # * @cancellable: (nullable): A #GCancellable or %NULL. 3738s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3738s # * @user_data: User data to pass to @callback. 3738s # * 3738s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-com-acme-Coyote.top_of_page">com.acme.Coyote</link>. See g_dbus_proxy_new() for more details. 3738s # * 3738s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3738s # * You can then call com_acme_coyote_proxy_new_finish() to get the result of the operation. 3738s # * 3738s # * See com_acme_coyote_proxy_new_sync() for the synchronous, blocking version of this constructor. 3738s # */ 3738s # void 3738s # com_acme_coyote_proxy_new ( 3738s # GDBusConnection *connection, 3738s # GDBusProxyFlags flags, 3738s # const gchar *name, 3738s # const gchar *object_path, 3738s # GCancellable *cancellable, 3738s # GAsyncReadyCallback callback, 3738s # gpointer user_data) 3738s # { 3738s # 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); 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_proxy_new_finish: 3738s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new(). 3738s # * @error: Return location for error or %NULL 3738s # * 3738s # * Finishes an operation started with com_acme_coyote_proxy_new(). 3738s # * 3738s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 3738s # */ 3738s # ComAcmeCoyote * 3738s # com_acme_coyote_proxy_new_finish ( 3738s # GAsyncResult *res, 3738s # GError **error) 3738s # { 3738s # GObject *ret; 3738s # GObject *source_object; 3738s # source_object = g_async_result_get_source_object (res); 3738s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3738s # g_object_unref (source_object); 3738s # if (ret != NULL) 3738s # return COM_ACME_COYOTE (ret); 3738s # else 3738s # return NULL; 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_proxy_new_sync: 3738s # * @connection: A #GDBusConnection. 3738s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3738s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3738s # * @object_path: An object path. 3738s # * @cancellable: (nullable): A #GCancellable or %NULL. 3738s # * @error: Return location for error or %NULL 3738s # * 3738s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-com-acme-Coyote.top_of_page">com.acme.Coyote</link>. See g_dbus_proxy_new_sync() for more details. 3738s # * 3738s # * The calling thread is blocked until a reply is received. 3738s # * 3738s # * See com_acme_coyote_proxy_new() for the asynchronous version of this constructor. 3738s # * 3738s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 3738s # */ 3738s # ComAcmeCoyote * 3738s # com_acme_coyote_proxy_new_sync ( 3738s # GDBusConnection *connection, 3738s # GDBusProxyFlags flags, 3738s # const gchar *name, 3738s # const gchar *object_path, 3738s # GCancellable *cancellable, 3738s # GError **error) 3738s # { 3738s # GInitable *ret; 3738s # 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); 3738s # if (ret != NULL) 3738s # return COM_ACME_COYOTE (ret); 3738s # else 3738s # return NULL; 3738s # } 3738s # 3738s # 3738s # /** 3738s # * com_acme_coyote_proxy_new_for_bus: 3738s # * @bus_type: A #GBusType. 3738s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3738s # * @name: A bus name (well-known or unique). 3738s # * @object_path: An object path. 3738s # * @cancellable: (nullable): A #GCancellable or %NULL. 3738s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3738s # * @user_data: User data to pass to @callback. 3738s # * 3738s # * Like com_acme_coyote_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3738s # * 3738s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3738s # * You can then call com_acme_coyote_proxy_new_for_bus_finish() to get the result of the operation. 3738s # * 3738s # * See com_acme_coyote_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3738s # */ 3738s # void 3738s # com_acme_coyote_proxy_new_for_bus ( 3738s # GBusType bus_type, 3738s # GDBusProxyFlags flags, 3738s # const gchar *name, 3738s # const gchar *object_path, 3738s # GCancellable *cancellable, 3738s # GAsyncReadyCallback callback, 3738s # gpointer user_data) 3738s # { 3738s # 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); 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_proxy_new_for_bus_finish: 3738s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new_for_bus(). 3738s # * @error: Return location for error or %NULL 3738s # * 3738s # * Finishes an operation started with com_acme_coyote_proxy_new_for_bus(). 3738s # * 3738s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 3738s # */ 3738s # ComAcmeCoyote * 3738s # com_acme_coyote_proxy_new_for_bus_finish ( 3738s # GAsyncResult *res, 3738s # GError **error) 3738s # { 3738s # GObject *ret; 3738s # GObject *source_object; 3738s # source_object = g_async_result_get_source_object (res); 3738s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3738s # g_object_unref (source_object); 3738s # if (ret != NULL) 3738s # return COM_ACME_COYOTE (ret); 3738s # else 3738s # return NULL; 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_proxy_new_for_bus_sync: 3738s # * @bus_type: A #GBusType. 3738s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3738s # * @name: A bus name (well-known or unique). 3738s # * @object_path: An object path. 3738s # * @cancellable: (nullable): A #GCancellable or %NULL. 3738s # * @error: Return location for error or %NULL 3738s # * 3738s # * Like com_acme_coyote_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3738s # * 3738s # * The calling thread is blocked until a reply is received. 3738s # * 3738s # * See com_acme_coyote_proxy_new_for_bus() for the asynchronous version of this constructor. 3738s # * 3738s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 3738s # */ 3738s # ComAcmeCoyote * 3738s # com_acme_coyote_proxy_new_for_bus_sync ( 3738s # GBusType bus_type, 3738s # GDBusProxyFlags flags, 3738s # const gchar *name, 3738s # const gchar *object_path, 3738s # GCancellable *cancellable, 3738s # GError **error) 3738s # { 3738s # GInitable *ret; 3738s # 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); 3738s # if (ret != NULL) 3738s # return COM_ACME_COYOTE (ret); 3738s # else 3738s # return NULL; 3738s # } 3738s # 3738s # 3738s # /* ------------------------------------------------------------------------ */ 3738s # 3738s # /** 3738s # * ComAcmeCoyoteSkeleton: 3738s # * 3738s # * The #ComAcmeCoyoteSkeleton structure contains only private data and should only be accessed using the provided API. 3738s # */ 3738s # 3738s # /** 3738s # * ComAcmeCoyoteSkeletonClass: 3738s # * @parent_class: The parent class. 3738s # * 3738s # * Class structure for #ComAcmeCoyoteSkeleton. 3738s # */ 3738s # 3738s # struct _ComAcmeCoyoteSkeletonPrivate 3738s # { 3738s # GValue *properties; 3738s # GList *changed_properties; 3738s # GSource *changed_properties_idle_source; 3738s # GMainContext *context; 3738s # GMutex lock; 3738s # }; 3738s # 3738s # static void 3738s # _com_acme_coyote_skeleton_handle_method_call ( 3738s # GDBusConnection *connection G_GNUC_UNUSED, 3738s # const gchar *sender G_GNUC_UNUSED, 3738s # const gchar *object_path G_GNUC_UNUSED, 3738s # const gchar *interface_name, 3738s # const gchar *method_name, 3738s # GVariant *parameters, 3738s # GDBusMethodInvocation *invocation, 3738s # gpointer user_data) 3738s # { 3738s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 3738s # _ExtendedGDBusMethodInfo *info; 3738s # GVariantIter iter; 3738s # GVariant *child; 3738s # GValue *paramv; 3738s # gsize num_params; 3738s # guint num_extra; 3738s # gsize n; 3738s # guint signal_id; 3738s # GValue return_value = G_VALUE_INIT; 3738s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3738s # g_assert (info != NULL); 3738s # num_params = g_variant_n_children (parameters); 3738s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3738s # n = 0; 3738s # g_value_init (¶mv[n], TYPE_COM_ACME_COYOTE); 3738s # g_value_set_object (¶mv[n++], skeleton); 3738s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3738s # g_value_set_object (¶mv[n++], invocation); 3738s # if (info->pass_fdlist) 3738s # { 3738s # #ifdef G_OS_UNIX 3738s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3738s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3738s # #else 3738s # g_assert_not_reached (); 3738s # #endif 3738s # } 3738s # g_variant_iter_init (&iter, parameters); 3738s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3738s # { 3738s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3738s # if (arg_info->use_gvariant) 3738s # { 3738s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3738s # g_value_set_variant (¶mv[n], child); 3738s # n++; 3738s # } 3738s # else 3738s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3738s # g_variant_unref (child); 3738s # } 3738s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 3738s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3738s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3738s # if (!g_value_get_boolean (&return_value)) 3738s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3738s # g_value_unset (&return_value); 3738s # for (n = 0; n < num_params + num_extra; n++) 3738s # g_value_unset (¶mv[n]); 3738s # g_free (paramv); 3738s # } 3738s # 3738s # static GVariant * 3738s # _com_acme_coyote_skeleton_handle_get_property ( 3738s # GDBusConnection *connection G_GNUC_UNUSED, 3738s # const gchar *sender G_GNUC_UNUSED, 3738s # const gchar *object_path G_GNUC_UNUSED, 3738s # const gchar *interface_name G_GNUC_UNUSED, 3738s # const gchar *property_name, 3738s # GError **error, 3738s # gpointer user_data) 3738s # { 3738s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 3738s # GValue value = G_VALUE_INIT; 3738s # GParamSpec *pspec; 3738s # _ExtendedGDBusPropertyInfo *info; 3738s # GVariant *ret; 3738s # ret = NULL; 3738s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 3738s # g_assert (info != NULL); 3738s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3738s # if (pspec == NULL) 3738s # { 3738s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3738s # } 3738s # else 3738s # { 3738s # g_value_init (&value, pspec->value_type); 3738s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3738s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3738s # g_value_unset (&value); 3738s # } 3738s # return ret; 3738s # } 3738s # 3738s # static gboolean 3738s # _com_acme_coyote_skeleton_handle_set_property ( 3738s # GDBusConnection *connection G_GNUC_UNUSED, 3738s # const gchar *sender G_GNUC_UNUSED, 3738s # const gchar *object_path G_GNUC_UNUSED, 3738s # const gchar *interface_name G_GNUC_UNUSED, 3738s # const gchar *property_name, 3738s # GVariant *variant, 3738s # GError **error, 3738s # gpointer user_data) 3738s # { 3738s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 3738s # GValue value = G_VALUE_INIT; 3738s # GParamSpec *pspec; 3738s # _ExtendedGDBusPropertyInfo *info; 3738s # gboolean ret; 3738s # ret = FALSE; 3738s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 3738s # g_assert (info != NULL); 3738s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3738s # if (pspec == NULL) 3738s # { 3738s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3738s # } 3738s # else 3738s # { 3738s # if (info->use_gvariant) 3738s # g_value_set_variant (&value, variant); 3738s # else 3738s # g_dbus_gvariant_to_gvalue (variant, &value); 3738s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3738s # g_value_unset (&value); 3738s # ret = TRUE; 3738s # } 3738s # return ret; 3738s # } 3738s # 3738s # static const GDBusInterfaceVTable _com_acme_coyote_skeleton_vtable = 3738s # { 3738s # _com_acme_coyote_skeleton_handle_method_call, 3738s # _com_acme_coyote_skeleton_handle_get_property, 3738s # _com_acme_coyote_skeleton_handle_set_property, 3738s # {NULL} 3738s # }; 3738s # 3738s # static GDBusInterfaceInfo * 3738s # com_acme_coyote_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3738s # { 3738s # return com_acme_coyote_interface_info (); 3738s # } 3738s # 3738s # static GDBusInterfaceVTable * 3738s # com_acme_coyote_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3738s # { 3738s # return (GDBusInterfaceVTable *) &_com_acme_coyote_skeleton_vtable; 3738s # } 3738s # 3738s # static GVariant * 3738s # com_acme_coyote_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3738s # { 3738s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 3738s # 3738s # GVariantBuilder builder; 3738s # guint n; 3738s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3738s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3738s # #else 3738s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3738s # #endif 3738s # if (_com_acme_coyote_interface_info.parent_struct.properties == NULL) 3738s # goto out; 3738s # for (n = 0; _com_acme_coyote_interface_info.parent_struct.properties[n] != NULL; n++) 3738s # { 3738s # GDBusPropertyInfo *info = _com_acme_coyote_interface_info.parent_struct.properties[n]; 3738s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3738s # { 3738s # GVariant *value; 3738s # 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); 3738s # if (value != NULL) 3738s # { 3738s # g_variant_take_ref (value); 3738s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3738s # g_variant_unref (value); 3738s # } 3738s # } 3738s # } 3738s # out: 3738s # return g_variant_builder_end (&builder); 3738s # } 3738s # 3738s # static gboolean _com_acme_coyote_emit_changed (gpointer user_data); 3738s # 3738s # static void 3738s # com_acme_coyote_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 3738s # { 3738s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 3738s # gboolean emit_changed = FALSE; 3738s # 3738s # g_mutex_lock (&skeleton->priv->lock); 3738s # if (skeleton->priv->changed_properties_idle_source != NULL) 3738s # { 3738s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3738s # skeleton->priv->changed_properties_idle_source = NULL; 3738s # emit_changed = TRUE; 3738s # } 3738s # g_mutex_unlock (&skeleton->priv->lock); 3738s # 3738s # if (emit_changed) 3738s # _com_acme_coyote_emit_changed (skeleton); 3738s # } 3738s # 3738s # static void 3738s # _com_acme_coyote_on_signal_surprised ( 3738s # ComAcmeCoyote *object) 3738s # { 3738s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 3738s # 3738s # GList *connections, *l; 3738s # GVariant *signal_variant; 3738s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3738s # 3738s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 3738s # for (l = connections; l != NULL; l = l->next) 3738s # { 3738s # GDBusConnection *connection = l->data; 3738s # g_dbus_connection_emit_signal (connection, 3738s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.acme.Coyote", "Surprised", 3738s # signal_variant, NULL); 3738s # } 3738s # g_variant_unref (signal_variant); 3738s # g_list_free_full (connections, g_object_unref); 3738s # } 3738s # 3738s # static void com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface); 3738s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3738s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3738s # G_ADD_PRIVATE (ComAcmeCoyoteSkeleton) 3738s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 3738s # 3738s # #else 3738s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3738s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 3738s # 3738s # #endif 3738s # static void 3738s # com_acme_coyote_skeleton_finalize (GObject *object) 3738s # { 3738s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 3738s # guint n; 3738s # for (n = 0; n < 1; n++) 3738s # g_value_unset (&skeleton->priv->properties[n]); 3738s # g_free (skeleton->priv->properties); 3738s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3738s # if (skeleton->priv->changed_properties_idle_source != NULL) 3738s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3738s # g_main_context_unref (skeleton->priv->context); 3738s # g_mutex_clear (&skeleton->priv->lock); 3738s # G_OBJECT_CLASS (com_acme_coyote_skeleton_parent_class)->finalize (object); 3738s # } 3738s # 3738s # static void 3738s # com_acme_coyote_skeleton_get_property (GObject *object, 3738s # guint prop_id, 3738s # GValue *value, 3738s # GParamSpec *pspec G_GNUC_UNUSED) 3738s # { 3738s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 3738s # g_assert (prop_id != 0 && prop_id - 1 < 1); 3738s # g_mutex_lock (&skeleton->priv->lock); 3738s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 3738s # g_mutex_unlock (&skeleton->priv->lock); 3738s # } 3738s # 3738s # static gboolean 3738s # _com_acme_coyote_emit_changed (gpointer user_data) 3738s # { 3738s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 3738s # GList *l; 3738s # GVariantBuilder builder; 3738s # GVariantBuilder invalidated_builder; 3738s # guint num_changes; 3738s # 3738s # g_mutex_lock (&skeleton->priv->lock); 3738s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3738s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3738s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 3738s # #else 3738s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 3738s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 3738s # #endif 3738s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 3738s # { 3738s # ChangedProperty *cp = l->data; 3738s # GVariant *variant; 3738s # const GValue *cur_value; 3738s # 3738s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 3738s # if (!_g_value_equal (cur_value, &cp->orig_value)) 3738s # { 3738s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 3738s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 3738s # g_variant_unref (variant); 3738s # num_changes++; 3738s # } 3738s # } 3738s # if (num_changes > 0) 3738s # { 3738s # GList *connections, *ll; 3738s # GVariant *signal_variant; 3738s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "com.acme.Coyote", 3738s # &builder, &invalidated_builder)); 3738s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 3738s # for (ll = connections; ll != NULL; ll = ll->next) 3738s # { 3738s # GDBusConnection *connection = ll->data; 3738s # 3738s # g_dbus_connection_emit_signal (connection, 3738s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 3738s # "org.freedesktop.DBus.Properties", 3738s # "PropertiesChanged", 3738s # signal_variant, 3738s # NULL); 3738s # } 3738s # g_variant_unref (signal_variant); 3738s # g_list_free_full (connections, g_object_unref); 3738s # } 3738s # else 3738s # { 3738s # g_variant_builder_clear (&builder); 3738s # g_variant_builder_clear (&invalidated_builder); 3738s # } 3738s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3738s # skeleton->priv->changed_properties = NULL; 3738s # skeleton->priv->changed_properties_idle_source = NULL; 3738s # g_mutex_unlock (&skeleton->priv->lock); 3738s # return FALSE; 3738s # } 3738s # 3738s # static void 3738s # _com_acme_coyote_schedule_emit_changed (ComAcmeCoyoteSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 3738s # { 3738s # ChangedProperty *cp; 3738s # GList *l; 3738s # cp = NULL; 3738s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 3738s # { 3738s # ChangedProperty *i_cp = l->data; 3738s # if (i_cp->info == info) 3738s # { 3738s # cp = i_cp; 3738s # break; 3738s # } 3738s # } 3738s # if (cp == NULL) 3738s # { 3738s # cp = g_new0 (ChangedProperty, 1); 3738s # cp->prop_id = prop_id; 3738s # cp->info = info; 3738s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 3738s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 3738s # g_value_copy (orig_value, &cp->orig_value); 3738s # } 3738s # } 3738s # 3738s # static void 3738s # com_acme_coyote_skeleton_notify (GObject *object, 3738s # GParamSpec *pspec G_GNUC_UNUSED) 3738s # { 3738s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 3738s # g_mutex_lock (&skeleton->priv->lock); 3738s # if (skeleton->priv->changed_properties != NULL && 3738s # skeleton->priv->changed_properties_idle_source == NULL) 3738s # { 3738s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 3738s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 3738s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _com_acme_coyote_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 3738s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _com_acme_coyote_emit_changed"); 3738s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 3738s # g_source_unref (skeleton->priv->changed_properties_idle_source); 3738s # } 3738s # g_mutex_unlock (&skeleton->priv->lock); 3738s # } 3738s # 3738s # static void 3738s # com_acme_coyote_skeleton_set_property (GObject *object, 3738s # guint prop_id, 3738s # const GValue *value, 3738s # GParamSpec *pspec) 3738s # { 3738s # const _ExtendedGDBusPropertyInfo *info; 3738s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 3738s # g_assert (prop_id != 0 && prop_id - 1 < 1); 3738s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 3738s # g_mutex_lock (&skeleton->priv->lock); 3738s # g_object_freeze_notify (object); 3738s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 3738s # { 3738s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 3738s # info->emits_changed_signal) 3738s # _com_acme_coyote_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 3738s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 3738s # g_object_notify_by_pspec (object, pspec); 3738s # } 3738s # g_mutex_unlock (&skeleton->priv->lock); 3738s # g_object_thaw_notify (object); 3738s # } 3738s # 3738s # static void 3738s # com_acme_coyote_skeleton_init (ComAcmeCoyoteSkeleton *skeleton) 3738s # { 3738s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3738s # skeleton->priv = com_acme_coyote_skeleton_get_instance_private (skeleton); 3738s # #else 3738s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonPrivate); 3738s # #endif 3738s # 3738s # g_mutex_init (&skeleton->priv->lock); 3738s # skeleton->priv->context = g_main_context_ref_thread_default (); 3738s # skeleton->priv->properties = g_new0 (GValue, 1); 3738s # g_value_init (&skeleton->priv->properties[0], G_TYPE_STRING); 3738s # } 3738s # 3738s # static const gchar * 3738s # com_acme_coyote_skeleton_get_mood (ComAcmeCoyote *object) 3738s # { 3738s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 3738s # const gchar *value; 3738s # g_mutex_lock (&skeleton->priv->lock); 3738s # value = g_marshal_value_peek_string (&(skeleton->priv->properties[0])); 3738s # g_mutex_unlock (&skeleton->priv->lock); 3738s # return value; 3738s # } 3738s # 3738s # static void 3738s # com_acme_coyote_skeleton_class_init (ComAcmeCoyoteSkeletonClass *klass) 3738s # { 3738s # GObjectClass *gobject_class; 3738s # GDBusInterfaceSkeletonClass *skeleton_class; 3738s # 3738s # gobject_class = G_OBJECT_CLASS (klass); 3738s # gobject_class->finalize = com_acme_coyote_skeleton_finalize; 3738s # gobject_class->get_property = com_acme_coyote_skeleton_get_property; 3738s # gobject_class->set_property = com_acme_coyote_skeleton_set_property; 3738s # gobject_class->notify = com_acme_coyote_skeleton_notify; 3738s # 3738s # 3738s # com_acme_coyote_override_properties (gobject_class, 1); 3738s # 3738s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3738s # skeleton_class->get_info = com_acme_coyote_skeleton_dbus_interface_get_info; 3738s # skeleton_class->get_properties = com_acme_coyote_skeleton_dbus_interface_get_properties; 3738s # skeleton_class->flush = com_acme_coyote_skeleton_dbus_interface_flush; 3738s # skeleton_class->get_vtable = com_acme_coyote_skeleton_dbus_interface_get_vtable; 3738s # 3738s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3738s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteSkeletonPrivate)); 3738s # #endif 3738s # } 3738s # 3738s # static void 3738s # com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface) 3738s # { 3738s # iface->surprised = _com_acme_coyote_on_signal_surprised; 3738s # iface->get_mood = com_acme_coyote_skeleton_get_mood; 3738s # } 3738s # 3738s # /** 3738s # * com_acme_coyote_skeleton_new: 3738s # * 3738s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-com-acme-Coyote.top_of_page">com.acme.Coyote</link>. 3738s # * 3738s # * Returns: (transfer full) (type ComAcmeCoyoteSkeleton): The skeleton object. 3738s # */ 3738s # ComAcmeCoyote * 3738s # com_acme_coyote_skeleton_new (void) 3738s # { 3738s # return COM_ACME_COYOTE (g_object_new (TYPE_COM_ACME_COYOTE_SKELETON, NULL)); 3738s # } 3738s # 3738s # /* ------------------------------------------------------------------------ 3738s # * Code for interface org.project.Bar.Frobnicator 3738s # * ------------------------------------------------------------------------ 3738s # */ 3738s # 3738s # /** 3738s # * SECTION:OrgProjectBarFrobnicator 3738s # * @title: OrgProjectBarFrobnicator 3738s # * @short_description: Generated C code for the org.project.Bar.Frobnicator D-Bus interface 3738s # * 3738s # * This section contains code for working with the <link linkend="gdbus-interface-org-project-Bar-Frobnicator.top_of_page">org.project.Bar.Frobnicator</link> D-Bus interface in C. 3738s # */ 3738s # 3738s # /* ---- Introspection data for org.project.Bar.Frobnicator ---- */ 3738s # 3738s # static const _ExtendedGDBusMethodInfo _org_project_bar_frobnicator_method_info_random_method = 3738s # { 3738s # { 3738s # -1, 3738s # (gchar *) "RandomMethod", 3738s # NULL, 3738s # NULL, 3738s # NULL 3738s # }, 3738s # "handle-random-method", 3738s # FALSE 3738s # }; 3738s # 3738s # static const GDBusMethodInfo * const _org_project_bar_frobnicator_method_info_pointers[] = 3738s # { 3738s # &_org_project_bar_frobnicator_method_info_random_method.parent_struct, 3738s # NULL 3738s # }; 3738s # 3738s # static const _ExtendedGDBusInterfaceInfo _org_project_bar_frobnicator_interface_info = 3738s # { 3738s # { 3738s # -1, 3738s # (gchar *) "org.project.Bar.Frobnicator", 3738s # (GDBusMethodInfo **) &_org_project_bar_frobnicator_method_info_pointers, 3738s # NULL, 3738s # NULL, 3738s # NULL 3738s # }, 3738s # "org-project-bar-frobnicator", 3738s # }; 3738s # 3738s # 3738s # /** 3738s # * org_project_bar_frobnicator_interface_info: 3738s # * 3738s # * Gets a machine-readable description of the <link linkend="gdbus-interface-org-project-Bar-Frobnicator.top_of_page">org.project.Bar.Frobnicator</link> D-Bus interface. 3738s # * 3738s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 3738s # */ 3738s # GDBusInterfaceInfo * 3738s # org_project_bar_frobnicator_interface_info (void) 3738s # { 3738s # return (GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct; 3738s # } 3738s # 3738s # /** 3738s # * org_project_bar_frobnicator_override_properties: 3738s # * @klass: The class structure for a #GObject derived class. 3738s # * @property_id_begin: The property id to assign to the first overridden property. 3738s # * 3738s # * Overrides all #GObject properties in the #OrgProjectBarFrobnicator interface for a concrete class. 3738s # * The properties are overridden in the order they are defined. 3738s # * 3738s # * Returns: The last property id. 3738s # */ 3738s # guint 3738s # org_project_bar_frobnicator_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 3738s # { 3738s # return property_id_begin - 1; 3738s # } 3738s # 3738s # 3738s # inline static void 3738s # org_project_bar_frobnicator_method_marshal_random_method ( 3738s # GClosure *closure, 3738s # GValue *return_value, 3738s # unsigned int n_param_values, 3738s # const GValue *param_values, 3738s # void *invocation_hint, 3738s # void *marshal_data) 3738s # { 3738s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 3738s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 3738s # } 3738s # 3738s # 3738s # /** 3738s # * OrgProjectBarFrobnicator: 3738s # * 3738s # * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-project-Bar-Frobnicator.top_of_page">org.project.Bar.Frobnicator</link>. 3738s # */ 3738s # 3738s # /** 3738s # * OrgProjectBarFrobnicatorIface: 3738s # * @parent_iface: The parent interface. 3738s # * @handle_random_method: Handler for the #OrgProjectBarFrobnicator::handle-random-method signal. 3738s # * 3738s # * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-project-Bar-Frobnicator.top_of_page">org.project.Bar.Frobnicator</link>. 3738s # */ 3738s # 3738s # typedef OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorInterface; 3738s # G_DEFINE_INTERFACE (OrgProjectBarFrobnicator, org_project_bar_frobnicator, G_TYPE_OBJECT) 3738s # 3738s # static void 3738s # org_project_bar_frobnicator_default_init (OrgProjectBarFrobnicatorIface *iface) 3738s # { 3738s # /* GObject signals for incoming D-Bus method calls: */ 3738s # /** 3738s # * OrgProjectBarFrobnicator::handle-random-method: 3738s # * @object: A #OrgProjectBarFrobnicator. 3738s # * @invocation: A #GDBusMethodInvocation. 3738s # * 3738s # * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-project-Bar-Frobnicator.RandomMethod">RandomMethod()</link> D-Bus method. 3738s # * 3738s # * 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. 3738s # * 3738s # * 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. 3738s # */ 3738s # g_signal_new ("handle-random-method", 3738s # G_TYPE_FROM_INTERFACE (iface), 3738s # G_SIGNAL_RUN_LAST, 3738s # G_STRUCT_OFFSET (OrgProjectBarFrobnicatorIface, handle_random_method), 3738s # g_signal_accumulator_true_handled, 3738s # NULL, 3738s # org_project_bar_frobnicator_method_marshal_random_method, 3738s # G_TYPE_BOOLEAN, 3738s # 1, 3738s # G_TYPE_DBUS_METHOD_INVOCATION); 3738s # 3738s # } 3738s # 3738s # /** 3738s # * org_project_bar_frobnicator_call_random_method: 3738s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 3738s # * @cancellable: (nullable): A #GCancellable or %NULL. 3738s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 3738s # * @user_data: User data to pass to @callback. 3738s # * 3738s # * Asynchronously invokes the <link linkend="gdbus-method-org-project-Bar-Frobnicator.RandomMethod">RandomMethod()</link> D-Bus method on @proxy. 3738s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3738s # * You can then call org_project_bar_frobnicator_call_random_method_finish() to get the result of the operation. 3738s # * 3738s # * See org_project_bar_frobnicator_call_random_method_sync() for the synchronous, blocking version of this method. 3738s # */ 3738s # void 3738s # org_project_bar_frobnicator_call_random_method ( 3738s # OrgProjectBarFrobnicator *proxy, 3738s # GCancellable *cancellable, 3738s # GAsyncReadyCallback callback, 3738s # gpointer user_data) 3738s # { 3738s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 3738s # "RandomMethod", 3738s # g_variant_new ("()"), 3738s # G_DBUS_CALL_FLAGS_NONE, 3738s # -1, 3738s # cancellable, 3738s # callback, 3738s # user_data); 3738s # } 3738s # 3738s # /** 3738s # * org_project_bar_frobnicator_call_random_method_finish: 3738s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 3738s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_call_random_method(). 3738s # * @error: Return location for error or %NULL. 3738s # * 3738s # * Finishes an operation started with org_project_bar_frobnicator_call_random_method(). 3738s # * 3738s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3738s # */ 3738s # gboolean 3738s # org_project_bar_frobnicator_call_random_method_finish ( 3738s # OrgProjectBarFrobnicator *proxy, 3738s # GAsyncResult *res, 3738s # GError **error) 3738s # { 3738s # GVariant *_ret; 3738s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 3738s # if (_ret == NULL) 3738s # goto _out; 3738s # g_variant_get (_ret, 3738s # "()"); 3738s # g_variant_unref (_ret); 3738s # _out: 3738s # return _ret != NULL; 3738s # } 3738s # 3738s # /** 3738s # * org_project_bar_frobnicator_call_random_method_sync: 3738s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 3738s # * @cancellable: (nullable): A #GCancellable or %NULL. 3738s # * @error: Return location for error or %NULL. 3738s # * 3738s # * Synchronously invokes the <link linkend="gdbus-method-org-project-Bar-Frobnicator.RandomMethod">RandomMethod()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received. 3738s # * 3738s # * See org_project_bar_frobnicator_call_random_method() for the asynchronous version of this method. 3738s # * 3738s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 3738s # */ 3738s # gboolean 3738s # org_project_bar_frobnicator_call_random_method_sync ( 3738s # OrgProjectBarFrobnicator *proxy, 3738s # GCancellable *cancellable, 3738s # GError **error) 3738s # { 3738s # GVariant *_ret; 3738s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 3738s # "RandomMethod", 3738s # g_variant_new ("()"), 3738s # G_DBUS_CALL_FLAGS_NONE, 3738s # -1, 3738s # cancellable, 3738s # error); 3738s # if (_ret == NULL) 3738s # goto _out; 3738s # g_variant_get (_ret, 3738s # "()"); 3738s # g_variant_unref (_ret); 3738s # _out: 3738s # return _ret != NULL; 3738s # } 3738s # 3738s # /** 3738s # * org_project_bar_frobnicator_complete_random_method: 3738s # * @object: A #OrgProjectBarFrobnicator. 3738s # * @invocation: (transfer full): A #GDBusMethodInvocation. 3738s # * 3738s # * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-project-Bar-Frobnicator.RandomMethod">RandomMethod()</link> 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. 3738s # * 3738s # * This method will free @invocation, you cannot use it afterwards. 3738s # */ 3738s # void 3738s # org_project_bar_frobnicator_complete_random_method ( 3738s # OrgProjectBarFrobnicator *object G_GNUC_UNUSED, 3738s # GDBusMethodInvocation *invocation) 3738s # { 3738s # g_dbus_method_invocation_return_value (invocation, 3738s # g_variant_new ("()")); 3738s # } 3738s # 3738s # /* ------------------------------------------------------------------------ */ 3738s # 3738s # /** 3738s # * OrgProjectBarFrobnicatorProxy: 3738s # * 3738s # * The #OrgProjectBarFrobnicatorProxy structure contains only private data and should only be accessed using the provided API. 3738s # */ 3738s # 3738s # /** 3738s # * OrgProjectBarFrobnicatorProxyClass: 3738s # * @parent_class: The parent class. 3738s # * 3738s # * Class structure for #OrgProjectBarFrobnicatorProxy. 3738s # */ 3738s # 3738s # struct _OrgProjectBarFrobnicatorProxyPrivate 3738s # { 3738s # GData *qdata; 3738s # }; 3738s # 3738s # static void org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface); 3738s # 3738s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3738s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 3738s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorProxy) 3738s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 3738s # 3738s # #else 3738s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 3738s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 3738s # 3738s # #endif 3738s # static void 3738s # org_project_bar_frobnicator_proxy_finalize (GObject *object) 3738s # { 3738s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (object); 3738s # g_datalist_clear (&proxy->priv->qdata); 3738s # G_OBJECT_CLASS (org_project_bar_frobnicator_proxy_parent_class)->finalize (object); 3738s # } 3738s # 3738s # static void 3738s # org_project_bar_frobnicator_proxy_get_property (GObject *object G_GNUC_UNUSED, 3738s # guint prop_id G_GNUC_UNUSED, 3738s # GValue *value G_GNUC_UNUSED, 3738s # GParamSpec *pspec G_GNUC_UNUSED) 3738s # { 3738s # } 3738s # 3738s # static void 3738s # org_project_bar_frobnicator_proxy_set_property (GObject *object G_GNUC_UNUSED, 3738s # guint prop_id G_GNUC_UNUSED, 3738s # const GValue *value G_GNUC_UNUSED, 3738s # GParamSpec *pspec G_GNUC_UNUSED) 3738s # { 3738s # } 3738s # 3738s # static void 3738s # org_project_bar_frobnicator_proxy_g_signal (GDBusProxy *proxy, 3738s # const gchar *sender_name G_GNUC_UNUSED, 3738s # const gchar *signal_name, 3738s # GVariant *parameters) 3738s # { 3738s # _ExtendedGDBusSignalInfo *info; 3738s # GVariantIter iter; 3738s # GVariant *child; 3738s # GValue *paramv; 3738s # gsize num_params; 3738s # gsize n; 3738s # guint signal_id; 3738s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, signal_name); 3738s # if (info == NULL) 3738s # return; 3738s # num_params = g_variant_n_children (parameters); 3738s # paramv = g_new0 (GValue, num_params + 1); 3738s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 3738s # g_value_set_object (¶mv[0], proxy); 3738s # g_variant_iter_init (&iter, parameters); 3738s # n = 1; 3738s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3738s # { 3738s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 3738s # if (arg_info->use_gvariant) 3738s # { 3738s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3738s # g_value_set_variant (¶mv[n], child); 3738s # n++; 3738s # } 3738s # else 3738s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3738s # g_variant_unref (child); 3738s # } 3738s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 3738s # g_signal_emitv (paramv, signal_id, 0, NULL); 3738s # for (n = 0; n < num_params + 1; n++) 3738s # g_value_unset (¶mv[n]); 3738s # g_free (paramv); 3738s # } 3738s # 3738s # static void 3738s # org_project_bar_frobnicator_proxy_g_properties_changed (GDBusProxy *_proxy, 3738s # GVariant *changed_properties, 3738s # const gchar *const *invalidated_properties) 3738s # { 3738s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (_proxy); 3738s # guint n; 3738s # const gchar *key; 3738s # GVariantIter *iter; 3738s # _ExtendedGDBusPropertyInfo *info; 3738s # g_variant_get (changed_properties, "a{sv}", &iter); 3738s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 3738s # { 3738s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, key); 3738s # g_datalist_remove_data (&proxy->priv->qdata, key); 3738s # if (info != NULL) 3738s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3738s # } 3738s # g_variant_iter_free (iter); 3738s # for (n = 0; invalidated_properties[n] != NULL; n++) 3738s # { 3738s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, invalidated_properties[n]); 3738s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 3738s # if (info != NULL) 3738s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 3738s # } 3738s # } 3738s # 3738s # static void 3738s # org_project_bar_frobnicator_proxy_init (OrgProjectBarFrobnicatorProxy *proxy) 3738s # { 3738s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3738s # proxy->priv = org_project_bar_frobnicator_proxy_get_instance_private (proxy); 3738s # #else 3738s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyPrivate); 3738s # #endif 3738s # 3738s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_bar_frobnicator_interface_info ()); 3738s # } 3738s # 3738s # static void 3738s # org_project_bar_frobnicator_proxy_class_init (OrgProjectBarFrobnicatorProxyClass *klass) 3738s # { 3738s # GObjectClass *gobject_class; 3738s # GDBusProxyClass *proxy_class; 3738s # 3738s # gobject_class = G_OBJECT_CLASS (klass); 3738s # gobject_class->finalize = org_project_bar_frobnicator_proxy_finalize; 3738s # gobject_class->get_property = org_project_bar_frobnicator_proxy_get_property; 3738s # gobject_class->set_property = org_project_bar_frobnicator_proxy_set_property; 3738s # 3738s # proxy_class = G_DBUS_PROXY_CLASS (klass); 3738s # proxy_class->g_signal = org_project_bar_frobnicator_proxy_g_signal; 3738s # proxy_class->g_properties_changed = org_project_bar_frobnicator_proxy_g_properties_changed; 3738s # 3738s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3738s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorProxyPrivate)); 3738s # #endif 3738s # } 3738s # 3738s # static void 3738s # org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 3738s # { 3738s # } 3738s # 3738s # /** 3738s # * org_project_bar_frobnicator_proxy_new: 3738s # * @connection: A #GDBusConnection. 3738s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3738s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3738s # * @object_path: An object path. 3738s # * @cancellable: (nullable): A #GCancellable or %NULL. 3738s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3738s # * @user_data: User data to pass to @callback. 3738s # * 3738s # * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-Bar-Frobnicator.top_of_page">org.project.Bar.Frobnicator</link>. See g_dbus_proxy_new() for more details. 3738s # * 3738s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3738s # * You can then call org_project_bar_frobnicator_proxy_new_finish() to get the result of the operation. 3738s # * 3738s # * See org_project_bar_frobnicator_proxy_new_sync() for the synchronous, blocking version of this constructor. 3738s # */ 3738s # void 3738s # org_project_bar_frobnicator_proxy_new ( 3738s # GDBusConnection *connection, 3738s # GDBusProxyFlags flags, 3738s # const gchar *name, 3738s # const gchar *object_path, 3738s # GCancellable *cancellable, 3738s # GAsyncReadyCallback callback, 3738s # gpointer user_data) 3738s # { 3738s # 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); 3738s # } 3738s # 3738s # /** 3738s # * org_project_bar_frobnicator_proxy_new_finish: 3738s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new(). 3738s # * @error: Return location for error or %NULL 3738s # * 3738s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new(). 3738s # * 3738s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 3738s # */ 3738s # OrgProjectBarFrobnicator * 3738s # org_project_bar_frobnicator_proxy_new_finish ( 3738s # GAsyncResult *res, 3738s # GError **error) 3738s # { 3738s # GObject *ret; 3738s # GObject *source_object; 3738s # source_object = g_async_result_get_source_object (res); 3738s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3738s # g_object_unref (source_object); 3738s # if (ret != NULL) 3738s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 3738s # else 3738s # return NULL; 3738s # } 3738s # 3738s # /** 3738s # * org_project_bar_frobnicator_proxy_new_sync: 3738s # * @connection: A #GDBusConnection. 3738s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3738s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 3738s # * @object_path: An object path. 3738s # * @cancellable: (nullable): A #GCancellable or %NULL. 3738s # * @error: Return location for error or %NULL 3738s # * 3738s # * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-project-Bar-Frobnicator.top_of_page">org.project.Bar.Frobnicator</link>. See g_dbus_proxy_new_sync() for more details. 3738s # * 3738s # * The calling thread is blocked until a reply is received. 3738s # * 3738s # * See org_project_bar_frobnicator_proxy_new() for the asynchronous version of this constructor. 3738s # * 3738s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 3738s # */ 3738s # OrgProjectBarFrobnicator * 3738s # org_project_bar_frobnicator_proxy_new_sync ( 3738s # GDBusConnection *connection, 3738s # GDBusProxyFlags flags, 3738s # const gchar *name, 3738s # const gchar *object_path, 3738s # GCancellable *cancellable, 3738s # GError **error) 3738s # { 3738s # GInitable *ret; 3738s # 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); 3738s # if (ret != NULL) 3738s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 3738s # else 3738s # return NULL; 3738s # } 3738s # 3738s # 3738s # /** 3738s # * org_project_bar_frobnicator_proxy_new_for_bus: 3738s # * @bus_type: A #GBusType. 3738s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3738s # * @name: A bus name (well-known or unique). 3738s # * @object_path: An object path. 3738s # * @cancellable: (nullable): A #GCancellable or %NULL. 3738s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 3738s # * @user_data: User data to pass to @callback. 3738s # * 3738s # * Like org_project_bar_frobnicator_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 3738s # * 3738s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 3738s # * You can then call org_project_bar_frobnicator_proxy_new_for_bus_finish() to get the result of the operation. 3738s # * 3738s # * See org_project_bar_frobnicator_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 3738s # */ 3738s # void 3738s # org_project_bar_frobnicator_proxy_new_for_bus ( 3738s # GBusType bus_type, 3738s # GDBusProxyFlags flags, 3738s # const gchar *name, 3738s # const gchar *object_path, 3738s # GCancellable *cancellable, 3738s # GAsyncReadyCallback callback, 3738s # gpointer user_data) 3738s # { 3738s # 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); 3738s # } 3738s # 3738s # /** 3738s # * org_project_bar_frobnicator_proxy_new_for_bus_finish: 3738s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new_for_bus(). 3738s # * @error: Return location for error or %NULL 3738s # * 3738s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new_for_bus(). 3738s # * 3738s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 3738s # */ 3738s # OrgProjectBarFrobnicator * 3738s # org_project_bar_frobnicator_proxy_new_for_bus_finish ( 3738s # GAsyncResult *res, 3738s # GError **error) 3738s # { 3738s # GObject *ret; 3738s # GObject *source_object; 3738s # source_object = g_async_result_get_source_object (res); 3738s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 3738s # g_object_unref (source_object); 3738s # if (ret != NULL) 3738s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 3738s # else 3738s # return NULL; 3738s # } 3738s # 3738s # /** 3738s # * org_project_bar_frobnicator_proxy_new_for_bus_sync: 3738s # * @bus_type: A #GBusType. 3738s # * @flags: Flags from the #GDBusProxyFlags enumeration. 3738s # * @name: A bus name (well-known or unique). 3738s # * @object_path: An object path. 3738s # * @cancellable: (nullable): A #GCancellable or %NULL. 3738s # * @error: Return location for error or %NULL 3738s # * 3738s # * Like org_project_bar_frobnicator_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 3738s # * 3738s # * The calling thread is blocked until a reply is received. 3738s # * 3738s # * See org_project_bar_frobnicator_proxy_new_for_bus() for the asynchronous version of this constructor. 3738s # * 3738s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 3738s # */ 3738s # OrgProjectBarFrobnicator * 3738s # org_project_bar_frobnicator_proxy_new_for_bus_sync ( 3738s # GBusType bus_type, 3738s # GDBusProxyFlags flags, 3738s # const gchar *name, 3738s # const gchar *object_path, 3738s # GCancellable *cancellable, 3738s # GError **error) 3738s # { 3738s # GInitable *ret; 3738s # 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); 3738s # if (ret != NULL) 3738s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 3738s # else 3738s # return NULL; 3738s # } 3738s # 3738s # 3738s # /* ------------------------------------------------------------------------ */ 3738s # 3738s # /** 3738s # * OrgProjectBarFrobnicatorSkeleton: 3738s # * 3738s # * The #OrgProjectBarFrobnicatorSkeleton structure contains only private data and should only be accessed using the provided API. 3738s # */ 3738s # 3738s # /** 3738s # * OrgProjectBarFrobnicatorSkeletonClass: 3738s # * @parent_class: The parent class. 3738s # * 3738s # * Class structure for #OrgProjectBarFrobnicatorSkeleton. 3738s # */ 3738s # 3738s # struct _OrgProjectBarFrobnicatorSkeletonPrivate 3738s # { 3738s # GValue *properties; 3738s # GList *changed_properties; 3738s # GSource *changed_properties_idle_source; 3738s # GMainContext *context; 3738s # GMutex lock; 3738s # }; 3738s # 3738s # static void 3738s # _org_project_bar_frobnicator_skeleton_handle_method_call ( 3738s # GDBusConnection *connection G_GNUC_UNUSED, 3738s # const gchar *sender G_GNUC_UNUSED, 3738s # const gchar *object_path G_GNUC_UNUSED, 3738s # const gchar *interface_name, 3738s # const gchar *method_name, 3738s # GVariant *parameters, 3738s # GDBusMethodInvocation *invocation, 3738s # gpointer user_data) 3738s # { 3738s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 3738s # _ExtendedGDBusMethodInfo *info; 3738s # GVariantIter iter; 3738s # GVariant *child; 3738s # GValue *paramv; 3738s # gsize num_params; 3738s # guint num_extra; 3738s # gsize n; 3738s # guint signal_id; 3738s # GValue return_value = G_VALUE_INIT; 3738s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 3738s # g_assert (info != NULL); 3738s # num_params = g_variant_n_children (parameters); 3738s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 3738s # n = 0; 3738s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 3738s # g_value_set_object (¶mv[n++], skeleton); 3738s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 3738s # g_value_set_object (¶mv[n++], invocation); 3738s # if (info->pass_fdlist) 3738s # { 3738s # #ifdef G_OS_UNIX 3738s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 3738s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 3738s # #else 3738s # g_assert_not_reached (); 3738s # #endif 3738s # } 3738s # g_variant_iter_init (&iter, parameters); 3738s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 3738s # { 3738s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 3738s # if (arg_info->use_gvariant) 3738s # { 3738s # g_value_init (¶mv[n], G_TYPE_VARIANT); 3738s # g_value_set_variant (¶mv[n], child); 3738s # n++; 3738s # } 3738s # else 3738s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 3738s # g_variant_unref (child); 3738s # } 3738s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 3738s # g_value_init (&return_value, G_TYPE_BOOLEAN); 3738s # g_signal_emitv (paramv, signal_id, 0, &return_value); 3738s # if (!g_value_get_boolean (&return_value)) 3738s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 3738s # g_value_unset (&return_value); 3738s # for (n = 0; n < num_params + num_extra; n++) 3738s # g_value_unset (¶mv[n]); 3738s # g_free (paramv); 3738s # } 3738s # 3738s # static GVariant * 3738s # _org_project_bar_frobnicator_skeleton_handle_get_property ( 3738s # GDBusConnection *connection G_GNUC_UNUSED, 3738s # const gchar *sender G_GNUC_UNUSED, 3738s # const gchar *object_path G_GNUC_UNUSED, 3738s # const gchar *interface_name G_GNUC_UNUSED, 3738s # const gchar *property_name, 3738s # GError **error, 3738s # gpointer user_data) 3738s # { 3738s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 3738s # GValue value = G_VALUE_INIT; 3738s # GParamSpec *pspec; 3738s # _ExtendedGDBusPropertyInfo *info; 3738s # GVariant *ret; 3738s # ret = NULL; 3738s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 3738s # g_assert (info != NULL); 3738s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3738s # if (pspec == NULL) 3738s # { 3738s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3738s # } 3738s # else 3738s # { 3738s # g_value_init (&value, pspec->value_type); 3738s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3738s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 3738s # g_value_unset (&value); 3738s # } 3738s # return ret; 3738s # } 3738s # 3738s # static gboolean 3738s # _org_project_bar_frobnicator_skeleton_handle_set_property ( 3738s # GDBusConnection *connection G_GNUC_UNUSED, 3738s # const gchar *sender G_GNUC_UNUSED, 3738s # const gchar *object_path G_GNUC_UNUSED, 3738s # const gchar *interface_name G_GNUC_UNUSED, 3738s # const gchar *property_name, 3738s # GVariant *variant, 3738s # GError **error, 3738s # gpointer user_data) 3738s # { 3738s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 3738s # GValue value = G_VALUE_INIT; 3738s # GParamSpec *pspec; 3738s # _ExtendedGDBusPropertyInfo *info; 3738s # gboolean ret; 3738s # ret = FALSE; 3738s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 3738s # g_assert (info != NULL); 3738s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 3738s # if (pspec == NULL) 3738s # { 3738s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 3738s # } 3738s # else 3738s # { 3738s # if (info->use_gvariant) 3738s # g_value_set_variant (&value, variant); 3738s # else 3738s # g_dbus_gvariant_to_gvalue (variant, &value); 3738s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 3738s # g_value_unset (&value); 3738s # ret = TRUE; 3738s # } 3738s # return ret; 3738s # } 3738s # 3738s # static const GDBusInterfaceVTable _org_project_bar_frobnicator_skeleton_vtable = 3738s # { 3738s # _org_project_bar_frobnicator_skeleton_handle_method_call, 3738s # _org_project_bar_frobnicator_skeleton_handle_get_property, 3738s # _org_project_bar_frobnicator_skeleton_handle_set_property, 3738s # {NULL} 3738s # }; 3738s # 3738s # static GDBusInterfaceInfo * 3738s # org_project_bar_frobnicator_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3738s # { 3738s # return org_project_bar_frobnicator_interface_info (); 3738s # } 3738s # 3738s # static GDBusInterfaceVTable * 3738s # org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 3738s # { 3738s # return (GDBusInterfaceVTable *) &_org_project_bar_frobnicator_skeleton_vtable; 3738s # } 3738s # 3738s # static GVariant * 3738s # org_project_bar_frobnicator_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 3738s # { 3738s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (_skeleton); 3738s # 3738s # GVariantBuilder builder; 3738s # guint n; 3738s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 3738s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 3738s # #else 3738s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 3738s # #endif 3738s # if (_org_project_bar_frobnicator_interface_info.parent_struct.properties == NULL) 3738s # goto out; 3738s # for (n = 0; _org_project_bar_frobnicator_interface_info.parent_struct.properties[n] != NULL; n++) 3738s # { 3738s # GDBusPropertyInfo *info = _org_project_bar_frobnicator_interface_info.parent_struct.properties[n]; 3738s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 3738s # { 3738s # GVariant *value; 3738s # 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); 3738s # if (value != NULL) 3738s # { 3738s # g_variant_take_ref (value); 3738s # g_variant_builder_add (&builder, "{sv}", info->name, value); 3738s # g_variant_unref (value); 3738s # } 3738s # } 3738s # } 3738s # out: 3738s # return g_variant_builder_end (&builder); 3738s # } 3738s # 3738s # static void 3738s # org_project_bar_frobnicator_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 3738s # { 3738s # } 3738s # 3738s # static void org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface); 3738s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3738s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3738s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorSkeleton) 3738s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 3738s # 3738s # #else 3738s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 3738s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 3738s # 3738s # #endif 3738s # static void 3738s # org_project_bar_frobnicator_skeleton_finalize (GObject *object) 3738s # { 3738s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (object); 3738s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 3738s # if (skeleton->priv->changed_properties_idle_source != NULL) 3738s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 3738s # g_main_context_unref (skeleton->priv->context); 3738s # g_mutex_clear (&skeleton->priv->lock); 3738s # G_OBJECT_CLASS (org_project_bar_frobnicator_skeleton_parent_class)->finalize (object); 3738s # } 3738s # 3738s # static void 3738s # org_project_bar_frobnicator_skeleton_init (OrgProjectBarFrobnicatorSkeleton *skeleton) 3738s # { 3738s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 3738s # skeleton->priv = org_project_bar_frobnicator_skeleton_get_instance_private (skeleton); 3738s # #else 3738s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonPrivate); 3738s # #endif 3738s # 3738s # g_mutex_init (&skeleton->priv->lock); 3738s # skeleton->priv->context = g_main_context_ref_thread_default (); 3738s # } 3738s # 3738s # static void 3738s # org_project_bar_frobnicator_skeleton_class_init (OrgProjectBarFrobnicatorSkeletonClass *klass) 3738s # { 3738s # GObjectClass *gobject_class; 3738s # GDBusInterfaceSkeletonClass *skeleton_class; 3738s # 3738s # gobject_class = G_OBJECT_CLASS (klass); 3738s # gobject_class->finalize = org_project_bar_frobnicator_skeleton_finalize; 3738s # 3738s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 3738s # skeleton_class->get_info = org_project_bar_frobnicator_skeleton_dbus_interface_get_info; 3738s # skeleton_class->get_properties = org_project_bar_frobnicator_skeleton_dbus_interface_get_properties; 3738s # skeleton_class->flush = org_project_bar_frobnicator_skeleton_dbus_interface_flush; 3738s # skeleton_class->get_vtable = org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable; 3738s # 3738s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 3738s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorSkeletonPrivate)); 3738s # #endif 3738s # } 3738s # 3738s # static void 3738s # org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 3738s # { 3738s # } 3738s # 3738s # /** 3738s # * org_project_bar_frobnicator_skeleton_new: 3738s # * 3738s # * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-project-Bar-Frobnicator.top_of_page">org.project.Bar.Frobnicator</link>. 3738s # * 3738s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorSkeleton): The skeleton object. 3738s # */ 3738s # OrgProjectBarFrobnicator * 3738s # org_project_bar_frobnicator_skeleton_new (void) 3738s # { 3738s # return ORG_PROJECT_BAR_FROBNICATOR (g_object_new (TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, NULL)); 3738s # } 3738s # Error: 3739s # Executing: glib/codegen.py.test 3740s ok 39 __main__.TestCodegen.test_unix_fd_types_and_annotations 3740s # gdbus-codegen: /usr/bin/gdbus-codegen 3740s # tmpdir: /tmp/tmp9okrbj8w 3740s # /tmp/tmp9okrbj8w/tmpviogmfgt.xml: 3740s # <node> 3740s # <interface name="FDPassing"> 3740s # <method name="HelloFD"> 3740s # <annotation name="org.gtk.GDBus.C.UnixFD" value="1"/> 3740s # <arg name="greeting" direction="in" type="s"/> 3740s # <arg name="response" direction="out" type="s"/> 3740s # </method> 3740s # <method name="NoAnnotation"> 3740s # <arg name="greeting" direction="in" type="h"/> 3740s # <arg name="greeting_locale" direction="in" type="s"/> 3740s # <arg name="response" direction="out" type="h"/> 3740s # <arg name="response_locale" direction="out" type="s"/> 3740s # </method> 3740s # <method name="NoAnnotationNested"> 3740s # <arg name="files" type="a{sh}" direction="in"/> 3740s # </method> 3740s # </interface> 3740s # </node> 3740s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9okrbj8w/tmpviogmfgt.xml', '--output', '-', '--header'] 3740s # Return code: 0 3740s # Output: 3740s # /* 3740s # * This file is generated by gdbus-codegen, do not modify it. 3740s # * 3740s # * The license of this code is the same as for the D-Bus interface description 3740s # * it was derived from. Note that it links to GLib, so must comply with the 3740s # * LGPL linking clauses. 3740s # */ 3740s # 3740s # #ifndef __STDOUT__ 3740s # #define __STDOUT__ 3740s # 3740s # #include <gio/gio.h> 3740s # 3740s # G_BEGIN_DECLS 3740s # 3740s # 3740s # /* ------------------------------------------------------------------------ */ 3740s # /* Declarations for FDPassing */ 3740s # 3740s # #define TYPE_FDPASSING (fdpassing_get_type ()) 3740s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 3740s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 3740s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 3740s # 3740s # struct _FDPassing; 3740s # typedef struct _FDPassing FDPassing; 3740s # typedef struct _FDPassingIface FDPassingIface; 3740s # 3740s # struct _FDPassingIface 3740s # { 3740s # GTypeInterface parent_iface; 3740s # 3740s # gboolean (*handle_hello_fd) ( 3740s # FDPassing *object, 3740s # GDBusMethodInvocation *invocation, 3740s # GUnixFDList *fd_list, 3740s # const gchar *arg_greeting); 3740s # 3740s # gboolean (*handle_no_annotation) ( 3740s # FDPassing *object, 3740s # GDBusMethodInvocation *invocation, 3740s # GVariant *arg_greeting, 3740s # const gchar *arg_greeting_locale); 3740s # 3740s # gboolean (*handle_no_annotation_nested) ( 3740s # FDPassing *object, 3740s # GDBusMethodInvocation *invocation, 3740s # GVariant *arg_files); 3740s # 3740s # }; 3740s # 3740s # GType fdpassing_get_type (void) G_GNUC_CONST; 3740s # 3740s # GDBusInterfaceInfo *fdpassing_interface_info (void); 3740s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 3740s # 3740s # 3740s # /* D-Bus method call completion functions: */ 3740s # void fdpassing_complete_hello_fd ( 3740s # FDPassing *object, 3740s # GDBusMethodInvocation *invocation, 3740s # GUnixFDList *fd_list, 3740s # const gchar *response); 3740s # 3740s # void fdpassing_complete_no_annotation ( 3740s # FDPassing *object, 3740s # GDBusMethodInvocation *invocation, 3740s # GVariant *response, 3740s # const gchar *response_locale); 3740s # 3740s # void fdpassing_complete_no_annotation_nested ( 3740s # FDPassing *object, 3740s # GDBusMethodInvocation *invocation); 3740s # 3740s # 3740s # 3740s # /* D-Bus method calls: */ 3740s # void fdpassing_call_hello_fd ( 3740s # FDPassing *proxy, 3740s # const gchar *arg_greeting, 3740s # GUnixFDList *fd_list, 3740s # GCancellable *cancellable, 3740s # GAsyncReadyCallback callback, 3740s # gpointer user_data); 3740s # 3740s # gboolean fdpassing_call_hello_fd_finish ( 3740s # FDPassing *proxy, 3740s # gchar **out_response, 3740s # GUnixFDList **out_fd_list, 3740s # GAsyncResult *res, 3740s # GError **error); 3740s # 3740s # gboolean fdpassing_call_hello_fd_sync ( 3740s # FDPassing *proxy, 3740s # const gchar *arg_greeting, 3740s # GUnixFDList *fd_list, 3740s # gchar **out_response, 3740s # GUnixFDList **out_fd_list, 3740s # GCancellable *cancellable, 3740s # GError **error); 3740s # 3740s # void fdpassing_call_no_annotation ( 3740s # FDPassing *proxy, 3740s # GVariant *arg_greeting, 3740s # const gchar *arg_greeting_locale, 3740s # GCancellable *cancellable, 3740s # GAsyncReadyCallback callback, 3740s # gpointer user_data); 3740s # 3740s # gboolean fdpassing_call_no_annotation_finish ( 3740s # FDPassing *proxy, 3740s # GVariant **out_response, 3740s # gchar **out_response_locale, 3740s # GAsyncResult *res, 3740s # GError **error); 3740s # 3740s # gboolean fdpassing_call_no_annotation_sync ( 3740s # FDPassing *proxy, 3740s # GVariant *arg_greeting, 3740s # const gchar *arg_greeting_locale, 3740s # GVariant **out_response, 3740s # gchar **out_response_locale, 3740s # GCancellable *cancellable, 3740s # GError **error); 3740s # 3740s # void fdpassing_call_no_annotation_nested ( 3740s # FDPassing *proxy, 3740s # GVariant *arg_files, 3740s # GCancellable *cancellable, 3740s # GAsyncReadyCallback callback, 3740s # gpointer user_data); 3740s # 3740s # gboolean fdpassing_call_no_annotation_nested_finish ( 3740s # FDPassing *proxy, 3740s # GAsyncResult *res, 3740s # GError **error); 3740s # 3740s # gboolean fdpassing_call_no_annotation_nested_sync ( 3740s # FDPassing *proxy, 3740s # GVariant *arg_files, 3740s # GCancellable *cancellable, 3740s # GError **error); 3740s # 3740s # 3740s # 3740s # /* ---- */ 3740s # 3740s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 3740s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 3740s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 3740s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 3740s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 3740s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 3740s # 3740s # typedef struct _FDPassingProxy FDPassingProxy; 3740s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 3740s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 3740s # 3740s # struct _FDPassingProxy 3740s # { 3740s # /*< private >*/ 3740s # GDBusProxy parent_instance; 3740s # FDPassingProxyPrivate *priv; 3740s # }; 3740s # 3740s # struct _FDPassingProxyClass 3740s # { 3740s # GDBusProxyClass parent_class; 3740s # }; 3740s # 3740s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 3740s # 3740s # #if GLIB_CHECK_VERSION(2, 44, 0) 3740s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 3740s # #endif 3740s # 3740s # void fdpassing_proxy_new ( 3740s # GDBusConnection *connection, 3740s # GDBusProxyFlags flags, 3740s # const gchar *name, 3740s # const gchar *object_path, 3740s # GCancellable *cancellable, 3740s # GAsyncReadyCallback callback, 3740s # gpointer user_data); 3740s # FDPassing *fdpassing_proxy_new_finish ( 3740s # GAsyncResult *res, 3740s # GError **error); 3740s # FDPassing *fdpassing_proxy_new_sync ( 3740s # GDBusConnection *connection, 3740s # GDBusProxyFlags flags, 3740s # const gchar *name, 3740s # const gchar *object_path, 3740s # GCancellable *cancellable, 3740s # GError **error); 3740s # 3740s # void fdpassing_proxy_new_for_bus ( 3740s # GBusType bus_type, 3740s # GDBusProxyFlags flags, 3740s # const gchar *name, 3740s # const gchar *object_path, 3740s # GCancellable *cancellable, 3740s # GAsyncReadyCallback callback, 3740s # gpointer user_data); 3740s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 3740s # GAsyncResult *res, 3740s # GError **error); 3740s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 3740s # GBusType bus_type, 3740s # GDBusProxyFlags flags, 3740s # const gchar *name, 3740s # const gchar *object_path, 3740s # GCancellable *cancellable, 3740s # GError **error); 3740s # 3740s # 3740s # /* ---- */ 3740s # 3740s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 3740s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 3740s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 3740s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 3740s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 3740s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 3740s # 3740s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 3740s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 3740s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 3740s # 3740s # struct _FDPassingSkeleton 3740s # { 3740s # /*< private >*/ 3740s # GDBusInterfaceSkeleton parent_instance; 3740s # FDPassingSkeletonPrivate *priv; 3740s # }; 3740s # 3740s # struct _FDPassingSkeletonClass 3740s # { 3740s # GDBusInterfaceSkeletonClass parent_class; 3740s # }; 3740s # 3740s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 3740s # 3740s # #if GLIB_CHECK_VERSION(2, 44, 0) 3740s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 3740s # #endif 3740s # 3740s # FDPassing *fdpassing_skeleton_new (void); 3740s # 3740s # 3740s # G_END_DECLS 3740s # 3740s # #endif /* __STDOUT__ */ 3740s # Error: 3740s # 3740s # /tmp/tmp9okrbj8w/tmpsq3zovkg.xml: 3740s # <node> 3740s # <interface name="FDPassing"> 3740s # <method name="HelloFD"> 3740s # <annotation name="org.gtk.GDBus.C.UnixFD" value="1"/> 3740s # <arg name="greeting" direction="in" type="s"/> 3740s # <arg name="response" direction="out" type="s"/> 3740s # </method> 3740s # <method name="NoAnnotation"> 3740s # <arg name="greeting" direction="in" type="h"/> 3740s # <arg name="greeting_locale" direction="in" type="s"/> 3740s # <arg name="response" direction="out" type="h"/> 3740s # <arg name="response_locale" direction="out" type="s"/> 3740s # </method> 3740s # <method name="NoAnnotationNested"> 3740s # <arg name="files" type="a{sh}" direction="in"/> 3740s # </method> 3740s # </interface> 3740s # </node> 3740s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9okrbj8w/tmpsq3zovkg.xml', '--output', '-', '--header', '--glib-min-required', '2.32'] 3740s # Return code: 0 3740s # Output: 3740s # /* 3740s # * This file is generated by gdbus-codegen, do not modify it. 3740s # * 3740s # * The license of this code is the same as for the D-Bus interface description 3740s # * it was derived from. Note that it links to GLib, so must comply with the 3740s # * LGPL linking clauses. 3740s # */ 3740s # 3740s # #ifndef __STDOUT__ 3740s # #define __STDOUT__ 3740s # 3740s # #include <gio/gio.h> 3740s # 3740s # G_BEGIN_DECLS 3740s # 3740s # 3740s # /* ------------------------------------------------------------------------ */ 3740s # /* Declarations for FDPassing */ 3740s # 3740s # #define TYPE_FDPASSING (fdpassing_get_type ()) 3740s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 3740s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 3740s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 3740s # 3740s # struct _FDPassing; 3740s # typedef struct _FDPassing FDPassing; 3740s # typedef struct _FDPassingIface FDPassingIface; 3740s # 3740s # struct _FDPassingIface 3740s # { 3740s # GTypeInterface parent_iface; 3740s # 3740s # gboolean (*handle_hello_fd) ( 3740s # FDPassing *object, 3740s # GDBusMethodInvocation *invocation, 3740s # GUnixFDList *fd_list, 3740s # const gchar *arg_greeting); 3740s # 3740s # gboolean (*handle_no_annotation) ( 3740s # FDPassing *object, 3740s # GDBusMethodInvocation *invocation, 3740s # GVariant *arg_greeting, 3740s # const gchar *arg_greeting_locale); 3740s # 3740s # gboolean (*handle_no_annotation_nested) ( 3740s # FDPassing *object, 3740s # GDBusMethodInvocation *invocation, 3740s # GVariant *arg_files); 3740s # 3740s # }; 3740s # 3740s # GType fdpassing_get_type (void) G_GNUC_CONST; 3740s # 3740s # GDBusInterfaceInfo *fdpassing_interface_info (void); 3740s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 3740s # 3740s # 3740s # /* D-Bus method call completion functions: */ 3740s # void fdpassing_complete_hello_fd ( 3740s # FDPassing *object, 3740s # GDBusMethodInvocation *invocation, 3740s # GUnixFDList *fd_list, 3740s # const gchar *response); 3740s # 3740s # void fdpassing_complete_no_annotation ( 3740s # FDPassing *object, 3740s # GDBusMethodInvocation *invocation, 3740s # GVariant *response, 3740s # const gchar *response_locale); 3740s # 3740s # void fdpassing_complete_no_annotation_nested ( 3740s # FDPassing *object, 3740s # GDBusMethodInvocation *invocation); 3740s # 3740s # 3740s # 3740s # /* D-Bus method calls: */ 3740s # void fdpassing_call_hello_fd ( 3740s # FDPassing *proxy, 3740s # const gchar *arg_greeting, 3740s # GUnixFDList *fd_list, 3740s # GCancellable *cancellable, 3740s # GAsyncReadyCallback callback, 3740s # gpointer user_data); 3740s # 3740s # gboolean fdpassing_call_hello_fd_finish ( 3740s # FDPassing *proxy, 3740s # gchar **out_response, 3740s # GUnixFDList **out_fd_list, 3740s # GAsyncResult *res, 3740s # GError **error); 3740s # 3740s # gboolean fdpassing_call_hello_fd_sync ( 3740s # FDPassing *proxy, 3740s # const gchar *arg_greeting, 3740s # GUnixFDList *fd_list, 3740s # gchar **out_response, 3740s # GUnixFDList **out_fd_list, 3740s # GCancellable *cancellable, 3740s # GError **error); 3740s # 3740s # void fdpassing_call_no_annotation ( 3740s # FDPassing *proxy, 3740s # GVariant *arg_greeting, 3740s # const gchar *arg_greeting_locale, 3740s # GCancellable *cancellable, 3740s # GAsyncReadyCallback callback, 3740s # gpointer user_data); 3740s # 3740s # gboolean fdpassing_call_no_annotation_finish ( 3740s # FDPassing *proxy, 3740s # GVariant **out_response, 3740s # gchar **out_response_locale, 3740s # GAsyncResult *res, 3740s # GError **error); 3740s # 3740s # gboolean fdpassing_call_no_annotation_sync ( 3740s # FDPassing *proxy, 3740s # GVariant *arg_greeting, 3740s # const gchar *arg_greeting_locale, 3740s # GVariant **out_response, 3740s # gchar **out_response_locale, 3740s # GCancellable *cancellable, 3740s # GError **error); 3740s # 3740s # void fdpassing_call_no_annotation_nested ( 3740s # FDPassing *proxy, 3740s # GVariant *arg_files, 3740s # GCancellable *cancellable, 3740s # GAsyncReadyCallback callback, 3740s # gpointer user_data); 3740s # 3740s # gboolean fdpassing_call_no_annotation_nested_finish ( 3740s # FDPassing *proxy, 3740s # GAsyncResult *res, 3740s # GError **error); 3740s # 3740s # gboolean fdpassing_call_no_annotation_nested_sync ( 3740s # FDPassing *proxy, 3740s # GVariant *arg_files, 3740s # GCancellable *cancellable, 3740s # GError **error); 3740s # 3740s # 3740s # 3740s # /* ---- */ 3740s # 3740s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 3740s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 3740s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 3740s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 3740s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 3740s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 3740s # 3740s # typedef struct _FDPassingProxy FDPassingProxy; 3740s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 3740s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 3740s # 3740s # struct _FDPassingProxy 3740s # { 3740s # /*< private >*/ 3740s # GDBusProxy parent_instance; 3740s # FDPassingProxyPrivate *priv; 3740s # }; 3740s # 3740s # struct _FDPassingProxyClass 3740s # { 3740s # GDBusProxyClass parent_class; 3740s # }; 3740s # 3740s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 3740s # 3740s # #if GLIB_CHECK_VERSION(2, 44, 0) 3740s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 3740s # #endif 3740s # 3740s # void fdpassing_proxy_new ( 3740s # GDBusConnection *connection, 3740s # GDBusProxyFlags flags, 3740s # const gchar *name, 3740s # const gchar *object_path, 3740s # GCancellable *cancellable, 3740s # GAsyncReadyCallback callback, 3740s # gpointer user_data); 3740s # FDPassing *fdpassing_proxy_new_finish ( 3740s # GAsyncResult *res, 3740s # GError **error); 3740s # FDPassing *fdpassing_proxy_new_sync ( 3740s # GDBusConnection *connection, 3740s # GDBusProxyFlags flags, 3740s # const gchar *name, 3740s # const gchar *object_path, 3740s # GCancellable *cancellable, 3740s # GError **error); 3740s # 3740s # void fdpassing_proxy_new_for_bus ( 3740s # GBusType bus_type, 3740s # GDBusProxyFlags flags, 3740s # const gchar *name, 3740s # const gchar *object_path, 3740s # GCancellable *cancellable, 3740s # GAsyncReadyCallback callback, 3740s # gpointer user_data); 3740s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 3740s # GAsyncResult *res, 3740s # GError **error); 3740s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 3740s # GBusType bus_type, 3740s # GDBusProxyFlags flags, 3740s # const gchar *name, 3740s # const gchar *object_path, 3740s # GCancellable *cancellable, 3740s # GError **error); 3740s # 3740s # 3740s # /* ---- */ 3740s # 3740s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 3740s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 3740s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 3740s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 3740s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 3740s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 3740s # 3740s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 3740s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 3740s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 3740s # 3740s # struct _FDPassingSkeleton 3740s # { 3740s # /*< private >*/ 3740s # GDBusInterfaceSkeleton parent_instance; 3740s # FDPassingSkeletonPrivate *priv; 3740s # }; 3740s # 3740s # struct _FDPassingSkeletonClass 3740s # { 3740s # GDBusInterfaceSkeletonClass parent_class; 3740s # }; 3740s # 3740s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 3740s # 3740s # #if GLIB_CHECK_VERSION(2, 44, 0) 3740s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 3740s # #endif 3740s # 3740s # FDPassing *fdpassing_skeleton_new (void); 3740s # 3740s # 3740s # G_END_DECLS 3740s # 3740s # #endif /* __STDOUT__ */ 3740s # Error: 3740s # 3740s # /tmp/tmp9okrbj8w/tmpvydb9gqu.xml: 3740s # <node> 3740s # <interface name="FDPassing"> 3740s # <method name="HelloFD"> 3740s # <annotation name="org.gtk.GDBus.C.UnixFD" value="1"/> 3740s # <arg name="greeting" direction="in" type="s"/> 3740s # <arg name="response" direction="out" type="s"/> 3740s # </method> 3740s # <method name="NoAnnotation"> 3740s # <arg name="greeting" direction="in" type="h"/> 3740s # <arg name="greeting_locale" direction="in" type="s"/> 3740s # <arg name="response" direction="out" type="h"/> 3740s # <arg name="response_locale" direction="out" type="s"/> 3740s # </method> 3740s # <method name="NoAnnotationNested"> 3740s # <arg name="files" type="a{sh}" direction="in"/> 3740s # </method> 3740s # </interface> 3740s # </node> 3740s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9okrbj8w/tmpvydb9gqu.xml', '--output', '-', '--header', '--glib-min-required', '2.64'] 3740s # Return code: 0 3740s # Output: 3740s # /* 3740s # * This file is generated by gdbus-codegen, do not modify it. 3740s # * 3740s # * The license of this code is the same as for the D-Bus interface description 3740s # * it was derived from. Note that it links to GLib, so must comply with the 3740s # * LGPL linking clauses. 3740s # */ 3740s # 3740s # #ifndef __STDOUT__ 3740s # #define __STDOUT__ 3740s # 3740s # #include <gio/gio.h> 3740s # 3740s # G_BEGIN_DECLS 3740s # 3740s # 3740s # /* ------------------------------------------------------------------------ */ 3740s # /* Declarations for FDPassing */ 3740s # 3740s # #define TYPE_FDPASSING (fdpassing_get_type ()) 3740s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 3740s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 3740s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 3740s # 3740s # struct _FDPassing; 3740s # typedef struct _FDPassing FDPassing; 3740s # typedef struct _FDPassingIface FDPassingIface; 3740s # 3740s # struct _FDPassingIface 3740s # { 3740s # GTypeInterface parent_iface; 3740s # 3740s # gboolean (*handle_hello_fd) ( 3740s # FDPassing *object, 3740s # GDBusMethodInvocation *invocation, 3740s # GUnixFDList *fd_list, 3740s # const gchar *arg_greeting); 3740s # 3740s # gboolean (*handle_no_annotation) ( 3740s # FDPassing *object, 3740s # GDBusMethodInvocation *invocation, 3740s # GUnixFDList *fd_list, 3740s # GVariant *arg_greeting, 3740s # const gchar *arg_greeting_locale); 3740s # 3740s # gboolean (*handle_no_annotation_nested) ( 3740s # FDPassing *object, 3740s # GDBusMethodInvocation *invocation, 3740s # GUnixFDList *fd_list, 3740s # GVariant *arg_files); 3740s # 3740s # }; 3740s # 3740s # GType fdpassing_get_type (void) G_GNUC_CONST; 3740s # 3740s # GDBusInterfaceInfo *fdpassing_interface_info (void); 3740s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 3740s # 3740s # 3740s # /* D-Bus method call completion functions: */ 3740s # void fdpassing_complete_hello_fd ( 3740s # FDPassing *object, 3740s # GDBusMethodInvocation *invocation, 3740s # GUnixFDList *fd_list, 3740s # const gchar *response); 3740s # 3740s # void fdpassing_complete_no_annotation ( 3740s # FDPassing *object, 3740s # GDBusMethodInvocation *invocation, 3740s # GUnixFDList *fd_list, 3740s # GVariant *response, 3740s # const gchar *response_locale); 3740s # 3740s # void fdpassing_complete_no_annotation_nested ( 3740s # FDPassing *object, 3740s # GDBusMethodInvocation *invocation, 3740s # GUnixFDList *fd_list); 3740s # 3740s # 3740s # 3740s # /* D-Bus method calls: */ 3740s # void fdpassing_call_hello_fd ( 3740s # FDPassing *proxy, 3740s # const gchar *arg_greeting, 3740s # GDBusCallFlags call_flags, 3740s # gint timeout_msec, 3740s # GUnixFDList *fd_list, 3740s # GCancellable *cancellable, 3740s # GAsyncReadyCallback callback, 3740s # gpointer user_data); 3740s # 3740s # gboolean fdpassing_call_hello_fd_finish ( 3740s # FDPassing *proxy, 3740s # gchar **out_response, 3740s # GUnixFDList **out_fd_list, 3740s # GAsyncResult *res, 3740s # GError **error); 3740s # 3740s # gboolean fdpassing_call_hello_fd_sync ( 3740s # FDPassing *proxy, 3740s # const gchar *arg_greeting, 3740s # GDBusCallFlags call_flags, 3740s # gint timeout_msec, 3740s # GUnixFDList *fd_list, 3740s # gchar **out_response, 3740s # GUnixFDList **out_fd_list, 3740s # GCancellable *cancellable, 3740s # GError **error); 3740s # 3740s # void fdpassing_call_no_annotation ( 3740s # FDPassing *proxy, 3740s # GVariant *arg_greeting, 3740s # const gchar *arg_greeting_locale, 3740s # GDBusCallFlags call_flags, 3740s # gint timeout_msec, 3740s # GUnixFDList *fd_list, 3740s # GCancellable *cancellable, 3740s # GAsyncReadyCallback callback, 3740s # gpointer user_data); 3740s # 3740s # gboolean fdpassing_call_no_annotation_finish ( 3740s # FDPassing *proxy, 3740s # GVariant **out_response, 3740s # gchar **out_response_locale, 3740s # GUnixFDList **out_fd_list, 3740s # GAsyncResult *res, 3740s # GError **error); 3740s # 3740s # gboolean fdpassing_call_no_annotation_sync ( 3740s # FDPassing *proxy, 3740s # GVariant *arg_greeting, 3740s # const gchar *arg_greeting_locale, 3740s # GDBusCallFlags call_flags, 3740s # gint timeout_msec, 3740s # GUnixFDList *fd_list, 3740s # GVariant **out_response, 3740s # gchar **out_response_locale, 3740s # GUnixFDList **out_fd_list, 3740s # GCancellable *cancellable, 3740s # GError **error); 3740s # 3740s # void fdpassing_call_no_annotation_nested ( 3740s # FDPassing *proxy, 3740s # GVariant *arg_files, 3740s # GDBusCallFlags call_flags, 3740s # gint timeout_msec, 3740s # GUnixFDList *fd_list, 3740s # GCancellable *cancellable, 3740s # GAsyncReadyCallback callback, 3740s # gpointer user_data); 3740s # 3740s # gboolean fdpassing_call_no_annotation_nested_finish ( 3740s # FDPassing *proxy, 3740s # GUnixFDList **out_fd_list, 3740s # GAsyncResult *res, 3740s # GError **error); 3740s # 3740s # gboolean fdpassing_call_no_annotation_nested_sync ( 3740s # FDPassing *proxy, 3740s # GVariant *arg_files, 3740s # GDBusCallFlags call_flags, 3740s # gint timeout_msec, 3740s # GUnixFDList *fd_list, 3740s # GUnixFDList **out_fd_list, 3740s # GCancellable *cancellable, 3740s # GError **error); 3740s # 3740s # 3740s # 3740s # /* ---- */ 3740s # 3740s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 3740s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 3740s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 3740s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 3740s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 3740s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 3740s # 3740s # typedef struct _FDPassingProxy FDPassingProxy; 3740s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 3740s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 3740s # 3740s # struct _FDPassingProxy 3740s # { 3740s # /*< private >*/ 3740s # GDBusProxy parent_instance; 3740s # FDPassingProxyPrivate *priv; 3740s # }; 3740s # 3740s # struct _FDPassingProxyClass 3740s # { 3740s # GDBusProxyClass parent_class; 3740s # }; 3740s # 3740s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 3740s # 3740s # #if GLIB_CHECK_VERSION(2, 44, 0) 3740s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 3740s # #endif 3740s # 3740s # void fdpassing_proxy_new ( 3740s # GDBusConnection *connection, 3740s # GDBusProxyFlags flags, 3740s # const gchar *name, 3740s # const gchar *object_path, 3740s # GCancellable *cancellable, 3740s # GAsyncReadyCallback callback, 3740s # gpointer user_data); 3740s # FDPassing *fdpassing_proxy_new_finish ( 3740s # GAsyncResult *res, 3740s # GError **error); 3740s # FDPassing *fdpassing_proxy_new_sync ( 3740s # GDBusConnection *connection, 3740s # GDBusProxyFlags flags, 3740s # const gchar *name, 3740s # const gchar *object_path, 3740s # GCancellable *cancellable, 3740s # GError **error); 3740s # 3740s # void fdpassing_proxy_new_for_bus ( 3740s # GBusType bus_type, 3740s # GDBusProxyFlags flags, 3740s # const gchar *name, 3740s # const gchar *object_path, 3740s # GCancellable *cancellable, 3740s # GAsyncReadyCallback callback, 3740s # gpointer user_data); 3740s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 3740s # GAsyncResult *res, 3740s # GError **error); 3740s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 3740s # GBusType bus_type, 3740s # GDBusProxyFlags flags, 3740s # const gchar *name, 3740s # const gchar *object_path, 3740s # GCancellable *cancellable, 3740s # GError **error); 3740s # 3740s # 3740s # /* ---- */ 3740s # 3740s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 3740s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 3740s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 3740s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 3740s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 3740s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 3740s # 3740s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 3740s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 3740s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 3740s # 3740s # struct _FDPassingSkeleton 3740s # { 3740s # /*< private >*/ 3740s # GDBusInterfaceSkeleton parent_instance; 3740s # FDPassingSkeletonPrivate *priv; 3740s # }; 3740s # 3740s # struct _FDPassingSkeletonClass 3740s # { 3740s # GDBusInterfaceSkeletonClass parent_class; 3740s # }; 3740s # 3740s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 3740s # 3740s # #if GLIB_CHECK_VERSION(2, 44, 0) 3740s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 3740s # #endif 3740s # 3740s # FDPassing *fdpassing_skeleton_new (void); 3740s # 3740s # 3740s # G_END_DECLS 3740s # 3740s # #endif /* __STDOUT__ */ 3740s # Error: 3740s 1..39 3740s ok - glib/codegen.py.test 3740s # Running test: glib/throws.test 3740s TAP version 14 3740s # random seed: R02Saa2e3d86bd1faeb5ab66b8089dd2a1a7 3740s 1..3 3740s # Start of throws tests 3740s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_throws_EV9X52/throws/invoke-gerror/.dirs/home 3740s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_throws_EV9X52/throws/invoke-gerror/.dirs/cache 3740s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_throws_EV9X52/throws/invoke-gerror/.dirs/system-config1:/tmp/test_throws_EV9X52/throws/invoke-gerror/.dirs/system-config2 3740s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_throws_EV9X52/throws/invoke-gerror/.dirs/config 3740s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_throws_EV9X52/throws/invoke-gerror/.dirs/system-data1:/tmp/test_throws_EV9X52/throws/invoke-gerror/.dirs/system-data2 3740s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_throws_EV9X52/throws/invoke-gerror/.dirs/data 3740s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_throws_EV9X52/throws/invoke-gerror/.dirs/state 3740s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_throws_EV9X52/throws/invoke-gerror/.dirs/runtime 3740s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3740s # /throws/invoke-gerror summary: Test invoking a function that throws a GError 3740s ok 1 /throws/invoke-gerror 3740s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_throws_EV9X52/throws/vfunc-can-throw-gerror/.dirs/home 3740s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_throws_EV9X52/throws/vfunc-can-throw-gerror/.dirs/cache 3740s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_throws_EV9X52/throws/vfunc-can-throw-gerror/.dirs/system-config1:/tmp/test_throws_EV9X52/throws/vfunc-can-throw-gerror/.dirs/system-config2 3740s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_throws_EV9X52/throws/vfunc-can-throw-gerror/.dirs/config 3740s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_throws_EV9X52/throws/vfunc-can-throw-gerror/.dirs/system-data1:/tmp/test_throws_EV9X52/throws/vfunc-can-throw-gerror/.dirs/system-data2 3740s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_throws_EV9X52/throws/vfunc-can-throw-gerror/.dirs/data 3740s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_throws_EV9X52/throws/vfunc-can-throw-gerror/.dirs/state 3740s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_throws_EV9X52/throws/vfunc-can-throw-gerror/.dirs/runtime 3740s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3740s # /throws/vfunc-can-throw-gerror summary: Test gi_callable_info_can_throw_gerror() on a vfunc 3740s ok 2 /throws/vfunc-can-throw-gerror 3740s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_throws_EV9X52/throws/callback-can-throw-gerror/.dirs/home 3740s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_throws_EV9X52/throws/callback-can-throw-gerror/.dirs/cache 3740s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_throws_EV9X52/throws/callback-can-throw-gerror/.dirs/system-config1:/tmp/test_throws_EV9X52/throws/callback-can-throw-gerror/.dirs/system-config2 3740s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_throws_EV9X52/throws/callback-can-throw-gerror/.dirs/config 3740s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_throws_EV9X52/throws/callback-can-throw-gerror/.dirs/system-data1:/tmp/test_throws_EV9X52/throws/callback-can-throw-gerror/.dirs/system-data2 3740s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_throws_EV9X52/throws/callback-can-throw-gerror/.dirs/data 3740s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_throws_EV9X52/throws/callback-can-throw-gerror/.dirs/state 3740s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_throws_EV9X52/throws/callback-can-throw-gerror/.dirs/runtime 3740s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3740s # /throws/callback-can-throw-gerror summary: Test gi_callable_info_can_throw_gerror() on a callback 3740s ok 3 /throws/callback-can-throw-gerror 3740s # End of throws tests 3740s ok - glib/throws.test 3740s # Running test: glib/onceinit.test 3740s TAP version 14 3740s # random seed: R02S3273143a75f6b2afcf7e185d3b868c5c 3740s 1..1 3740s # Start of thread tests 3740s ok 1 /thread/onceinit 3740s # End of thread tests 3740s ok - glib/onceinit.test 3740s # Running test: glib/cxx-17.test 3740s TAP version 14 3740s # random seed: R02Sf97dd5951646ad4c772e55c5a883729e 3740s 1..2 3740s # Start of gtask tests 3740s # 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. 3740s ok 1 /gtask/name 3740s # Start of name tests 3740s # 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. 3740s ok 2 /gtask/name/macro-wrapper 3740s # End of name tests 3740s # End of gtask tests 3740s ok - glib/cxx-17.test 3740s # Running test: glib/defaultiface.test 3740s TAP version 14 3740s # random seed: R02S3b75c4663e5ea5fbffd4f51b9b2e2ff9 3740s 1..2 3740s # Start of gobject tests 3740s ok 1 /gobject/static-iface 3740s ok 2 /gobject/dynamic-iface 3740s # End of gobject tests 3740s ok - glib/defaultiface.test 3740s # Running test: glib/io-stream.test 3741s TAP version 14 3741s # random seed: R02Se50c9ca323cfcb2862537f0b375250c1 3741s 1..3 3741s # Start of io-stream tests 3741s ok 1 /io-stream/copy-chunks 3741s # Start of close tests 3741s # Start of async tests 3741s ok 2 /io-stream/close/async/memory 3741s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 3741s ok 3 /io-stream/close/async/file 3741s # End of async tests 3741s # End of close tests 3741s # End of io-stream tests 3741s ok - glib/io-stream.test 3741s # Running test: glib/threadtests.test 3741s TAP version 14 3741s # random seed: R02S4a96eb20ff9e861d38da26da102c210b 3741s 1..5 3741s # Start of GObject tests 3741s ok 1 /GObject/threaded-object-init 3744s # Executing: glib/threadtests.test 3745s ok 2 /GObject/threaded-weak-ref 3745s # slow test /GObject/threaded-weak-ref executed in 4.08 secs 3745s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2394 3745s # /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 3746s ok 3 /GObject/threaded-toggle-notify 3746s # slow test /GObject/threaded-toggle-notify executed in 0.87 secs 3746s ok 4 /GObject/threaded-g-pointer-bit-unlock-and-set 3746s # Start of threaded-weak-ref tests 3746s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 3746s # /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. 3746s ok 5 /GObject/threaded-weak-ref/on-finalization 3746s # End of threaded-weak-ref tests 3746s # End of GObject tests 3746s ok - glib/threadtests.test 3746s # Running test: glib/strvbuilder.test 3746s TAP version 14 3746s # random seed: R02S76fd6c500afc6e44e634b2dadad00886 3746s 1..7 3746s # Start of strvbuilder tests 3746s ok 1 /strvbuilder/empty 3746s ok 2 /strvbuilder/add 3746s ok 3 /strvbuilder/addv 3746s ok 4 /strvbuilder/add_many 3746s ok 5 /strvbuilder/take 3746s ok 6 /strvbuilder/ref 3746s ok 7 /strvbuilder/unref_to_strv 3746s # End of strvbuilder tests 3746s ok - glib/strvbuilder.test 3746s # Running test: glib/gdbus-error.test 3746s TAP version 14 3746s # random seed: R02S40c3aa9093adf5be8766ca41be563967 3746s 1..4 3746s # Start of gdbus tests 3746s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_IIEA62/gdbus/registered-errors/.dirs/home 3746s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_IIEA62/gdbus/registered-errors/.dirs/cache 3746s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_IIEA62/gdbus/registered-errors/.dirs/system-config1:/tmp/test_gdbus-error_IIEA62/gdbus/registered-errors/.dirs/system-config2 3746s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_IIEA62/gdbus/registered-errors/.dirs/config 3746s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_IIEA62/gdbus/registered-errors/.dirs/system-data1:/tmp/test_gdbus-error_IIEA62/gdbus/registered-errors/.dirs/system-data2 3746s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_IIEA62/gdbus/registered-errors/.dirs/data 3746s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_IIEA62/gdbus/registered-errors/.dirs/state 3746s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_IIEA62/gdbus/registered-errors/.dirs/runtime 3746s ok 1 /gdbus/registered-errors 3746s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_IIEA62/gdbus/unregistered-errors/.dirs/home 3746s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_IIEA62/gdbus/unregistered-errors/.dirs/cache 3746s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_IIEA62/gdbus/unregistered-errors/.dirs/system-config1:/tmp/test_gdbus-error_IIEA62/gdbus/unregistered-errors/.dirs/system-config2 3746s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_IIEA62/gdbus/unregistered-errors/.dirs/config 3746s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_IIEA62/gdbus/unregistered-errors/.dirs/system-data1:/tmp/test_gdbus-error_IIEA62/gdbus/unregistered-errors/.dirs/system-data2 3746s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_IIEA62/gdbus/unregistered-errors/.dirs/data 3746s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_IIEA62/gdbus/unregistered-errors/.dirs/state 3746s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_IIEA62/gdbus/unregistered-errors/.dirs/runtime 3746s ok 2 /gdbus/unregistered-errors 3746s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_IIEA62/gdbus/transparent-gerror/.dirs/home 3746s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_IIEA62/gdbus/transparent-gerror/.dirs/cache 3746s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_IIEA62/gdbus/transparent-gerror/.dirs/system-config1:/tmp/test_gdbus-error_IIEA62/gdbus/transparent-gerror/.dirs/system-config2 3746s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_IIEA62/gdbus/transparent-gerror/.dirs/config 3746s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_IIEA62/gdbus/transparent-gerror/.dirs/system-data1:/tmp/test_gdbus-error_IIEA62/gdbus/transparent-gerror/.dirs/system-data2 3746s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_IIEA62/gdbus/transparent-gerror/.dirs/data 3746s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_IIEA62/gdbus/transparent-gerror/.dirs/state 3746s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_IIEA62/gdbus/transparent-gerror/.dirs/runtime 3746s ok 3 /gdbus/transparent-gerror 3746s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_IIEA62/gdbus/register-error/.dirs/home 3746s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_IIEA62/gdbus/register-error/.dirs/cache 3746s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_IIEA62/gdbus/register-error/.dirs/system-config1:/tmp/test_gdbus-error_IIEA62/gdbus/register-error/.dirs/system-config2 3746s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_IIEA62/gdbus/register-error/.dirs/config 3746s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_IIEA62/gdbus/register-error/.dirs/system-data1:/tmp/test_gdbus-error_IIEA62/gdbus/register-error/.dirs/system-data2 3746s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_IIEA62/gdbus/register-error/.dirs/data 3746s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_IIEA62/gdbus/register-error/.dirs/state 3746s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_IIEA62/gdbus/register-error/.dirs/runtime 3746s ok 4 /gdbus/register-error 3746s # End of gdbus tests 3746s ok - glib/gdbus-error.test 3747s # Running test: glib/atomic.test 3747s TAP version 14 3747s # random seed: R02S7615db4bf594175c75855133fe8fc66f 3747s 1..2 3747s # Start of atomic tests 3747s ok 1 /atomic/types 3747s ok 2 /atomic/threaded 3747s # End of atomic tests 3747s ok - glib/atomic.test 3747s # Running test: glib/glistmodel.test 3747s TAP version 14 3747s # random seed: R02S2154f11d9dd57b92c9a0a5a5f62f43f3 3747s 1..18 3747s # Start of glistmodel tests 3747s # Start of store tests 3747s ok 1 /glistmodel/store/properties 3747s ok 2 /glistmodel/store/non-gobjects 3747s ok 3 /glistmodel/store/boundaries 3747s ok 4 /glistmodel/store/refcounts 3747s ok 5 /glistmodel/store/sorted 3747s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=795307 3747s ok 6 /glistmodel/store/splice-replace-middle 3747s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=795307 3747s ok 7 /glistmodel/store/splice-replace-all 3747s ok 8 /glistmodel/store/splice-noop 3747s ok 9 /glistmodel/store/splice-remove-multiple 3747s ok 10 /glistmodel/store/splice-add-multiple 3747s ok 11 /glistmodel/store/splice-wrong-type 3747s ok 12 /glistmodel/store/item-type 3747s ok 13 /glistmodel/store/remove-all 3747s ok 14 /glistmodel/store/sort 3747s ok 15 /glistmodel/store/get-item-cache 3747s ok 16 /glistmodel/store/items-changed 3747s ok 17 /glistmodel/store/past-end 3747s ok 18 /glistmodel/store/find 3747s # End of store tests 3747s # End of glistmodel tests 3747s ok - glib/glistmodel.test 3747s # Running test: glib/option-argv0.test 3747s TAP version 14 3747s # random seed: R02S237dd5920dc2a09fc7fbaa76feeb044b 3747s 1..1 3747s # Start of option tests 3747s ok 1 /option/argv0 3747s # End of option tests 3747s ok - glib/option-argv0.test 3747s # Running test: glib/properties-refcount4.test 3748s TAP version 14 3748s # random seed: R02Se1c0db4c7c901e3bd3bbf1b01a7d6d3f 3748s 1..1 3748s # Start of gobject tests 3748s # Start of refcount tests 3748s ok 1 /gobject/refcount/properties-4 3748s # End of refcount tests 3748s # End of gobject tests 3748s ok - glib/properties-refcount4.test 3748s # Running test: glib/private.test 3748s TAP version 14 3748s # random seed: R02Sffc2f277d7a2c9917fceb4066c02b774 3748s 1..8 3748s # Start of thread tests 3748s ok 1 /thread/private1 3749s # Executing: glib/private.test 3749s ok 2 /thread/private2 3749s # slow test /thread/private2 executed in 1.13 secs 3749s ok 3 /thread/private3 3749s ok 4 /thread/staticprivate1 3749s ok 5 /thread/staticprivate2 3749s ok 6 /thread/staticprivate3 3750s ok 7 /thread/staticprivate4 3750s # slow test /thread/staticprivate4 executed in 1.13 secs 3750s ok 8 /thread/staticprivate5 3750s # End of thread tests 3750s ok - glib/private.test 3750s # Running test: glib/union-info.test 3750s TAP version 14 3750s # random seed: R02S3639fa10f9182d91bc48f5a1582ce56a 3750s 1..2 3750s # Start of union-info tests 3750s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_union-info_39KS52/union-info/basic/.dirs/home 3750s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_union-info_39KS52/union-info/basic/.dirs/cache 3750s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_union-info_39KS52/union-info/basic/.dirs/system-config1:/tmp/test_union-info_39KS52/union-info/basic/.dirs/system-config2 3750s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_union-info_39KS52/union-info/basic/.dirs/config 3750s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_union-info_39KS52/union-info/basic/.dirs/system-data1:/tmp/test_union-info_39KS52/union-info/basic/.dirs/system-data2 3750s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_union-info_39KS52/union-info/basic/.dirs/data 3750s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_union-info_39KS52/union-info/basic/.dirs/state 3750s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_union-info_39KS52/union-info/basic/.dirs/runtime 3750s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3750s # /union-info/basic summary: Test basic properties of GIUnionInfo 3750s ok 1 /union-info/basic 3750s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_union-info_39KS52/union-info/methods/.dirs/home 3750s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_union-info_39KS52/union-info/methods/.dirs/cache 3750s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_union-info_39KS52/union-info/methods/.dirs/system-config1:/tmp/test_union-info_39KS52/union-info/methods/.dirs/system-config2 3750s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_union-info_39KS52/union-info/methods/.dirs/config 3750s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_union-info_39KS52/union-info/methods/.dirs/system-data1:/tmp/test_union-info_39KS52/union-info/methods/.dirs/system-data2 3750s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_union-info_39KS52/union-info/methods/.dirs/data 3750s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_union-info_39KS52/union-info/methods/.dirs/state 3750s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_union-info_39KS52/union-info/methods/.dirs/runtime 3750s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3750s # /union-info/methods summary: Test retrieving methods from GIUnionInfo 3750s ok 2 /union-info/methods 3750s # End of union-info tests 3750s ok - glib/union-info.test 3750s # Running test: glib/filter-streams.test 3750s TAP version 14 3750s # random seed: R02Sd855c58d53c64aa7d7e15ac9bf10b158 3750s 1..4 3750s # Start of filter-stream tests 3750s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=568394 3750s ok 1 /filter-stream/input 3750s ok 2 /filter-stream/output 3750s ok 3 /filter-stream/async-input 3750s ok 4 /filter-stream/async-output 3750s # End of filter-stream tests 3750s ok - glib/filter-streams.test 3750s # Running test: glib/boxed.test 3750s TAP version 14 3750s # random seed: R02S5f7009b9594d72f51c091362a2622d12 3750s 1..27 3750s # Start of boxed tests 3750s ok 1 /boxed/define 3750s ok 2 /boxed/ownership 3750s ok 3 /boxed/closure 3750s ok 4 /boxed/date 3750s ok 5 /boxed/value 3750s ok 6 /boxed/string 3750s ok 7 /boxed/hashtable 3750s ok 8 /boxed/array 3750s ok 9 /boxed/ptrarray 3750s ok 10 /boxed/regex 3750s ok 11 /boxed/varianttype 3750s ok 12 /boxed/error 3750s ok 13 /boxed/datetime 3750s ok 14 /boxed/matchinfo 3750s ok 15 /boxed/keyfile 3750s ok 16 /boxed/mainloop 3750s ok 17 /boxed/maincontext 3750s ok 18 /boxed/source 3750s ok 19 /boxed/variantbuilder 3750s ok 20 /boxed/timezone 3750s ok 21 /boxed/pollfd 3750s ok 22 /boxed/markup 3750s ok 23 /boxed/thread 3750s ok 24 /boxed/checksum 3750s ok 25 /boxed/tree 3750s ok 26 /boxed/patternspec 3750s ok 27 /boxed/rand 3750s # End of boxed tests 3750s ok - glib/boxed.test 3750s # Running test: glib/signals-refcount1.test 3751s TAP version 14 3751s # random seed: R02Se3b9073d5b314a56eb94f8b52c16f933 3751s 1..1 3751s # Start of gobject tests 3751s # Start of refcount tests 3751s # init 0x555d2a9dcdc0 3751s # 3751s # init 0x555d2a9d9310 3751s # 3754s # Executing: glib/signals-refcount1.test 3756s # dispose 0x555d2a9dcdc0! 3756s # 3756s # dispose 0x555d2a9d9310! 3756s # 3756s ok 1 /gobject/refcount/signals 3756s # slow test /gobject/refcount/signals executed in 5.02 secs 3756s # End of refcount tests 3756s # End of gobject tests 3756s ok - glib/signals-refcount1.test 3756s # Running test: glib/memory-monitor.test 3756s TAP version 14 3756s # random seed: R02S55cd22bb630741e491a92afe3d55c81c 3756s 1..1 3756s # Start of memory-monitor tests 3756s # GLib-GIO-DEBUG: Failed to initialize portal (GMemoryMonitorPortal) for gio-memory-monitor: Not using portals 3756s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dbus (GMemoryMonitorDBus) for ?gio-memory-monitor? 3756s ok 1 /memory-monitor/default 3756s # End of memory-monitor tests 3756s ok - glib/memory-monitor.test 3756s # Running test: glib/string.test 3756s TAP version 14 3756s # random seed: R02S4a8f420ce1bce938e970ee024f299c17 3756s 1..23 3756s # Start of string tests 3756s ok 1 /string/test-string-chunks 3756s ok 2 /string/test-string-chunk-insert 3756s ok 3 /string/test-string-new 3756s ok 4 /string/test-string-printf 3756s ok 5 /string/test-string-assign 3756s ok 6 /string/test-string-append-c 3756s ok 7 /string/test-string-append 3756s ok 8 /string/test-string-append-vprintf 3756s ok 9 /string/test-string-prepend-c 3756s ok 10 /string/test-string-prepend 3756s ok 11 /string/test-string-insert 3756s ok 12 /string/test-string-insert-unichar 3756s ok 13 /string/test-string-equal 3756s ok 14 /string/test-string-truncate 3756s ok 15 /string/test-string-overwrite 3756s ok 16 /string/test-string-nul-handling 3756s ok 17 /string/test-string-up-down 3756s ok 18 /string/test-string-set-size 3756s ok 19 /string/test-string-to-bytes 3756s # 0: Replacing "bar" with "baz" (limit 0) in "foo bar foo baz foo bar foobarbaz" 3756s # -> 3 replacements, "foo baz foo baz foo baz foobazbaz" 3756s # 1: Replacing "baz" with "bar" (limit 3) in "foo baz foo baz foo baz foobazbaz" 3756s # -> 3 replacements, "foo bar foo bar foo bar foobazbaz" 3756s # 2: Replacing "foobar" with "bar" (limit 1) in "foo bar foo bar foo bar foobazbaz" 3756s # -> 0 replacements, "foo bar foo bar foo bar foobazbaz" 3756s # 3: Replacing "a" with "abcdefghijkl" (limit 0) in "aaaaaaaa" 3756s # -> 8 replacements, "abcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijkl" 3756s # 4: Replacing "$LIB" with "lib32" (limit 0) in "/usr/$LIB/libMangoHud.so" 3756s # -> 1 replacements, "/usr/lib32/libMangoHud.so" 3756s # 5: Replacing "o" with "" (limit 0) in "food for foals" 3756s # -> 4 replacements, "fd fr fals" 3756s # 6: Replacing "a" with "aaa" (limit 0) in "aaa" 3756s # -> 3 replacements, "aaaaaaaaa" 3756s # 7: Replacing "a" with "" (limit 0) in "aaa" 3756s # -> 3 replacements, "" 3756s # 8: Replacing "aa" with "bb" (limit 0) in "aaa" 3756s # -> 1 replacements, "bba" 3756s # 9: Replacing "" with "bar" (limit 0) in "foo" 3756s # -> 4 replacements, "barfbarobarobar" 3756s # 10: Replacing "" with "bar" (limit 1) in "foo" 3756s # -> 1 replacements, "barfoo" 3756s # 11: Replacing "" with "bar" (limit 2) in "foo" 3756s # -> 2 replacements, "barfbaroo" 3756s # 12: Replacing "" with "bar" (limit 3) in "foo" 3756s # -> 3 replacements, "barfbarobaro" 3756s # 13: Replacing "" with "bar" (limit 4) in "foo" 3756s # -> 4 replacements, "barfbarobarobar" 3756s # 14: Replacing "" with "bar" (limit 5) in "foo" 3756s # -> 4 replacements, "barfbarobarobar" 3756s # 15: Replacing "" with "x" (limit 0) in "" 3756s # -> 1 replacements, "x" 3756s # 16: Replacing "" with "" (limit 0) in "" 3756s # -> 1 replacements, "" 3756s # 17: Replacing "" with "aaaaaaaaaaaa" (limit 0) in "bbbbbbbbb" 3756s # -> 10 replacements, "aaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaa" 3756s ok 20 /string/test-string-replace 3756s ok 21 /string/test-string-steal 3756s ok 22 /string/test-string-new-take 3756s # Start of test-string-new-take tests 3756s ok 23 /string/test-string-new-take/null 3756s # End of test-string-new-take tests 3756s # End of string tests 3756s ok - glib/string.test 3756s # Running test: glib/closure.test 3756s TAP version 14 3756s # random seed: R02S22910d914474282d78effdc3f42850df 3756s 1..6 3756s # Start of closure tests 3756s ok 1 /closure/idle 3756s ok 2 /closure/timeout 3756s ok 3 /closure/iochannel 3756s ok 4 /closure/child 3756s ok 5 /closure/fd 3756s ok 6 /closure/signal 3756s # End of closure tests 3756s ok - glib/closure.test 3756s # Running test: glib/cxx.test 3756s TAP version 14 3756s # random seed: R02S74f3e534ddc8efb92c115a13a0e933d3 3756s 1..2 3756s # Start of gtask tests 3756s # 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. 3756s ok 1 /gtask/name 3756s # Start of name tests 3756s # 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. 3756s ok 2 /gtask/name/macro-wrapper 3756s # End of name tests 3756s # End of gtask tests 3756s ok - glib/cxx.test 3756s # Running test: glib/actions.test 3756s TAP version 14 3756s # random seed: R02S7f581349bbc65ce2289a360515bd5ca3 3756s 1..13 3756s # Start of actions tests 3756s ok 1 /actions/basic 3756s ok 2 /actions/name 3756s ok 3 /actions/simplegroup 3756s ok 4 /actions/stateful 3756s ok 5 /actions/default-activate 3756s ok 6 /actions/entries 3756s ok 7 /actions/parse-detailed 3756s ok 8 /actions/property 3756s ok 9 /actions/no-properties 3756s # Start of dbus tests 3757s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3757s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3757s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3757s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3757s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3757s ok 10 /actions/dbus/export 3757s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3757s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3757s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3757s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3757s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3757s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3759s # Executing: glib/actions.test 3764s # Executing: glib/actions.test 3769s # Executing: glib/actions.test 3772s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3772s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3772s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3772s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3772s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3772s ok 11 /actions/dbus/threaded 3772s # slow test /actions/dbus/threaded executed in 14.79 secs 3772s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3772s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3772s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3772s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3772s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3772s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3772s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3772s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3772s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3772s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3772s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3772s ok 12 /actions/dbus/bug679509 3772s # Start of export tests 3772s # /actions/dbus/export/error-handling summary: Test that error handling of action group export failure works 3772s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3366 3772s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3772s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3772s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3772s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3772s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3772s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3772s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3772s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3772s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3772s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3772s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3772s ok 13 /actions/dbus/export/error-handling 3772s # End of export tests 3772s # End of dbus tests 3772s # End of actions tests 3772s ok - glib/actions.test 3772s # Running test: glib/memchunk.test 3772s TAP version 14 3772s # random seed: R02S74de81644624ee1f901dc6d489e4b3ea 3772s 1..1 3772s # Start of memchunk tests 3772s ok 1 /memchunk/basic 3772s # End of memchunk tests 3772s ok - glib/memchunk.test 3772s # Running test: glib/error.test 3772s TAP version 14 3772s # random seed: R02S5b1541d149bbb73445395df3bb659aa7 3772s 1..3 3772s # Start of error tests 3772s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_B65A62/error/from-errno/.dirs/home 3772s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_B65A62/error/from-errno/.dirs/cache 3772s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_B65A62/error/from-errno/.dirs/system-config1:/tmp/test_error_B65A62/error/from-errno/.dirs/system-config2 3772s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_B65A62/error/from-errno/.dirs/config 3772s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_B65A62/error/from-errno/.dirs/system-data1:/tmp/test_error_B65A62/error/from-errno/.dirs/system-data2 3772s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_B65A62/error/from-errno/.dirs/data 3772s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_B65A62/error/from-errno/.dirs/state 3772s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_B65A62/error/from-errno/.dirs/runtime 3772s ok 1 /error/from-errno 3772s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_B65A62/error/from-file-error/.dirs/home 3772s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_B65A62/error/from-file-error/.dirs/cache 3772s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_B65A62/error/from-file-error/.dirs/system-config1:/tmp/test_error_B65A62/error/from-file-error/.dirs/system-config2 3772s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_B65A62/error/from-file-error/.dirs/config 3772s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_B65A62/error/from-file-error/.dirs/system-data1:/tmp/test_error_B65A62/error/from-file-error/.dirs/system-data2 3772s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_B65A62/error/from-file-error/.dirs/data 3772s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_B65A62/error/from-file-error/.dirs/state 3772s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_B65A62/error/from-file-error/.dirs/runtime 3772s ok 2 /error/from-file-error 3772s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_B65A62/error/from-win32-error/.dirs/home 3772s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_B65A62/error/from-win32-error/.dirs/cache 3772s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_B65A62/error/from-win32-error/.dirs/system-config1:/tmp/test_error_B65A62/error/from-win32-error/.dirs/system-config2 3772s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_B65A62/error/from-win32-error/.dirs/config 3772s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_B65A62/error/from-win32-error/.dirs/system-data1:/tmp/test_error_B65A62/error/from-win32-error/.dirs/system-data2 3772s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_B65A62/error/from-win32-error/.dirs/data 3772s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_B65A62/error/from-win32-error/.dirs/state 3772s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_B65A62/error/from-win32-error/.dirs/runtime 3772s ok - glib/error.test 3772s ok 3 /error/from-win32-error # SKIP Windows error codes can only be checked on Windows 3772s # End of error tests 3772s # Running test: glib/atomic-c-11.test 3772s TAP version 14 3772s # random seed: R02S61a437da5d73474022ef7330340f0eb2 3772s 1..2 3772s # Start of atomic tests 3772s ok 1 /atomic/types 3773s ok 2 /atomic/threaded 3773s # End of atomic tests 3773s ok - glib/atomic-c-11.test 3773s # Running test: glib/tls-database.test 3773s TAP version 14 3773s # random seed: R02S6d8284ad7434c5e950b514b4cb2a9185 3773s 1..1 3773s # Start of tls-backend tests 3773s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ?gio-tls-backend? 3773s ok 1 /tls-backend/set-default-database 3773s # End of tls-backend tests 3773s ok - glib/tls-database.test 3773s # Running test: glib/custom-dispatch.test 3773s TAP version 14 3773s # random seed: R02Sbcfb0e6e27c25beaca12e6c94714905a 3773s 1..2 3773s # Start of properties tests 3773s # Start of custom-dispatch tests 3773s # /properties/custom-dispatch/init summary: Test that custom dispatch_properties_changed is called on initialization 3773s ok 1 /properties/custom-dispatch/init 3773s # /properties/custom-dispatch/set summary: Test that custom dispatch_properties_changed is called regardless of connected notify handlers 3773s ok 2 /properties/custom-dispatch/set 3773s # End of custom-dispatch tests 3773s # End of properties tests 3773s ok - glib/custom-dispatch.test 3773s # Running test: glib/testing.test 3773s TAP version 14 3773s # random seed: R02S3ad3116a99416f0f2e8c6669c413661c 3773s 1..1 3773s # Start of assert tests 3773s ok 1 /assert/finalize_object 3773s # Start of finalize_object tests 3773s # Start of subprocess tests 3773s # End of subprocess tests 3773s # End of finalize_object tests 3773s # End of assert tests 3773s ok - glib/testing.test 3773s # Running test: glib/gdbus-test-codegen.test 3774s TAP version 14 3774s # random seed: R02S2ca0e188ea772f43748e284d4c9c9b03 3774s 1..8 3774s # Start of gdbus tests 3774s # Start of codegen tests 3774s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/annotations/.dirs/home 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/annotations/.dirs/cache 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/annotations/.dirs/system-config1:/tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/annotations/.dirs/system-config2 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/annotations/.dirs/config 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/annotations/.dirs/system-data1:/tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/annotations/.dirs/system-data2 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/annotations/.dirs/data 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/annotations/.dirs/state 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/annotations/.dirs/runtime 3774s ok 1 /gdbus/codegen/annotations 3774s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/interface_stability/.dirs/home 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/interface_stability/.dirs/cache 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/interface_stability/.dirs/system-config1:/tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/interface_stability/.dirs/system-config2 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/interface_stability/.dirs/config 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/interface_stability/.dirs/system-data1:/tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/interface_stability/.dirs/system-data2 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/interface_stability/.dirs/data 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/interface_stability/.dirs/state 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/interface_stability/.dirs/runtime 3774s ok 2 /gdbus/codegen/interface_stability 3774s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/object-manager/.dirs/home 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/object-manager/.dirs/cache 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/object-manager/.dirs/system-config1:/tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/object-manager/.dirs/system-config2 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/object-manager/.dirs/config 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/object-manager/.dirs/system-data1:/tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/object-manager/.dirs/system-data2 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/object-manager/.dirs/data 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/object-manager/.dirs/state 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/object-manager/.dirs/runtime 3774s # Executing: glib/gdbus-test-codegen.test 3774s ok 3 /gdbus/codegen/object-manager 3774s # slow test /gdbus/codegen/object-manager executed in 0.72 secs 3774s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/property-naming/.dirs/home 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/property-naming/.dirs/cache 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/property-naming/.dirs/system-config1:/tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/property-naming/.dirs/system-config2 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/property-naming/.dirs/config 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/property-naming/.dirs/system-data1:/tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/property-naming/.dirs/system-data2 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/property-naming/.dirs/data 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/property-naming/.dirs/state 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/property-naming/.dirs/runtime 3774s ok 4 /gdbus/codegen/property-naming 3774s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/autocleanups/.dirs/home 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/autocleanups/.dirs/cache 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/autocleanups/.dirs/system-config1:/tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/autocleanups/.dirs/system-config2 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/autocleanups/.dirs/config 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/autocleanups/.dirs/system-data1:/tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/autocleanups/.dirs/system-data2 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/autocleanups/.dirs/data 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/autocleanups/.dirs/state 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/autocleanups/.dirs/runtime 3774s ok 5 /gdbus/codegen/autocleanups 3774s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/deprecations/.dirs/home 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/deprecations/.dirs/cache 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/deprecations/.dirs/system-config1:/tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/deprecations/.dirs/system-config2 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/deprecations/.dirs/config 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/deprecations/.dirs/system-data1:/tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/deprecations/.dirs/system-data2 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/deprecations/.dirs/data 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/deprecations/.dirs/state 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/deprecations/.dirs/runtime 3774s ok 6 /gdbus/codegen/deprecations 3774s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/standalone-interface-info/.dirs/home 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/standalone-interface-info/.dirs/cache 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/standalone-interface-info/.dirs/system-config1:/tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/standalone-interface-info/.dirs/system-config2 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/standalone-interface-info/.dirs/config 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/standalone-interface-info/.dirs/system-data1:/tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/standalone-interface-info/.dirs/system-data2 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/standalone-interface-info/.dirs/data 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/standalone-interface-info/.dirs/state 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/standalone-interface-info/.dirs/runtime 3774s ok 7 /gdbus/codegen/standalone-interface-info 3774s ok - glib/gdbus-test-codegen.test 3774s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/unix-fd-list/.dirs/home 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/unix-fd-list/.dirs/cache 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/unix-fd-list/.dirs/system-config1:/tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/unix-fd-list/.dirs/system-config2 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/unix-fd-list/.dirs/config 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/unix-fd-list/.dirs/system-data1:/tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/unix-fd-list/.dirs/system-data2 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/unix-fd-list/.dirs/data 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/unix-fd-list/.dirs/state 3774s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_QXB452/gdbus/codegen/unix-fd-list/.dirs/runtime 3774s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1726 3774s ok 8 /gdbus/codegen/unix-fd-list 3774s # End of codegen tests 3774s # End of gdbus tests 3774s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3774s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3774s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3774s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3774s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3774s # Running test: glib/markup-subparser.test 3775s TAP version 14 3775s # random seed: R02Safd5a01d414f6e298e83f56a3e7313eb 3775s 1..14 3775s # Start of glib tests 3775s # Start of markup tests 3775s # Start of subparser tests 3775s # Start of success tests 3775s ok 1 /glib/markup/subparser/success/0 3775s ok 2 /glib/markup/subparser/success/1 3775s ok 3 /glib/markup/subparser/success/2 3775s ok 4 /glib/markup/subparser/success/3 3775s ok 5 /glib/markup/subparser/success/4 3775s ok 6 /glib/markup/subparser/success/5 3775s ok 7 /glib/markup/subparser/success/6 3775s # End of success tests 3775s # Start of failure tests 3775s ok 8 /glib/markup/subparser/failure/0 3775s ok 9 /glib/markup/subparser/failure/1 3775s ok 10 /glib/markup/subparser/failure/2 3775s ok 11 /glib/markup/subparser/failure/3 3775s ok 12 /glib/markup/subparser/failure/4 3775s ok 13 /glib/markup/subparser/failure/5 3775s ok 14 /glib/markup/subparser/failure/6 3775s # End of failure tests 3775s # End of subparser tests 3775s # End of markup tests 3775s # End of glib tests 3775s ok - glib/markup-subparser.test 3775s # Running test: glib/cancellable.test 3775s TAP version 14 3775s # random seed: R02Sc896bd7679eea2865342082d420de608 3775s 1..18 3775s # Start of cancellable tests 3775s ok 1 /cancellable/multiple-concurrent # SKIP Not running timing heavy test 3775s ok 2 /cancellable/null 3775s ok 3 /cancellable/connect-data-is-destroyed-on-disconnect-and-dispose 3775s # /cancellable/connect-to-disposing-callback summary: A cancellable signal callback can unref the cancellable 3775s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3643 3775s ok 4 /cancellable/connect-to-disposing-callback 3775s ok 5 /cancellable/connect-cancelled-data-is-destroyed 3775s # Toggle reference callback for GCancellable (0x555640cf3cd0), last: 1 3775s # Toggle reference callback for GCancellable (0x555640cf3cd0), last: 0 3775s # Toggle reference callback for GCancellable (0x555640cf3cd0), last: 1 3775s ok 6 /cancellable/connect-to-disposing-callback-with-toggle-reference 3775s # /cancellable/connect-cancelled-to-disposing-callback summary: A cancellable signal callback can unref the cancellable 3775s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3643 3775s ok 7 /cancellable/connect-cancelled-to-disposing-callback 3775s ok 8 /cancellable/connect-cancelled-with-destroy-func-disposing-cancellable 3775s # Toggle reference callback for GCancellable (0x555640cf3cd0), last: 1 3775s # Toggle reference callback for GCancellable (0x555640cf3cd0), last: 0 3775s # Toggle reference callback for GCancellable (0x555640cf3cd0), last: 1 3775s # Toggle reference callback for GCancellable (0x555640cf3cd0), last: 0 3775s # Toggle reference callback for GCancellable (0x555640cf3cd0), last: 1 3775s ok 9 /cancellable/connect-cancelled-to-disposing-callback-with-toggle-reference 3775s # /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 3775s ok 10 /cancellable/disconnect-on-cancelled-callback-hangs 3775s # /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 3775s ok 11 /cancellable/resets-on-cancel-callback-hangs 3775s ok 12 /cancellable/poll-fd 3775s # /cancellable/poll-fd-cancelled summary: Tests that cancellation wakes up a pollable FD on creation 3775s ok 13 /cancellable/poll-fd-cancelled 3775s # /cancellable/poll-fd-cancelled-threaded summary: Tests that a cancellation wakes up a pollable FD 3775s ok 14 /cancellable/poll-fd-cancelled-threaded 3775s # /cancellable/cancel-reset-races summary: Tests threads racing for cancelling and resetting a GCancellable 3775s ok 15 /cancellable/cancel-reset-races 3775s # /cancellable/cancel-reset-connect-races summary: Tests threads racing for cancelling, connecting and disconnecting and resetting a GCancellable 3775s ok 16 /cancellable/cancel-reset-connect-races 3775s # End of cancellable tests 3775s # Start of cancellable-source tests 3775s # /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) 3775s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1841 3779s # Executing: glib/cancellable.test 3779s ok 17 /cancellable-source/threaded-dispose 3779s # slow test /cancellable-source/threaded-dispose executed in 4.25 secs 3779s # /cancellable-source/can-be-fired-multiple-times summary: Test a cancellable source callback can be called multiple times 3779s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/774 3779s ok 18 /cancellable-source/can-be-fired-multiple-times 3779s # End of cancellable-source tests 3779s ok - glib/cancellable.test 3780s # Running test: glib/inet-address.test 3780s TAP version 14 3780s # random seed: R02S942a1cc2a3038a8d9c3b4f90e2cee72d 3780s 1..11 3780s # Start of inet-address tests 3780s ok 1 /inet-address/parse 3780s ok 2 /inet-address/any 3780s ok 3 /inet-address/loopback 3780s ok 4 /inet-address/bytes 3780s ok 5 /inet-address/property 3780s # End of inet-address tests 3780s # Start of socket-address tests 3780s ok 6 /socket-address/basic 3780s ok 7 /socket-address/to-string 3780s # End of socket-address tests 3780s # Start of address-mask tests 3780s ok - glib/inet-address.test 3780s ok 8 /address-mask/parse 3780s ok 9 /address-mask/property 3780s ok 10 /address-mask/equal 3780s ok 11 /address-mask/match 3780s # End of address-mask tests 3780s # Running test: glib/option-context.test 3780s TAP version 14 3780s # random seed: R02Sd6179fc591e2a60f659a5800140bd673 3780s 1..58 3780s # Start of option tests 3780s ok 1 /option/basic 3780s ok 2 /option/translate 3780s ok 3 /option/strict-posix 3780s # Start of help tests 3780s ok 4 /option/help/options 3780s ok 5 /option/help/no-options 3780s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=697652 3780s ok 6 /option/help/no-help-options 3780s # Usage: 3780s # /usr/libexec/installed-tests/glib/option-context [OPTION?] blabla 3780s # 3780s # Summary 3780s # 3780s # Help Options: 3780s # -h, --help Show help options 3780s # 3780s # Application Options: 3780s # -t, --test=Argument to use in test (deprecated) Test tests 3780s # --test2 Tests also 3780s # 3780s # Description 3780s # 3780s ok 7 /option/help/deprecated 3780s # End of help tests 3780s # Start of group tests 3780s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=504142 3780s ok 8 /option/group/captions 3780s # slow test /option/group/captions executed in 0.58 secs 3780s ok 9 /option/group/main 3780s ok 10 /option/group/error-hook 3780s ok 11 /option/group/parse 3780s # Start of captions tests 3780s # Start of subprocess tests 3780s # End of subprocess tests 3780s # End of captions tests 3780s # End of group tests 3780s # Start of restoration tests 3780s ok 12 /option/restoration/int 3780s ok 13 /option/restoration/string 3780s ok 14 /option/restoration/boolean 3780s # End of restoration tests 3780s # Start of arg tests 3780s ok 15 /option/arg/reverse-string 3780s ok 16 /option/arg/optional-int 3780s # Start of repetition tests 3780s ok 17 /option/arg/repetition/int 3780s ok 18 /option/arg/repetition/string 3780s ok 19 /option/arg/repetition/filename 3780s ok 20 /option/arg/repetition/double 3780s ok 21 /option/arg/repetition/locale 3780s ok 22 /option/arg/repetition/int64 3780s # End of repetition tests 3780s # Start of array tests 3780s ok 23 /option/arg/array/string 3780s # End of array tests 3780s # Start of callback tests 3780s ok 24 /option/arg/callback/string 3780s ok 25 /option/arg/callback/count 3780s ok 26 /option/arg/callback/optional1 3780s ok 27 /option/arg/callback/optional2 3780s ok 28 /option/arg/callback/optional3 3780s ok 29 /option/arg/callback/optional4 3780s ok 30 /option/arg/callback/optional5 3780s ok 31 /option/arg/callback/optional6 3780s ok 32 /option/arg/callback/optional7 3780s ok 33 /option/arg/callback/optional8 3780s # End of callback tests 3780s # Start of remaining tests 3780s ok 34 /option/arg/remaining/callback 3780s ok 35 /option/arg/remaining/callback-false 3780s ok 36 /option/arg/remaining/non-option 3780s ok 37 /option/arg/remaining/separator 3780s ok 38 /option/arg/remaining/array 3780s # End of remaining tests 3780s # Start of ignore tests 3780s ok 39 /option/arg/ignore/long 3780s ok 40 /option/arg/ignore/short 3780s ok 41 /option/arg/ignore/arg 3780s # End of ignore tests 3780s # Start of rest tests 3780s ok 42 /option/arg/rest/non-option 3780s ok 43 /option/arg/rest/separator1 3780s ok 44 /option/arg/rest/separator2 3780s ok 45 /option/arg/rest/separator3 3780s ok - glib/option-context.test 3780s ok 46 /option/arg/rest/separator4 3780s ok 47 /option/arg/rest/separator5 3780s # End of rest tests 3780s # End of arg tests 3780s # Start of context tests 3780s ok 48 /option/context/add 3780s ok 49 /option/context/empty2 3780s ok 50 /option/context/empty3 3780s # End of context tests 3780s # Start of bug tests 3780s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=166609 3780s ok 51 /option/bug/unknown-short 3780s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=168008 3780s ok 52 /option/bug/lonely-dash 3780s ok 53 /option/bug/triple-dash 3780s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=305576 3780s ok 54 /option/bug/missing-arg 3780s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=577638 3780s ok 55 /option/bug/dash-arg 3780s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=729563 3780s ok 56 /option/bug/short-remaining 3780s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=646926 3780s ok 57 /option/bug/double-free 3780s ok 58 /option/bug/double-zero 3780s # End of bug tests 3780s # End of option tests 3780s # Running test: glib/properties-introspection.test 3780s TAP version 14 3780s # random seed: R02Sd24b1033c809e437e7d56271dbd0d464 3780s 1..2 3780s # Start of properties tests 3780s # /properties/introspection summary: Verify that introspecting properties on an interface initializes the GParamSpecPool. 3780s ok 1 /properties/introspection 3780s # /properties/collision summary: Verify that multiple threads create a single GParamSpecPool. 3781s ok 2 /properties/collision 3781s # End of properties tests 3781s ok - glib/properties-introspection.test 3781s # Running test: glib/data-output-stream.test 3781s TAP version 14 3781s # random seed: R02S24704efa55717628a93ccdd391007f68 3781s 1..7 3781s # Start of data-output-stream tests 3781s ok 1 /data-output-stream/basic 3781s ok 2 /data-output-stream/write-lines-LF 3781s ok 3 /data-output-stream/write-lines-CR 3781s ok 4 /data-output-stream/write-lines-CR-LF 3781s ok 5 /data-output-stream/write-int 3781s ok 6 /data-output-stream/seek 3781s ok 7 /data-output-stream/truncate 3781s # End of data-output-stream tests 3781s ok - glib/data-output-stream.test 3781s # Running test: glib/gvariant.test 3781s TAP version 14 3781s # random seed: R02S7ad81fef7d631a203d9443c9e42fee6f 3781s 1..69 3781s # Start of gvariant tests 3781s ok 1 /gvariant/type 3783s ok 2 /gvariant/typeinfo 3783s # slow test /gvariant/typeinfo executed in 1.80 secs 3783s ok 3 /gvariant/string 3783s ok 4 /gvariant/utf8 3783s ok 5 /gvariant/utf8-new-strings 3784s # Executing: glib/gvariant.test 3787s ok 6 /gvariant/containers 3787s # slow test /gvariant/containers executed in 4.07 secs 3787s ok 7 /gvariant/format-strings 3787s ok 8 /gvariant/invalid-varargs 3787s ok 9 /gvariant/varargs 3787s ok 10 /gvariant/valist 3787s ok 11 /gvariant/builder-memory 3789s # Executing: glib/gvariant.test 3789s ok 12 /gvariant/hashing 3789s # slow test /gvariant/hashing executed in 1.64 secs 3789s ok 13 /gvariant/byteswap 3792s ok 14 /gvariant/parser 3792s # slow test /gvariant/parser executed in 3.40 secs 3792s ok 15 /gvariant/parse-failures 3793s ok 16 /gvariant/parse-positional 3793s ok 17 /gvariant/floating 3793s ok 18 /gvariant/bytestring 3793s ok 19 /gvariant/lookup-value 3793s ok 20 /gvariant/lookup 3793s ok 21 /gvariant/compare 3793s ok 22 /gvariant/equal 3793s ok 23 /gvariant/fixed-array 3793s ok 24 /gvariant/check-format-string 3793s ok 25 /gvariant/checksum-basic 3793s ok 26 /gvariant/checksum-nested 3793s ok 27 /gvariant/gbytes 3793s ok 28 /gvariant/print-context 3793s ok 29 /gvariant/error-quark 3793s ok 30 /gvariant/stack-builder-init 3793s ok 31 /gvariant/stack-builder-init-static 3793s ok 32 /gvariant/stack-builder-init-unset 3793s ok 33 /gvariant/stack-dict-init 3793s ok 34 /gvariant/unaligned-construction 3793s # Start of type tests 3793s # Start of string-scan tests 3793s # Start of recursion tests 3793s ok 35 /gvariant/type/string-scan/recursion/tuple 3793s ok 36 /gvariant/type/string-scan/recursion/array 3793s # End of recursion tests 3793s # End of string-scan tests 3793s # End of type tests 3793s # Start of serialiser tests 3793s ok 37 /gvariant/serialiser/maybe 3794s # Executing: glib/gvariant.test 3794s ok 38 /gvariant/serialiser/array 3794s # slow test /gvariant/serialiser/array executed in 1.43 secs 3795s ok 39 /gvariant/serialiser/tuple 3795s # slow test /gvariant/serialiser/tuple executed in 0.77 secs 3795s ok 40 /gvariant/serialiser/variant 3795s ok 41 /gvariant/serialiser/strings 3799s # Executing: glib/gvariant.test 3804s # Executing: glib/gvariant.test 3806s ok 42 /gvariant/serialiser/byteswap 3806s # slow test /gvariant/serialiser/byteswap executed in 11.13 secs 3806s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1865 3806s # /gvariant/serialiser/children summary: Test that getting a child variant before and after serialisation of the parent works 3806s ok 43 /gvariant/serialiser/children 3806s # Start of byteswap tests 3806s ok 44 /gvariant/serialiser/byteswap/zero-sized 3806s # End of byteswap tests 3806s # Start of fuzz tests 3809s # Executing: glib/gvariant.test 3814s # Executing: glib/gvariant.test 3819s # Executing: glib/gvariant.test 3824s # Executing: glib/gvariant.test 3827s not ok - Test timed out after 300 seconds 3829s # Executing: glib/gvariant.test 3830s ok 45 /gvariant/serialiser/fuzz/1% 3830s # slow test /gvariant/serialiser/fuzz/1% executed in 23.58 secs 3831s ok 46 /gvariant/serialiser/fuzz/5% 3831s # slow test /gvariant/serialiser/fuzz/5% executed in 0.99 secs 3832s ok 47 /gvariant/serialiser/fuzz/9% 3832s # slow test /gvariant/serialiser/fuzz/9% executed in 1.64 secs 3834s # Executing: glib/gvariant.test 3834s ok 48 /gvariant/serialiser/fuzz/13% 3834s # slow test /gvariant/serialiser/fuzz/13% executed in 1.31 secs 3836s ok 49 /gvariant/serialiser/fuzz/17% 3836s # slow test /gvariant/serialiser/fuzz/17% executed in 2.23 secs 3836s # End of fuzz tests 3836s # End of serialiser tests 3836s # Start of utf8 tests 3836s # Start of subprocess tests 3836s # End of subprocess tests 3836s # End of utf8 tests 3836s # Start of varargs tests 3836s # Start of subprocess tests 3836s # End of subprocess tests 3836s # End of varargs tests 3836s # Start of byteswap tests 3836s # /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. 3836s ok 50 /gvariant/byteswap/non-normal-non-aligned 3836s # End of byteswap tests 3836s # Start of parser tests 3836s ok 51 /gvariant/parser/integer-bounds 3836s ok 52 /gvariant/parser/recursion 3836s # Start of recursion tests 3836s ok 53 /gvariant/parser/recursion/typedecls 3836s # /gvariant/parser/recursion/maybes summary: Test that nested maybes are handled correctly when parsing text-form variants 3836s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2782 3836s # Text form 0: @mmmu 5 3836s # Text form 1: @mmmas ['hello'] 3836s # Text form 2: @mmmu just just nothing 3836s # Text form 3: @mmmas just just nothing 3836s # Text form 4: @mmmu just nothing 3836s # Text form 5: @mmmas just nothing 3836s # Text form 6: @mmmu nothing 3836s # Text form 7: @mmmas nothing 3836s ok 54 /gvariant/parser/recursion/maybes 3836s # End of recursion tests 3836s # End of parser tests 3836s # Start of parse tests 3836s # Start of subprocess tests 3836s # End of subprocess tests 3836s # End of parse tests 3836s # Start of normal-checking tests 3836s ok 55 /gvariant/normal-checking/tuples 3836s ok 56 /gvariant/normal-checking/array-offsets 3836s ok 57 /gvariant/normal-checking/array-offsets2 3836s ok 58 /gvariant/normal-checking/tuple-offsets 3836s ok 59 /gvariant/normal-checking/tuple-offsets2 3836s ok 60 /gvariant/normal-checking/tuple-offsets3 3836s ok 61 /gvariant/normal-checking/tuple-offsets4 3836s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2840 3836s ok 62 /gvariant/normal-checking/tuple-offsets5 3836s ok 63 /gvariant/normal-checking/empty-object-path 3836s # Start of array-offsets tests 3836s ok 64 /gvariant/normal-checking/array-offsets/overlapped 3836s ok 65 /gvariant/normal-checking/array-offsets/minimal-sized 3836s # End of array-offsets tests 3836s # Start of tuple-offsets tests 3836s ok 66 /gvariant/normal-checking/tuple-offsets/minimal-sized 3836s # End of tuple-offsets tests 3836s # End of normal-checking tests 3836s # Start of recursion-limits tests 3836s ok 67 /gvariant/recursion-limits/variant-in-variant 3836s ok 68 /gvariant/recursion-limits/array-in-variant 3836s # End of recursion-limits tests 3836s # End of gvariant tests 3836s # Start of gvarianttype tests 3836s ok 69 /gvarianttype/hash 3836s # End of gvarianttype tests 3836s ok - glib/gvariant.test 3836s # Running test: glib/socket-listener.test 3836s TAP version 14 3836s # random seed: R02Se7d6967607ea19b2af9d5e7a6bf7efb1 3836s 1..1 3836s # Start of socket-listener tests 3836s ok 1 /socket-listener/event-signal 3836s # End of socket-listener tests 3836s ok - glib/socket-listener.test 3836s # Running test: glib/gdbus-test-codegen-old.test 3836s TAP version 14 3836s # random seed: R02S5552bf7a6e7efaf8524002e0707085fb 3837s 1..8 3837s # Start of gdbus tests 3837s # Start of codegen tests 3837s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/annotations/.dirs/home 3837s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/annotations/.dirs/cache 3837s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/annotations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/annotations/.dirs/system-config2 3837s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/annotations/.dirs/config 3837s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/annotations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/annotations/.dirs/system-data2 3837s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/annotations/.dirs/data 3837s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/annotations/.dirs/state 3837s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/annotations/.dirs/runtime 3837s ok 1 /gdbus/codegen/annotations 3837s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/interface_stability/.dirs/home 3837s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/interface_stability/.dirs/cache 3837s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/interface_stability/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/interface_stability/.dirs/system-config2 3837s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/interface_stability/.dirs/config 3837s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/interface_stability/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/interface_stability/.dirs/system-data2 3837s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/interface_stability/.dirs/data 3837s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/interface_stability/.dirs/state 3837s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/interface_stability/.dirs/runtime 3837s ok 2 /gdbus/codegen/interface_stability 3837s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/object-manager/.dirs/home 3837s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/object-manager/.dirs/cache 3837s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/object-manager/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/object-manager/.dirs/system-config2 3837s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/object-manager/.dirs/config 3837s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/object-manager/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/object-manager/.dirs/system-data2 3837s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/object-manager/.dirs/data 3837s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/object-manager/.dirs/state 3837s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/object-manager/.dirs/runtime 3838s ok 3 /gdbus/codegen/object-manager 3838s # slow test /gdbus/codegen/object-manager executed in 0.93 secs 3838s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/property-naming/.dirs/home 3838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/property-naming/.dirs/cache 3838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/property-naming/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/property-naming/.dirs/system-config2 3838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/property-naming/.dirs/config 3838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/property-naming/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/property-naming/.dirs/system-data2 3838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/property-naming/.dirs/data 3838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/property-naming/.dirs/state 3838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/property-naming/.dirs/runtime 3838s ok 4 /gdbus/codegen/property-naming 3838s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/autocleanups/.dirs/home 3838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/autocleanups/.dirs/cache 3838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/autocleanups/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/autocleanups/.dirs/system-config2 3838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/autocleanups/.dirs/config 3838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/autocleanups/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/autocleanups/.dirs/system-data2 3838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/autocleanups/.dirs/data 3838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/autocleanups/.dirs/state 3838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/autocleanups/.dirs/runtime 3838s ok 5 /gdbus/codegen/autocleanups 3838s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/deprecations/.dirs/home 3838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/deprecations/.dirs/cache 3838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/deprecations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/deprecations/.dirs/system-config2 3838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/deprecations/.dirs/config 3838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/deprecations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/deprecations/.dirs/system-data2 3838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/deprecations/.dirs/data 3838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/deprecations/.dirs/state 3838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/deprecations/.dirs/runtime 3838s ok 6 /gdbus/codegen/deprecations 3838s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/standalone-interface-info/.dirs/home 3838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/standalone-interface-info/.dirs/cache 3838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/standalone-interface-info/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/standalone-interface-info/.dirs/system-config2 3838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/standalone-interface-info/.dirs/config 3838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/standalone-interface-info/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/standalone-interface-info/.dirs/system-data2 3838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/standalone-interface-info/.dirs/data 3838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/standalone-interface-info/.dirs/state 3838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/standalone-interface-info/.dirs/runtime 3838s ok 7 /gdbus/codegen/standalone-interface-info 3838s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/unix-fd-list/.dirs/home 3838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/unix-fd-list/.dirs/cache 3838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/unix-fd-list/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/unix-fd-list/.dirs/system-config2 3838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/unix-fd-list/.dirs/config 3838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/unix-fd-list/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/unix-fd-list/.dirs/system-data2 3838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/unix-fd-list/.dirs/data 3838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/unix-fd-list/.dirs/state 3838s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_6J0B62/gdbus/codegen/unix-fd-list/.dirs/runtime 3838s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1726 3838s ok 8 /gdbus/codegen/unix-fd-list 3838s # End of codegen tests 3838s # End of gdbus tests 3838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3838s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3838s ok - glib/gdbus-test-codegen-old.test 3838s # Running test: glib/cxx-2b.test 3838s TAP version 14 3838s # random seed: R02S27af844d7bc602e00becdbb087efaa52 3838s 1..2 3838s # Start of gtask tests 3838s # 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. 3838s ok 1 /gtask/name 3838s # Start of name tests 3838s # 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. 3838s ok 2 /gtask/name/macro-wrapper 3838s # End of name tests 3838s # End of gtask tests 3838s ok - glib/cxx-2b.test 3838s # Running test: glib/simple-proxy.test 3838s TAP version 14 3838s # random seed: R02Sefc1dcdc503ebe101517c77faf8333a2 3838s 1..3 3838s # Start of static-proxy tests 3838s ok 1 /static-proxy/uri 3838s ok 2 /static-proxy/socks 3838s ok 3 /static-proxy/ignore 3838s # End of static-proxy tests 3838s ok - glib/simple-proxy.test 3838s # Running test: glib/network-address.test 3838s TAP version 14 3838s # random seed: R02S6d73a067e33e80893f5840cf834fe9e8 3838s 1..72 3838s # Start of network-address tests 3838s ok 1 /network-address/basic 3838s ok 2 /network-address/scope-id 3838s ok 3 /network-address/uri-scope-id 3838s ok 4 /network-address/to-string 3838s # Start of parse-host tests 3838s ok 5 /network-address/parse-host/0 3838s ok 6 /network-address/parse-host/1 3838s ok 7 /network-address/parse-host/2 3838s ok 8 /network-address/parse-host/3 3838s ok 9 /network-address/parse-host/4 3838s ok 10 /network-address/parse-host/5 3838s ok 11 /network-address/parse-host/6 3838s ok 12 /network-address/parse-host/7 3838s ok 13 /network-address/parse-host/8 3838s ok 14 /network-address/parse-host/9 3838s ok 15 /network-address/parse-host/10 3838s ok 16 /network-address/parse-host/11 3838s ok 17 /network-address/parse-host/12 3838s ok 18 /network-address/parse-host/13 3838s # End of parse-host tests 3838s # Start of parse-uri tests 3838s ok 19 /network-address/parse-uri/0 3838s ok 20 /network-address/parse-uri/1 3838s ok 21 /network-address/parse-uri/2 3838s ok 22 /network-address/parse-uri/3 3838s ok 23 /network-address/parse-uri/4 3838s ok 24 /network-address/parse-uri/5 3838s ok 25 /network-address/parse-uri/6 3838s ok 26 /network-address/parse-uri/7 3838s ok 27 /network-address/parse-uri/8 3838s ok 28 /network-address/parse-uri/9 3838s # End of parse-uri tests 3838s # Start of resolve-address tests 3838s # Input: 192.168.1.2 3838s ok 29 /network-address/resolve-address/0 3838s # Input: fe80::42 3838s ok 30 /network-address/resolve-address/1 3838s # Input: 192.168.1.2:80 3838s ok 31 /network-address/resolve-address/2 3838s # Input: [fe80::42] 3838s ok 32 /network-address/resolve-address/3 3838s # Input: [fe80::42]:80 3838s ok 33 /network-address/resolve-address/4 3838s # Input: 192.168.258 3838s ok 34 /network-address/resolve-address/5 3838s # Input: 192.11010306 3838s ok 35 /network-address/resolve-address/6 3838s # Input: 3232235778 3838s ok 36 /network-address/resolve-address/7 3838s # Input: 0300.0250.0001.0001 3838s ok 37 /network-address/resolve-address/8 3838s # Input: 0xC0.0xA8.0x01.0x02 3838s ok 38 /network-address/resolve-address/9 3838s # Input: 0xc0.0xa8.0x01.0x02 3838s ok 39 /network-address/resolve-address/10 3838s # Input: 0xc0a80102 3838s ok 40 /network-address/resolve-address/11 3838s # End of resolve-address tests 3838s # Start of loopback tests 3838s ok 41 /network-address/loopback/basic 3838s ok 42 /network-address/loopback/sync 3838s ok 43 /network-address/loopback/async 3838s # End of loopback tests 3838s # Start of localhost tests 3838s ok 44 /network-address/localhost/async 3838s ok 45 /network-address/localhost/sync 3838s # End of localhost tests 3838s # Start of happy-eyeballs tests 3838s ok 46 /network-address/happy-eyeballs/basic 3838s ok 47 /network-address/happy-eyeballs/parallel 3838s ok 48 /network-address/happy-eyeballs/slow-ipv4 3838s ok 49 /network-address/happy-eyeballs/slow-ipv6 3839s ok 50 /network-address/happy-eyeballs/very-slow-ipv6 3839s # Executing: glib/network-address.test 3839s ok 51 /network-address/happy-eyeballs/slow-connection-and-ipv4 3839s # slow test /network-address/happy-eyeballs/slow-connection-and-ipv4 executed in 0.81 secs 3839s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 3839s ok 52 /network-address/happy-eyeballs/ipv6-error-ipv4-first 3839s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 3839s ok 53 /network-address/happy-eyeballs/ipv6-error-ipv6-first 3839s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/865 3839s # /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. 3839s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 3840s ok 54 /network-address/happy-eyeballs/ipv6-error-ipv4-very-slow 3840s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 3840s ok 55 /network-address/happy-eyeballs/ipv4-error-ipv6-first 3840s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 3840s ok 56 /network-address/happy-eyeballs/ipv4-error-ipv4-first 3840s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 3840s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 3840s ok 57 /network-address/happy-eyeballs/both-error 3840s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 3840s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 3840s ok 58 /network-address/happy-eyeballs/both-error-delays-1 3840s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 3840s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 3840s ok 59 /network-address/happy-eyeballs/both-error-delays-2 3840s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 3840s ok 60 /network-address/happy-eyeballs/both-error-delays-3 3840s # End of happy-eyeballs tests 3840s # End of network-address tests 3840s # Start of gresolver tests 3840s # Start of resolve-address tests 3840s # Input: 192.168.1.2 3840s ok 61 /gresolver/resolve-address/0 3840s # Input: fe80::42 3840s ok 62 /gresolver/resolve-address/1 3840s # Input: 192.168.1.2:80 3840s # Error: Error resolving ?192.168.1.2:80?: Name or service not known 3840s ok 63 /gresolver/resolve-address/2 3840s # Input: [fe80::42] 3840s # Error: Error resolving ?[fe80::42]?: Name or service not known 3840s ok 64 /gresolver/resolve-address/3 3840s # Input: [fe80::42]:80 3840s # Error: Error resolving ?[fe80::42]:80?: Name or service not known 3840s ok 65 /gresolver/resolve-address/4 3840s # Input: 192.168.258 3840s # Error: Error resolving ?192.168.258?: Name or service not known 3840s ok 66 /gresolver/resolve-address/5 3840s # Input: 192.11010306 3840s # Error: Error resolving ?192.11010306?: Name or service not known 3840s ok 67 /gresolver/resolve-address/6 3840s # Input: 3232235778 3840s # Error: Error resolving ?3232235778?: Name or service not known 3840s ok 68 /gresolver/resolve-address/7 3840s # Input: 0300.0250.0001.0001 3840s # Error: Error resolving ?0300.0250.0001.0001?: Name or service not known 3840s ok 69 /gresolver/resolve-address/8 3840s # Input: 0xC0.0xA8.0x01.0x02 3840s # Error: Error resolving ?0xC0.0xA8.0x01.0x02?: Name or service not known 3840s ok 70 /gresolver/resolve-address/9 3840s # Input: 0xc0.0xa8.0x01.0x02 3840s # Error: Error resolving ?0xc0.0xa8.0x01.0x02?: Name or service not known 3840s ok 71 /gresolver/resolve-address/10 3840s ok - glib/network-address.test 3840s # Input: 0xc0a80102 3840s # Error: Error resolving ?0xc0a80102?: Name or service not known 3840s ok 72 /gresolver/resolve-address/11 3840s # End of resolve-address tests 3840s # End of gresolver tests 3840s # Running test: glib/cxx-20.test 3840s TAP version 14 3840s # random seed: R02S4ff43cac7ed9c23ab671f21687b066f1 3840s 1..2 3840s # Start of gtask tests 3840s # 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. 3840s ok 1 /gtask/name 3840s # Start of name tests 3840s # 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. 3840s ok 2 /gtask/name/macro-wrapper 3840s # End of name tests 3840s # End of gtask tests 3840s ok - glib/cxx-20.test 3840s # Running test: glib/node.test 3840s TAP version 14 3840s # random seed: R02S31a414958283e7d5ea3f20396c2219c2 3840s 1..6 3840s # Start of node tests 3840s ok 1 /node/allocation 3840s ok 2 /node/construction 3840s ok 3 /node/traversal 3840s ok 4 /node/misc 3840s ok 5 /node/unlink 3840s ok 6 /node/copy 3840s # End of node tests 3840s ok - glib/node.test 3840s # Running test: glib/async-close-output-stream.test 3840s TAP version 14 3840s # random seed: R02S624d1e1b358a42a052069b156fedcf7a 3840s 1..3 3840s # Start of close-async tests 3840s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 3840s ok 1 /close-async/without-flush 3840s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 3840s ok 2 /close-async/with-flush 3840s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 3840s ok 3 /close-async/with-async-flush 3840s # End of close-async tests 3840s ok - glib/async-close-output-stream.test 3840s # Running test: glib/dir.test 3840s TAP version 14 3840s # random seed: R02Sbcd17280d0e5c68b412c69239bbe6e4a 3840s 1..3 3840s # Start of dir tests 3840s ok 1 /dir/read 3840s ok 2 /dir/nonexisting 3840s # /dir/refcounting summary: Test refcounting interactions with g_dir_close() 3840s ok 3 /dir/refcounting 3840s # End of dir tests 3840s ok - glib/dir.test 3840s # Running test: glib/socket-service.test 3840s TAP version 14 3840s # random seed: R02S4c8866c18d3969602eb4cc8d6c69b60a 3840s 1..4 3840s # Start of socket-service tests 3840s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ?gio-proxy-resolver? 3841s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x5560f5403140 and GSocketClientAsyncConnectData 0x5560f53fdbb0 3841s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 3841s ok 1 /socket-service/start-stop 3841s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x5560f5407120 and GSocketClientAsyncConnectData 0x5560f5406dc0 3841s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 3841s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 3841s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x5560f54070a0 for GSocketClientAsyncConnectData 0x5560f53fdbb0 3841s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 3841s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 3841s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 3841s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 3841s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 3841s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x5560f54070a0 for GSocketClientAsyncConnectData 0x5560f5406dc0 3841s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 3841s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 3841s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 3841s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 3841s ok 2 /socket-service/read_write_async 3841s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x5560f5407120 and GSocketClientAsyncConnectData 0x5560f540b0f0 3841s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 3841s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 3841s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x5560f5408d00 for GSocketClientAsyncConnectData 0x5560f540b0f0 3841s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 3841s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 3841s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 3841s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 3841s ok 3 /socket-service/read_writev_async 3841s # Start of threaded tests 3841s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=712570 3841s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x5560f5408770 and GSocketClientAsyncConnectData 0x5560f5406dc0 3841s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 3841s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 3841s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x5560f54069f0 for GSocketClientAsyncConnectData 0x5560f5406dc0 3841s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 3841s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 3841s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 3841s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 3841s ok 4 /socket-service/threaded/712570 3841s # End of threaded tests 3841s # End of socket-service tests 3841s ok - glib/socket-service.test 3841s # Running test: glib/repository.test 3841s TAP version 14 3841s # random seed: R02Sd6c113c827620859daa4f9e8ee961ad3 3841s 1..23 3841s # Start of repository tests 3841s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_J5OW52/repository/basic/.dirs/home 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_J5OW52/repository/basic/.dirs/cache 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_J5OW52/repository/basic/.dirs/system-config1:/tmp/test_repository_J5OW52/repository/basic/.dirs/system-config2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_J5OW52/repository/basic/.dirs/config 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_J5OW52/repository/basic/.dirs/system-data1:/tmp/test_repository_J5OW52/repository/basic/.dirs/system-data2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_J5OW52/repository/basic/.dirs/data 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_J5OW52/repository/basic/.dirs/state 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_J5OW52/repository/basic/.dirs/runtime 3841s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3841s # /repository/basic summary: Test basic opening of a repository and requiring a typelib 3841s ok 1 /repository/basic 3841s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_J5OW52/repository/info/.dirs/home 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_J5OW52/repository/info/.dirs/cache 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_J5OW52/repository/info/.dirs/system-config1:/tmp/test_repository_J5OW52/repository/info/.dirs/system-config2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_J5OW52/repository/info/.dirs/config 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_J5OW52/repository/info/.dirs/system-data1:/tmp/test_repository_J5OW52/repository/info/.dirs/system-data2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_J5OW52/repository/info/.dirs/data 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_J5OW52/repository/info/.dirs/state 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_J5OW52/repository/info/.dirs/runtime 3841s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3841s # /repository/info summary: Test retrieving some basic info blobs from a typelib 3841s ok 2 /repository/info 3841s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_J5OW52/repository/dependencies/.dirs/home 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_J5OW52/repository/dependencies/.dirs/cache 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_J5OW52/repository/dependencies/.dirs/system-config1:/tmp/test_repository_J5OW52/repository/dependencies/.dirs/system-config2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_J5OW52/repository/dependencies/.dirs/config 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_J5OW52/repository/dependencies/.dirs/system-data1:/tmp/test_repository_J5OW52/repository/dependencies/.dirs/system-data2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_J5OW52/repository/dependencies/.dirs/data 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_J5OW52/repository/dependencies/.dirs/state 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_J5OW52/repository/dependencies/.dirs/runtime 3841s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3841s # /repository/dependencies summary: Test ensures namespace dependencies are correctly exposed 3841s ok 3 /repository/dependencies 3841s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_J5OW52/repository/arg-info/.dirs/home 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_J5OW52/repository/arg-info/.dirs/cache 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_J5OW52/repository/arg-info/.dirs/system-config1:/tmp/test_repository_J5OW52/repository/arg-info/.dirs/system-config2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_J5OW52/repository/arg-info/.dirs/config 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_J5OW52/repository/arg-info/.dirs/system-data1:/tmp/test_repository_J5OW52/repository/arg-info/.dirs/system-data2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_J5OW52/repository/arg-info/.dirs/data 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_J5OW52/repository/arg-info/.dirs/state 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_J5OW52/repository/arg-info/.dirs/runtime 3841s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3841s # /repository/arg-info summary: Test retrieving GIArgInfos from a typelib 3841s ok 4 /repository/arg-info 3841s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_J5OW52/repository/callable-info/.dirs/home 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_J5OW52/repository/callable-info/.dirs/cache 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_J5OW52/repository/callable-info/.dirs/system-config1:/tmp/test_repository_J5OW52/repository/callable-info/.dirs/system-config2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_J5OW52/repository/callable-info/.dirs/config 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_J5OW52/repository/callable-info/.dirs/system-data1:/tmp/test_repository_J5OW52/repository/callable-info/.dirs/system-data2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_J5OW52/repository/callable-info/.dirs/data 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_J5OW52/repository/callable-info/.dirs/state 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_J5OW52/repository/callable-info/.dirs/runtime 3841s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3841s # /repository/callable-info summary: Test retrieving GICallableInfos from a typelib 3841s ok 5 /repository/callable-info 3841s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_J5OW52/repository/callback-info/.dirs/home 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_J5OW52/repository/callback-info/.dirs/cache 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_J5OW52/repository/callback-info/.dirs/system-config1:/tmp/test_repository_J5OW52/repository/callback-info/.dirs/system-config2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_J5OW52/repository/callback-info/.dirs/config 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_J5OW52/repository/callback-info/.dirs/system-data1:/tmp/test_repository_J5OW52/repository/callback-info/.dirs/system-data2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_J5OW52/repository/callback-info/.dirs/data 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_J5OW52/repository/callback-info/.dirs/state 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_J5OW52/repository/callback-info/.dirs/runtime 3841s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3841s # /repository/callback-info summary: Test retrieving GICallbackInfos from a typelib 3841s ok 6 /repository/callback-info 3841s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_J5OW52/repository/char-types/.dirs/home 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_J5OW52/repository/char-types/.dirs/cache 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_J5OW52/repository/char-types/.dirs/system-config1:/tmp/test_repository_J5OW52/repository/char-types/.dirs/system-config2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_J5OW52/repository/char-types/.dirs/config 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_J5OW52/repository/char-types/.dirs/system-data1:/tmp/test_repository_J5OW52/repository/char-types/.dirs/system-data2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_J5OW52/repository/char-types/.dirs/data 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_J5OW52/repository/char-types/.dirs/state 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_J5OW52/repository/char-types/.dirs/runtime 3841s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3841s # /repository/char-types summary: Test that signed and unsigned char GITypeInfo have GITypeTag of INT8 and UINT8 respectively 3841s ok 7 /repository/char-types 3841s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_J5OW52/repository/constructor-return-type/.dirs/home 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_J5OW52/repository/constructor-return-type/.dirs/cache 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_J5OW52/repository/constructor-return-type/.dirs/system-config1:/tmp/test_repository_J5OW52/repository/constructor-return-type/.dirs/system-config2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_J5OW52/repository/constructor-return-type/.dirs/config 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_J5OW52/repository/constructor-return-type/.dirs/system-data1:/tmp/test_repository_J5OW52/repository/constructor-return-type/.dirs/system-data2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_J5OW52/repository/constructor-return-type/.dirs/data 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_J5OW52/repository/constructor-return-type/.dirs/state 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_J5OW52/repository/constructor-return-type/.dirs/runtime 3841s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3841s # /repository/constructor-return-type summary: Test the return type of a constructor, g_object_newv() 3841s ok 8 /repository/constructor-return-type 3841s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_J5OW52/repository/enum-info-c-identifier/.dirs/home 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_J5OW52/repository/enum-info-c-identifier/.dirs/cache 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_J5OW52/repository/enum-info-c-identifier/.dirs/system-config1:/tmp/test_repository_J5OW52/repository/enum-info-c-identifier/.dirs/system-config2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_J5OW52/repository/enum-info-c-identifier/.dirs/config 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_J5OW52/repository/enum-info-c-identifier/.dirs/system-data1:/tmp/test_repository_J5OW52/repository/enum-info-c-identifier/.dirs/system-data2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_J5OW52/repository/enum-info-c-identifier/.dirs/data 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_J5OW52/repository/enum-info-c-identifier/.dirs/state 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_J5OW52/repository/enum-info-c-identifier/.dirs/runtime 3841s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3841s # /repository/enum-info-c-identifier summary: Test that every enum member has a C identifier 3841s ok 9 /repository/enum-info-c-identifier 3841s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_J5OW52/repository/enum-info-static-methods/.dirs/home 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_J5OW52/repository/enum-info-static-methods/.dirs/cache 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_J5OW52/repository/enum-info-static-methods/.dirs/system-config1:/tmp/test_repository_J5OW52/repository/enum-info-static-methods/.dirs/system-config2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_J5OW52/repository/enum-info-static-methods/.dirs/config 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_J5OW52/repository/enum-info-static-methods/.dirs/system-data1:/tmp/test_repository_J5OW52/repository/enum-info-static-methods/.dirs/system-data2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_J5OW52/repository/enum-info-static-methods/.dirs/data 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_J5OW52/repository/enum-info-static-methods/.dirs/state 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_J5OW52/repository/enum-info-static-methods/.dirs/runtime 3841s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3841s # /repository/enum-info-static-methods summary: Test an enum with methods 3841s ok 10 /repository/enum-info-static-methods 3841s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_J5OW52/repository/error-quark/.dirs/home 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_J5OW52/repository/error-quark/.dirs/cache 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_J5OW52/repository/error-quark/.dirs/system-config1:/tmp/test_repository_J5OW52/repository/error-quark/.dirs/system-config2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_J5OW52/repository/error-quark/.dirs/config 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_J5OW52/repository/error-quark/.dirs/system-data1:/tmp/test_repository_J5OW52/repository/error-quark/.dirs/system-data2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_J5OW52/repository/error-quark/.dirs/data 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_J5OW52/repository/error-quark/.dirs/state 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_J5OW52/repository/error-quark/.dirs/runtime 3841s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3841s # /repository/error-quark summary: Test finding an error quark by error domain 3841s ok 11 /repository/error-quark 3841s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_J5OW52/repository/flags-info-c-identifier/.dirs/home 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_J5OW52/repository/flags-info-c-identifier/.dirs/cache 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_J5OW52/repository/flags-info-c-identifier/.dirs/system-config1:/tmp/test_repository_J5OW52/repository/flags-info-c-identifier/.dirs/system-config2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_J5OW52/repository/flags-info-c-identifier/.dirs/config 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_J5OW52/repository/flags-info-c-identifier/.dirs/system-data1:/tmp/test_repository_J5OW52/repository/flags-info-c-identifier/.dirs/system-data2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_J5OW52/repository/flags-info-c-identifier/.dirs/data 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_J5OW52/repository/flags-info-c-identifier/.dirs/state 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_J5OW52/repository/flags-info-c-identifier/.dirs/runtime 3841s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3841s # /repository/flags-info-c-identifier summary: Test that every flags member has a C identifier 3841s ok 12 /repository/flags-info-c-identifier 3841s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_J5OW52/repository/fundamental-ref-func/.dirs/home 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_J5OW52/repository/fundamental-ref-func/.dirs/cache 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_J5OW52/repository/fundamental-ref-func/.dirs/system-config1:/tmp/test_repository_J5OW52/repository/fundamental-ref-func/.dirs/system-config2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_J5OW52/repository/fundamental-ref-func/.dirs/config 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_J5OW52/repository/fundamental-ref-func/.dirs/system-data1:/tmp/test_repository_J5OW52/repository/fundamental-ref-func/.dirs/system-data2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_J5OW52/repository/fundamental-ref-func/.dirs/data 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_J5OW52/repository/fundamental-ref-func/.dirs/state 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_J5OW52/repository/fundamental-ref-func/.dirs/runtime 3841s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3841s # /repository/fundamental-ref-func summary: Test getting the ref func of a fundamental type 3841s ok 13 /repository/fundamental-ref-func 3841s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_J5OW52/repository/instance-method-ownership-transfer/.dirs/home 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_J5OW52/repository/instance-method-ownership-transfer/.dirs/cache 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_J5OW52/repository/instance-method-ownership-transfer/.dirs/system-config1:/tmp/test_repository_J5OW52/repository/instance-method-ownership-transfer/.dirs/system-config2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_J5OW52/repository/instance-method-ownership-transfer/.dirs/config 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_J5OW52/repository/instance-method-ownership-transfer/.dirs/system-data1:/tmp/test_repository_J5OW52/repository/instance-method-ownership-transfer/.dirs/system-data2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_J5OW52/repository/instance-method-ownership-transfer/.dirs/data 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_J5OW52/repository/instance-method-ownership-transfer/.dirs/state 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_J5OW52/repository/instance-method-ownership-transfer/.dirs/runtime 3841s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3841s # /repository/instance-method-ownership-transfer summary: Test two methods of the same object having opposite ownership transfer of the instance parameter 3841s ok 14 /repository/instance-method-ownership-transfer 3841s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_J5OW52/repository/object-gtype-interfaces/.dirs/home 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_J5OW52/repository/object-gtype-interfaces/.dirs/cache 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_J5OW52/repository/object-gtype-interfaces/.dirs/system-config1:/tmp/test_repository_J5OW52/repository/object-gtype-interfaces/.dirs/system-config2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_J5OW52/repository/object-gtype-interfaces/.dirs/config 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_J5OW52/repository/object-gtype-interfaces/.dirs/system-data1:/tmp/test_repository_J5OW52/repository/object-gtype-interfaces/.dirs/system-data2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_J5OW52/repository/object-gtype-interfaces/.dirs/data 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_J5OW52/repository/object-gtype-interfaces/.dirs/state 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_J5OW52/repository/object-gtype-interfaces/.dirs/runtime 3841s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3841s # /repository/object-gtype-interfaces summary: Test gi_repository_get_object_gtype_interfaces() 3841s ok 15 /repository/object-gtype-interfaces 3841s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_J5OW52/repository/signal-info-with-array-length-arg/.dirs/home 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_J5OW52/repository/signal-info-with-array-length-arg/.dirs/cache 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_J5OW52/repository/signal-info-with-array-length-arg/.dirs/system-config1:/tmp/test_repository_J5OW52/repository/signal-info-with-array-length-arg/.dirs/system-config2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_J5OW52/repository/signal-info-with-array-length-arg/.dirs/config 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_J5OW52/repository/signal-info-with-array-length-arg/.dirs/system-data1:/tmp/test_repository_J5OW52/repository/signal-info-with-array-length-arg/.dirs/system-data2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_J5OW52/repository/signal-info-with-array-length-arg/.dirs/data 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_J5OW52/repository/signal-info-with-array-length-arg/.dirs/state 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_J5OW52/repository/signal-info-with-array-length-arg/.dirs/runtime 3841s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3841s # /repository/signal-info-with-array-length-arg summary: Test finding the associated array length argument of an array parameter of a signal 3841s ok 16 /repository/signal-info-with-array-length-arg 3841s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_J5OW52/repository/type-info-name/.dirs/home 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_J5OW52/repository/type-info-name/.dirs/cache 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_J5OW52/repository/type-info-name/.dirs/system-config1:/tmp/test_repository_J5OW52/repository/type-info-name/.dirs/system-config2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_J5OW52/repository/type-info-name/.dirs/config 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_J5OW52/repository/type-info-name/.dirs/system-data1:/tmp/test_repository_J5OW52/repository/type-info-name/.dirs/system-data2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_J5OW52/repository/type-info-name/.dirs/data 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_J5OW52/repository/type-info-name/.dirs/state 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_J5OW52/repository/type-info-name/.dirs/runtime 3841s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3841s # /repository/type-info-name summary: Test that gi_base_info_get_name() returns null for GITypeInfo 3841s # Bug Reference: https://gitlab.gnome.org/GNOME/gobject-introspection/issues/96 3841s ok 17 /repository/type-info-name 3841s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_J5OW52/repository/vfunc-info-with-no-invoker/.dirs/home 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_J5OW52/repository/vfunc-info-with-no-invoker/.dirs/cache 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_J5OW52/repository/vfunc-info-with-no-invoker/.dirs/system-config1:/tmp/test_repository_J5OW52/repository/vfunc-info-with-no-invoker/.dirs/system-config2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_J5OW52/repository/vfunc-info-with-no-invoker/.dirs/config 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_J5OW52/repository/vfunc-info-with-no-invoker/.dirs/system-data1:/tmp/test_repository_J5OW52/repository/vfunc-info-with-no-invoker/.dirs/system-data2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_J5OW52/repository/vfunc-info-with-no-invoker/.dirs/data 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_J5OW52/repository/vfunc-info-with-no-invoker/.dirs/state 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_J5OW52/repository/vfunc-info-with-no-invoker/.dirs/runtime 3841s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3841s # /repository/vfunc-info-with-no-invoker summary: Test vfunc with no known invoker on object, such as GObject.dispose 3841s ok 18 /repository/vfunc-info-with-no-invoker 3841s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_J5OW52/repository/vfunc-info-with-invoker-on-interface/.dirs/home 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_J5OW52/repository/vfunc-info-with-invoker-on-interface/.dirs/cache 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_J5OW52/repository/vfunc-info-with-invoker-on-interface/.dirs/system-config1:/tmp/test_repository_J5OW52/repository/vfunc-info-with-invoker-on-interface/.dirs/system-config2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_J5OW52/repository/vfunc-info-with-invoker-on-interface/.dirs/config 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_J5OW52/repository/vfunc-info-with-invoker-on-interface/.dirs/system-data1:/tmp/test_repository_J5OW52/repository/vfunc-info-with-invoker-on-interface/.dirs/system-data2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_J5OW52/repository/vfunc-info-with-invoker-on-interface/.dirs/data 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_J5OW52/repository/vfunc-info-with-invoker-on-interface/.dirs/state 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_J5OW52/repository/vfunc-info-with-invoker-on-interface/.dirs/runtime 3841s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3841s # /repository/vfunc-info-with-invoker-on-interface summary: Test vfunc with invoker on interface, such as GFile.read_async 3841s ok 19 /repository/vfunc-info-with-invoker-on-interface 3841s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_J5OW52/repository/vfunc-info-with-invoker-on-object/.dirs/home 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_J5OW52/repository/vfunc-info-with-invoker-on-object/.dirs/cache 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_J5OW52/repository/vfunc-info-with-invoker-on-object/.dirs/system-config1:/tmp/test_repository_J5OW52/repository/vfunc-info-with-invoker-on-object/.dirs/system-config2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_J5OW52/repository/vfunc-info-with-invoker-on-object/.dirs/config 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_J5OW52/repository/vfunc-info-with-invoker-on-object/.dirs/system-data1:/tmp/test_repository_J5OW52/repository/vfunc-info-with-invoker-on-object/.dirs/system-data2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_J5OW52/repository/vfunc-info-with-invoker-on-object/.dirs/data 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_J5OW52/repository/vfunc-info-with-invoker-on-object/.dirs/state 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_J5OW52/repository/vfunc-info-with-invoker-on-object/.dirs/runtime 3841s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3841s # /repository/vfunc-info-with-invoker-on-object summary: Test vfunc with invoker on object, such as GAppLaunchContext.get_display 3841s ok 20 /repository/vfunc-info-with-invoker-on-object 3841s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_J5OW52/repository/find-by-gtype/.dirs/home 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_J5OW52/repository/find-by-gtype/.dirs/cache 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_J5OW52/repository/find-by-gtype/.dirs/system-config1:/tmp/test_repository_J5OW52/repository/find-by-gtype/.dirs/system-config2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_J5OW52/repository/find-by-gtype/.dirs/config 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_J5OW52/repository/find-by-gtype/.dirs/system-data1:/tmp/test_repository_J5OW52/repository/find-by-gtype/.dirs/system-data2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_J5OW52/repository/find-by-gtype/.dirs/data 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_J5OW52/repository/find-by-gtype/.dirs/state 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_J5OW52/repository/find-by-gtype/.dirs/runtime 3841s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3841s # /repository/find-by-gtype summary: Test finding a GType 3841s ok 21 /repository/find-by-gtype 3841s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_J5OW52/repository/loaded-namespaces/.dirs/home 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_J5OW52/repository/loaded-namespaces/.dirs/cache 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_J5OW52/repository/loaded-namespaces/.dirs/system-config1:/tmp/test_repository_J5OW52/repository/loaded-namespaces/.dirs/system-config2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_J5OW52/repository/loaded-namespaces/.dirs/config 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_J5OW52/repository/loaded-namespaces/.dirs/system-data1:/tmp/test_repository_J5OW52/repository/loaded-namespaces/.dirs/system-data2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_J5OW52/repository/loaded-namespaces/.dirs/data 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_J5OW52/repository/loaded-namespaces/.dirs/state 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_J5OW52/repository/loaded-namespaces/.dirs/runtime 3841s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3841s # /repository/loaded-namespaces summary: Test listing loaded namespaces 3841s ok 22 /repository/loaded-namespaces 3841s # Start of base-info tests 3841s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_J5OW52/repository/base-info/clear/.dirs/home 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_J5OW52/repository/base-info/clear/.dirs/cache 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_J5OW52/repository/base-info/clear/.dirs/system-config1:/tmp/test_repository_J5OW52/repository/base-info/clear/.dirs/system-config2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_J5OW52/repository/base-info/clear/.dirs/config 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_J5OW52/repository/base-info/clear/.dirs/system-data1:/tmp/test_repository_J5OW52/repository/base-info/clear/.dirs/system-data2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_J5OW52/repository/base-info/clear/.dirs/data 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_J5OW52/repository/base-info/clear/.dirs/state 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_J5OW52/repository/base-info/clear/.dirs/runtime 3841s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3841s # /repository/base-info/clear summary: Test calling gi_base_info_clear() on a zero-filled struct 3841s ok 23 /repository/base-info/clear 3841s # End of base-info tests 3841s # End of repository tests 3841s ok - glib/repository.test 3841s # Running test: glib/buffered-input-stream.test 3841s TAP version 14 3841s # random seed: R02S7c41a402bc12228c5b8486d82f99348f 3841s 1..10 3841s # Start of buffered-input-stream tests 3841s ok 1 /buffered-input-stream/peek 3841s ok 2 /buffered-input-stream/peek-buffer 3841s ok 3 /buffered-input-stream/set-buffer-size 3841s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=562393 3841s ok 4 /buffered-input-stream/read-byte 3841s ok 5 /buffered-input-stream/read 3841s ok 6 /buffered-input-stream/read-async 3841s ok 7 /buffered-input-stream/skip 3841s ok 8 /buffered-input-stream/skip-async 3841s ok 9 /buffered-input-stream/seek 3841s # End of buffered-input-stream tests 3841s # Start of filter-input-stream tests 3841s ok 10 /filter-input-stream/close 3841s # End of filter-input-stream tests 3841s ok - glib/buffered-input-stream.test 3841s # Running test: glib/markup.test 3841s TAP version 14 3841s # random seed: R02S7e218f1ebff0553baa8612e238fe7321 3841s 1..1 3841s # Start of markup tests 3841s ok 1 /markup/stack 3841s # End of markup tests 3841s ok - glib/markup.test 3841s # Running test: glib/search-utils.test 3841s TAP version 14 3841s # random seed: R02S88bd484ebcd69af7cca5e7d03192c5d6 3841s # GLib-DEBUG: Current user locale: C.UTF-8 3841s 1..6 3841s # Start of search tests 3841s # GLib-DEBUG: Started 3841s # GLib-DEBUG: 'he' - 'Hello World' should match: OK 3841s # GLib-DEBUG: 'wo' - 'Hello World' should match: OK 3841s # GLib-DEBUG: 'lo' - 'Hello World' should NOT match: OK 3841s # GLib-DEBUG: 'ld' - 'Hello World' should NOT match: OK 3841s # GLib-DEBUG: 'wo' - 'Hello-World' should match: OK 3841s # GLib-DEBUG: 'wo' - 'HelloWorld' should NOT match: OK 3841s ok 1 /search/basic 3841s # GLib-DEBUG: Started 3841s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 3841s # GLib-DEBUG: 'gaetan' - 'Gaëtan' should match: OK 3841s # GLib-DEBUG: 'ele' - 'élève' should match: OK 3841s # GLib-DEBUG: 'AzaÏs' - 'Azais' should NOT match: OK 3841s # GLib-DEBUG: 'Azais' - 'AzaÏs' should match: OK 3841s ok 2 /search/composed 3841s # GLib-DEBUG: Started 3841s # GLib-DEBUG: 'Jör' - 'Jorgen' should NOT match: OK 3841s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 3841s ok 3 /search/decomposed 3841s # GLib-DEBUG: Started 3841s # GLib-DEBUG: 'ist' - 'İstanbul' should match: OK 3841s # GLib-DEBUG: 'diyarbakir' - 'Diyarbakır' should match: OK 3841s ok 4 /search/turkish 3841s # GLib-DEBUG: Started 3841s # GLib-DEBUG: 'jor' - 'J?rgen' should match: OK 3841s # GLib-DEBUG: 'Jo?r' - 'Jorgen' should NOT match: OK 3841s # GLib-DEBUG: 'jor' - 'Jo?rgen' should match: OK 3841s ok 5 /search/c_locale_unicode 3841s # GLib-DEBUG: Started 3841s # GLib-DEBUG: 'Xav Cla' - 'Xavier Claessens' should match: OK 3841s # GLib-DEBUG: 'Cla Xav' - 'Xavier Claessens' should match: OK 3841s # GLib-DEBUG: ' b ' - 'Foo Bar Baz' should match: OK 3841s # GLib-DEBUG: 'bar bazz' - 'Foo Bar Baz' should NOT match: OK 3841s ok 6 /search/multi_words 3841s # End of search tests 3841s ok - glib/search-utils.test 3841s # Running test: glib/gdbus-serialization.test 3841s TAP version 14 3841s # random seed: R02S7c061a666d14d3d2dfb923b43454f677 3841s 1..18 3841s # Start of gdbus tests 3841s # Start of message-serialize tests 3841s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/basic/.dirs/home 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/basic/.dirs/cache 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/basic/.dirs/system-config1:/tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/basic/.dirs/system-config2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/basic/.dirs/config 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/basic/.dirs/system-data1:/tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/basic/.dirs/system-data2 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/basic/.dirs/data 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/basic/.dirs/state 3841s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/basic/.dirs/runtime 3842s ok 1 /gdbus/message-serialize/basic 3842s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/complex/.dirs/home 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/complex/.dirs/cache 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/complex/.dirs/system-config1:/tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/complex/.dirs/system-config2 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/complex/.dirs/config 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/complex/.dirs/system-data1:/tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/complex/.dirs/system-data2 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/complex/.dirs/data 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/complex/.dirs/state 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/complex/.dirs/runtime 3842s ok 2 /gdbus/message-serialize/complex 3842s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/invalid/.dirs/home 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/invalid/.dirs/cache 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/invalid/.dirs/system-config1:/tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/invalid/.dirs/system-config2 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/invalid/.dirs/config 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/invalid/.dirs/system-data1:/tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/invalid/.dirs/system-data2 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/invalid/.dirs/data 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/invalid/.dirs/state 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/invalid/.dirs/runtime 3842s ok 3 /gdbus/message-serialize/invalid 3842s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/header-checks/.dirs/home 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/header-checks/.dirs/cache 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/header-checks/.dirs/system-config1:/tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/header-checks/.dirs/system-config2 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/header-checks/.dirs/config 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/header-checks/.dirs/system-data1:/tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/header-checks/.dirs/system-data2 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/header-checks/.dirs/data 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/header-checks/.dirs/state 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/header-checks/.dirs/runtime 3842s ok 4 /gdbus/message-serialize/header-checks 3842s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/double-array/.dirs/home 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/double-array/.dirs/cache 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/double-array/.dirs/system-config1:/tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/double-array/.dirs/system-config2 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/double-array/.dirs/config 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/double-array/.dirs/system-data1:/tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/double-array/.dirs/system-data2 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/double-array/.dirs/data 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/double-array/.dirs/state 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/double-array/.dirs/runtime 3842s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=732754 3842s ok 5 /gdbus/message-serialize/double-array 3842s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/empty-structure/.dirs/home 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/empty-structure/.dirs/cache 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/empty-structure/.dirs/system-config1:/tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/empty-structure/.dirs/system-config2 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/empty-structure/.dirs/config 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/empty-structure/.dirs/system-data1:/tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/empty-structure/.dirs/system-data2 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/empty-structure/.dirs/data 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/empty-structure/.dirs/state 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/empty-structure/.dirs/runtime 3842s # /gdbus/message-serialize/empty-structure summary: Test that empty structures are rejected when serializing. 3842s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2557 3842s ok 6 /gdbus/message-serialize/empty-structure 3842s # Start of header-checks tests 3842s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/header-checks/valid/.dirs/home 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/header-checks/valid/.dirs/cache 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/header-checks/valid/.dirs/system-config1:/tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/header-checks/valid/.dirs/system-config2 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/header-checks/valid/.dirs/config 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/header-checks/valid/.dirs/system-data1:/tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/header-checks/valid/.dirs/system-data2 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/header-checks/valid/.dirs/data 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/header-checks/valid/.dirs/state 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_4OT252/gdbus/message-serialize/header-checks/valid/.dirs/runtime 3842s # /gdbus/message-serialize/header-checks/valid summary: Test that validation allows well-formed messages of all the different types 3842s ok 7 /gdbus/message-serialize/header-checks/valid 3842s # End of header-checks tests 3842s # End of message-serialize tests 3842s # Start of message-parse tests 3842s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/empty-arrays-of-arrays/.dirs/home 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/empty-arrays-of-arrays/.dirs/cache 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-config1:/tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-config2 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/empty-arrays-of-arrays/.dirs/config 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-data1:/tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-data2 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/empty-arrays-of-arrays/.dirs/data 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/empty-arrays-of-arrays/.dirs/state 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/empty-arrays-of-arrays/.dirs/runtime 3842s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=673612 3842s ok 8 /gdbus/message-parse/empty-arrays-of-arrays 3842s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/non-signature-header/.dirs/home 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/non-signature-header/.dirs/cache 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/non-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/non-signature-header/.dirs/system-config2 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/non-signature-header/.dirs/config 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/non-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/non-signature-header/.dirs/system-data2 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/non-signature-header/.dirs/data 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/non-signature-header/.dirs/state 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/non-signature-header/.dirs/runtime 3842s ok 9 /gdbus/message-parse/non-signature-header 3842s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/empty-signature-header/.dirs/home 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/empty-signature-header/.dirs/cache 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/empty-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/empty-signature-header/.dirs/system-config2 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/empty-signature-header/.dirs/config 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/empty-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/empty-signature-header/.dirs/system-data2 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/empty-signature-header/.dirs/data 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/empty-signature-header/.dirs/state 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/empty-signature-header/.dirs/runtime 3842s ok 10 /gdbus/message-parse/empty-signature-header 3842s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/multiple-signature-header/.dirs/home 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/multiple-signature-header/.dirs/cache 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/multiple-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/multiple-signature-header/.dirs/system-config2 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/multiple-signature-header/.dirs/config 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/multiple-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/multiple-signature-header/.dirs/system-data2 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/multiple-signature-header/.dirs/data 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/multiple-signature-header/.dirs/state 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/multiple-signature-header/.dirs/runtime 3842s ok 11 /gdbus/message-parse/multiple-signature-header 3842s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/over-long-signature-header/.dirs/home 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/over-long-signature-header/.dirs/cache 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/over-long-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/over-long-signature-header/.dirs/system-config2 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/over-long-signature-header/.dirs/config 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/over-long-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/over-long-signature-header/.dirs/system-data2 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/over-long-signature-header/.dirs/data 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/over-long-signature-header/.dirs/state 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/over-long-signature-header/.dirs/runtime 3842s ok 12 /gdbus/message-parse/over-long-signature-header 3842s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/deep-header-nesting/.dirs/home 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/deep-header-nesting/.dirs/cache 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/deep-header-nesting/.dirs/system-config1:/tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/deep-header-nesting/.dirs/system-config2 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/deep-header-nesting/.dirs/config 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/deep-header-nesting/.dirs/system-data1:/tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/deep-header-nesting/.dirs/system-data2 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/deep-header-nesting/.dirs/data 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/deep-header-nesting/.dirs/state 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/deep-header-nesting/.dirs/runtime 3842s ok 13 /gdbus/message-parse/deep-header-nesting 3842s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/deep-body-nesting/.dirs/home 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/deep-body-nesting/.dirs/cache 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/deep-body-nesting/.dirs/system-config1:/tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/deep-body-nesting/.dirs/system-config2 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/deep-body-nesting/.dirs/config 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/deep-body-nesting/.dirs/system-data1:/tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/deep-body-nesting/.dirs/system-data2 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/deep-body-nesting/.dirs/data 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/deep-body-nesting/.dirs/state 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/deep-body-nesting/.dirs/runtime 3842s ok 14 /gdbus/message-parse/deep-body-nesting 3842s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/truncated/.dirs/home 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/truncated/.dirs/cache 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/truncated/.dirs/system-config1:/tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/truncated/.dirs/system-config2 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/truncated/.dirs/config 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/truncated/.dirs/system-data1:/tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/truncated/.dirs/system-data2 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/truncated/.dirs/data 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/truncated/.dirs/state 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/truncated/.dirs/runtime 3842s # /gdbus/message-parse/truncated summary: Test that truncated messages are properly rejected. 3842s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2528 3842s ok 15 /gdbus/message-parse/truncated 3842s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/empty-structure/.dirs/home 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/empty-structure/.dirs/cache 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/empty-structure/.dirs/system-config1:/tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/empty-structure/.dirs/system-config2 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/empty-structure/.dirs/config 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/empty-structure/.dirs/system-data1:/tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/empty-structure/.dirs/system-data2 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/empty-structure/.dirs/data 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/empty-structure/.dirs/state 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/empty-structure/.dirs/runtime 3842s # /gdbus/message-parse/empty-structure summary: Test that empty structures are rejected when parsing. 3842s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2557 3842s ok 16 /gdbus/message-parse/empty-structure 3842s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/missing-header/.dirs/home 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/missing-header/.dirs/cache 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/missing-header/.dirs/system-config1:/tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/missing-header/.dirs/system-config2 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/missing-header/.dirs/config 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/missing-header/.dirs/system-data1:/tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/missing-header/.dirs/system-data2 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/missing-header/.dirs/data 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/missing-header/.dirs/state 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/missing-header/.dirs/runtime 3842s # /gdbus/message-parse/missing-header summary: Test that missing (required) headers prompt an error. 3842s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3061 3842s ok 17 /gdbus/message-parse/missing-header 3842s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/invalid-header-type/.dirs/home 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/invalid-header-type/.dirs/cache 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/invalid-header-type/.dirs/system-config1:/tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/invalid-header-type/.dirs/system-config2 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/invalid-header-type/.dirs/config 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/invalid-header-type/.dirs/system-data1:/tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/invalid-header-type/.dirs/system-data2 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/invalid-header-type/.dirs/data 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/invalid-header-type/.dirs/state 3842s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_4OT252/gdbus/message-parse/invalid-header-type/.dirs/runtime 3842s # /gdbus/message-parse/invalid-header-type summary: Test that the type of well-known headers is checked. 3842s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3061 3842s ok 18 /gdbus/message-parse/invalid-header-type 3842s # End of message-parse tests 3842s # End of gdbus tests 3842s ok - glib/gdbus-serialization.test 3842s # Running test: glib/unicode.test 3842s TAP version 14 3842s # random seed: R02S694b929bfb39b28d7d98309b64e19ae5 3842s 1..39 3842s # Start of unicode tests 3842s ok 1 /unicode/alnum 3842s ok 2 /unicode/alpha 3842s ok 3 /unicode/break-type 3842s ok 4 /unicode/canonical-decomposition 3842s ok 5 /unicode/casefold 3842s # Cannot set locale to lt_LT, skipping 3842s # Cannot set locale to lt_LT, skipping 3842s # Cannot set locale to lt_LT, skipping 3842s # Cannot set locale to lt_LT, skipping 3842s # Cannot set locale to lt_LT, skipping 3842s # Cannot set locale to lt_LT, skipping 3842s # Cannot set locale to lt_LT, skipping 3842s # Cannot set locale to lt_LT, skipping 3842s # Cannot set locale to lt_LT, skipping 3842s # Cannot set locale to lt_LT, skipping 3842s # Cannot set locale to lt_LT, skipping 3842s ok 6 /unicode/casemap_and_casefold 3842s ok 7 /unicode/cases 3842s ok 8 /unicode/character-type 3842s ok 9 /unicode/cntrl 3842s ok 10 /unicode/combining-class 3842s # Composing U+000041 and U+000042; expecting U+000000 3842s # Composing U+000041 and U+000000; expecting U+000000 3842s # Composing U+000066 and U+000069; expecting U+000000 3842s # Composing U+000308 and U+000301; expecting U+000000 3842s # Composing U+000f71 and U+000f72; expecting U+000000 3842s # Composing U+00212b and U+000000; expecting U+000000 3842s # Composing U+0000c5 and U+000000; expecting U+000000 3842s # Composing U+002126 and U+000000; expecting U+000000 3842s # Composing U+0003a9 and U+000000; expecting U+000000 3842s # Composing U+000041 and U+00030a; expecting U+0000c5 3842s # Composing U+00006f and U+000302; expecting U+0000f4 3842s # Composing U+001e63 and U+000307; expecting U+001e69 3842s # Composing U+000073 and U+000323; expecting U+001e63 3842s # Composing U+000064 and U+000307; expecting U+001e0b 3842s # Composing U+000064 and U+000323; expecting U+001e0d 3842s # Composing U+00d4cc and U+0011b6; expecting U+00d4db 3842s # Composing U+001111 and U+001171; expecting U+00d4cc 3842s # Composing U+00ce20 and U+0011b8; expecting U+00ce31 3842s # Composing U+00110e and U+001173; expecting U+00ce20 3842s # Composing U+001100 and U+001160; expecting U+000000 3842s # Composing U+001100 and U+001177; expecting U+000000 3842s # Composing U+00abff and U+0011b6; expecting U+000000 3842s # Composing U+00d7a5 and U+0011b6; expecting U+000000 3842s # Composing U+00ac01 and U+0011b6; expecting U+000000 3842s # Composing U+00d4cc and U+0011a6; expecting U+000000 3842s # Composing U+00d4cc and U+0011c4; expecting U+000000 3842s # Composing U+01611e and U+01611e; expecting U+016121 3842s # Composing U+01611e and U+01611f; expecting U+016123 3842s # Composing U+0000f6 and U+000304; expecting U+00022b 3842s # Composing U+000b47 and U+000b57; expecting U+000b4c 3842s # Composing U+0000a0 and U+000b57; expecting U+000000 3842s # Composing U+016e00 and U+00030a; expecting U+000000 3842s # Composing U+00212b and U+016e00; expecting U+000000 3842s # Composing U+001e63 and U+000306; expecting U+000000 3842s # Composing U+001e63 and U+000304; expecting U+000000 3842s # Composing U+001e63 and U+000b57; expecting U+000000 3842s # Composing U+001e63 and U+000000; expecting U+000000 3842s # Composing U+001e63 and U+0113c2; expecting U+000000 3842s # Composing U+001f01 and U+0113c2; expecting U+000000 3842s # Composing U+00006e and U+000302; expecting U+000000 3842s # Composing U+001e63 and U+01611f; expecting U+000000 3842s # Composing U+01138e and U+0113b8; expecting U+000000 3842s # Composing U+01611e and U+000000; expecting U+000000 3842s # Composing U+000000 and U+01611f; expecting U+000000 3842s # Composing U+011390 and U+0113c2; expecting U+000000 3842s ok 11 /unicode/compose 3842s ok 12 /unicode/decompose 3842s ok 13 /unicode/decompose-tail 3842s ok 14 /unicode/defined 3842s ok 15 /unicode/digit 3842s ok 16 /unicode/digit-value 3842s # Fully decomposing U+000041; expecting 1 codepoints 3842s # Fully decomposing U+00fb01; expecting 1 codepoints 3842s # Fully decomposing U+00212b; expecting 2 codepoints 3842s # Fully decomposing U+002126; expecting 1 codepoints 3842s # Fully decomposing U+000344; expecting 2 codepoints 3842s # Fully decomposing U+000f73; expecting 2 codepoints 3842s # Fully decomposing U+0000c5; expecting 2 codepoints 3842s # Fully decomposing U+0000f4; expecting 2 codepoints 3842s # Fully decomposing U+001e69; expecting 3 codepoints 3842s # Fully decomposing U+001e63; expecting 2 codepoints 3842s # Fully decomposing U+001e0b; expecting 2 codepoints 3842s # Fully decomposing U+001e0d; expecting 2 codepoints 3842s # Fully decomposing U+00d4db; expecting 3 codepoints 3842s # Fully decomposing U+00d4cc; expecting 2 codepoints 3842s # Fully decomposing U+00ce31; expecting 3 codepoints 3842s # Fully decomposing U+00ce20; expecting 2 codepoints 3842s ok 17 /unicode/fully-decompose-canonical 3842s ok 18 /unicode/fully-decompose-len 3842s ok 19 /unicode/normalization 3842s ok 20 /unicode/graph 3842s # Testing script Zyyy (code 1517910393) 3842s # Testing script Zinh (code 1516858984) 3842s # Testing script Zmth (code 1517122664) 3842s # Testing script Arab (code 1098015074) 3842s # Testing script Armn (code 1098018158) 3842s # Testing script Beng (code 1113943655) 3842s # Testing script Bopo (code 1114599535) 3842s # Testing script Cher (code 1130915186) 3842s # Testing script Copt (code 1131376756) 3842s # Testing script Cyrl (code 1132032620) 3842s # Testing script Dsrt (code 1148416628) 3842s # Testing script Deva (code 1147500129) 3842s # Testing script Ethi (code 1165256809) 3842s # Testing script Geor (code 1197830002) 3842s # Testing script Goth (code 1198486632) 3842s # Testing script Grek (code 1198679403) 3842s # Testing script Gujr (code 1198877298) 3842s # Testing script Guru (code 1198879349) 3842s # Testing script Hani (code 1214344809) 3842s # Testing script Hang (code 1214344807) 3842s # Testing script Hebr (code 1214603890) 3842s # Testing script Hira (code 1214870113) 3842s # Testing script Knda (code 1265525857) 3842s # Testing script Kana (code 1264676449) 3842s # Testing script Khmr (code 1265134962) 3842s # Testing script Laoo (code 1281453935) 3842s # Testing script Latn (code 1281455214) 3842s # Testing script Mlym (code 1298954605) 3842s # Testing script Mong (code 1299148391) 3842s # Testing script Mymr (code 1299803506) 3842s # Testing script Ogam (code 1332175213) 3842s # Testing script Ital (code 1232363884) 3842s # Testing script Orya (code 1332902241) 3842s # Testing script Runr (code 1383427698) 3842s # Testing script Sinh (code 1399418472) 3842s # Testing script Syrc (code 1400468067) 3842s # Testing script Taml (code 1415671148) 3842s # Testing script Telu (code 1415933045) 3842s # Testing script Thaa (code 1416126817) 3842s # Testing script Thai (code 1416126825) 3842s # Testing script Tibt (code 1416192628) 3842s # Testing script Cans (code 1130458739) 3842s # Testing script Yiii (code 1500080489) 3842s # Testing script Tglg (code 1416064103) 3842s # Testing script Hano (code 1214344815) 3842s # Testing script Buhd (code 1114990692) 3842s # Testing script Tagb (code 1415669602) 3842s # Testing script Brai (code 1114792297) 3842s # Testing script Cprt (code 1131442804) 3842s # Testing script Limb (code 1281977698) 3842s # Testing script Osma (code 1332964705) 3842s # Testing script Shaw (code 1399349623) 3842s # Testing script Linb (code 1281977954) 3842s # Testing script Tale (code 1415670885) 3842s # Testing script Ugar (code 1432838514) 3842s # Testing script Talu (code 1415670901) 3842s # Testing script Bugi (code 1114990441) 3842s # Testing script Glag (code 1198285159) 3842s # Testing script Tfng (code 1415999079) 3842s # Testing script Sylo (code 1400466543) 3842s # Testing script Xpeo (code 1483761007) 3842s # Testing script Khar (code 1265131890) 3842s # Testing script Zzzz (code 1517976186) 3842s # Testing script Bali (code 1113681001) 3842s # Testing script Xsux (code 1483961720) 3842s # Testing script Phnx (code 1349021304) 3842s # Testing script Phag (code 1349017959) 3842s # Testing script Nkoo (code 1315663727) 3842s # Testing script Kali (code 1264675945) 3842s # Testing script Lepc (code 1281716323) 3842s # Testing script Rjng (code 1382706791) 3842s # Testing script Sund (code 1400204900) 3842s # Testing script Saur (code 1398895986) 3842s # Testing script Cham (code 1130914157) 3842s # Testing script Olck (code 1332503403) 3842s # Testing script Vaii (code 1449224553) 3842s # Testing script Cari (code 1130459753) 3842s # Testing script Lyci (code 1283023721) 3842s # Testing script Lydi (code 1283023977) 3842s # Testing script Avst (code 1098281844) 3842s # Testing script Bamu (code 1113681269) 3842s # Testing script Egyp (code 1164409200) 3842s # Testing script Armi (code 1098018153) 3842s # Testing script Phli (code 1349020777) 3842s # Testing script Prti (code 1349678185) 3842s # Testing script Java (code 1247901281) 3842s # Testing script Kthi (code 1265920105) 3842s # Testing script Lisu (code 1281979253) 3842s # Testing script Mtei (code 1299473769) 3842s # Testing script Sarb (code 1398895202) 3842s # Testing script Orkh (code 1332898664) 3842s # Testing script Samr (code 1398893938) 3842s # Testing script Lana (code 1281453665) 3842s # Testing script Tavt (code 1415673460) 3842s # Testing script Batk (code 1113683051) 3842s # Testing script Brah (code 1114792296) 3842s # Testing script Mand (code 1298230884) 3842s # Testing script Cakm (code 1130457965) 3842s # Testing script Merc (code 1298494051) 3842s # Testing script Mero (code 1298494063) 3842s # Testing script Plrd (code 1349284452) 3842s # Testing script Shrd (code 1399353956) 3842s # Testing script Sora (code 1399812705) 3842s # Testing script Takr (code 1415670642) 3842s # Testing script Bass (code 1113682803) 3842s # Testing script Aghb (code 1097295970) 3842s # Testing script Dupl (code 1148547180) 3842s # Testing script Elba (code 1164730977) 3842s # Testing script Gran (code 1198678382) 3842s # Testing script Khoj (code 1265135466) 3842s # Testing script Sind (code 1399418468) 3842s # Testing script Lina (code 1281977953) 3842s # Testing script Mahj (code 1298229354) 3842s # Testing script Mani (code 1298230889) 3842s # Testing script Mend (code 1298493028) 3842s # Testing script Modi (code 1299145833) 3842s # Testing script Mroo (code 1299345263) 3842s # Testing script Nbat (code 1315070324) 3842s # Testing script Narb (code 1315009122) 3842s # Testing script Perm (code 1348825709) 3842s # Testing script Hmng (code 1215131239) 3842s # Testing script Palm (code 1348562029) 3842s # Testing script Pauc (code 1348564323) 3842s # Testing script Phlp (code 1349020784) 3842s # Testing script Sidd (code 1399415908) 3842s # Testing script Tirh (code 1416196712) 3842s # Testing script Wara (code 1466004065) 3842s # Testing script Ahom (code 1097363309) 3842s # Testing script Hluw (code 1215067511) 3842s # Testing script Hatr (code 1214346354) 3842s # Testing script Mult (code 1299541108) 3842s # Testing script Hung (code 1215655527) 3842s # Testing script Sgnw (code 1399287415) 3842s # Testing script Adlm (code 1097100397) 3842s # Testing script Bhks (code 1114139507) 3842s # Testing script Marc (code 1298231907) 3842s # Testing script Newa (code 1315272545) 3842s # Testing script Osge (code 1332963173) 3842s # Testing script Tang (code 1415671399) 3842s # Testing script Gonm (code 1198485101) 3842s # Testing script Nshu (code 1316186229) 3842s # Testing script Soyo (code 1399814511) 3842s # Testing script Zanb (code 1516334690) 3842s # Testing script Dogr (code 1148151666) 3842s # Testing script Gong (code 1198485095) 3842s # Testing script Rohg (code 1383032935) 3842s # Testing script Maka (code 1298230113) 3842s # Testing script Medf (code 1298490470) 3842s # Testing script Sogo (code 1399809903) 3842s # Testing script Sogd (code 1399809892) 3842s # Testing script Elym (code 1164736877) 3842s # Testing script Nand (code 1315008100) 3842s # Testing script Hmnp (code 1215131248) 3842s # Testing script Wcho (code 1466132591) 3842s # Testing script Chrs (code 1130918515) 3842s # Testing script Diak (code 1147756907) 3842s # Testing script Kits (code 1265202291) 3842s # Testing script Yezi (code 1499822697) 3842s # Testing script Cpmn (code 1131441518) 3842s # Testing script Ougr (code 1333094258) 3842s # Testing script Tnsa (code 1416524641) 3842s # Testing script Toto (code 1416590447) 3842s # Testing script Vith (code 1449751656) 3842s # Testing script Kawi (code 1264678761) 3842s # Testing script Nagm (code 1315006317) 3842s # Testing script Todr (code 1416586354) 3842s # Testing script Gara (code 1197568609) 3842s # Testing script Tutg (code 1416983655) 3842s # Testing script Sunu (code 1400204917) 3842s # Testing script Gukh (code 1198877544) 3842s # Testing script Krai (code 1265787241) 3842s # Testing script Onao (code 1332633967) 3842s ok 21 /unicode/iso15924 3842s ok 22 /unicode/lower 3842s ok 23 /unicode/mark 3842s ok 24 /unicode/mirror 3842s ok 25 /unicode/print 3842s ok 26 /unicode/punctuation 3842s ok 27 /unicode/script 3842s ok 28 /unicode/space 3842s ok 29 /unicode/strdown 3842s ok 30 /unicode/strup 3842s ok 31 /unicode/turkish-strupdown 3842s ok 32 /unicode/title 3842s ok 33 /unicode/upper 3842s ok 34 /unicode/validate 3842s ok 35 /unicode/wide 3842s ok 36 /unicode/xdigit 3842s ok 37 /unicode/xdigit-value 3842s ok 38 /unicode/zero-width 3842s ok 39 /unicode/normalize 3842s # End of unicode tests 3842s ok - glib/unicode.test 3842s # Running test: glib/utf8-pointer.test 3842s TAP version 14 3842s # random seed: R02Sb69135646b6dfec682d7ed7fca115777 3842s 1..3 3842s # Start of utf8 tests 3844s # Executing: glib/utf8-pointer.test 3844s ok 1 /utf8/offsets 3844s # slow test /utf8/offsets executed in 2.12 secs 3844s ok 2 /utf8/lengths 3844s ok 3 /utf8/find 3844s # End of utf8 tests 3844s ok - glib/utf8-pointer.test 3844s # Running test: glib/memory-output-stream.test 3845s TAP version 14 3845s # random seed: R02Sad36feaa1f6a5cb2f4c01a6294f3124b 3845s 1..10 3845s # Start of memory-output-stream tests 3845s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=540423 3845s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=720080 3845s ok 1 /memory-output-stream/truncate 3845s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=540459 3845s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=540461 3845s ok 2 /memory-output-stream/get-data-size 3845s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=605733 3845s ok 3 /memory-output-stream/properties 3845s ok 4 /memory-output-stream/write-bytes 3845s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2471 3845s ok 5 /memory-output-stream/write-null 3845s ok 6 /memory-output-stream/writev 3845s ok 7 /memory-output-stream/writev_nonblocking 3845s ok 8 /memory-output-stream/steal_as_bytes 3845s # Start of seek tests 3845s ok 9 /memory-output-stream/seek/fixed 3845s ok 10 /memory-output-stream/seek/resizable 3845s # End of seek tests 3845s # End of memory-output-stream tests 3845s ok - glib/memory-output-stream.test 3845s # Running test: glib/mem-overflow.test 3845s TAP version 14 3845s # random seed: R02S6fa95bcb81ffec64ec9e55ad23603585 3845s 1..2 3845s # Start of mem tests 3846s ok 1 /mem/overflow 3846s # slow test /mem/overflow executed in 1.11 secs 3846s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=615379 3846s ok 2 /mem/empty-alloc 3846s # Start of overflow tests 3846s # Start of subprocess tests 3846s # End of subprocess tests 3846s # End of overflow tests 3846s # Start of empty-alloc tests 3846s # End of empty-alloc tests 3846s # End of mem tests 3846s ok - glib/mem-overflow.test 3846s # Running test: glib/gdbus-connection-flush.test 3846s TAP version 14 3846s # random seed: R02S52dbb6aa3ae300baccda658349292ee3 3846s 1..2 3846s # Start of gdbus tests 3846s # Start of connection tests 3846s # Start of flush tests 3846s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-flush_QAXQ52/gdbus/connection/flush/busy/.dirs/home 3846s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-flush_QAXQ52/gdbus/connection/flush/busy/.dirs/cache 3846s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-flush_QAXQ52/gdbus/connection/flush/busy/.dirs/system-config1:/tmp/test_gdbus-connection-flush_QAXQ52/gdbus/connection/flush/busy/.dirs/system-config2 3846s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-flush_QAXQ52/gdbus/connection/flush/busy/.dirs/config 3846s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-flush_QAXQ52/gdbus/connection/flush/busy/.dirs/system-data1:/tmp/test_gdbus-connection-flush_QAXQ52/gdbus/connection/flush/busy/.dirs/system-data2 3846s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-flush_QAXQ52/gdbus/connection/flush/busy/.dirs/data 3846s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-flush_QAXQ52/gdbus/connection/flush/busy/.dirs/state 3846s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-flush_QAXQ52/gdbus/connection/flush/busy/.dirs/runtime 3846s ok 1 /gdbus/connection/flush/busy 3846s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-flush_QAXQ52/gdbus/connection/flush/idle/.dirs/home 3846s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-flush_QAXQ52/gdbus/connection/flush/idle/.dirs/cache 3846s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-flush_QAXQ52/gdbus/connection/flush/idle/.dirs/system-config1:/tmp/test_gdbus-connection-flush_QAXQ52/gdbus/connection/flush/idle/.dirs/system-config2 3846s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-flush_QAXQ52/gdbus/connection/flush/idle/.dirs/config 3846s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-flush_QAXQ52/gdbus/connection/flush/idle/.dirs/system-data1:/tmp/test_gdbus-connection-flush_QAXQ52/gdbus/connection/flush/idle/.dirs/system-data2 3846s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-flush_QAXQ52/gdbus/connection/flush/idle/.dirs/data 3846s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-flush_QAXQ52/gdbus/connection/flush/idle/.dirs/state 3846s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-flush_QAXQ52/gdbus/connection/flush/idle/.dirs/runtime 3846s ok 2 /gdbus/connection/flush/idle 3846s # End of flush tests 3846s # End of connection tests 3846s # End of gdbus tests 3846s ok - glib/gdbus-connection-flush.test 3846s # Running test: glib/win32-appinfo.test 3846s TAP version 14 3846s # random seed: R02Sf49e7e7e876dfd3fa4b9e4b7f5c08796 3846s 1..5 3846s # Start of appinfo tests 3846s ok 1 /appinfo/utf16-strfuncs 3846s ok 2 /appinfo/win32-extract-executable 3846s ok 3 /appinfo/win32-rundll32-fixup 3846s ok 4 /appinfo/win32-parse-filename 3846s ok 5 /appinfo/win32-utf16-conversion-fail 3846s # Start of subprocess tests 3846s # End of subprocess tests 3846s # End of appinfo tests 3846s ok - glib/win32-appinfo.test 3846s # Running test: glib/gdbus-close-pending.test 3847s TAP version 14 3847s # random seed: R02Sbd3810f2704eb879e6993944f37b167c 3847s 1..2 3847s # Start of gdbus tests 3847s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-close-pending_AOB452/gdbus/close-pending/.dirs/home 3847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-close-pending_AOB452/gdbus/close-pending/.dirs/cache 3847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-close-pending_AOB452/gdbus/close-pending/.dirs/system-config1:/tmp/test_gdbus-close-pending_AOB452/gdbus/close-pending/.dirs/system-config2 3847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-close-pending_AOB452/gdbus/close-pending/.dirs/config 3847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-close-pending_AOB452/gdbus/close-pending/.dirs/system-data1:/tmp/test_gdbus-close-pending_AOB452/gdbus/close-pending/.dirs/system-data2 3847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-close-pending_AOB452/gdbus/close-pending/.dirs/data 3847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-close-pending_AOB452/gdbus/close-pending/.dirs/state 3847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-close-pending_AOB452/gdbus/close-pending/.dirs/runtime 3847s ok 1 /gdbus/close-pending 3847s # slow test /gdbus/close-pending executed in 0.78 secs 3847s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-close-pending_AOB452/gdbus/unref-pending/.dirs/home 3847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-close-pending_AOB452/gdbus/unref-pending/.dirs/cache 3847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-close-pending_AOB452/gdbus/unref-pending/.dirs/system-config1:/tmp/test_gdbus-close-pending_AOB452/gdbus/unref-pending/.dirs/system-config2 3847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-close-pending_AOB452/gdbus/unref-pending/.dirs/config 3847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-close-pending_AOB452/gdbus/unref-pending/.dirs/system-data1:/tmp/test_gdbus-close-pending_AOB452/gdbus/unref-pending/.dirs/system-data2 3847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-close-pending_AOB452/gdbus/unref-pending/.dirs/data 3847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-close-pending_AOB452/gdbus/unref-pending/.dirs/state 3847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-close-pending_AOB452/gdbus/unref-pending/.dirs/runtime 3848s ok 2 /gdbus/unref-pending 3848s # slow test /gdbus/unref-pending executed in 0.65 secs 3848s # End of gdbus tests 3848s ok - glib/gdbus-close-pending.test 3848s # Running test: glib/genmarshal.py.test 3849s # Executing: glib/genmarshal.py.test 3851s TAP version 13 3851s ok 1 __main__.TestGenmarshal.test_empty_list 3851s # glib-genmarshal: /usr/bin/glib-genmarshal 3851s # tmpdir: /tmp/tmpf7im4w2v 3851s # /tmp/tmpf7im4w2v/tmpv7unqy2t.list: 3851s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpf7im4w2v/tmpv7unqy2t.list', '--header', '--quiet'] 3851s # Return code: 0 3851s # Output: 3851s # /* 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. */ 3851s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 3851s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 3851s # 3851s # #include <glib-object.h> 3851s # 3851s # G_BEGIN_DECLS 3851s # 3851s # 3851s # G_END_DECLS 3851s # 3851s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 3851s # Error: 3851s # 3851s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpf7im4w2v/tmpv7unqy2t.list', '--body', '--quiet'] 3851s # Return code: 0 3851s # Output: 3851s # /* 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. */ 3851s # #include <glib-object.h> 3851s # 3851s # #ifdef G_ENABLE_DEBUG 3851s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3851s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3851s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3851s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3851s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3851s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3851s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3851s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3851s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3851s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3851s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3851s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3851s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3851s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3851s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3851s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3851s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3851s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3851s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3851s # #else /* !G_ENABLE_DEBUG */ 3851s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3851s # * Do not access GValues directly in your code. Instead, use the 3851s # * g_value_get_*() functions 3851s # */ 3851s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3851s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3851s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3851s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3851s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3851s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3851s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3851s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3851s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3851s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3851s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3851s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3851s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3851s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3851s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3851s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3851s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3851s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3851s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3851s # #endif /* !G_ENABLE_DEBUG */ 3851s # Error: 3851s ok 2 __main__.TestGenmarshal.test_help 3851s # glib-genmarshal: /usr/bin/glib-genmarshal 3851s # tmpdir: /tmp/tmpb291xjcb 3851s # Running: ['/usr/bin/glib-genmarshal', '--help'] 3851s # Return code: 0 3851s # Output: 3851s # usage: glib-genmarshal [-h] [--prefix STRING] [--output FILE] [--skip-source] 3851s # [--internal] [--valist-marshallers] [-v] 3851s # [--g-fatal-warnings] [--include-header [HEADER]] 3851s # [--pragma-once] [-D CPP_DEFINES] [-U CPP_UNDEFINES] 3851s # [--prototypes] [--header] [--body] [--stdinc | 3851s # --nostdinc] [--quiet | --verbose] 3851s # [FILE ...] 3851s # 3851s # Generate signal marshallers for GObject 3851s # 3851s # positional arguments: 3851s # FILE Files with lists of marshallers to generate, or "-" 3851s # for standard input 3851s # 3851s # options: 3851s # -h, --help show this help message and exit 3851s # --prefix STRING Specify marshaller prefix 3851s # --output FILE Write output into the specified file 3851s # --skip-source Skip source location comments 3851s # --internal Mark generated functions as internal 3851s # --valist-marshallers Generate va_list marshallers 3851s # -v, --version Print version information, and exit 3851s # --g-fatal-warnings Make warnings fatal 3851s # --include-header [HEADER] 3851s # Include the specified header in the body 3851s # --pragma-once Use "pragma once" as the inclusion guard 3851s # -D CPP_DEFINES Pre-processor define 3851s # -U CPP_UNDEFINES Pre-processor undefine 3851s # --prototypes Generate the marshallers prototype in the C code 3851s # --header Generate C headers 3851s # --body Generate C code 3851s # --stdinc Include standard marshallers 3851s # --nostdinc Use standard marshallers 3851s # --quiet Only print warnings and errors 3851s # --verbose Be verbose, and include debugging information 3851s # Error: 3852s ok 3 __main__.TestGenmarshal.test_no_args 3852s # glib-genmarshal: /usr/bin/glib-genmarshal 3852s # tmpdir: /tmp/tmp3uxjzttk 3852s # Running: ['/usr/bin/glib-genmarshal'] 3852s # Return code: 0 3852s # Output: 3852s # 3852s # Error: 3853s ok 4 __main__.TestGenmarshal.test_void_boolean 3853s # glib-genmarshal: /usr/bin/glib-genmarshal 3853s # tmpdir: /tmp/tmp2ur4tcj3 3853s # /tmp/tmp2ur4tcj3/tmpfp39b184.list: VOID:BOOLEAN 3853s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp2ur4tcj3/tmpfp39b184.list', '--header', '--quiet'] 3853s # Return code: 0 3853s # Output: 3853s # /* 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. */ 3853s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 3853s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 3853s # 3853s # #include <glib-object.h> 3853s # 3853s # G_BEGIN_DECLS 3853s # 3853s # /* VOID:BOOLEAN (/tmp/tmp2ur4tcj3/tmpfp39b184.list:1) */ 3853s # #define g_cclosure_user_marshal_VOID__BOOLEAN g_cclosure_marshal_VOID__BOOLEAN 3853s # 3853s # 3853s # G_END_DECLS 3853s # 3853s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 3853s # Error: 3853s # 3853s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp2ur4tcj3/tmpfp39b184.list', '--body', '--quiet'] 3853s # Return code: 0 3853s # Output: 3853s # /* 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. */ 3853s # #include <glib-object.h> 3853s # 3853s # #ifdef G_ENABLE_DEBUG 3853s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3853s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3853s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3853s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3853s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3853s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3853s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3853s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3853s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3853s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3853s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3853s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3853s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3853s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3853s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3853s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3853s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3853s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3853s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3853s # #else /* !G_ENABLE_DEBUG */ 3853s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3853s # * Do not access GValues directly in your code. Instead, use the 3853s # * g_value_get_*() functions 3853s # */ 3853s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3853s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3853s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3853s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3853s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3853s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3853s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3853s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3853s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3853s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3853s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3853s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3853s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3853s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3853s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3853s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3853s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3853s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3853s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3853s # #endif /* !G_ENABLE_DEBUG */ 3853s # Error: 3854s # Executing: glib/genmarshal.py.test 3854s ok 5 __main__.TestGenmarshal.test_void_boolean_int64 3854s # glib-genmarshal: /usr/bin/glib-genmarshal 3854s # tmpdir: /tmp/tmpqvgcz79i 3854s # /tmp/tmpqvgcz79i/tmp1lu75w98.list: VOID:BOOLEAN,INT64 3854s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpqvgcz79i/tmp1lu75w98.list', '--header', '--quiet'] 3854s # Return code: 0 3854s # Output: 3854s # /* 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. */ 3854s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 3854s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 3854s # 3854s # #include <glib-object.h> 3854s # 3854s # G_BEGIN_DECLS 3854s # 3854s # /* VOID:BOOLEAN,INT64 (/tmp/tmpqvgcz79i/tmp1lu75w98.list:1) */ 3854s # extern 3854s # void g_cclosure_user_marshal_VOID__BOOLEAN_INT64 (GClosure *closure, 3854s # GValue *return_value, 3854s # guint n_param_values, 3854s # const GValue *param_values, 3854s # gpointer invocation_hint, 3854s # gpointer marshal_data); 3854s # 3854s # 3854s # G_END_DECLS 3854s # 3854s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 3854s # Error: 3854s # 3854s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpqvgcz79i/tmp1lu75w98.list', '--body', '--quiet'] 3854s # Return code: 0 3854s # Output: 3854s # /* 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. */ 3854s # #include <glib-object.h> 3854s # 3854s # #ifdef G_ENABLE_DEBUG 3854s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3854s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3854s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3854s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3854s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3854s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3854s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3854s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3854s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3854s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3854s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3854s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3854s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3854s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3854s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3854s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3854s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3854s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3854s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3854s # #else /* !G_ENABLE_DEBUG */ 3854s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3854s # * Do not access GValues directly in your code. Instead, use the 3854s # * g_value_get_*() functions 3854s # */ 3854s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3854s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3854s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3854s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3854s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3854s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3854s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3854s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3854s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3854s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3854s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3854s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3854s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3854s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3854s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3854s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3854s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3854s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3854s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3854s # #endif /* !G_ENABLE_DEBUG */ 3854s # 3854s # /* VOID:BOOLEAN,INT64 (/tmp/tmpqvgcz79i/tmp1lu75w98.list:1) */ 3854s # void 3854s # g_cclosure_user_marshal_VOID__BOOLEAN_INT64 (GClosure *closure, 3854s # GValue *return_value G_GNUC_UNUSED, 3854s # guint n_param_values, 3854s # const GValue *param_values, 3854s # gpointer invocation_hint G_GNUC_UNUSED, 3854s # gpointer marshal_data) 3854s # { 3854s # typedef void (*GMarshalFunc_VOID__BOOLEAN_INT64) (gpointer data1, 3854s # gboolean arg1, 3854s # gint64 arg2, 3854s # gpointer data2); 3854s # GCClosure *cc = (GCClosure *) closure; 3854s # gpointer data1, data2; 3854s # GMarshalFunc_VOID__BOOLEAN_INT64 callback; 3854s # 3854s # g_return_if_fail (n_param_values == 3); 3854s # 3854s # if (G_CCLOSURE_SWAP_DATA (closure)) 3854s # { 3854s # data1 = closure->data; 3854s # data2 = g_value_peek_pointer (param_values + 0); 3854s # } 3854s # else 3854s # { 3854s # data1 = g_value_peek_pointer (param_values + 0); 3854s # data2 = closure->data; 3854s # } 3854s # callback = (GMarshalFunc_VOID__BOOLEAN_INT64) (marshal_data ? marshal_data : cc->callback); 3854s # 3854s # callback (data1, 3854s # g_marshal_value_peek_boolean (param_values + 1), 3854s # g_marshal_value_peek_int64 (param_values + 2), 3854s # data2); 3854s # } 3854s # Error: 3856s ok 6 __main__.TestGenmarshal.test_void_param_nostdinc 3856s # glib-genmarshal: /usr/bin/glib-genmarshal 3856s # tmpdir: /tmp/tmp3vdqrwbs 3856s # /tmp/tmp3vdqrwbs/tmp724ap6sc.list: VOID:PARAM 3856s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp3vdqrwbs/tmp724ap6sc.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 3856s # Return code: 0 3856s # Output: 3856s # /* 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. */ 3856s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 3856s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 3856s # 3856s # G_BEGIN_DECLS 3856s # 3856s # /* VOID:PARAM (/tmp/tmp3vdqrwbs/tmp724ap6sc.list:1) */ 3856s # extern 3856s # void g_cclosure_user_marshal_VOID__PARAM (GClosure *closure, 3856s # GValue *return_value, 3856s # guint n_param_values, 3856s # const GValue *param_values, 3856s # gpointer invocation_hint, 3856s # gpointer marshal_data); 3856s # extern 3856s # void g_cclosure_user_marshal_VOID__PARAMv (GClosure *closure, 3856s # GValue *return_value, 3856s # gpointer instance, 3856s # va_list args, 3856s # gpointer marshal_data, 3856s # int n_params, 3856s # GType *param_types); 3856s # 3856s # 3856s # G_END_DECLS 3856s # 3856s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 3856s # Error: 3856s # 3856s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp3vdqrwbs/tmp724ap6sc.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 3856s # Return code: 0 3856s # Output: 3856s # /* 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. */ 3856s # #ifdef G_ENABLE_DEBUG 3856s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3856s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3856s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3856s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3856s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3856s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3856s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3856s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3856s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3856s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3856s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3856s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3856s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3856s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3856s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3856s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3856s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3856s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3856s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3856s # #else /* !G_ENABLE_DEBUG */ 3856s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3856s # * Do not access GValues directly in your code. Instead, use the 3856s # * g_value_get_*() functions 3856s # */ 3856s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3856s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3856s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3856s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3856s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3856s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3856s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3856s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3856s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3856s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3856s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3856s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3856s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3856s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3856s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3856s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3856s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3856s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3856s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3856s # #endif /* !G_ENABLE_DEBUG */ 3856s # 3856s # /* VOID:PARAM (/tmp/tmp3vdqrwbs/tmp724ap6sc.list:1) */ 3856s # void 3856s # g_cclosure_user_marshal_VOID__PARAM (GClosure *closure, 3856s # GValue *return_value G_GNUC_UNUSED, 3856s # guint n_param_values, 3856s # const GValue *param_values, 3856s # gpointer invocation_hint G_GNUC_UNUSED, 3856s # gpointer marshal_data) 3856s # { 3856s # typedef void (*GMarshalFunc_VOID__PARAM) (gpointer data1, 3856s # gpointer arg1, 3856s # gpointer data2); 3856s # GCClosure *cc = (GCClosure *) closure; 3856s # gpointer data1, data2; 3856s # GMarshalFunc_VOID__PARAM callback; 3856s # 3856s # g_return_if_fail (n_param_values == 2); 3856s # 3856s # if (G_CCLOSURE_SWAP_DATA (closure)) 3856s # { 3856s # data1 = closure->data; 3856s # data2 = g_value_peek_pointer (param_values + 0); 3856s # } 3856s # else 3856s # { 3856s # data1 = g_value_peek_pointer (param_values + 0); 3856s # data2 = closure->data; 3856s # } 3856s # callback = (GMarshalFunc_VOID__PARAM) (marshal_data ? marshal_data : cc->callback); 3856s # 3856s # callback (data1, 3856s # g_marshal_value_peek_param (param_values + 1), 3856s # data2); 3856s # } 3856s # 3856s # void 3856s # g_cclosure_user_marshal_VOID__PARAMv (GClosure *closure, 3856s # GValue *return_value G_GNUC_UNUSED, 3856s # gpointer instance, 3856s # va_list args, 3856s # gpointer marshal_data, 3856s # int n_params, 3856s # GType *param_types) 3856s # { 3856s # typedef void (*GMarshalFunc_VOID__PARAM) (gpointer data1, 3856s # gpointer arg1, 3856s # gpointer data2); 3856s # GCClosure *cc = (GCClosure *) closure; 3856s # gpointer data1, data2; 3856s # GMarshalFunc_VOID__PARAM callback; 3856s # gpointer arg0; 3856s # va_list args_copy; 3856s # 3856s # va_copy (args_copy, args); 3856s # arg0 = (gpointer) va_arg (args_copy, gpointer); 3856s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 3856s # arg0 = g_param_spec_ref (arg0); 3856s # va_end (args_copy); 3856s # 3856s # 3856s # if (G_CCLOSURE_SWAP_DATA (closure)) 3856s # { 3856s # data1 = closure->data; 3856s # data2 = instance; 3856s # } 3856s # else 3856s # { 3856s # data1 = instance; 3856s # data2 = closure->data; 3856s # } 3856s # callback = (GMarshalFunc_VOID__PARAM) (marshal_data ? marshal_data : cc->callback); 3856s # 3856s # callback (data1, 3856s # arg0, 3856s # data2); 3856s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 3856s # g_param_spec_unref (arg0); 3856s # } 3856s # Error: 3857s ok 7 __main__.TestGenmarshal.test_void_string_nostdinc 3857s # glib-genmarshal: /usr/bin/glib-genmarshal 3857s # tmpdir: /tmp/tmpt85wtfua 3857s # /tmp/tmpt85wtfua/tmpy2b5g_uo.list: VOID:STRING 3857s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpt85wtfua/tmpy2b5g_uo.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 3857s # Return code: 0 3857s # Output: 3857s # /* 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. */ 3857s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 3857s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 3857s # 3857s # G_BEGIN_DECLS 3857s # 3857s # /* VOID:STRING (/tmp/tmpt85wtfua/tmpy2b5g_uo.list:1) */ 3857s # extern 3857s # void g_cclosure_user_marshal_VOID__STRING (GClosure *closure, 3857s # GValue *return_value, 3857s # guint n_param_values, 3857s # const GValue *param_values, 3857s # gpointer invocation_hint, 3857s # gpointer marshal_data); 3857s # extern 3857s # void g_cclosure_user_marshal_VOID__STRINGv (GClosure *closure, 3857s # GValue *return_value, 3857s # gpointer instance, 3857s # va_list args, 3857s # gpointer marshal_data, 3857s # int n_params, 3857s # GType *param_types); 3857s # 3857s # 3857s # G_END_DECLS 3857s # 3857s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 3857s # Error: 3857s # 3857s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpt85wtfua/tmpy2b5g_uo.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 3857s # Return code: 0 3857s # Output: 3857s # /* 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. */ 3857s # #ifdef G_ENABLE_DEBUG 3857s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3857s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3857s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3857s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3857s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3857s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3857s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3857s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3857s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3857s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3857s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3857s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3857s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3857s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3857s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3857s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3857s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3857s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3857s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3857s # #else /* !G_ENABLE_DEBUG */ 3857s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3857s # * Do not access GValues directly in your code. Instead, use the 3857s # * g_value_get_*() functions 3857s # */ 3857s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3857s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3857s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3857s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3857s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3857s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3857s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3857s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3857s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3857s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3857s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3857s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3857s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3857s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3857s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3857s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3857s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3857s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3857s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3857s # #endif /* !G_ENABLE_DEBUG */ 3857s # 3857s # /* VOID:STRING (/tmp/tmpt85wtfua/tmpy2b5g_uo.list:1) */ 3857s # void 3857s # g_cclosure_user_marshal_VOID__STRING (GClosure *closure, 3857s # GValue *return_value G_GNUC_UNUSED, 3857s # guint n_param_values, 3857s # const GValue *param_values, 3857s # gpointer invocation_hint G_GNUC_UNUSED, 3857s # gpointer marshal_data) 3857s # { 3857s # typedef void (*GMarshalFunc_VOID__STRING) (gpointer data1, 3857s # gpointer arg1, 3857s # gpointer data2); 3857s # GCClosure *cc = (GCClosure *) closure; 3857s # gpointer data1, data2; 3857s # GMarshalFunc_VOID__STRING callback; 3857s # 3857s # g_return_if_fail (n_param_values == 2); 3857s # 3857s # if (G_CCLOSURE_SWAP_DATA (closure)) 3857s # { 3857s # data1 = closure->data; 3857s # data2 = g_value_peek_pointer (param_values + 0); 3857s # } 3857s # else 3857s # { 3857s # data1 = g_value_peek_pointer (param_values + 0); 3857s # data2 = closure->data; 3857s # } 3857s # callback = (GMarshalFunc_VOID__STRING) (marshal_data ? marshal_data : cc->callback); 3857s # 3857s # callback (data1, 3857s # g_marshal_value_peek_string (param_values + 1), 3857s # data2); 3857s # } 3857s # 3857s # void 3857s # g_cclosure_user_marshal_VOID__STRINGv (GClosure *closure, 3857s # GValue *return_value G_GNUC_UNUSED, 3857s # gpointer instance, 3857s # va_list args, 3857s # gpointer marshal_data, 3857s # int n_params, 3857s # GType *param_types) 3857s # { 3857s # typedef void (*GMarshalFunc_VOID__STRING) (gpointer data1, 3857s # gpointer arg1, 3857s # gpointer data2); 3857s # GCClosure *cc = (GCClosure *) closure; 3857s # gpointer data1, data2; 3857s # GMarshalFunc_VOID__STRING callback; 3857s # gpointer arg0; 3857s # va_list args_copy; 3857s # 3857s # va_copy (args_copy, args); 3857s # arg0 = (gpointer) va_arg (args_copy, gpointer); 3857s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 3857s # arg0 = g_strdup (arg0); 3857s # va_end (args_copy); 3857s # 3857s # 3857s # if (G_CCLOSURE_SWAP_DATA (closure)) 3857s # { 3857s # data1 = closure->data; 3857s # data2 = instance; 3857s # } 3857s # else 3857s # { 3857s # data1 = instance; 3857s # data2 = closure->data; 3857s # } 3857s # callback = (GMarshalFunc_VOID__STRING) (marshal_data ? marshal_data : cc->callback); 3857s # 3857s # callback (data1, 3857s # arg0, 3857s # data2); 3857s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 3857s # g_free (arg0); 3857s # } 3857s # Error: 3858s ok 8 __main__.TestGenmarshal.test_void_variant_nostdinc_valist_marshaller 3858s # glib-genmarshal: /usr/bin/glib-genmarshal 3858s # tmpdir: /tmp/tmpy287jxlw 3858s # /tmp/tmpy287jxlw/tmppdskramb.list: VOID:VARIANT 3858s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpy287jxlw/tmppdskramb.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 3858s # Return code: 0 3858s # Output: 3858s # /* 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. */ 3858s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 3858s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 3858s # 3858s # G_BEGIN_DECLS 3858s # 3858s # /* VOID:VARIANT (/tmp/tmpy287jxlw/tmppdskramb.list:1) */ 3858s # extern 3858s # void g_cclosure_user_marshal_VOID__VARIANT (GClosure *closure, 3858s # GValue *return_value, 3858s # guint n_param_values, 3858s # const GValue *param_values, 3858s # gpointer invocation_hint, 3858s # gpointer marshal_data); 3858s # extern 3858s # void g_cclosure_user_marshal_VOID__VARIANTv (GClosure *closure, 3858s # GValue *return_value, 3858s # gpointer instance, 3858s # va_list args, 3858s # gpointer marshal_data, 3858s # int n_params, 3858s # GType *param_types); 3858s # 3858s # 3858s # G_END_DECLS 3858s # 3858s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 3858s # Error: 3858s # 3858s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpy287jxlw/tmppdskramb.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 3858s # Return code: 0 3858s # Output: 3858s # /* 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. */ 3858s # #ifdef G_ENABLE_DEBUG 3858s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 3858s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 3858s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 3858s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 3858s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 3858s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 3858s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 3858s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 3858s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 3858s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 3858s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 3858s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 3858s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 3858s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 3858s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 3858s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 3858s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 3858s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 3858s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 3858s # #else /* !G_ENABLE_DEBUG */ 3858s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 3858s # * Do not access GValues directly in your code. Instead, use the 3858s # * g_value_get_*() functions 3858s # */ 3858s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 3858s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 3858s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 3858s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 3858s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 3858s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 3858s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 3858s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 3858s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 3858s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 3858s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 3858s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 3858s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 3858s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 3858s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 3858s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 3858s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 3858s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 3858s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 3858s # #endif /* !G_ENABLE_DEBUG */ 3858s # 3858s # /* VOID:VARIANT (/tmp/tmpy287jxlw/tmppdskramb.list:1) */ 3858s # void 3858s # g_cclosure_user_marshal_VOID__VARIANT (GClosure *closure, 3858s # GValue *return_value G_GNUC_UNUSED, 3858s # guint n_param_values, 3858s # const GValue *param_values, 3858s # gpointer invocation_hint G_GNUC_UNUSED, 3858s # gpointer marshal_data) 3858s # { 3858s # typedef void (*GMarshalFunc_VOID__VARIANT) (gpointer data1, 3858s # gpointer arg1, 3858s # gpointer data2); 3858s # GCClosure *cc = (GCClosure *) closure; 3858s # gpointer data1, data2; 3858s # GMarshalFunc_VOID__VARIANT callback; 3858s # 3858s # g_return_if_fail (n_param_values == 2); 3858s # 3858s # if (G_CCLOSURE_SWAP_DATA (closure)) 3858s # { 3858s # data1 = closure->data; 3858s # data2 = g_value_peek_pointer (param_values + 0); 3858s # } 3858s # else 3858s # { 3858s # data1 = g_value_peek_pointer (param_values + 0); 3858s # data2 = closure->data; 3858s # } 3858s # callback = (GMarshalFunc_VOID__VARIANT) (marshal_data ? marshal_data : cc->callback); 3858s # 3858s # callback (data1, 3858s # g_marshal_value_peek_variant (param_values + 1), 3858s # data2); 3858s # } 3858s # 3858s # void 3858s # g_cclosure_user_marshal_VOID__VARIANTv (GClosure *closure, 3858s # GValue *return_value G_GNUC_UNUSED, 3858s # gpointer instance, 3858s # va_list args, 3858s # gpointer marshal_data, 3858s # int n_params, 3858s # GType *param_types) 3858s # { 3858s # typedef void (*GMarshalFunc_VOID__VARIANT) (gpointer data1, 3858s # gpointer arg1, 3858s # gpointer data2); 3858s # GCClosure *cc = (GCClosure *) closure; 3858s # gpointer data1, data2; 3858s # GMarshalFunc_VOID__VARIANT callback; 3858s # gpointer arg0; 3858s # va_list args_copy; 3858s # 3858s # va_copy (args_copy, args); 3858s # arg0 = (gpointer) va_arg (args_copy, gpointer); 3858s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 3858s # arg0 = g_variant_ref_sink (arg0); 3858s # va_end (args_copy); 3858s # 3858s # 3858s # if (G_CCLOSURE_SWAP_DATA (closure)) 3858s # { 3858s # data1 = closure->data; 3858s # data2 = instance; 3858s # } 3858s # else 3858s # { 3858s # data1 = instance; 3858s # data2 = closure->data; 3858s # } 3858s # callback = (GMarshalFunc_VOID__VARIANT) (marshal_data ? marshal_data : cc->callback); 3858s # 3858s # callback (data1, 3858s # arg0, 3858s # data2); 3858s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 3858s # g_variant_unref (arg0); 3858s # } 3858s # Error: 3858s 1..8 3858s ok - glib/genmarshal.py.test 3858s # Running test: glib/gdbus-auth.test 3858s TAP version 14 3858s # random seed: R02S2ebddd666bea1e1b1ed4b8849a61267c 3858s 1..5 3858s # Start of gdbus tests 3858s # Start of auth tests 3858s # Start of client tests 3858s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_NI4R52/gdbus/auth/client/EXTERNAL/.dirs/home 3858s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_NI4R52/gdbus/auth/client/EXTERNAL/.dirs/cache 3858s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_NI4R52/gdbus/auth/client/EXTERNAL/.dirs/system-config1:/tmp/test_gdbus-auth_NI4R52/gdbus/auth/client/EXTERNAL/.dirs/system-config2 3858s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_NI4R52/gdbus/auth/client/EXTERNAL/.dirs/config 3858s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_NI4R52/gdbus/auth/client/EXTERNAL/.dirs/system-data1:/tmp/test_gdbus-auth_NI4R52/gdbus/auth/client/EXTERNAL/.dirs/system-data2 3858s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_NI4R52/gdbus/auth/client/EXTERNAL/.dirs/data 3858s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_NI4R52/gdbus/auth/client/EXTERNAL/.dirs/state 3858s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_NI4R52/gdbus/auth/client/EXTERNAL/.dirs/runtime 3858s ok 1 /gdbus/auth/client/EXTERNAL 3858s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_NI4R52/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/home 3858s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_NI4R52/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/cache 3858s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_NI4R52/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-config1:/tmp/test_gdbus-auth_NI4R52/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-config2 3858s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_NI4R52/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/config 3858s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_NI4R52/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-data1:/tmp/test_gdbus-auth_NI4R52/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-data2 3858s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_NI4R52/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/data 3858s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_NI4R52/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/state 3858s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_NI4R52/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/runtime 3858s ok 2 /gdbus/auth/client/DBUS_COOKIE_SHA1 3858s # End of client tests 3858s # Start of server tests 3858s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_NI4R52/gdbus/auth/server/ANONYMOUS/.dirs/home 3858s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_NI4R52/gdbus/auth/server/ANONYMOUS/.dirs/cache 3858s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_NI4R52/gdbus/auth/server/ANONYMOUS/.dirs/system-config1:/tmp/test_gdbus-auth_NI4R52/gdbus/auth/server/ANONYMOUS/.dirs/system-config2 3858s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_NI4R52/gdbus/auth/server/ANONYMOUS/.dirs/config 3858s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_NI4R52/gdbus/auth/server/ANONYMOUS/.dirs/system-data1:/tmp/test_gdbus-auth_NI4R52/gdbus/auth/server/ANONYMOUS/.dirs/system-data2 3858s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_NI4R52/gdbus/auth/server/ANONYMOUS/.dirs/data 3858s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_NI4R52/gdbus/auth/server/ANONYMOUS/.dirs/state 3858s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_NI4R52/gdbus/auth/server/ANONYMOUS/.dirs/runtime 3858s ok 3 /gdbus/auth/server/ANONYMOUS 3858s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_NI4R52/gdbus/auth/server/EXTERNAL/.dirs/home 3858s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_NI4R52/gdbus/auth/server/EXTERNAL/.dirs/cache 3858s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_NI4R52/gdbus/auth/server/EXTERNAL/.dirs/system-config1:/tmp/test_gdbus-auth_NI4R52/gdbus/auth/server/EXTERNAL/.dirs/system-config2 3858s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_NI4R52/gdbus/auth/server/EXTERNAL/.dirs/config 3858s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_NI4R52/gdbus/auth/server/EXTERNAL/.dirs/system-data1:/tmp/test_gdbus-auth_NI4R52/gdbus/auth/server/EXTERNAL/.dirs/system-data2 3858s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_NI4R52/gdbus/auth/server/EXTERNAL/.dirs/data 3858s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_NI4R52/gdbus/auth/server/EXTERNAL/.dirs/state 3858s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_NI4R52/gdbus/auth/server/EXTERNAL/.dirs/runtime 3858s ok 4 /gdbus/auth/server/EXTERNAL 3858s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_NI4R52/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/home 3858s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_NI4R52/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/cache 3858s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_NI4R52/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-config1:/tmp/test_gdbus-auth_NI4R52/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-config2 3858s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_NI4R52/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/config 3858s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_NI4R52/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-data1:/tmp/test_gdbus-auth_NI4R52/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-data2 3858s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_NI4R52/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/data 3858s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_NI4R52/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/state 3858s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_NI4R52/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/runtime 3858s ok 5 /gdbus/auth/server/DBUS_COOKIE_SHA1 3858s # End of server tests 3858s # End of auth tests 3858s # End of gdbus tests 3858s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3858s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3858s ok - glib/gdbus-auth.test 3858s # Running test: glib/rwlock.test 3858s TAP version 14 3858s # random seed: R02S27673f66ee2f9471d5133a64c67ff3db 3858s 1..8 3858s # Start of thread tests 3858s ok 1 /thread/rwlock1 3858s ok 2 /thread/rwlock2 3858s ok 3 /thread/rwlock3 3858s ok 4 /thread/rwlock4 3858s ok 5 /thread/rwlock5 3858s ok 6 /thread/rwlock6 3859s # Executing: glib/rwlock.test 3864s # Executing: glib/rwlock.test 3869s # Executing: glib/rwlock.test 3874s # Executing: glib/rwlock.test 3879s # Executing: glib/rwlock.test 3884s # Executing: glib/rwlock.test 3889s ok 7 /thread/rwlock7 3889s # slow test /thread/rwlock7 executed in 30.31 secs 3889s # Executing: glib/rwlock.test 3889s ok 8 /thread/rwlock8 3889s # slow test /thread/rwlock8 executed in 0.50 secs 3889s # End of thread tests 3889s ok - glib/rwlock.test 3889s # Running test: glib/atomic-c-99.test 3889s TAP version 14 3889s # random seed: R02S2c87c7b893eb52e305fb13af8f36b2f4 3889s 1..2 3889s # Start of atomic tests 3889s ok 1 /atomic/types 3890s ok 2 /atomic/threaded 3890s # End of atomic tests 3890s ok - glib/atomic-c-99.test 3890s # Running test: glib/logging.test 3890s TAP version 14 3890s # random seed: R02Sa3451e46355bb17eafc6ffa9d6629438 3890s 1..17 3890s # Start of logging tests 3894s # Executing: glib/logging.test 3899s # Executing: glib/logging.test 3903s ok 1 /logging/default-handler 3903s # slow test /logging/default-handler executed in 12.98 secs 3903s ok 2 /logging/warnings 3903s ok 3 /logging/fatal-log-mask 3903s # bu-DEBUG: message 3903s # ba-DEBUG: message 3903s # ba-INFO: message 3903s ok 4 /logging/set-handler 3903s ok 5 /logging/print-handler 3903s ok 6 /logging/printerr-handler 3903s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=653052 3903s # The Log Message Handler 3903s # 3903s # The Good Fail Message Handler 3903s # 3903s ok 7 /logging/653052 3903s ok 8 /logging/gibberish 3903s # Start of default-handler tests 3903s # Start of subprocess tests 3903s # End of subprocess tests 3903s # End of default-handler tests 3903s # End of logging tests 3903s # Start of structured-logging tests 3903s ok 9 /structured-logging/no-state 3903s ok 10 /structured-logging/some-state 3903s ok 11 /structured-logging/robustness 3903s ok 12 /structured-logging/roundtrip1 3903s ok 13 /structured-logging/roundtrip2 3903s ok 14 /structured-logging/roundtrip3 3903s ok 15 /structured-logging/variant1 3903s ok 16 /structured-logging/variant2 3903s ok 17 /structured-logging/set-writer-func-twice 3903s # End of structured-logging tests 3903s ok - glib/logging.test 3904s # Running test: glib/module-test-library.test 3904s TAP version 14 3904s # random seed: R02S54c23ddb4d74e07946ae1bd2f331e55e 3904s 1..3 3904s # Start of module tests 3904s # Executing: glib/module-test-library.test 3904s ok 1 /module/basics 3904s # /module/invalid-libtool-archive summary: Test that opening an invalid .la file fails 3904s ok 2 /module/invalid-libtool-archive 3904s # /module/local-binding summary: Test that binding a library's symbols locally does not add them globally 3904s ok 3 /module/local-binding 3904s # End of module tests 3904s ok - glib/module-test-library.test 3904s # Running test: glib/include.test 3904s TAP version 14 3904s # random seed: R02S24a02355258ad90dcd2f629088b4c8e4 3904s 1..1 3904s # Start of include tests 3904s ok 1 /include/rwlock 3904s # End of include tests 3904s ok - glib/include.test 3904s # Running test: glib/stream-rw_all.test 3904s TAP version 14 3904s # random seed: R02Sa0a255ee4025dde6748ea4e053a85105 3904s 1..3 3904s # Start of stream tests 3904s # Start of read_all_async tests 3904s ok 1 /stream/read_all_async/memory 3904s # End of read_all_async tests 3904s # Start of write_all_async tests 3904s ok 2 /stream/write_all_async/memory 3904s # End of write_all_async tests 3904s # Start of read_write_all_async tests 3904s ok 3 /stream/read_write_all_async/pipe 3904s # End of read_write_all_async tests 3904s # End of stream tests 3904s ok - glib/stream-rw_all.test 3904s # Running test: glib/signals-refcount2.test 3904s TAP version 14 3904s # random seed: R02S493715245761823d04db185f5f424014 3904s 1..1 3904s # Start of gobject tests 3904s # Start of refcount tests 3904s # init 0x555da93e1dc0 3904s # 3904s # init 0x555da93de310 3904s # 3909s # Executing: glib/signals-refcount2.test 3909s # dispose 0x555da93e1dc0! 3909s # 3909s # dispose 0x555da93de310! 3909s # 3909s ok 1 /gobject/refcount/signals 3909s # slow test /gobject/refcount/signals executed in 5.03 secs 3909s # End of refcount tests 3909s # End of gobject tests 3909s ok - glib/signals-refcount2.test 3909s # Running test: glib/gdbus-addresses.test 3909s TAP version 14 3909s # random seed: R02S2e96be819d541249d27c98026cc12316 3909s 1..9 3909s # Start of gdbus tests 3909s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/empty-address/.dirs/home 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/empty-address/.dirs/cache 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_EEHB62/gdbus/empty-address/.dirs/system-config1:/tmp/test_gdbus-addresses_EEHB62/gdbus/empty-address/.dirs/system-config2 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/empty-address/.dirs/config 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_EEHB62/gdbus/empty-address/.dirs/system-data1:/tmp/test_gdbus-addresses_EEHB62/gdbus/empty-address/.dirs/system-data2 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/empty-address/.dirs/data 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/empty-address/.dirs/state 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_EEHB62/gdbus/empty-address/.dirs/runtime 3909s ok 1 /gdbus/empty-address 3909s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/unsupported-address/.dirs/home 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/unsupported-address/.dirs/cache 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_EEHB62/gdbus/unsupported-address/.dirs/system-config1:/tmp/test_gdbus-addresses_EEHB62/gdbus/unsupported-address/.dirs/system-config2 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/unsupported-address/.dirs/config 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_EEHB62/gdbus/unsupported-address/.dirs/system-data1:/tmp/test_gdbus-addresses_EEHB62/gdbus/unsupported-address/.dirs/system-data2 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/unsupported-address/.dirs/data 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/unsupported-address/.dirs/state 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_EEHB62/gdbus/unsupported-address/.dirs/runtime 3909s ok 2 /gdbus/unsupported-address 3909s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/address-parsing/.dirs/home 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/address-parsing/.dirs/cache 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_EEHB62/gdbus/address-parsing/.dirs/system-config1:/tmp/test_gdbus-addresses_EEHB62/gdbus/address-parsing/.dirs/system-config2 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/address-parsing/.dirs/config 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_EEHB62/gdbus/address-parsing/.dirs/system-data1:/tmp/test_gdbus-addresses_EEHB62/gdbus/address-parsing/.dirs/system-data2 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/address-parsing/.dirs/data 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/address-parsing/.dirs/state 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_EEHB62/gdbus/address-parsing/.dirs/runtime 3909s ok 3 /gdbus/address-parsing 3909s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/unix-address/.dirs/home 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/unix-address/.dirs/cache 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_EEHB62/gdbus/unix-address/.dirs/system-config1:/tmp/test_gdbus-addresses_EEHB62/gdbus/unix-address/.dirs/system-config2 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/unix-address/.dirs/config 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_EEHB62/gdbus/unix-address/.dirs/system-data1:/tmp/test_gdbus-addresses_EEHB62/gdbus/unix-address/.dirs/system-data2 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/unix-address/.dirs/data 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/unix-address/.dirs/state 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_EEHB62/gdbus/unix-address/.dirs/runtime 3909s ok 4 /gdbus/unix-address 3909s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/nonce-tcp-address/.dirs/home 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/nonce-tcp-address/.dirs/cache 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_EEHB62/gdbus/nonce-tcp-address/.dirs/system-config1:/tmp/test_gdbus-addresses_EEHB62/gdbus/nonce-tcp-address/.dirs/system-config2 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/nonce-tcp-address/.dirs/config 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_EEHB62/gdbus/nonce-tcp-address/.dirs/system-data1:/tmp/test_gdbus-addresses_EEHB62/gdbus/nonce-tcp-address/.dirs/system-data2 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/nonce-tcp-address/.dirs/data 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/nonce-tcp-address/.dirs/state 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_EEHB62/gdbus/nonce-tcp-address/.dirs/runtime 3909s ok 5 /gdbus/nonce-tcp-address 3909s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/tcp-address/.dirs/home 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/tcp-address/.dirs/cache 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_EEHB62/gdbus/tcp-address/.dirs/system-config1:/tmp/test_gdbus-addresses_EEHB62/gdbus/tcp-address/.dirs/system-config2 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/tcp-address/.dirs/config 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_EEHB62/gdbus/tcp-address/.dirs/system-data1:/tmp/test_gdbus-addresses_EEHB62/gdbus/tcp-address/.dirs/system-data2 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/tcp-address/.dirs/data 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/tcp-address/.dirs/state 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_EEHB62/gdbus/tcp-address/.dirs/runtime 3909s ok 6 /gdbus/tcp-address 3909s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/autolaunch-address/.dirs/home 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/autolaunch-address/.dirs/cache 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_EEHB62/gdbus/autolaunch-address/.dirs/system-config1:/tmp/test_gdbus-addresses_EEHB62/gdbus/autolaunch-address/.dirs/system-config2 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/autolaunch-address/.dirs/config 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_EEHB62/gdbus/autolaunch-address/.dirs/system-data1:/tmp/test_gdbus-addresses_EEHB62/gdbus/autolaunch-address/.dirs/system-data2 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/autolaunch-address/.dirs/data 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/autolaunch-address/.dirs/state 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_EEHB62/gdbus/autolaunch-address/.dirs/runtime 3909s ok 7 /gdbus/autolaunch-address 3909s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/mixed-address/.dirs/home 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/mixed-address/.dirs/cache 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_EEHB62/gdbus/mixed-address/.dirs/system-config1:/tmp/test_gdbus-addresses_EEHB62/gdbus/mixed-address/.dirs/system-config2 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/mixed-address/.dirs/config 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_EEHB62/gdbus/mixed-address/.dirs/system-data1:/tmp/test_gdbus-addresses_EEHB62/gdbus/mixed-address/.dirs/system-data2 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/mixed-address/.dirs/data 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/mixed-address/.dirs/state 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_EEHB62/gdbus/mixed-address/.dirs/runtime 3909s ok 8 /gdbus/mixed-address 3909s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/escape-address/.dirs/home 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/escape-address/.dirs/cache 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_EEHB62/gdbus/escape-address/.dirs/system-config1:/tmp/test_gdbus-addresses_EEHB62/gdbus/escape-address/.dirs/system-config2 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/escape-address/.dirs/config 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_EEHB62/gdbus/escape-address/.dirs/system-data1:/tmp/test_gdbus-addresses_EEHB62/gdbus/escape-address/.dirs/system-data2 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/escape-address/.dirs/data 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_EEHB62/gdbus/escape-address/.dirs/state 3909s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_EEHB62/gdbus/escape-address/.dirs/runtime 3909s ok 9 /gdbus/escape-address 3909s # End of gdbus tests 3909s ok - glib/gdbus-addresses.test 3909s # Running test: glib/appmonitor.test 3910s TAP version 14 3910s # random seed: R02S9736c8e03878cef15146881230dc2638 3910s 1..1 3910s # Start of monitor tests 3910s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_appmonitor_I6S152/monitor/app/.dirs/home 3910s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_appmonitor_I6S152/monitor/app/.dirs/cache 3910s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_appmonitor_I6S152/monitor/app/.dirs/system-config1:/tmp/test_appmonitor_I6S152/monitor/app/.dirs/system-config2 3910s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_appmonitor_I6S152/monitor/app/.dirs/config 3910s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_appmonitor_I6S152/monitor/app/.dirs/system-data1:/tmp/test_appmonitor_I6S152/monitor/app/.dirs/system-data2 3910s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_appmonitor_I6S152/monitor/app/.dirs/data 3910s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_appmonitor_I6S152/monitor/app/.dirs/state 3910s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_appmonitor_I6S152/monitor/app/.dirs/runtime 3910s # Using data directory: /tmp/test_appmonitor_I6S152/monitor/app/.dirs/data 3910s ok 1 /monitor/app 3910s # End of monitor tests 3910s ok - glib/appmonitor.test 3910s # Running test: glib/value.test 3910s TAP version 14 3910s # random seed: R02Sa3beb6aeeb0e69fd9e976f83a13e74cf 3910s 1..9 3910s # Start of value tests 3910s ok 1 /value/basic 3910s ok 2 /value/collection 3910s ok 3 /value/copying 3910s ok 4 /value/enum-transformation 3910s ok 5 /value/gtype 3910s # /value/string summary: Test that G_TYPE_STRING GValue copy properly 3910s ok 6 /value/string 3910s # Next: GObject object in GValue of GObject to GValue of GObject 3910s # Next: GObject object in GValue of GObject to GValue of TestInterface 3910s # Next: GObject object in GValue of GObject to GValue of TestObjectA 3910s # Next: GObject object in GValue of GObject to GValue of TestObjectB 3910s # Next: GObject object in GValue of GObject to GValue of TestObjectA1 3910s # Next: GObject object in GValue of GObject to GValue of TestObjectA2 3910s # Next: TestObjectA object in GValue of GObject to GValue of GObject 3910s # Next: TestObjectA object in GValue of GObject to GValue of TestInterface 3910s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA 3910s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectB 3910s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA1 3910s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA2 3910s # Next: TestObjectA object in GValue of TestObjectA to GValue of GObject 3910s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestInterface 3910s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA 3910s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectB 3910s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA1 3910s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA2 3910s # Next: TestObjectB object in GValue of GObject to GValue of GObject 3910s # Next: TestObjectB object in GValue of GObject to GValue of TestInterface 3910s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA 3910s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectB 3910s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA1 3910s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA2 3910s # Next: TestObjectB object in GValue of TestInterface to GValue of GObject 3910s # Next: TestObjectB object in GValue of TestInterface to GValue of TestInterface 3910s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA 3910s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectB 3910s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA1 3910s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA2 3910s # Next: TestObjectB object in GValue of TestObjectB to GValue of GObject 3910s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestInterface 3910s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA 3910s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectB 3910s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA1 3910s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA2 3910s # Next: TestObjectA1 object in GValue of GObject to GValue of GObject 3910s # Next: TestObjectA1 object in GValue of GObject to GValue of TestInterface 3910s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA 3910s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectB 3910s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA1 3910s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA2 3910s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of GObject 3910s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestInterface 3910s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA 3910s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectB 3910s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA1 3910s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA2 3910s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of GObject 3910s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestInterface 3910s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA 3910s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectB 3910s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA1 3910s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA2 3910s # Next: TestObjectA2 object in GValue of GObject to GValue of GObject 3910s # Next: TestObjectA2 object in GValue of GObject to GValue of TestInterface 3910s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA 3910s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectB 3910s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA1 3910s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA2 3910s # Next: TestObjectA2 object in GValue of TestInterface to GValue of GObject 3910s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestInterface 3910s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA 3910s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectB 3910s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA1 3910s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA2 3910s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of GObject 3910s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestInterface 3910s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA 3910s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectB 3910s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA1 3910s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA2 3910s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of GObject 3910s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestInterface 3910s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA 3910s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectB 3910s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA1 3910s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA2 3910s ok 7 /value/transform-object 3910s # Start of array tests 3910s ok 8 /value/array/basic 3910s ok 9 /value/array/sort-with-data 3910s # End of array tests 3910s # End of value tests 3910s ok - glib/value.test 3910s # Running test: glib/portal-support-snap-classic.test 3910s TAP version 14 3910s # random seed: R02S91def5a71258341b7715203baa7e710e 3910s 1..3 3910s # Start of portal-support tests 3910s # Start of snap-classic tests 3910s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_2P9Y52/portal-support/snap-classic/no-snapctl/.dirs/home 3910s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_2P9Y52/portal-support/snap-classic/no-snapctl/.dirs/cache 3910s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_2P9Y52/portal-support/snap-classic/no-snapctl/.dirs/system-config1:/tmp/test_portal-support-snap-classic_2P9Y52/portal-support/snap-classic/no-snapctl/.dirs/system-config2 3910s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_2P9Y52/portal-support/snap-classic/no-snapctl/.dirs/config 3910s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_2P9Y52/portal-support/snap-classic/no-snapctl/.dirs/system-data1:/tmp/test_portal-support-snap-classic_2P9Y52/portal-support/snap-classic/no-snapctl/.dirs/system-data2 3910s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_2P9Y52/portal-support/snap-classic/no-snapctl/.dirs/data 3910s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_2P9Y52/portal-support/snap-classic/no-snapctl/.dirs/state 3910s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_2P9Y52/portal-support/snap-classic/no-snapctl/.dirs/runtime 3910s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_2P9Y52/portal-support/snap-classic/no-snapctl: No such file or directory 3910s ok 1 /portal-support/snap-classic/no-snapctl 3910s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_2P9Y52/portal-support/snap-classic/none/.dirs/home 3910s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_2P9Y52/portal-support/snap-classic/none/.dirs/cache 3910s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_2P9Y52/portal-support/snap-classic/none/.dirs/system-config1:/tmp/test_portal-support-snap-classic_2P9Y52/portal-support/snap-classic/none/.dirs/system-config2 3910s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_2P9Y52/portal-support/snap-classic/none/.dirs/config 3910s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_2P9Y52/portal-support/snap-classic/none/.dirs/system-data1:/tmp/test_portal-support-snap-classic_2P9Y52/portal-support/snap-classic/none/.dirs/system-data2 3910s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_2P9Y52/portal-support/snap-classic/none/.dirs/data 3910s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_2P9Y52/portal-support/snap-classic/none/.dirs/state 3910s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_2P9Y52/portal-support/snap-classic/none/.dirs/runtime 3910s # Created snap.yaml in /tmp/test_portal-support-snap-classic_2P9Y52/meta/snap.yaml 3910s # Created snapctl in /tmp/test_portal-support-snap-classic_2P9Y52/portal-support/snap-classic/none/.dirs/runtime/snapctl 3910s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_2P9Y52/portal-support/snap-classic/none: No such file or directory 3910s ok 2 /portal-support/snap-classic/none 3910s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_2P9Y52/portal-support/snap-classic/all/.dirs/home 3910s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_2P9Y52/portal-support/snap-classic/all/.dirs/cache 3910s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_2P9Y52/portal-support/snap-classic/all/.dirs/system-config1:/tmp/test_portal-support-snap-classic_2P9Y52/portal-support/snap-classic/all/.dirs/system-config2 3910s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_2P9Y52/portal-support/snap-classic/all/.dirs/config 3910s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_2P9Y52/portal-support/snap-classic/all/.dirs/system-data1:/tmp/test_portal-support-snap-classic_2P9Y52/portal-support/snap-classic/all/.dirs/system-data2 3910s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_2P9Y52/portal-support/snap-classic/all/.dirs/data 3910s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_2P9Y52/portal-support/snap-classic/all/.dirs/state 3910s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_2P9Y52/portal-support/snap-classic/all/.dirs/runtime 3910s # Created snap.yaml in /tmp/test_portal-support-snap-classic_2P9Y52/meta/snap.yaml 3910s # Created snapctl in /tmp/test_portal-support-snap-classic_2P9Y52/portal-support/snap-classic/all/.dirs/runtime/snapctl 3910s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_2P9Y52/portal-support/snap-classic/all: No such file or directory 3910s ok 3 /portal-support/snap-classic/all 3910s # End of snap-classic tests 3910s # End of portal-support tests 3910s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_2P9Y52: No such file or directory 3910s ok - glib/portal-support-snap-classic.test 3910s # Running test: glib/buffered-output-stream.test 3910s TAP version 14 3910s # random seed: R02S0b160c691b7bb96d3195e10d6993fe39 3910s 1..5 3910s # Start of buffered-output-stream tests 3910s ok 1 /buffered-output-stream/write 3910s ok 2 /buffered-output-stream/grow 3910s ok 3 /buffered-output-stream/seek 3910s ok 4 /buffered-output-stream/truncate 3910s # End of buffered-output-stream tests 3910s # Start of filter-output-stream tests 3910s ok 5 /filter-output-stream/close 3910s # End of filter-output-stream tests 3910s ok - glib/buffered-output-stream.test 3910s # Running test: glib/bitlock.test 3910s TAP version 14 3910s # random seed: R02S0d2b126d23c5107e64592a147c1975d8 3910s 1..1 3910s # Start of bitlock tests 3910s # Start of performance tests 3910s # max perf: iterations per second 3910s ok 1 /bitlock/performance/uncontended 3910s # End of performance tests 3910s # End of bitlock tests 3910s ok - glib/bitlock.test 3910s # Running test: glib/signal-handler.test 3910s TAP version 14 3910s # random seed: R02S52105b6ba25d193cc90313dcf4bc435f 3910s 1..7 3910s # Start of signal tests 3910s # Start of handler tests 3910s # min perf: connected 1 handlers in 0.001 seconds 3910s ok 1 /signal/handler/connect-many 3910s # min perf: disconnected 1 handlers in 0.000 seconds 3910s ok 2 /signal/handler/disconnect-many-ordered 3910s # min perf: disconnected 1 handlers in 0.000 seconds 3910s ok 3 /signal/handler/disconnect-many-inverse 3910s # min perf: disconnected 1 handlers in 0.000 seconds 3910s ok 4 /signal/handler/disconnect-many-random 3910s # min perf: disconnected 1 handlers in 0.000 seconds 3910s ok 5 /signal/handler/disconnect-2-signals 3910s # min perf: disconnected 1 handlers in 0.000 seconds 3910s ok 6 /signal/handler/disconnect-2-objects 3910s # min perf: blocked and unblocked 1 handlers in 0.000 seconds 3910s ok 7 /signal/handler/block-many 3910s # End of handler tests 3910s # End of signal tests 3910s ok - glib/signal-handler.test 3910s # Running test: glib/dataset.test 3910s TAP version 14 3910s # random seed: R02S745b69c2fa5b8868f85eef6df525bde9 3910s 1..14 3910s # Start of quark tests 3910s ok 1 /quark/basic 3910s ok 2 /quark/string 3910s # End of quark tests 3910s # Start of dataset tests 3910s ok 3 /dataset/basic 3910s ok 4 /dataset/id 3910s ok 5 /dataset/full 3910s ok 6 /dataset/foreach 3910s ok 7 /dataset/destroy 3910s # End of dataset tests 3910s # Start of datalist tests 3910s ok 8 /datalist/basic 3910s ok 9 /datalist/id 3910s ok 10 /datalist/recursive-clear 3910s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2672 3910s ok 11 /datalist/id-remove-multiple 3910s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2672 3910s ok 12 /datalist/id-remove-multiple-destroy-order 3910s ok 13 /datalist/update-atomic 3910s # Start of id-remove-multiple tests 3910s ok 14 /datalist/id-remove-multiple/resize 3910s # End of id-remove-multiple tests 3910s # End of datalist tests 3910s ok - glib/dataset.test 3910s # Running test: glib/pollable.test 3911s TAP version 14 3911s # random seed: R02S5e34b5fec9362f600f91173d168258c5 3911s 1..6 3911s # Start of pollable tests 3911s ok 1 /pollable/converter 3911s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ?gio-proxy-resolver? 3911s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x555cda995ae0 and GSocketClientAsyncConnectData 0x555cda991c00 3911s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 3911s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 3911s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x555cda99aa20 for GSocketClientAsyncConnectData 0x555cda991c00 3911s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 3911s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 3911s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 3911s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 3911s ok 2 /pollable/socket 3911s # Start of unix tests 3911s # /pollable/unix/pipe summary: Test that pipes are considered pollable, just like sockets 3911s ok 3 /pollable/unix/pipe 3911s # /pollable/unix/pty summary: Test that PTYs are considered pollable 3911s ok 4 /pollable/unix/pty 3911s # /pollable/unix/file summary: Test that regular files are not considered pollable 3911s ok 5 /pollable/unix/file 3911s # /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 3911s ok 6 /pollable/unix/nulldev 3911s # End of unix tests 3911s # End of pollable tests 3911s ok - glib/pollable.test 3911s # Running test: glib/gdbus-connection-slow.test 3911s TAP version 14 3911s # random seed: R02S0290d195046abcb42af5c28ef0d40916 3911s 1..2 3911s # Start of gdbus tests 3911s # Start of connection tests 3911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-slow_7JUW52/gdbus/connection/flush/.dirs/home 3911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-slow_7JUW52/gdbus/connection/flush/.dirs/cache 3911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-slow_7JUW52/gdbus/connection/flush/.dirs/system-config1:/tmp/test_gdbus-connection-slow_7JUW52/gdbus/connection/flush/.dirs/system-config2 3911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-slow_7JUW52/gdbus/connection/flush/.dirs/config 3911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-slow_7JUW52/gdbus/connection/flush/.dirs/system-data1:/tmp/test_gdbus-connection-slow_7JUW52/gdbus/connection/flush/.dirs/system-data2 3911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-slow_7JUW52/gdbus/connection/flush/.dirs/data 3911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-slow_7JUW52/gdbus/connection/flush/.dirs/state 3911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-slow_7JUW52/gdbus/connection/flush/.dirs/runtime 3914s # Executing: glib/gdbus-connection-slow.test 3918s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3918s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3918s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3918s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3918s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3918s ok 1 /gdbus/connection/flush 3918s # slow test /gdbus/connection/flush executed in 7.56 secs 3918s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-slow_7JUW52/gdbus/connection/large_message/.dirs/home 3918s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-slow_7JUW52/gdbus/connection/large_message/.dirs/cache 3918s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-slow_7JUW52/gdbus/connection/large_message/.dirs/system-config1:/tmp/test_gdbus-connection-slow_7JUW52/gdbus/connection/large_message/.dirs/system-config2 3918s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-slow_7JUW52/gdbus/connection/large_message/.dirs/config 3918s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-slow_7JUW52/gdbus/connection/large_message/.dirs/system-data1:/tmp/test_gdbus-connection-slow_7JUW52/gdbus/connection/large_message/.dirs/system-data2 3918s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-slow_7JUW52/gdbus/connection/large_message/.dirs/data 3918s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-slow_7JUW52/gdbus/connection/large_message/.dirs/state 3918s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-slow_7JUW52/gdbus/connection/large_message/.dirs/runtime 3918s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3918s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3918s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3918s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3918s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3918s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3919s # Executing: glib/gdbus-connection-slow.test 3924s # Executing: glib/gdbus-connection-slow.test 3926s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3926s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3926s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3926s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3926s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3926s ok 2 /gdbus/connection/large_message 3926s # slow test /gdbus/connection/large_message executed in 7.28 secs 3926s # End of connection tests 3926s # End of gdbus tests 3926s ok - glib/gdbus-connection-slow.test 3926s # Running test: glib/macros-c-99.test 3926s TAP version 14 3926s # random seed: R02Sad8cf15ec76babc5a95950929c513a7b 3926s 1..4 3926s # Start of C tests 3926s ok 1 /C/standard-99 3926s # End of C tests 3926s # Start of alignof tests 3926s ok 2 /alignof/fallback 3926s # End of alignof tests 3926s # Start of assert tests 3926s ok 3 /assert/static 3926s # End of assert tests 3926s # Start of struct tests 3926s ok 4 /struct/sizeof_member 3926s # End of struct tests 3926s ok - glib/macros-c-99.test 3926s # Running test: glib/sequence.test 3926s TAP version 14 3926s # random seed: R02S02e0e34a4a9a713776344680e629a2e7 3926s 1..16 3926s # Start of sequence tests 3926s ok 1 /sequence/out-of-range-jump 3926s ok 2 /sequence/iter-move 3927s ok 3 /sequence/insert-sorted-non-pointer 3927s # slow test /sequence/insert-sorted-non-pointer executed in 0.87 secs 3927s ok 4 /sequence/stable-sort 3927s ok 5 /sequence/is_empty 3927s # Start of random tests 3929s # Executing: glib/sequence.test 3932s ok 6 /sequence/random/seed:825541564 3932s # slow test /sequence/random/seed:825541564 executed in 5.33 secs 3934s # Executing: glib/sequence.test 3937s ok 7 /sequence/random/seed:801678400 3937s # slow test /sequence/random/seed:801678400 executed in 4.92 secs 3939s # Executing: glib/sequence.test 3942s ok 8 /sequence/random/seed:1477639090 3942s # slow test /sequence/random/seed:1477639090 executed in 5.02 secs 3944s # Executing: glib/sequence.test 3947s ok 9 /sequence/random/seed:3369132895 3947s # slow test /sequence/random/seed:3369132895 executed in 5.00 secs 3949s # Executing: glib/sequence.test 3952s ok 10 /sequence/random/seed:1192944867 3952s # slow test /sequence/random/seed:1192944867 executed in 5.23 secs 3954s # Executing: glib/sequence.test 3958s ok 11 /sequence/random/seed:770458294 3958s # slow test /sequence/random/seed:770458294 executed in 5.38 secs 3959s # Executing: glib/sequence.test 3963s ok 12 /sequence/random/seed:1099575817 3963s # slow test /sequence/random/seed:1099575817 executed in 5.17 secs 3964s # Executing: glib/sequence.test 3968s ok 13 /sequence/random/seed:590523467 3968s # slow test /sequence/random/seed:590523467 executed in 5.14 secs 3969s # Executing: glib/sequence.test 3973s ok 14 /sequence/random/seed:3583571454 3973s # slow test /sequence/random/seed:3583571454 executed in 5.34 secs 3974s # Executing: glib/sequence.test 3979s # Executing: glib/sequence.test 3979s ok 15 /sequence/random/seed:579241222 3979s # slow test /sequence/random/seed:579241222 executed in 5.38 secs 3984s # Executing: glib/sequence.test 3984s ok 16 /sequence/random/seed:700742562 3984s # slow test /sequence/random/seed:700742562 executed in 5.24 secs 3984s # End of random tests 3984s # End of sequence tests 3984s ok - glib/sequence.test 3984s # Running test: glib/fileattributematcher.test 3984s TAP version 14 3984s # random seed: R02S30c2f9b701048ac130ade89b58b75a63 3984s 1..3 3984s ok - glib/fileattributematcher.test 3984s # Start of fileattributematcher tests 3984s ok 1 /fileattributematcher/exact 3984s ok 2 /fileattributematcher/equality 3984s ok 3 /fileattributematcher/subtract 3984s # End of fileattributematcher tests 3984s # Running test: glib/once.test 3984s TAP version 14 3984s # random seed: R02Sffbfccaef8217581f4783af8499adbcc 3984s 1..5 3984s # Start of once tests 3984s # /once/single-threaded summary: Test g_once() usage from a single thread 3984s ok 1 /once/single-threaded 3984s # /once/multi-threaded summary: Test g_once() usage from multiple threads 3984s ok 2 /once/multi-threaded 3984s # End of once tests 3984s # Start of once-init tests 3984s # /once-init/single-threaded summary: Test g_once_init_{enter,leave}() usage from a single thread 3984s ok 3 /once-init/single-threaded 3984s # /once-init/multi-threaded summary: Test g_once_init_{enter,leave}() usage from multiple threads 3984s ok 4 /once-init/multi-threaded 3984s # /once-init/string summary: Test g_once_init_{enter,leave}() usage with a string 3984s ok 5 /once-init/string 3984s # End of once-init tests 3984s ok - glib/once.test 3985s # Running test: glib/converter-stream.test 3985s TAP version 14 3985s # random seed: R02Sc99886427e9f48c616cb57ec502c9f6f 3985s 1..17 3985s # Start of converter tests 3985s ok 1 /converter/basics 3985s # End of converter tests 3985s # Start of converter-input-stream tests 3985s ok 2 /converter-input-stream/expander 3985s ok 3 /converter-input-stream/compressor 3985s # Start of truncation tests 3986s ok 4 /converter-input-stream/truncation/zlib 3986s # slow test /converter-input-stream/truncation/zlib executed in 0.83 secs 3986s ok 5 /converter-input-stream/truncation/gzip 3986s # slow test /converter-input-stream/truncation/gzip executed in 0.85 secs 3987s ok 6 /converter-input-stream/truncation/raw 3987s # slow test /converter-input-stream/truncation/raw executed in 0.72 secs 3987s # End of truncation tests 3987s # Start of charset tests 3987s ok 7 /converter-input-stream/charset/utf8->latin1 3987s ok 8 /converter-input-stream/charset/latin1->utf8 3987s ok 9 /converter-input-stream/charset/fallbacks 3987s # End of charset tests 3987s # End of converter-input-stream tests 3987s # Start of converter-output-stream tests 3987s # Start of roundtrip tests 3987s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 3987s ok 10 /converter-output-stream/roundtrip/zlib-0 3987s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 3988s ok 11 /converter-output-stream/roundtrip/zlib-9 3988s # slow test /converter-output-stream/roundtrip/zlib-9 executed in 0.79 secs 3988s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 3988s ok 12 /converter-output-stream/roundtrip/gzip-0 3988s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 3989s # Executing: glib/converter-stream.test 3989s ok 13 /converter-output-stream/roundtrip/gzip-9 3989s # slow test /converter-output-stream/roundtrip/gzip-9 executed in 0.81 secs 3989s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 3990s ok 14 /converter-output-stream/roundtrip/raw-0 3990s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 3990s ok 15 /converter-output-stream/roundtrip/raw-9 3990s # slow test /converter-output-stream/roundtrip/raw-9 executed in 0.80 secs 3990s # End of roundtrip tests 3990s # End of converter-output-stream tests 3990s # Start of converter-stream tests 3990s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ?gio-proxy-resolver? 3990s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x5557bad9f700 and GSocketClientAsyncConnectData 0x5557bad9c500 3990s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 3990s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 3990s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x5557ba9afbc0 for GSocketClientAsyncConnectData 0x5557bad9c500 3990s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 3990s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 3990s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 3990s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 3991s ok 16 /converter-stream/pollable 3991s ok 17 /converter-stream/leftover 3991s # End of converter-stream tests 3991s ok - glib/converter-stream.test 3991s # Running test: glib/gi-inspect-typelib.py.test 3992s TAP version 13 3992s ok 1 __main__.TestGIInspectTypelibCommandLine.test_help 3992s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 3992s # tmpdir: /tmp/tmpbg430idq 3992s # Running: ['/usr/bin/gi-inspect-typelib', '--help'] 3992s # Return code: 0 3992s # Output: 3992s # Usage: 3992s # gi-inspect-typelib [OPTION…] NAMESPACE - Inspect GI typelib 3992s # 3992s # Help Options: 3992s # -h, --help Show help options 3992s # 3992s # Application Options: 3992s # --typelib-version=VERSION Typelib version to inspect 3992s # --print-shlibs List the shared libraries the typelib requires 3992s # --print-typelibs List other typelibs the inspected typelib requires 3992s # Error: 3992s ok 2 __main__.TestGIInspectTypelibCommandLine.test_invalid_typelib 3992s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 3992s # tmpdir: /tmp/tmpu_2usfyl 3992s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'AnInvalidNameSpace'] 3992s # Return code: 1 3992s # Output: 3992s # 3992s # Error: 3992s # Failed to load typelib: Typelib file for namespace 'AnInvalidNameSpace' (any version) not found 3992s ok 3 __main__.TestGIInspectTypelibCommandLine.test_no_args 3992s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 3992s # tmpdir: /tmp/tmpsgt0k5j4 3992s # Running: ['/usr/bin/gi-inspect-typelib'] 3992s # Return code: 1 3992s # Output: 3992s # 3992s # Error: 3992s # Please specify exactly one namespace 3992s ok 4 __main__.TestGIInspectTypelibForGLibTypelib.test_print_shlibs 3992s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 3992s # tmpdir: /tmp/tmpeps51y2v 3992s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'GLib', '--typelib-version=2.0'] 3992s # Return code: 0 3992s # Output: 3992s # shlib: libgobject-2.0.so.0 3992s # shlib: libglib-2.0.so.0 3992s # Error: 3992s ok 5 __main__.TestGIInspectTypelibForGLibTypelib.test_print_typelibs 3992s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 3992s # tmpdir: /tmp/tmp6416s29b 3992s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'GLib', '--typelib-version=2.0'] 3992s # Return code: 0 3992s # Output: 3992s # 3992s # Error: 3992s ok 6 __main__.TestGIInspectTypelibForGLibTypelib.test_print_typelibs_and_shlibs 3992s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 3992s # tmpdir: /tmp/tmpp2r51c2d 3992s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'GLib', '--typelib-version=2.0'] 3992s # Return code: 0 3992s # Output: 3992s # shlib: libgobject-2.0.so.0 3992s # shlib: libglib-2.0.so.0 3992s # Error: 3992s ok 7 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_shlibs 3992s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 3992s # tmpdir: /tmp/tmp7cd196dn 3992s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'GObject', '--typelib-version=2.0'] 3992s # Return code: 0 3992s # Output: 3992s # shlib: libgobject-2.0.so.0 3992s # Error: 3993s ok 8 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_typelibs 3993s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 3993s # tmpdir: /tmp/tmpaa_ssfd6 3993s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'GObject', '--typelib-version=2.0'] 3993s # Return code: 0 3993s # Output: 3993s # typelib: GLib-2.0 3993s # Error: 3993s ok 9 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_typelibs_and_shlibs 3993s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 3993s # tmpdir: /tmp/tmpzey746as 3993s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'GObject', '--typelib-version=2.0'] 3993s # Return code: 0 3993s # Output: 3993s # shlib: libgobject-2.0.so.0 3993s # typelib: GLib-2.0 3993s # Error: 3993s ok 10 __main__.TestGIInspectTypelibForGioTypelib.test_print_shlibs 3993s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 3993s # tmpdir: /tmp/tmp1j33bivd 3993s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'Gio', '--typelib-version=2.0'] 3993s # Return code: 0 3993s # Output: 3993s # shlib: libgio-2.0.so.0 3993s # Error: 3993s ok 11 __main__.TestGIInspectTypelibForGioTypelib.test_print_typelibs 3993s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 3993s # tmpdir: /tmp/tmpbn4kyqj8 3993s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'Gio', '--typelib-version=2.0'] 3993s # Return code: 0 3993s # Output: 3993s # typelib: GObject-2.0 3993s # typelib: GLib-2.0 3993s # typelib: GModule-2.0 3993s # Error: 3993s ok 12 __main__.TestGIInspectTypelibForGioTypelib.test_print_typelibs_and_shlibs 3993s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 3993s # tmpdir: /tmp/tmps7f2ups8 3993s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'Gio', '--typelib-version=2.0'] 3993s # Return code: 0 3993s # Output: 3993s # shlib: libgio-2.0.so.0 3993s # typelib: GObject-2.0 3993s # typelib: GLib-2.0 3993s # typelib: GModule-2.0 3993s # Error: 3993s 1..12 3993s ok - glib/gi-inspect-typelib.py.test 3993s # Running test: glib/mappedfile.test 3993s TAP version 14 3993s # random seed: R02Se846ccdf1ad74e8dd5adc41a3f0724bc 3993s 1..7 3993s # Start of mappedfile tests 3993s ok 1 /mappedfile/basic 3993s ok 2 /mappedfile/empty 3993s ok 3 /mappedfile/device 3993s ok 4 /mappedfile/nonexisting 3993s ok 5 /mappedfile/writable 3993s ok 6 /mappedfile/writable_fd 3993s ok 7 /mappedfile/gbytes 3993s # End of mappedfile tests 3993s ok - glib/mappedfile.test 3993s # Running test: glib/strfuncs.test 3993s TAP version 14 3993s # random seed: R02Sbf910bd13f031b0e78cec23da75c0b16 3993s 1..51 3993s # Start of strfuncs tests 3993s ok 1 /strfuncs/ascii-strcasecmp 3993s ok 2 /strfuncs/ascii_strdown 3993s ok 3 /strfuncs/ascii_strdup 3993s ok 4 /strfuncs/ascii_strtod 3993s ok 5 /strfuncs/bounds-check 3993s ok 6 /strfuncs/has-prefix 3993s ok 7 /strfuncs/has-prefix-macro 3993s ok 8 /strfuncs/has-suffix 3993s ok 9 /strfuncs/has-suffix-macro 3993s ok 10 /strfuncs/memdup 3993s ok 11 /strfuncs/memdup2 3993s ok 12 /strfuncs/set_str 3993s ok 13 /strfuncs/stpcpy 3993s ok 14 /strfuncs/str_match_string 3993s ok 15 /strfuncs/str_tokenize_and_fold 3993s ok 16 /strfuncs/strcanon 3993s ok 17 /strfuncs/strchomp 3993s ok 18 /strfuncs/strchug 3993s ok 19 /strfuncs/strcompress-strescape 3993s ok 20 /strfuncs/strconcat 3993s ok 21 /strfuncs/strdelimit 3993s ok 22 /strfuncs/strdup 3993s ok 23 /strfuncs/strdup-printf 3993s ok 24 /strfuncs/strdupv 3993s ok 25 /strfuncs/strerror 3993s ok 26 /strfuncs/strip-context 3993s ok 27 /strfuncs/strjoin 3993s ok 28 /strfuncs/strjoinv 3993s ok 29 /strfuncs/strlcat 3993s ok 30 /strfuncs/strlcpy 3993s ok 31 /strfuncs/strncasecmp 3993s ok 32 /strfuncs/strndup 3993s ok 33 /strfuncs/strnfill 3993s ok 34 /strfuncs/strreverse 3993s ok 35 /strfuncs/strsignal 3993s ok 36 /strfuncs/strsplit 3993s ok 37 /strfuncs/strsplit-set 3993s ok 38 /strfuncs/strstr 3993s ok 39 /strfuncs/strtod 3993s ok 40 /strfuncs/strtoull-strtoll 3993s ok 41 /strfuncs/strup 3993s ok 42 /strfuncs/strv-contains 3993s ok 43 /strfuncs/strv-equal 3993s ok 44 /strfuncs/strv-length 3993s ok 45 /strfuncs/test-is-to-digit 3993s ok 46 /strfuncs/transliteration 3993s # /strfuncs/str-equal summary: Test macro and function forms of g_str_equal() 3993s ok 47 /strfuncs/str-equal 3993s ok 48 /strfuncs/str-is-ascii 3993s # Start of ascii-string-to-num tests 3993s ok 49 /strfuncs/ascii-string-to-num/pathological 3993s ok 50 /strfuncs/ascii-string-to-num/usual 3993s # End of ascii-string-to-num tests 3993s # Start of strdup tests 3993s ok 51 /strfuncs/strdup/inline 3993s # End of strdup tests 3993s # End of strfuncs tests 3993s ok - glib/strfuncs.test 3993s # Running test: glib/hmac.test 3993s TAP version 14 3993s # random seed: R02S55f75662dbbf6cfb032222931712a6ff 3993s 1..37 3993s # Start of hmac tests 3993s ok 1 /hmac/sha1-1 3993s ok 2 /hmac/sha1-2 3993s ok 3 /hmac/sha1-3 3993s ok 4 /hmac/sha1-4 3993s ok 5 /hmac/sha1-5 3993s ok 6 /hmac/sha1-6 3993s ok 7 /hmac/sha1-7 3993s ok 8 /hmac/sha256-1 3993s ok 9 /hmac/sha256-2 3993s ok 10 /hmac/sha256-3 3993s ok 11 /hmac/sha256-4 3993s ok 12 /hmac/sha256-5 3993s ok 13 /hmac/sha256-6 3993s ok 14 /hmac/sha384-1 3993s ok 15 /hmac/sha384-2 3993s ok 16 /hmac/sha384-3 3993s ok 17 /hmac/sha384-4 3993s ok 18 /hmac/sha384-5 3993s ok 19 /hmac/sha384-6 3993s ok 20 /hmac/sha512-1 3993s ok 21 /hmac/sha512-2 3993s ok 22 /hmac/sha512-3 3993s ok 23 /hmac/sha512-4 3993s ok 24 /hmac/sha512-5 3993s ok 25 /hmac/sha512-6 3993s ok 26 /hmac/md5-1 3993s ok 27 /hmac/md5-2 3993s ok 28 /hmac/md5-3 3993s ok 29 /hmac/md5-4 3993s ok 30 /hmac/md5-5 3993s ok 31 /hmac/md5-6 3993s ok 32 /hmac/md5-7 3993s ok 33 /hmac/ref-unref 3993s ok 34 /hmac/copy 3993s ok 35 /hmac/for-data 3993s ok 36 /hmac/for-string 3993s ok 37 /hmac/for-bytes 3993s # End of hmac tests 3993s ok - glib/hmac.test 3993s # Running test: glib/cxx-03.test 3993s TAP version 14 3993s # random seed: R02Seac6e4581cb841117c9d868ebc7a17de 3993s 1..2 3993s # Start of gtask tests 3994s # 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. 3994s ok 1 /gtask/name 3994s # Start of name tests 3994s # 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. 3994s ok 2 /gtask/name/macro-wrapper 3994s # End of name tests 3994s # End of gtask tests 3994s ok - glib/cxx-03.test 3994s # Running test: glib/object-info.test 3994s TAP version 14 3994s # random seed: R02S9234a3aeb8cb20f1c3a97e52a084cacf 3994s 1..2 3994s # Start of object-info tests 3994s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_object-info_9K3452/object-info/find-method-using-interfaces/.dirs/home 3994s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_object-info_9K3452/object-info/find-method-using-interfaces/.dirs/cache 3994s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_object-info_9K3452/object-info/find-method-using-interfaces/.dirs/system-config1:/tmp/test_object-info_9K3452/object-info/find-method-using-interfaces/.dirs/system-config2 3994s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_object-info_9K3452/object-info/find-method-using-interfaces/.dirs/config 3994s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_object-info_9K3452/object-info/find-method-using-interfaces/.dirs/system-data1:/tmp/test_object-info_9K3452/object-info/find-method-using-interfaces/.dirs/system-data2 3994s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_object-info_9K3452/object-info/find-method-using-interfaces/.dirs/data 3994s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_object-info_9K3452/object-info/find-method-using-interfaces/.dirs/state 3994s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_object-info_9K3452/object-info/find-method-using-interfaces/.dirs/runtime 3994s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3994s ok 1 /object-info/find-method-using-interfaces 3994s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_object-info_9K3452/object-info/find-vfunc-using-interfaces/.dirs/home 3994s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_object-info_9K3452/object-info/find-vfunc-using-interfaces/.dirs/cache 3994s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_object-info_9K3452/object-info/find-vfunc-using-interfaces/.dirs/system-config1:/tmp/test_object-info_9K3452/object-info/find-vfunc-using-interfaces/.dirs/system-config2 3994s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_object-info_9K3452/object-info/find-vfunc-using-interfaces/.dirs/config 3994s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_object-info_9K3452/object-info/find-vfunc-using-interfaces/.dirs/system-data1:/tmp/test_object-info_9K3452/object-info/find-vfunc-using-interfaces/.dirs/system-data2 3994s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_object-info_9K3452/object-info/find-vfunc-using-interfaces/.dirs/data 3994s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_object-info_9K3452/object-info/find-vfunc-using-interfaces/.dirs/state 3994s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_object-info_9K3452/object-info/find-vfunc-using-interfaces/.dirs/runtime 3994s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 3994s ok 2 /object-info/find-vfunc-using-interfaces 3994s # End of object-info tests 3994s ok - glib/object-info.test 3994s # Running test: glib/spawn-path-search.test 3994s # Executing: glib/spawn-path-search.test 3994s TAP version 14 3994s # random seed: R02S4bbd8f3c2abd4c82255ae711d02e94fa 3994s 1..7 3994s # Start of spawn tests 3994s # /spawn/do-not-search summary: Without G_SPAWN_SEARCH_PATH, spawn-test-helper means ./spawn-test-helper. 3994s # 3994s # this is spawn-test-helper from glib/tests 3994s # 3994s ok 1 /spawn/do-not-search 3994s # /spawn/search-path summary: With G_SPAWN_SEARCH_PATH, spawn-test-helper means $PATH/spawn-test-helper. 3994s # 3994s # this is spawn-test-helper from path-test-subdir 3994s # 3994s ok 2 /spawn/search-path 3994s # /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. 3994s # 3994s # this is spawn-test-helper from path-test-subdir 3994s # 3994s ok 3 /spawn/search-path-from-envp 3994s # /spawn/search-path-ambiguous summary: With G_SPAWN_SEARCH_PATH and G_SPAWN_SEARCH_PATH_FROM_ENVP, the latter wins. 3994s # 3994s # this is spawn-test-helper from path-test-subdir 3994s # 3994s ok 4 /spawn/search-path-ambiguous 3994s # 3994s # this is spawn-test-helper from path-test-subdir 3994s # 3994s ok 5 /spawn/search-path-heap-allocation 3994s # /spawn/search-path-fallback-in-environ summary: With G_SPAWN_SEARCH_PATH but no PATH, a fallback is used. 3994s # 3994s # this is spawn-test-helper from glib/tests 3994s # 3994s ok 6 /spawn/search-path-fallback-in-environ 3994s # /spawn/search-path-fallback-in-envp summary: With G_SPAWN_SEARCH_PATH_FROM_ENVP but no PATH, a fallback is used. 3994s # 3994s # this is spawn-test-helper from glib/tests 3994s # 3994s ok 7 /spawn/search-path-fallback-in-envp 3994s # End of spawn tests 3994s ok - glib/spawn-path-search.test 3994s # Running test: glib/gdbus-exit-on-close.test 3994s TAP version 14 3994s # random seed: R02S839e6e5bb583267b6f828aa1a4e18af5 3994s 1..4 3994s # Start of gdbus tests 3994s # Start of exit-on-close tests 3994s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_XBGB62/gdbus/exit-on-close/default/.dirs/home 3994s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_XBGB62/gdbus/exit-on-close/default/.dirs/cache 3994s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_XBGB62/gdbus/exit-on-close/default/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_XBGB62/gdbus/exit-on-close/default/.dirs/system-config2 3994s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_XBGB62/gdbus/exit-on-close/default/.dirs/config 3994s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_XBGB62/gdbus/exit-on-close/default/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_XBGB62/gdbus/exit-on-close/default/.dirs/system-data2 3994s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_XBGB62/gdbus/exit-on-close/default/.dirs/data 3994s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_XBGB62/gdbus/exit-on-close/default/.dirs/state 3994s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_XBGB62/gdbus/exit-on-close/default/.dirs/runtime 3995s ok 1 /gdbus/exit-on-close/default 3995s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_XBGB62/gdbus/exit-on-close/true/.dirs/home 3995s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_XBGB62/gdbus/exit-on-close/true/.dirs/cache 3995s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_XBGB62/gdbus/exit-on-close/true/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_XBGB62/gdbus/exit-on-close/true/.dirs/system-config2 3995s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_XBGB62/gdbus/exit-on-close/true/.dirs/config 3995s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_XBGB62/gdbus/exit-on-close/true/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_XBGB62/gdbus/exit-on-close/true/.dirs/system-data2 3995s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_XBGB62/gdbus/exit-on-close/true/.dirs/data 3995s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_XBGB62/gdbus/exit-on-close/true/.dirs/state 3995s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_XBGB62/gdbus/exit-on-close/true/.dirs/runtime 3995s ok 2 /gdbus/exit-on-close/true 3995s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_XBGB62/gdbus/exit-on-close/false/.dirs/home 3995s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_XBGB62/gdbus/exit-on-close/false/.dirs/cache 3995s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_XBGB62/gdbus/exit-on-close/false/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_XBGB62/gdbus/exit-on-close/false/.dirs/system-config2 3995s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_XBGB62/gdbus/exit-on-close/false/.dirs/config 3995s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_XBGB62/gdbus/exit-on-close/false/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_XBGB62/gdbus/exit-on-close/false/.dirs/system-data2 3995s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_XBGB62/gdbus/exit-on-close/false/.dirs/data 3995s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_XBGB62/gdbus/exit-on-close/false/.dirs/state 3995s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_XBGB62/gdbus/exit-on-close/false/.dirs/runtime 3996s ok 3 /gdbus/exit-on-close/false 3996s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_XBGB62/gdbus/exit-on-close/we-close/.dirs/home 3996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_XBGB62/gdbus/exit-on-close/we-close/.dirs/cache 3996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_XBGB62/gdbus/exit-on-close/we-close/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_XBGB62/gdbus/exit-on-close/we-close/.dirs/system-config2 3996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_XBGB62/gdbus/exit-on-close/we-close/.dirs/config 3996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_XBGB62/gdbus/exit-on-close/we-close/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_XBGB62/gdbus/exit-on-close/we-close/.dirs/system-data2 3996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_XBGB62/gdbus/exit-on-close/we-close/.dirs/data 3996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_XBGB62/gdbus/exit-on-close/we-close/.dirs/state 3996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_XBGB62/gdbus/exit-on-close/we-close/.dirs/runtime 3996s ok 4 /gdbus/exit-on-close/we-close 3996s # Start of default tests 3996s ok - glib/gdbus-exit-on-close.test 3996s # End of default tests 3996s # Start of true tests 3996s # End of true tests 3996s # Start of false tests 3996s # End of false tests 3996s # Start of we-close tests 3996s # End of we-close tests 3996s # End of exit-on-close tests 3996s # End of gdbus tests 3996s # Running test: glib/gdbus-connection.test 3996s TAP version 14 3996s # random seed: R02Sedd59364b95a5a619daad376eea14db9 3996s 1..9 3996s # Start of gdbus tests 3996s # Start of connection tests 3996s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/bus-failure/.dirs/home 3996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/bus-failure/.dirs/cache 3996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/bus-failure/.dirs/system-config1:/tmp/test_gdbus-connection_XG5T52/gdbus/connection/bus-failure/.dirs/system-config2 3996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/bus-failure/.dirs/config 3996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/bus-failure/.dirs/system-data1:/tmp/test_gdbus-connection_XG5T52/gdbus/connection/bus-failure/.dirs/system-data2 3996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/bus-failure/.dirs/data 3996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/bus-failure/.dirs/state 3996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/bus-failure/.dirs/runtime 3996s ok 1 /gdbus/connection/bus-failure 3996s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/basic/.dirs/home 3996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/basic/.dirs/cache 3996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/basic/.dirs/system-config1:/tmp/test_gdbus-connection_XG5T52/gdbus/connection/basic/.dirs/system-config2 3996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/basic/.dirs/config 3996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/basic/.dirs/system-data1:/tmp/test_gdbus-connection_XG5T52/gdbus/connection/basic/.dirs/system-data2 3996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/basic/.dirs/data 3996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/basic/.dirs/state 3996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/basic/.dirs/runtime 3996s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3996s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3996s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3996s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3996s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3996s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3996s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3996s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3996s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3996s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3996s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3996s ok 2 /gdbus/connection/basic 3996s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/life-cycle/.dirs/home 3996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/life-cycle/.dirs/cache 3996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/life-cycle/.dirs/system-config1:/tmp/test_gdbus-connection_XG5T52/gdbus/connection/life-cycle/.dirs/system-config2 3996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/life-cycle/.dirs/config 3996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/life-cycle/.dirs/system-data1:/tmp/test_gdbus-connection_XG5T52/gdbus/connection/life-cycle/.dirs/system-data2 3996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/life-cycle/.dirs/data 3996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/life-cycle/.dirs/state 3996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/life-cycle/.dirs/runtime 3996s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3996s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3996s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3996s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3996s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3996s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3997s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3997s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3997s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3997s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3997s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3997s ok 3 /gdbus/connection/life-cycle 3997s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/send/.dirs/home 3997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/send/.dirs/cache 3997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/send/.dirs/system-config1:/tmp/test_gdbus-connection_XG5T52/gdbus/connection/send/.dirs/system-config2 3997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/send/.dirs/config 3997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/send/.dirs/system-data1:/tmp/test_gdbus-connection_XG5T52/gdbus/connection/send/.dirs/system-data2 3997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/send/.dirs/data 3997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/send/.dirs/state 3997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/send/.dirs/runtime 3997s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3997s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3997s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3997s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3997s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3997s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3997s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3997s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3997s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3997s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3997s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3997s ok 4 /gdbus/connection/send 3997s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/signals/.dirs/home 3997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/signals/.dirs/cache 3997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/signals/.dirs/system-config1:/tmp/test_gdbus-connection_XG5T52/gdbus/connection/signals/.dirs/system-config2 3997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/signals/.dirs/config 3997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/signals/.dirs/system-data1:/tmp/test_gdbus-connection_XG5T52/gdbus/connection/signals/.dirs/system-data2 3997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/signals/.dirs/data 3997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/signals/.dirs/state 3997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/signals/.dirs/runtime 3997s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3997s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3997s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3997s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3997s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3997s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3997s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3997s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3997s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3997s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3997s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3997s ok 5 /gdbus/connection/signals 3997s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/signal-match-rules/.dirs/home 3997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/signal-match-rules/.dirs/cache 3997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/signal-match-rules/.dirs/system-config1:/tmp/test_gdbus-connection_XG5T52/gdbus/connection/signal-match-rules/.dirs/system-config2 3997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/signal-match-rules/.dirs/config 3997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/signal-match-rules/.dirs/system-data1:/tmp/test_gdbus-connection_XG5T52/gdbus/connection/signal-match-rules/.dirs/system-data2 3997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/signal-match-rules/.dirs/data 3997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/signal-match-rules/.dirs/state 3997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/signal-match-rules/.dirs/runtime 3997s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3997s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3997s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3997s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3997s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3997s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3997s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3997s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3997s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3997s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3997s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3997s ok 6 /gdbus/connection/signal-match-rules 3997s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/filter/.dirs/home 3997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/filter/.dirs/cache 3997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/filter/.dirs/system-config1:/tmp/test_gdbus-connection_XG5T52/gdbus/connection/filter/.dirs/system-config2 3997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/filter/.dirs/config 3997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/filter/.dirs/system-data1:/tmp/test_gdbus-connection_XG5T52/gdbus/connection/filter/.dirs/system-data2 3997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/filter/.dirs/data 3997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/filter/.dirs/state 3997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/filter/.dirs/runtime 3997s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3997s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3997s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3997s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3997s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3997s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3998s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3998s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3998s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3998s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3998s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3998s ok 7 /gdbus/connection/filter 3998s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/serials/.dirs/home 3998s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/serials/.dirs/cache 3998s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/serials/.dirs/system-config1:/tmp/test_gdbus-connection_XG5T52/gdbus/connection/serials/.dirs/system-config2 3998s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/serials/.dirs/config 3998s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/serials/.dirs/system-data1:/tmp/test_gdbus-connection_XG5T52/gdbus/connection/serials/.dirs/system-data2 3998s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/serials/.dirs/data 3998s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/serials/.dirs/state 3998s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/serials/.dirs/runtime 3998s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3998s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3998s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3998s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3998s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3998s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3998s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3998s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3998s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3998s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3998s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3998s ok 8 /gdbus/connection/serials 3998s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/cancel/.dirs/home 3998s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/cancel/.dirs/cache 3998s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/cancel/.dirs/system-config1:/tmp/test_gdbus-connection_XG5T52/gdbus/connection/cancel/.dirs/system-config2 3998s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/cancel/.dirs/config 3998s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/cancel/.dirs/system-data1:/tmp/test_gdbus-connection_XG5T52/gdbus/connection/cancel/.dirs/system-data2 3998s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/cancel/.dirs/data 3998s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/cancel/.dirs/state 3998s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_XG5T52/gdbus/connection/cancel/.dirs/runtime 3998s # /gdbus/connection/cancel summary: Test that cancelling one of two racing g_bus_get() calls does not cancel the other one 3998s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3998s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3998s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3998s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3998s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3998s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 3998s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3998s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3998s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3998s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3998s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 3998s ok 9 /gdbus/connection/cancel 3998s # End of connection tests 3998s # End of gdbus tests 3998s ok - glib/gdbus-connection.test 3998s # Running test: glib/slist.test 3998s TAP version 14 3998s # random seed: R02Sdd53025b48368799aafcb87f236793e7 3998s 1..14 3998s # Start of slist tests 3998s ok 1 /slist/sort 3998s ok 2 /slist/sort-with-data 3998s ok 3 /slist/insert-sorted 3998s ok 4 /slist/insert-sorted-with-data 3998s ok 5 /slist/reverse 3998s ok 6 /slist/nth 3998s ok 7 /slist/remove 3998s ok 8 /slist/remove-all 3998s ok 9 /slist/insert 3998s ok 10 /slist/position 3998s ok 11 /slist/concat 3998s ok 12 /slist/copy 3998s # Start of sort tests 3998s ok 13 /slist/sort/stable 3998s # End of sort tests 3998s # Start of copy tests 3998s ok 14 /slist/copy/deep 3998s # End of copy tests 3998s # End of slist tests 3998s ok - glib/slist.test 3998s # Running test: glib/unicode-encoding.test 3998s TAP version 14 3998s # random seed: R02S51ae5e86d7b0073f4150efad7879cbd9 3998s 1..1 3998s # Start of unicode tests 3998s ok 1 /unicode/encoding 3998s # End of unicode tests 3998s ok - glib/unicode-encoding.test 3998s # Running test: glib/vfs.test 3998s TAP version 14 3998s # random seed: R02S128d92f53ece45e58c1325a7fc1cf02c 3999s 1..3 3999s # Start of gvfs tests 3999s ok 1 /gvfs/local 3999s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 3999s ok 2 /gvfs/register-scheme 3999s # Start of resource tests 3999s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3090 3999s # /gvfs/resource/malformed-escaping summary: Test that g_vfs_get_file_for_uri() returns an invalid file for an invalid URI 3999s ok 3 /gvfs/resource/malformed-escaping 3999s # End of resource tests 3999s # End of gvfs tests 3999s ok - glib/vfs.test 3999s # Running test: glib/atomic-c-89.test 3999s TAP version 14 3999s # random seed: R02Sb8f79e81ff3f04be592658faea0e777c 3999s 1..2 3999s # Start of atomic tests 3999s ok 1 /atomic/types 3999s # Executing: glib/atomic-c-89.test 3999s ok 2 /atomic/threaded 3999s # End of atomic tests 3999s ok - glib/atomic-c-89.test 3999s # Running test: glib/list.test 3999s TAP version 14 3999s # random seed: R02S833bc5431aba0a62eb6146c94ce07579 3999s 1..20 3999s # Start of list tests 3999s ok 1 /list/sort 3999s ok 2 /list/sort-with-data 3999s ok 3 /list/insert-before-link 3999s ok 4 /list/insert-sorted 3999s ok 5 /list/insert-sorted-with-data 3999s ok 6 /list/reverse 3999s ok 7 /list/nth 3999s ok 8 /list/concat 3999s ok 9 /list/remove 3999s ok 10 /list/remove-all 3999s ok 11 /list/first-last 3999s ok 12 /list/insert 3999s ok 13 /list/free-full 3999s ok 14 /list/copy 3999s ok 15 /list/copy-deep 3999s ok 16 /list/delete-link 3999s ok 17 /list/prepend 3999s ok 18 /list/position 3999s ok 19 /list/double-free 3999s # Start of sort tests 3999s ok 20 /list/sort/stable 3999s # End of sort tests 3999s # End of list tests 3999s ok - glib/list.test 3999s # Running test: glib/binding.test 3999s TAP version 14 3999s # random seed: R02S0eeef2238382401a2f3a4c916ffdfd8b 3999s 1..19 3999s # Start of binding tests 3999s ok 1 /binding/default 3999s # /binding/canonicalisation summary: Test that bindings set up with non-canonical property names work 3999s ok 2 /binding/canonicalisation 3999s ok 3 /binding/bidirectional 3999s ok 4 /binding/transform 3999s ok 5 /binding/transform-default 3999s ok 6 /binding/transform-closure 3999s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=621782 3999s ok 7 /binding/chain 3999s ok 8 /binding/sync-create 3999s ok 9 /binding/invert-boolean 3999s ok 10 /binding/same-object 3999s ok 11 /binding/unbind 3999s ok 12 /binding/unbind-weak 3999s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1373 3999s ok 13 /binding/unbind-multiple 3999s ok 14 /binding/fail 3999s ok 15 /binding/interface 3999s # /binding/concurrent-unbind summary: Test that unbinding from multiple threads concurrently works correctly 4000s ok 16 /binding/concurrent-unbind 4000s # /binding/concurrent-finalizing summary: Test that finalizing source/target from multiple threads concurrently works correctly 4000s ok - glib/binding.test 4000s ok 17 /binding/concurrent-finalizing 4000s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2676 4000s ok 18 /binding/dispose-source 4000s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2676 4000s ok 19 /binding/dispose-target 4000s # End of binding tests 4000s # Running test: glib/portal-support-flatpak-gsettings-only.test 4000s TAP version 14 4000s # random seed: R02S63fd81b5646dccfb74c124566694862e 4000s 1..1 4000s # Start of portal-support tests 4000s # Start of flatpak tests 4000s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-gsettings-only_QMBZ52/portal-support/flatpak/gsettings/.dirs/home 4000s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-gsettings-only_QMBZ52/portal-support/flatpak/gsettings/.dirs/cache 4000s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-gsettings-only_QMBZ52/portal-support/flatpak/gsettings/.dirs/system-config1:/tmp/test_portal-support-flatpak-gsettings-only_QMBZ52/portal-support/flatpak/gsettings/.dirs/system-config2 4000s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-gsettings-only_QMBZ52/portal-support/flatpak/gsettings/.dirs/config 4000s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-gsettings-only_QMBZ52/portal-support/flatpak/gsettings/.dirs/system-data1:/tmp/test_portal-support-flatpak-gsettings-only_QMBZ52/portal-support/flatpak/gsettings/.dirs/system-data2 4000s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-gsettings-only_QMBZ52/portal-support/flatpak/gsettings/.dirs/data 4000s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-gsettings-only_QMBZ52/portal-support/flatpak/gsettings/.dirs/state 4000s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-gsettings-only_QMBZ52/portal-support/flatpak/gsettings/.dirs/runtime 4000s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-gsettings-only_QMBZ52/portal-support/flatpak/gsettings/.dirs/runtime/.flatpak-info 4000s ok 1 /portal-support/flatpak/gsettings 4000s # End of flatpak tests 4000s # End of portal-support tests 4000s ok - glib/portal-support-flatpak-gsettings-only.test 4000s # Running test: glib/srvtarget.test 4000s TAP version 14 4000s # random seed: R02S8b8a3f10860631f36ad4cfeb4541f8b7 4000s 1..1 4000s # Start of srvtarget tests 4002s ok 1 /srvtarget/srv-target-ordering 4002s # slow test /srvtarget/srv-target-ordering executed in 2.46 secs 4002s # End of srvtarget tests 4002s ok - glib/srvtarget.test 4003s # Running test: glib/flags.test 4003s TAP version 14 4003s # random seed: R02S5937cb889d892771b6e6ebdce22de219 4003s 1..1 4003s # Start of gobject tests 4003s # Start of flags tests 4003s ok 1 /gobject/flags/validate 4003s # End of flags tests 4003s # End of gobject tests 4003s ok - glib/flags.test 4003s # Running test: glib/repository-search-paths.test 4003s TAP version 14 4003s # random seed: R02Sc7473600ea2c34985e24431e959952a9 4003s 1..4 4003s # Start of repository tests 4003s # Start of search-paths tests 4003s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_2GNQ52/repository/search-paths/default/.dirs/home 4003s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_2GNQ52/repository/search-paths/default/.dirs/cache 4003s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_2GNQ52/repository/search-paths/default/.dirs/system-config1:/tmp/test_repository-search-paths_2GNQ52/repository/search-paths/default/.dirs/system-config2 4003s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_2GNQ52/repository/search-paths/default/.dirs/config 4003s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_2GNQ52/repository/search-paths/default/.dirs/system-data1:/tmp/test_repository-search-paths_2GNQ52/repository/search-paths/default/.dirs/system-data2 4003s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_2GNQ52/repository/search-paths/default/.dirs/data 4003s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_2GNQ52/repository/search-paths/default/.dirs/state 4003s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_2GNQ52/repository/search-paths/default/.dirs/runtime 4003s ok 1 /repository/search-paths/default 4003s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_2GNQ52/repository/search-paths/prepend/.dirs/home 4003s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_2GNQ52/repository/search-paths/prepend/.dirs/cache 4003s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_2GNQ52/repository/search-paths/prepend/.dirs/system-config1:/tmp/test_repository-search-paths_2GNQ52/repository/search-paths/prepend/.dirs/system-config2 4003s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_2GNQ52/repository/search-paths/prepend/.dirs/config 4003s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_2GNQ52/repository/search-paths/prepend/.dirs/system-data1:/tmp/test_repository-search-paths_2GNQ52/repository/search-paths/prepend/.dirs/system-data2 4003s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_2GNQ52/repository/search-paths/prepend/.dirs/data 4003s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_2GNQ52/repository/search-paths/prepend/.dirs/state 4003s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_2GNQ52/repository/search-paths/prepend/.dirs/runtime 4003s ok 2 /repository/search-paths/prepend 4003s # End of search-paths tests 4003s # Start of library-paths tests 4003s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_2GNQ52/repository/library-paths/default/.dirs/home 4003s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_2GNQ52/repository/library-paths/default/.dirs/cache 4003s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_2GNQ52/repository/library-paths/default/.dirs/system-config1:/tmp/test_repository-search-paths_2GNQ52/repository/library-paths/default/.dirs/system-config2 4003s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_2GNQ52/repository/library-paths/default/.dirs/config 4003s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_2GNQ52/repository/library-paths/default/.dirs/system-data1:/tmp/test_repository-search-paths_2GNQ52/repository/library-paths/default/.dirs/system-data2 4003s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_2GNQ52/repository/library-paths/default/.dirs/data 4003s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_2GNQ52/repository/library-paths/default/.dirs/state 4003s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_2GNQ52/repository/library-paths/default/.dirs/runtime 4003s ok 3 /repository/library-paths/default 4003s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_2GNQ52/repository/library-paths/prepend/.dirs/home 4003s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_2GNQ52/repository/library-paths/prepend/.dirs/cache 4003s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_2GNQ52/repository/library-paths/prepend/.dirs/system-config1:/tmp/test_repository-search-paths_2GNQ52/repository/library-paths/prepend/.dirs/system-config2 4003s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_2GNQ52/repository/library-paths/prepend/.dirs/config 4003s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_2GNQ52/repository/library-paths/prepend/.dirs/system-data1:/tmp/test_repository-search-paths_2GNQ52/repository/library-paths/prepend/.dirs/system-data2 4003s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_2GNQ52/repository/library-paths/prepend/.dirs/data 4003s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_2GNQ52/repository/library-paths/prepend/.dirs/state 4003s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_2GNQ52/repository/library-paths/prepend/.dirs/runtime 4003s ok 4 /repository/library-paths/prepend 4003s # End of library-paths tests 4003s # End of repository tests 4003s ok - glib/repository-search-paths.test 4003s # SUMMARY: total=323; passed=322; skipped=1; failed=0; user=698.8s; system=455.2s; maxrss=146772 4004s autopkgtest [14:02:48]: test installed-tests: -----------------------] 4008s installed-tests PASS 4008s autopkgtest [14:02:52]: test installed-tests: - - - - - - - - - - results - - - - - - - - - - 4010s autopkgtest [14:02:54]: test closure-refcount: preparing testbed 4013s Reading package lists... 4015s Building dependency tree... 4015s Reading state information... 4016s Starting pkgProblemResolver with broken count: 0 4016s Starting 2 pkgProblemResolver with broken count: 0 4016s Done 4018s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 4022s autopkgtest [14:03:06]: test closure-refcount: [----------------------- 4024s Running test: glib/closure-refcount.test 4024s TAP version 14 4024s # random seed: R02S303af7d6aa10cfc1ae5ff20406c6fd45 4024s 1..1 4024s # Start of closure tests 4024s # Init 0x555761506d10 4024s # Yielding from main thread 4024s # Yielding from main thread 4024s # Yielding from thread2 4024s # Yielding from main thread 4024s # Yielding from thread1 4024s # Yielding from main thread 4024s # Yielding from thread2 4024s # Yielding from main thread 4024s # Yielding from main thread 4024s # Yielding from thread1 4025s # Yielding from main thread 4025s # Yielding from thread2 4025s # Yielding from main thread 4025s # Yielding from thread1 4025s # Yielding from main thread 4025s # Yielding from main thread 4025s # Yielding from thread1 4025s # Yielding from main thread 4025s # Yielding from thread2 4025s # Yielding from main thread 4025s # Yielding from thread1 4025s # Yielding from main thread 4025s # Yielding from thread2 4026s # Yielding from main thread 4026s # Yielding from main thread 4026s # Yielding from thread2 4026s # Yielding from main thread 4026s # Yielding from thread1 4026s # Yielding from main thread 4026s # Yielding from main thread 4026s # Yielding from thread1 4026s # Yielding from thread2 4026s # Yielding from main thread 4026s # Yielding from main thread 4026s # Yielding from main thread 4026s # Yielding from thread1 4026s # Yielding from thread2 4027s # Yielding from main thread 4027s # Yielding from main thread 4027s # Yielding from thread2 4027s # Yielding from thread1 4027s # Yielding from main thread 4027s # Yielding from main thread 4027s # Yielding from main thread 4027s # Yielding from thread2 4027s # Yielding from thread1 4027s # Yielding from main thread 4027s # Yielding from main thread 4028s # Yielding from thread2 4028s # Yielding from thread1 4028s # Yielding from main thread 4028s # Yielding from main thread 4028s # Yielding from thread2 4028s # Yielding from main thread 4028s # Yielding from thread1 4028s # Yielding from main thread 4028s # Yielding from main thread 4028s # Yielding from thread2 4028s # Yielding from thread1 4028s # Yielding from main thread 4028s # Yielding from main thread 4029s # Yielding from main thread 4029s # Yielding from thread2 4029s # Yielding from thread1 4029s # Yielding from main thread 4029s # Yielding from main thread 4029s # Yielding from thread2 4029s # Yielding from main thread 4029s # Yielding from thread1 4029s # Yielding from main thread 4029s # Yielding from main thread 4029s Executing: glib/closure-refcount.test 4029s # Yielding from thread2 4029s # Yielding from main thread 4029s # Yielding from thread1 4029s # Yielding from main thread 4030s # Yielding from thread2 4030s # Yielding from main thread 4030s # Yielding from main thread 4030s # Yielding from thread2 4030s # Yielding from thread1 4030s # Yielding from main thread 4030s # Yielding from main thread 4030s # Yielding from main thread 4030s # Yielding from thread1 4030s # Yielding from thread2 4030s # Yielding from main thread 4030s # Yielding from main thread 4030s # Yielding from thread1 4030s # Yielding from main thread 4031s # Yielding from thread2 4031s # Yielding from main thread 4031s # Yielding from main thread 4031s # Yielding from main thread 4031s # Yielding from thread2 4031s # Yielding from thread1 4031s # Yielding from main thread 4031s # Yielding from main thread 4031s # Yielding from thread2 4031s # Yielding from main thread 4031s # Yielding from thread1 4031s # Yielding from main thread 4031s # Yielding from thread2 4031s # Yielding from main thread 4032s # Yielding from thread1 4032s # Yielding from main thread 4032s # Yielding from thread2 4032s # Yielding from main thread 4032s # Yielding from main thread 4032s # Yielding from thread1 4032s # Yielding from main thread 4032s # Yielding from thread2 4032s # Yielding from main thread 4032s # Yielding from thread1 4032s # Yielding from main thread 4033s # Yielding from thread2 4033s # Yielding from main thread 4033s # Yielding from thread1 4033s # Yielding from main thread 4033s # Yielding from main thread 4033s # Yielding from thread2 4033s # Yielding from main thread 4033s # Yielding from thread1 4033s # Yielding from main thread 4033s # Yielding from main thread 4033s # Yielding from thread2 4033s # Yielding from main thread 4033s # Yielding from thread1 4034s # Yielding from main thread 4034s # Yielding from thread2 4034s # Yielding from thread1 4034s # Yielding from main thread 4034s # Yielding from main thread 4034s # Yielding from thread1 4034s # Yielding from main thread 4034s # Yielding from thread2 4034s # Yielding from main thread 4034s Executing: glib/closure-refcount.test 4034s # Yielding from main thread 4034s # Yielding from thread1 4034s # Yielding from thread2 4034s # Yielding from main thread 4035s # Yielding from main thread 4035s # Yielding from thread1 4035s # Yielding from main thread 4035s # Yielding from thread2 4035s # Yielding from main thread 4035s # Yielding from main thread 4035s # Yielding from thread2 4035s # Yielding from thread1 4035s # Yielding from main thread 4035s # Yielding from main thread 4035s # Yielding from main thread 4035s # Yielding from thread2 4035s # Yielding from thread1 4036s # Yielding from main thread 4036s # Yielding from main thread 4036s # Yielding from main thread 4036s # Yielding from thread2 4036s # Yielding from thread1 4036s # Yielding from main thread 4036s # Yielding from main thread 4036s # Yielding from thread2 4036s # Yielding from main thread 4036s # Yielding from thread1 4036s # Yielding from main thread 4036s # Yielding from main thread 4036s # Yielding from thread2 4036s # Yielding from thread1 4037s # Yielding from main thread 4037s # Yielding from main thread 4037s # Yielding from thread2 4037s # Yielding from main thread 4037s # Yielding from main thread 4037s # Yielding from thread1 4037s # Yielding from main thread 4037s # Yielding from thread2 4037s # Yielding from thread1 4037s # Stopping 4037s # Stopped 4037s ok 1 /closure/refcount 4037s # slow test /closure/refcount executed in 13.55 secs 4037s # End of closure tests 4037s PASS: glib/closure-refcount.test 4037s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=26.7s; system=0.1s; maxrss=2792 4038s autopkgtest [14:03:22]: test closure-refcount: -----------------------] 4040s closure-refcount PASS 4040s autopkgtest [14:03:24]: test closure-refcount: - - - - - - - - - - results - - - - - - - - - - 4042s autopkgtest [14:03:26]: test debugcontroller: preparing testbed 4046s Reading package lists... 4048s Building dependency tree... 4048s Reading state information... 4050s Starting pkgProblemResolver with broken count: 0 4050s Starting 2 pkgProblemResolver with broken count: 0 4050s Done 4052s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 4056s autopkgtest [14:03:40]: test debugcontroller: [----------------------- 4058s Running test: glib/debugcontroller.test 4058s TAP version 14 4058s # random seed: R02S50e63858ce84184f8643542440743889 4058s 1..3 4058s # Start of debug-controller tests 4058s # Start of dbus tests 4058s # /debug-controller/dbus/basic summary: Smoketest for construction and setting of a #GDebugControllerDBus. 4058s # GLib-GIO-DEBUG: Debug output enabled 4058s # GLib-GIO-DEBUG: Debug output disabled 4058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4058s ok 1 /debug-controller/dbus/basic 4058s # /debug-controller/dbus/duplicate summary: Test that creating a second #GDebugControllerDBus on the same D-Bus connection fails. 4058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4058s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4058s ok 2 /debug-controller/dbus/duplicate 4058s # /debug-controller/dbus/properties summary: Test getting and setting properties on a #GDebugControllerDBus. 4058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4058s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4058s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4059s # GLib-GIO-DEBUG: Debug output enabled 4059s # GLib-GIO-DEBUG: Debug output disabled 4059s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4059s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4059s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4059s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4059s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4059s ok 3 /debug-controller/dbus/properties 4059s # End of dbus tests 4059s # End of debug-controller tests 4059s PASS: glib/debugcontroller.test 4059s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.3s; system=0.1s; maxrss=5056 4060s autopkgtest [14:03:44]: test debugcontroller: -----------------------] 4061s autopkgtest [14:03:45]: test debugcontroller: - - - - - - - - - - results - - - - - - - - - - 4061s debugcontroller PASS 4063s autopkgtest [14:03:47]: test gdbus-server-auth: preparing testbed 4066s Reading package lists... 4068s Building dependency tree... 4068s Reading state information... 4069s Starting pkgProblemResolver with broken count: 0 4069s Starting 2 pkgProblemResolver with broken count: 0 4069s Done 4071s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 4075s autopkgtest [14:03:59]: test gdbus-server-auth: [----------------------- 4077s Running test: glib/gdbus-server-auth.test 4077s TAP version 14 4077s # random seed: R02Sae8346ac61dc9a2ce800fe1921673751 4077s 1..9 4077s # Start of gdbus tests 4077s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/.dirs/home 4077s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/.dirs/cache 4077s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/.dirs/system-config1:/tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/.dirs/system-config2 4077s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/.dirs/config 4077s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/.dirs/system-data1:/tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/.dirs/system-data2 4077s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/.dirs/data 4077s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/.dirs/state 4077s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/.dirs/runtime 4077s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_7YO052/gdbus-server-auth-PDSR52 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:false 4077s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_7YO052/gdbus-server-auth-PDSR52/dbus-oQjG3VtX 4077s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4077s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4077s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4077s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 16534 4077s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4077s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4077s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4077s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4077s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 16534 4077s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4077s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4077s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4077s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4077s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 16534 4077s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4077s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4077s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4077s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4077s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 16534 4077s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4077s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4077s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4077s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4077s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 16534 4077s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4077s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4077s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4077s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4077s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 16534 4077s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4077s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4077s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4077s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4077s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 16534 4077s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4077s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4077s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4077s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4077s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 16534 4077s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4077s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4077s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4077s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4077s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 16534 4077s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4077s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4077s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4077s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4077s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 16534 4077s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4077s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4077s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4077s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4077s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 16534 4077s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4077s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4077s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4077s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4077s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 16534 4077s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4077s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4077s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4077s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4077s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 16534 4077s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4077s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4077s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4077s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4077s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 16534 4077s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4077s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4077s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4077s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4077s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 16534 4077s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4077s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4077s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4077s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4077s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 16534 4077s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4077s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4077s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4077s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4077s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 16534 4077s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4077s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4077s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4077s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4077s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 16534 4077s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4077s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4077s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4077s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4077s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 16534 4077s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4077s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4077s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4077s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4077s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 16534 4077s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4077s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4077s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4077s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4077s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 16534 4077s ok 1 /gdbus/server-auth 4077s # Start of server-auth tests 4077s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/abstract/.dirs/home 4077s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/abstract/.dirs/cache 4077s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/abstract/.dirs/system-config1:/tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/abstract/.dirs/system-config2 4077s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/abstract/.dirs/config 4077s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/abstract/.dirs/system-data1:/tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/abstract/.dirs/system-data2 4077s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/abstract/.dirs/data 4077s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/abstract/.dirs/state 4077s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/abstract/.dirs/runtime 4077s # Testing GDBus server at unix:tmpdir=/tmp/test_gdbus-server-auth_7YO052/gdbus-server-auth-PRSA62 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:true tcp:false 4077s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_7YO052/gdbus-server-auth-PRSA62/dbus-LHofPfl3 4077s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4077s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4077s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4077s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 16534 4077s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4077s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4077s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4077s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4077s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 16534 4077s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4077s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4077s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4077s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4077s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 16534 4077s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4077s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4077s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4077s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4077s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 16534 4077s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4077s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4077s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4077s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4077s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 16534 4077s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4077s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4077s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4077s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4077s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 16534 4077s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4077s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4077s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4077s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4077s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 16534 4077s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4077s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4077s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4077s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4077s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 16534 4077s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4077s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4077s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4077s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4077s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 16534 4077s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4077s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4077s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4077s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4077s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 16534 4077s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4077s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4077s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4077s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4077s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 16534 4077s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4077s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4077s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4077s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4077s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 16534 4077s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4077s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4077s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4077s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4077s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 16534 4077s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4077s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4077s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4077s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4077s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4077s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 16534 4077s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4078s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4078s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4078s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4078s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4078s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4078s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 16534 4078s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4078s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4078s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4078s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4078s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4078s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4078s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 16534 4078s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4078s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4078s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4078s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4078s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4078s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4078s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 16534 4078s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4078s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4078s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4078s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4078s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4078s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4078s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 16534 4078s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4078s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4078s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4078s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4078s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4078s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4078s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 16534 4078s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4078s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4078s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4078s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4078s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4078s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4078s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 16534 4078s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4078s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4078s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4078s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4078s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4078s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4078s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 16534 4078s ok 2 /gdbus/server-auth/abstract 4078s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/tcp/.dirs/home 4078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/tcp/.dirs/cache 4078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/tcp/.dirs/system-config2 4078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/tcp/.dirs/config 4078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/tcp/.dirs/system-data2 4078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/tcp/.dirs/data 4078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/tcp/.dirs/state 4078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/tcp/.dirs/runtime 4078s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:true 4078s # Connectable address: tcp:host=127.0.0.1,port=42959 4078s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4078s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4078s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4078s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4078s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4078s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 4078s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4078s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4078s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4078s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4078s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4078s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4078s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 4078s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4078s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4078s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4078s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4078s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4078s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4078s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 4078s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4078s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4078s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4078s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4078s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4078s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4078s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 4078s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4078s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4078s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4078s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4078s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4078s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4078s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 4078s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4078s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4078s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4078s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4078s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4078s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4078s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 4078s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4078s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4078s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4078s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4078s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4078s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4078s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 4078s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4078s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4078s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4078s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4078s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4078s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4078s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 4078s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4078s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4078s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4078s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4078s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4078s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4078s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 4078s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4078s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4078s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4078s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4078s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4078s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4078s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 4078s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4078s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4078s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4078s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4078s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4078s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4078s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 4078s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4078s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4078s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4078s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4078s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4078s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4078s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 4078s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4078s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4078s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4078s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4078s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4078s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4078s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 4078s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4078s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4078s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4078s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4078s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4078s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4078s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 4078s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4078s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4078s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4078s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4078s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4078s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4078s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 4078s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4078s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4078s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4078s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4078s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4078s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4079s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4079s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4079s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4079s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4079s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4079s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4079s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4079s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4079s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4079s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4079s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4079s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4079s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4079s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4079s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4079s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 4079s ok 3 /gdbus/server-auth/tcp 4079s # slow test /gdbus/server-auth/tcp executed in 1.18 secs 4079s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/anonymous/.dirs/home 4079s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/anonymous/.dirs/cache 4079s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/anonymous/.dirs/system-config1:/tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/anonymous/.dirs/system-config2 4079s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/anonymous/.dirs/config 4079s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/anonymous/.dirs/system-data1:/tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/anonymous/.dirs/system-data2 4079s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/anonymous/.dirs/data 4079s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/anonymous/.dirs/state 4079s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/anonymous/.dirs/runtime 4079s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_7YO052/gdbus-server-auth-CQAY52 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:false 4079s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_7YO052/gdbus-server-auth-CQAY52/dbus-WvCg7km9 4079s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 16534 4079s ok 4 /gdbus/server-auth/anonymous 4079s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/external/.dirs/home 4079s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/external/.dirs/cache 4079s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/external/.dirs/system-config1:/tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/external/.dirs/system-config2 4079s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/external/.dirs/config 4079s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/external/.dirs/system-data1:/tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/external/.dirs/system-data2 4079s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/external/.dirs/data 4079s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/external/.dirs/state 4079s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/external/.dirs/runtime 4079s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_7YO052/gdbus-server-auth-WUO052 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 4079s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_7YO052/gdbus-server-auth-WUO052/dbus-ckJfq4xl 4079s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4079s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4079s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4079s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4079s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4079s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4079s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4079s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4079s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4079s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4079s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4079s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4079s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4079s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4079s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4079s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4079s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4079s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4079s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4079s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4079s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4079s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 16534 4079s ok 5 /gdbus/server-auth/external 4079s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/sha1/.dirs/home 4079s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/sha1/.dirs/cache 4079s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/sha1/.dirs/system-config1:/tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/sha1/.dirs/system-config2 4079s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/sha1/.dirs/config 4079s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/sha1/.dirs/system-data1:/tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/sha1/.dirs/system-data2 4079s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/sha1/.dirs/data 4079s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/sha1/.dirs/state 4079s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/sha1/.dirs/runtime 4079s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_7YO052/gdbus-server-auth-V7MU52 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:false 4079s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_7YO052/gdbus-server-auth-V7MU52/dbus-TQnlgVLw 4079s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4079s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4079s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4079s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4079s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4079s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4079s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4079s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4079s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4079s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4079s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4079s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4079s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4079s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4079s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4079s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4079s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4079s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4079s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4079s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4079s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 16534 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4079s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4079s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 16534 4079s ok 6 /gdbus/server-auth/sha1 4079s # Start of anonymous tests 4079s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/anonymous/tcp/.dirs/home 4079s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/anonymous/tcp/.dirs/cache 4079s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/anonymous/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/anonymous/tcp/.dirs/system-config2 4079s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/anonymous/tcp/.dirs/config 4079s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/anonymous/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/anonymous/tcp/.dirs/system-data2 4079s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/anonymous/tcp/.dirs/data 4079s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/anonymous/tcp/.dirs/state 4079s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/anonymous/tcp/.dirs/runtime 4079s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:true 4079s # Connectable address: tcp:host=127.0.0.1,port=43193 4079s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4079s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4079s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4079s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4079s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 4079s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4079s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4079s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4079s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4079s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4080s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 4080s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4080s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4080s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4080s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4080s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4080s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4080s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 4080s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4080s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4080s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4080s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4080s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4080s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4080s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 4080s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4080s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4080s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4080s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4080s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4080s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4080s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 4080s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4080s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4080s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4080s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4080s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4080s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4080s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 4080s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4080s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4080s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4080s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4080s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4080s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4080s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 4080s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4080s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4080s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4080s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4080s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4080s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4080s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 4080s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4080s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4080s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4080s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4080s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4080s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4080s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 4080s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4080s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4080s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4080s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4080s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4080s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4080s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 4080s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4080s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4080s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4080s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4080s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4080s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4080s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 4080s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4080s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4080s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4080s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4080s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4080s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4080s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 4080s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4080s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4080s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4080s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4080s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4080s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4080s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 4080s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4080s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4080s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4080s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4080s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4080s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4080s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 4080s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4080s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4080s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4080s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4080s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4080s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4080s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 4080s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4080s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4080s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4080s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4080s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4080s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4080s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 4080s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4080s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4080s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4080s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4080s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4080s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4080s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 4080s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4080s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4080s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4080s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4080s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4080s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4080s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 4080s ok 7 /gdbus/server-auth/anonymous/tcp 4080s # slow test /gdbus/server-auth/anonymous/tcp executed in 1.01 secs 4080s # End of anonymous tests 4080s # Start of external tests 4080s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/external/require-same-user/.dirs/home 4080s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/external/require-same-user/.dirs/cache 4080s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/external/require-same-user/.dirs/system-config1:/tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/external/require-same-user/.dirs/system-config2 4080s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/external/require-same-user/.dirs/config 4080s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/external/require-same-user/.dirs/system-data1:/tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/external/require-same-user/.dirs/system-data2 4080s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/external/require-same-user/.dirs/data 4080s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/external/require-same-user/.dirs/state 4080s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/external/require-same-user/.dirs/runtime 4080s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_7YO052/gdbus-server-auth-B4AB62 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 4080s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_7YO052/gdbus-server-auth-B4AB62/dbus-lDU6NjOF 4080s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4080s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4080s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4080s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4080s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4080s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 16534 4080s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4080s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4080s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4080s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4080s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4080s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4080s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 16534 4080s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4080s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4080s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4080s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4080s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4080s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4080s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 16534 4080s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4080s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4080s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4080s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4080s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4080s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4080s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 16534 4080s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4080s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4080s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4080s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4080s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4080s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4080s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 16534 4080s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4080s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4080s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4080s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4080s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4080s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4080s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 16534 4080s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4080s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4080s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4080s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4080s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4080s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4080s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 16534 4080s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4080s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4080s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4080s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4080s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4080s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4080s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 16534 4080s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4080s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4080s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4080s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4080s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4080s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4080s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 16534 4080s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4080s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4080s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4080s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4080s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4080s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4080s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 16534 4080s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4080s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4080s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4080s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4080s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4080s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4080s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 16534 4080s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4080s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4080s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4080s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4080s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4080s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4080s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 16534 4080s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4080s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4080s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4080s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4080s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4080s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4080s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 16534 4080s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4080s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4080s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4080s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4080s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4080s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4080s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 16534 4080s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4080s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4080s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4080s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4080s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4080s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4080s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 16534 4080s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4080s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4080s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4080s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4080s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4080s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4080s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 16534 4080s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4080s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4080s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4080s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4080s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4080s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4080s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 16534 4080s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4080s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4080s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4080s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4080s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4080s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4080s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 16534 4080s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4080s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4080s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4080s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4080s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4080s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4080s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 16534 4080s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4080s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4080s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4080s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4080s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4080s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4080s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 16534 4080s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4080s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4080s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4080s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4080s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4080s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=16534,uid=1000,gid=1000 4080s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 16534 4080s ok 8 /gdbus/server-auth/external/require-same-user 4080s # End of external tests 4080s # Start of sha1 tests 4080s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/sha1/tcp/.dirs/home 4080s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/sha1/tcp/.dirs/cache 4080s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/sha1/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/sha1/tcp/.dirs/system-config2 4080s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/sha1/tcp/.dirs/config 4080s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/sha1/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/sha1/tcp/.dirs/system-data2 4080s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/sha1/tcp/.dirs/data 4080s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/sha1/tcp/.dirs/state 4080s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_7YO052/gdbus/server-auth/sha1/tcp/.dirs/runtime 4080s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:true 4080s # Connectable address: tcp:host=127.0.0.1,port=36601 4080s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4080s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4080s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4081s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4081s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4081s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 4081s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4081s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4081s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4081s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4081s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4081s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4081s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 4081s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4081s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4081s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4081s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4081s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4081s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4081s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 4081s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4081s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4081s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4081s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4081s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4081s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4081s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 4081s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4081s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4081s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4081s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4081s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4081s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4081s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 4081s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4081s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4081s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4081s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4081s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4081s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4081s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 4081s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4081s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4081s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4081s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4081s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4081s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4081s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 4081s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4081s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4081s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4081s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4081s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4081s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4081s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 4081s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4081s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4081s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4081s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4081s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4081s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4081s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 4081s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4081s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4081s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4081s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4081s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4081s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4081s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 4081s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4081s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4081s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4081s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4081s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4081s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4081s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 4081s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4081s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4081s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4081s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4081s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4081s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4081s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 4081s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4081s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4081s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4081s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4081s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4081s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4081s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 4081s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4081s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4081s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4081s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4081s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4081s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4081s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 4081s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4081s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4081s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4081s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4081s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4081s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4081s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 4081s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4081s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4081s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4081s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4081s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4081s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4081s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 4081s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4081s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4081s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4081s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4081s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4081s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4081s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 4081s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4081s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4081s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4081s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4081s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4081s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4081s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 4081s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4081s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4081s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4081s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4081s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4081s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4081s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 4081s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4081s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4081s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4081s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4081s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4081s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4082s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 4082s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4082s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4082s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4082s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4082s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4082s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4082s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 4082s ok 9 /gdbus/server-auth/sha1/tcp 4082s # slow test /gdbus/server-auth/sha1/tcp executed in 1.08 secs 4082s # End of sha1 tests 4082s # End of server-auth tests 4082s # End of gdbus tests 4082s PASS: glib/gdbus-server-auth.test 4082s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=1.2s; system=1.1s; maxrss=6944 4083s autopkgtest [14:04:07]: test gdbus-server-auth: -----------------------] 4085s autopkgtest [14:04:09]: test gdbus-server-auth: - - - - - - - - - - results - - - - - - - - - - 4085s gdbus-server-auth PASS 4086s autopkgtest [14:04:10]: test gdbus-threading: preparing testbed 4090s Reading package lists... 4091s Building dependency tree... 4091s Reading state information... 4092s Starting pkgProblemResolver with broken count: 0 4093s Starting 2 pkgProblemResolver with broken count: 0 4093s Done 4094s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 4098s autopkgtest [14:04:22]: test gdbus-threading: [----------------------- 4100s Running test: glib/gdbus-threading.test 4100s TAP version 14 4100s # random seed: R02S00ef1a0cbf7e6585bff041469b7e199d 4100s 1..3 4100s # Start of gdbus tests 4100s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_RLXS52/gdbus/delivery-in-thread/.dirs/home 4100s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_RLXS52/gdbus/delivery-in-thread/.dirs/cache 4100s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_RLXS52/gdbus/delivery-in-thread/.dirs/system-config1:/tmp/test_gdbus-threading_RLXS52/gdbus/delivery-in-thread/.dirs/system-config2 4100s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_RLXS52/gdbus/delivery-in-thread/.dirs/config 4100s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_RLXS52/gdbus/delivery-in-thread/.dirs/system-data1:/tmp/test_gdbus-threading_RLXS52/gdbus/delivery-in-thread/.dirs/system-data2 4100s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_RLXS52/gdbus/delivery-in-thread/.dirs/data 4100s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_RLXS52/gdbus/delivery-in-thread/.dirs/state 4100s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_RLXS52/gdbus/delivery-in-thread/.dirs/runtime 4100s ok 1 /gdbus/delivery-in-thread 4100s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_RLXS52/gdbus/method-calls-in-thread/.dirs/home 4100s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_RLXS52/gdbus/method-calls-in-thread/.dirs/cache 4100s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_RLXS52/gdbus/method-calls-in-thread/.dirs/system-config1:/tmp/test_gdbus-threading_RLXS52/gdbus/method-calls-in-thread/.dirs/system-config2 4100s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_RLXS52/gdbus/method-calls-in-thread/.dirs/config 4100s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_RLXS52/gdbus/method-calls-in-thread/.dirs/system-data1:/tmp/test_gdbus-threading_RLXS52/gdbus/method-calls-in-thread/.dirs/system-data2 4100s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_RLXS52/gdbus/method-calls-in-thread/.dirs/data 4100s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_RLXS52/gdbus/method-calls-in-thread/.dirs/state 4100s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_RLXS52/gdbus/method-calls-in-thread/.dirs/runtime 4101s ok 2 /gdbus/method-calls-in-thread 4101s # slow test /gdbus/method-calls-in-thread executed in 1.06 secs 4101s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_RLXS52/gdbus/threaded-singleton/.dirs/home 4101s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_RLXS52/gdbus/threaded-singleton/.dirs/cache 4101s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_RLXS52/gdbus/threaded-singleton/.dirs/system-config1:/tmp/test_gdbus-threading_RLXS52/gdbus/threaded-singleton/.dirs/system-config2 4101s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_RLXS52/gdbus/threaded-singleton/.dirs/config 4101s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_RLXS52/gdbus/threaded-singleton/.dirs/system-data1:/tmp/test_gdbus-threading_RLXS52/gdbus/threaded-singleton/.dirs/system-data2 4101s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_RLXS52/gdbus/threaded-singleton/.dirs/data 4101s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_RLXS52/gdbus/threaded-singleton/.dirs/state 4101s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_RLXS52/gdbus/threaded-singleton/.dirs/runtime 4105s Executing: glib/gdbus-threading.test 4107s # GLib-GIO-DEBUG: refcount of 0x7fff44001110 is not right (2 rather than 1) in test_threaded_singleton(), sleeping 4110s Executing: glib/gdbus-threading.test 4112s ok 3 /gdbus/threaded-singleton 4112s # slow test /gdbus/threaded-singleton executed in 10.20 secs 4112s # End of gdbus tests 4112s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4112s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4112s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4112s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4112s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4112s PASS: glib/gdbus-threading.test 4112s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=4.5s; system=3.0s; maxrss=4820 4113s autopkgtest [14:04:37]: test gdbus-threading: -----------------------] 4114s gdbus-threading PASS 4114s autopkgtest [14:04:38]: test gdbus-threading: - - - - - - - - - - results - - - - - - - - - - 4117s autopkgtest [14:04:41]: test gmenumodel: preparing testbed 4120s Reading package lists... 4122s Building dependency tree... 4122s Reading state information... 4123s Starting pkgProblemResolver with broken count: 0 4123s Starting 2 pkgProblemResolver with broken count: 0 4123s Done 4125s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 4128s autopkgtest [14:04:52]: test gmenumodel: [----------------------- 4130s Running test: glib/gmenumodel.test 4130s TAP version 14 4130s # random seed: R02Sd04bb970309650f5711c711b3a466a62 4130s 1..15 4130s # Start of gmenu tests 4135s Executing: glib/gmenumodel.test 4137s ok 1 /gmenu/equality 4137s # slow test /gmenu/equality executed in 7.04 secs 4140s Executing: glib/gmenumodel.test 4145s Executing: glib/gmenumodel.test 4145s ok 2 /gmenu/random 4145s # slow test /gmenu/random executed in 7.86 secs 4145s ok 3 /gmenu/attributes 4145s ok 4 /gmenu/links 4145s ok 5 /gmenu/mutable 4145s ok 6 /gmenu/convenience 4145s ok 7 /gmenu/menuitem 4145s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/861 4146s ok 8 /gmenu/input-validation 4146s # Start of dbus tests 4147s ok 9 /gmenu/dbus/roundtrip 4147s # slow test /gmenu/dbus/roundtrip executed in 1.72 secs 4148s ok 10 /gmenu/dbus/subscriptions 4150s Executing: glib/gmenumodel.test 4155s Executing: glib/gmenumodel.test 4156s ok 11 /gmenu/dbus/threaded 4156s # slow test /gmenu/dbus/threaded executed in 7.95 secs 4156s # Start of peer tests 4157s ok 12 /gmenu/dbus/peer/roundtrip 4157s # slow test /gmenu/dbus/peer/roundtrip executed in 1.42 secs 4158s ok 13 /gmenu/dbus/peer/subscriptions 4158s # End of peer tests 4158s # Start of export tests 4158s # /gmenu/dbus/export/error-handling summary: Test that error handling of menu model export failure works 4158s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3366 4158s ok 14 /gmenu/dbus/export/error-handling 4158s # End of export tests 4158s # End of dbus tests 4158s # Start of attributes tests 4158s ok 15 /gmenu/attributes/iterate 4158s # End of attributes tests 4158s # End of gmenu tests 4158s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4158s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4158s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4158s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4158s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4158s PASS: glib/gmenumodel.test 4158s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=30.1s; system=1.9s; maxrss=9512 4159s autopkgtest [14:05:23]: test gmenumodel: -----------------------] 4160s gmenumodel PASS 4160s autopkgtest [14:05:24]: test gmenumodel: - - - - - - - - - - results - - - - - - - - - - 4162s autopkgtest [14:05:26]: test mainloop: preparing testbed 4165s Reading package lists... 4167s Building dependency tree... 4167s Reading state information... 4168s Starting pkgProblemResolver with broken count: 0 4168s Starting 2 pkgProblemResolver with broken count: 0 4168s Done 4170s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 4174s autopkgtest [14:05:38]: test mainloop: [----------------------- 4176s Running test: glib/mainloop.test 4176s TAP version 14 4176s # random seed: R02S2a44fbec94c3edeab92719a8008253bd 4176s 1..45 4176s # Start of maincontext tests 4176s ok 1 /maincontext/basic 4176s # Add same-priority sources: 302 4176s # Find each source: 21 4177s # Remove in random order: 203 4177s ok 2 /maincontext/nsources_same_priority 4177s # slow test /maincontext/nsources_same_priority executed in 0.75 secs 4177s # Add different-priority sources: 190 4177s # Find each source: 21 4177s # Remove in random order: 122 4177s ok 3 /maincontext/nsources_different_priority 4177s # slow test /maincontext/nsources_different_priority executed in 0.55 secs 4179s # Add sources from threads: 1742 4180s # Remove sources from threads: 1392 4180s ok 4 /maincontext/nsources_threadpool 4180s # slow test /maincontext/nsources_threadpool executed in 3.16 secs 4180s ok 5 /maincontext/source_finalization 4180s # /maincontext/idle-once summary: Test g_idle_add_once() works 4180s ok 6 /maincontext/idle-once 4180s # /maincontext/timeout-once summary: Test g_timeout_add_once() works 4181s ok 7 /maincontext/timeout-once 4181s # Start of source_finalization_from_source tests 4181s # /maincontext/source_finalization_from_source/0 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 4181s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 4181s ok 8 /maincontext/source_finalization_from_source/0 4181s # /maincontext/source_finalization_from_source/1 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 4181s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 4181s ok 9 /maincontext/source_finalization_from_source/1 4181s # /maincontext/source_finalization_from_source/2 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 4181s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 4181s ok 10 /maincontext/source_finalization_from_source/2 4181s # /maincontext/source_finalization_from_source/3 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 4181s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 4181s ok 11 /maincontext/source_finalization_from_source/3 4181s # /maincontext/source_finalization_from_source/4 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 4181s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 4181s ok 12 /maincontext/source_finalization_from_source/4 4181s # /maincontext/source_finalization_from_source/5 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 4181s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 4181s ok 13 /maincontext/source_finalization_from_source/5 4181s # /maincontext/source_finalization_from_source/6 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 4181s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 4181s ok 14 /maincontext/source_finalization_from_source/6 4181s # /maincontext/source_finalization_from_source/7 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 4181s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 4181s ok 15 /maincontext/source_finalization_from_source/7 4181s # /maincontext/source_finalization_from_source/8 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 4181s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 4181s ok 16 /maincontext/source_finalization_from_source/8 4181s # /maincontext/source_finalization_from_source/9 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 4181s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 4181s ok 17 /maincontext/source_finalization_from_source/9 4181s # End of source_finalization_from_source tests 4181s # Start of source_finalization_from_dispatch tests 4181s # /maincontext/source_finalization_from_dispatch/0 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 4181s ok 18 /maincontext/source_finalization_from_dispatch/0 4181s # /maincontext/source_finalization_from_dispatch/1 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 4181s ok 19 /maincontext/source_finalization_from_dispatch/1 4181s # /maincontext/source_finalization_from_dispatch/2 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 4181s ok 20 /maincontext/source_finalization_from_dispatch/2 4181s # End of source_finalization_from_dispatch tests 4181s # End of maincontext tests 4181s # Start of mainloop tests 4181s ok 21 /mainloop/basic 4181s ok 22 /mainloop/timeouts # SKIP Not running timing heavy test 4181s ok 23 /mainloop/priorities 4181s ok 24 /mainloop/invoke 4181s # slow test /mainloop/invoke executed in 0.50 secs 4181s Executing: glib/mainloop.test 4182s ok 25 /mainloop/child_sources 4182s # slow test /mainloop/child_sources executed in 1.25 secs 4185s ok 26 /mainloop/recursive_child_sources 4185s # slow test /mainloop/recursive_child_sources executed in 2.27 secs 4185s ok 27 /mainloop/recursive_loop_child_sources 4185s ok 28 /mainloop/swapping_child_sources 4185s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=701283 4185s ok 29 /mainloop/blocked_child_sources 4186s ok 30 /mainloop/source_time 4186s # slow test /mainloop/source_time executed in 1.00 secs 4186s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=687098 4186s ok 31 /mainloop/overflow 4186s ok 32 /mainloop/ready-time 4186s # slow test /mainloop/ready-time executed in 0.50 secs 4186s ok 33 /mainloop/wakeup 4186s ok 34 /mainloop/remove-invalid 4186s ok 35 /mainloop/unref-while-pending 4186s Executing: glib/mainloop.test 4191s Executing: glib/mainloop.test 4196s Executing: glib/mainloop.test 4200s ok 36 /mainloop/unix-fd 4200s # slow test /mainloop/unix-fd executed in 13.85 secs 4200s ok 37 /mainloop/unix-fd-source 4200s ok 38 /mainloop/source-unix-fd-api 4200s ok 39 /mainloop/wait 4200s ok 40 /mainloop/unix-file-poll 4200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1592 4200s ok 41 /mainloop/unix-fd-priority 4200s ok 42 /mainloop/nfds 4200s ok 43 /mainloop/steal-fd 4200s # Start of ownerless-polling tests 4200s ok 44 /mainloop/ownerless-polling/attach-first 4200s ok 45 /mainloop/ownerless-polling/pop-first 4200s # End of ownerless-polling tests 4200s # End of mainloop tests 4200s PASS: glib/mainloop.test 4200s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=3.0s; system=18.3s; maxrss=14928 4201s autopkgtest [14:06:05]: test mainloop: -----------------------] 4203s mainloop PASS 4203s autopkgtest [14:06:07]: test mainloop: - - - - - - - - - - results - - - - - - - - - - 4205s autopkgtest [14:06:09]: test memory-monitor-dbus: preparing testbed 4208s Reading package lists... 4210s Building dependency tree... 4210s Reading state information... 4211s Starting pkgProblemResolver with broken count: 0 4211s Starting 2 pkgProblemResolver with broken count: 0 4211s Done 4213s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 4217s autopkgtest [14:06:21]: test memory-monitor-dbus: [----------------------- 4218s Running test: glib/memory-monitor-dbus.test 4223s TAP version 13 4223s ok 1 __main__.TestLowMemoryMonitor.test_low_memory_warning_signal 4223s # Received memory warning signal, level <enum 0 of type Gio.MemoryMonitorWarningLevel> 4223s # Received memory warning signal, level <enum 0 of type Gio.MemoryMonitorWarningLevel> 4223s # Received memory warning signal, level <enum G_MEMORY_MONITOR_WARNING_LEVEL_MEDIUM of type Gio.MemoryMonitorWarningLevel> 4223s # Received memory warning signal, level <enum G_MEMORY_MONITOR_WARNING_LEVEL_CRITICAL of type Gio.MemoryMonitorWarningLevel> 4223s 1..1 4223s PASS: glib/memory-monitor-dbus.test 4223s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=3.8s; system=0.9s; maxrss=28300 4224s autopkgtest [14:06:28]: test memory-monitor-dbus: -----------------------] 4226s autopkgtest [14:06:30]: test memory-monitor-dbus: - - - - - - - - - - results - - - - - - - - - - 4226s memory-monitor-dbus PASS 4228s autopkgtest [14:06:32]: test socket: preparing testbed 4231s Reading package lists... 4233s Building dependency tree... 4233s Reading state information... 4234s Starting pkgProblemResolver with broken count: 0 4234s Starting 2 pkgProblemResolver with broken count: 0 4234s Done 4236s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 4240s autopkgtest [14:06:44]: test socket: [----------------------- 4242s Running test: glib/socket.test 4242s TAP version 14 4242s # random seed: R02S1de75b4b932c8689592c71c74803820c 4242s 1..28 4242s # Start of socket tests 4243s ok 1 /socket/ipv4_sync 4243s # slow test /socket/ipv4_sync executed in 1.04 secs 4244s ok 2 /socket/ipv4_async 4244s # slow test /socket/ipv4_async executed in 1.03 secs 4244s ok 3 /socket/ipv6_sync 4244s ok 4 /socket/ipv6_async 4244s ok 5 /socket/ipv6_v4mapped 4245s ok 6 /socket/close_graceful 4245s # slow test /socket/close_graceful executed in 1.01 secs 4245s ok 7 /socket/timed_wait # SKIP Not running timing heavy test 4245s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=741707 4245s ok 8 /socket/fd_reuse 4245s ok 9 /socket/address 4245s ok 10 /socket/unix-from-fd 4245s ok 11 /socket/unix-connection 4245s ok 12 /socket/unix-connection-ancillary-data 4245s ok 13 /socket/source-postmortem 4245s ok 14 /socket/read_write 4245s ok 15 /socket/read_writev 4245s # /socket/receive_bytes summary: Test basic functionality of g_socket_receive_bytes() 4245s ok 16 /socket/receive_bytes 4245s # /socket/receive_bytes_from summary: Test basic functionality of g_socket_receive_bytes_from() 4245s ok 17 /socket/receive_bytes_from 4245s # Start of ipv4_sync tests 4245s ok 18 /socket/ipv4_sync/datagram 4245s # Start of datagram tests 4246s ok 19 /socket/ipv4_sync/datagram/timeouts 4246s # slow test /socket/ipv4_sync/datagram/timeouts executed in 1.10 secs 4246s # End of datagram tests 4246s # End of ipv4_sync tests 4246s # Start of ipv6_sync tests 4246s ok 20 /socket/ipv6_sync/datagram 4246s # Start of datagram tests 4247s ok 21 /socket/ipv6_sync/datagram/timeouts 4247s # slow test /socket/ipv6_sync/datagram/timeouts executed in 1.10 secs 4247s # End of datagram tests 4247s # End of ipv6_sync tests 4247s # Start of reuse tests 4247s ok 22 /socket/reuse/tcp 4247s ok 23 /socket/reuse/udp 4247s # End of reuse tests 4247s # Start of get_available tests 4247s ok 24 /socket/get_available/datagram 4247s ok 25 /socket/get_available/stream 4247s # End of get_available tests 4247s # Start of credentials tests 4247s # Supported on this OS: GCredentials:linux-ucred:pid=0 4247s ok 26 /socket/credentials/tcp_client 4247s # Supported on this OS: GCredentials:linux-ucred:pid=0 4247s ok 27 /socket/credentials/tcp_server 4247s # Supported on this OS: GCredentials:linux-ucred:pid=18396,uid=1000,gid=1000 4247s ok 28 /socket/credentials/unix_socketpair 4247s # End of credentials tests 4247s # End of socket tests 4247s PASS: glib/socket.test 4247s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.2s; system=0.2s; maxrss=4456 4248s autopkgtest [14:06:52]: test socket: -----------------------] 4250s socket PASS 4250s autopkgtest [14:06:54]: test socket: - - - - - - - - - - results - - - - - - - - - - 4252s autopkgtest [14:06:56]: test testfilemonitor: preparing testbed 4255s Reading package lists... 4256s Building dependency tree... 4256s Reading state information... 4257s Starting pkgProblemResolver with broken count: 0 4258s Starting 2 pkgProblemResolver with broken count: 0 4258s Done 4259s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 4264s autopkgtest [14:07:08]: test testfilemonitor: [----------------------- 4265s Running test: glib/testfilemonitor.test 4266s TAP version 14 4266s # random seed: R02S6c8366eca713cc0fbd08f6d51558cab1 4266s 1..8 4266s # Start of monitor tests 4266s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 4266s # Using temporary directory: /tmp/gio-test-testfilemonitor_161152 4266s # Using GFileMonitor GInotifyFileMonitor 4268s ok 1 /monitor/atomic-replace 4268s # slow test /monitor/atomic-replace executed in 2.05 secs 4268s # Using temporary directory: /tmp/gio-test-testfilemonitor_4AU352 4268s # Using GFileMonitor GInotifyFileMonitor 4270s ok 2 /monitor/file-changes 4270s # slow test /monitor/file-changes executed in 2.51 secs 4270s # Using temporary directory: /tmp/gio-test-testfilemonitor_2GLU52 4270s # Using GFileMonitor GInotifyFileMonitor 4270s Executing: glib/testfilemonitor.test 4274s ok 3 /monitor/dir-monitor 4274s # slow test /monitor/dir-monitor executed in 3.53 secs 4274s # Using temporary directory: /tmp/gio-test-testfilemonitor_Y4E552 4274s # Using GFileMonitor GInotifyFileMonitor 4275s Executing: glib/testfilemonitor.test 4280s Executing: glib/testfilemonitor.test 4285s Executing: glib/testfilemonitor.test 4290s Executing: glib/testfilemonitor.test 4295s Executing: glib/testfilemonitor.test 4299s ok 4 /monitor/dir-not-existent 4299s # slow test /monitor/dir-not-existent executed in 25.03 secs 4299s # Using temporary directory: /tmp/gio-test-testfilemonitor_RUP452 4299s # Using GFileMonitor 0 GInotifyFileMonitor 4299s # Using GFileMonitor 1 GInotifyFileMonitor 4300s Executing: glib/testfilemonitor.test 4301s ok 5 /monitor/cross-dir-moves 4301s # slow test /monitor/cross-dir-moves executed in 2.01 secs 4301s # Using temporary directory: /tmp/gio-test-testfilemonitor_X8V452 4301s # /monitor/finalize-in-callback summary: Test that finalization of a GFileMonitor in one of its callbacks doesn?t cause a deadlock. 4301s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1941 4301s ok 6 /monitor/finalize-in-callback 4301s # Using temporary directory: /tmp/gio-test-testfilemonitor_MKMW52 4301s # /monitor/root summary: Test that GFileMonitor can monitor the root directory. 4301s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3241 4301s ok 7 /monitor/root 4301s # Start of file tests 4301s # Using temporary directory: /tmp/gio-test-testfilemonitor_BVIW52 4301s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=755721 4301s # Running with hard link tests 4301s # Using GFileMonitor GInotifyFileMonitor 4304s # Event 0 at expected index 7 skipped because it is marked as optional 4304s # Event 2 at expected index 11 skipped because it is marked as optional 4304s ok 8 /monitor/file/hard-links 4304s # slow test /monitor/file/hard-links executed in 3.51 secs 4304s # End of file tests 4304s # End of monitor tests 4304s PASS: glib/testfilemonitor.test 4304s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.2s; system=0.2s; maxrss=4628 4305s autopkgtest [14:07:49]: test testfilemonitor: -----------------------] 4307s testfilemonitor PASS 4307s autopkgtest [14:07:51]: test testfilemonitor: - - - - - - - - - - results - - - - - - - - - - 4309s autopkgtest [14:07:53]: test thread-pool-slow: preparing testbed 4312s Reading package lists... 4314s Building dependency tree... 4314s Reading state information... 4315s Starting pkgProblemResolver with broken count: 0 4315s Starting 2 pkgProblemResolver with broken count: 0 4315s Done 4317s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 4321s autopkgtest [14:08:05]: test thread-pool-slow: [----------------------- 4322s Running test: glib/thread-pool-slow.test 4322s TAP version 14 4322s # random seed: R02S2d9e79b09eaef04d6c69ea631baf0e8d 4322s 1..7 4322s # Start of threadpool tests 4322s ok 1 /threadpool/functions 4323s ok 2 /threadpool/stop-unused 4323s # slow test /threadpool/stop-unused executed in 0.56 secs 4323s ok 3 /threadpool/pools 4323s # [unsorted] ===> pushed new thread with id:93, number of threads:1, unprocessed:0 4323s # [unsorted] ===> pushed new thread with id:51, number of threads:2, unprocessed:1 4323s # [unsorted] ===> pushed new thread with id:84, number of threads:3, unprocessed:1 4323s # [unsorted] ===> pushed new thread with id:43, number of threads:4, unprocessed:1 4323s # [unsorted] ===> pushed new thread with id:86, number of threads:5, unprocessed:0 4323s # [unsorted] ===> pushed new thread with id:12, number of threads:6, unprocessed:1 4323s # [unsorted] ===> pushed new thread with id:36, number of threads:7, unprocessed:2 4323s # [unsorted] ===> pushed new thread with id:10, number of threads:8, unprocessed:3 4323s # [unsorted] ===> pushed new thread with id:55, number of threads:9, unprocessed:4 4323s # [unsorted] ===> pushed new thread with id:61, number of threads:10, unprocessed:4 4323s # [unsorted] ===> pushed new thread with id:99, number of threads:10, unprocessed:0 4323s # [unsorted] ===> pushed new thread with id:74, number of threads:10, unprocessed:0 4323s # [unsorted] ===> pushed new thread with id:26, number of threads:10, unprocessed:0 4323s # [unsorted] ===> pushed new thread with id:40, number of threads:10, unprocessed:0 4323s # [unsorted] ===> pushed new thread with id:18, number of threads:10, unprocessed:0 4323s # [unsorted] ===> pushed new thread with id:3, number of threads:10, unprocessed:1 4323s # [unsorted] ===> pushed new thread with id:25, number of threads:10, unprocessed:2 4323s # [unsorted] ===> pushed new thread with id:32, number of threads:10, unprocessed:3 4323s # [unsorted] ===> pushed new thread with id:68, number of threads:10, unprocessed:4 4323s # [unsorted] ===> pushed new thread with id:55, number of threads:10, unprocessed:5 4323s # [unsorted] ===> pushed new thread with id:61, number of threads:10, unprocessed:6 4323s # [unsorted] ===> pushed new thread with id:76, number of threads:10, unprocessed:7 4323s # [unsorted] ===> pushed new thread with id:29, number of threads:10, unprocessed:8 4323s # [unsorted] ===> pushed new thread with id:69, number of threads:10, unprocessed:9 4323s # [unsorted] ===> pushed new thread with id:37, number of threads:10, unprocessed:10 4323s # [unsorted] ===> pushed new thread with id:29, number of threads:10, unprocessed:11 4323s # [unsorted] ===> pushed new thread with id:51, number of threads:10, unprocessed:12 4323s # [unsorted] ===> pushed new thread with id:74, number of threads:10, unprocessed:13 4323s # [unsorted] ===> pushed new thread with id:34, number of threads:10, unprocessed:14 4323s # [unsorted] ===> pushed new thread with id:95, number of threads:10, unprocessed:15 4323s # [unsorted] ===> pushed new thread with id:2, number of threads:10, unprocessed:16 4323s # [unsorted] ===> pushed new thread with id:86, number of threads:10, unprocessed:17 4323s # [unsorted] ===> pushed new thread with id:13, number of threads:10, unprocessed:18 4323s # [unsorted] ===> pushed new thread with id:26, number of threads:10, unprocessed:19 4323s # [unsorted] ===> pushed new thread with id:52, number of threads:10, unprocessed:20 4323s # [unsorted] ===> pushed new thread with id:17, number of threads:10, unprocessed:21 4323s # [unsorted] ===> pushed new thread with id:84, number of threads:10, unprocessed:22 4323s # [unsorted] ===> pushed new thread with id:42, number of threads:10, unprocessed:23 4323s # [unsorted] ===> pushed new thread with id:58, number of threads:10, unprocessed:24 4323s # [unsorted] ===> pushed new thread with id:13, number of threads:10, unprocessed:25 4323s # [unsorted] ===> pushed new thread with id:85, number of threads:10, unprocessed:26 4323s # [unsorted] ===> pushed new thread with id:8, number of threads:10, unprocessed:27 4323s # [unsorted] ===> pushed new thread with id:98, number of threads:10, unprocessed:28 4323s # [unsorted] ===> pushed new thread with id:91, number of threads:10, unprocessed:29 4323s # [unsorted] ===> pushed new thread with id:68, number of threads:10, unprocessed:30 4323s # [unsorted] ===> pushed new thread with id:36, number of threads:10, unprocessed:31 4323s # [unsorted] ===> pushed new thread with id:57, number of threads:10, unprocessed:32 4323s # [unsorted] ===> pushed new thread with id:5, number of threads:10, unprocessed:33 4323s # [unsorted] ===> pushed new thread with id:35, number of threads:10, unprocessed:34 4323s # [unsorted] ===> pushed new thread with id:62, number of threads:10, unprocessed:35 4323s # [unsorted] ===> pushed new thread with id:91, number of threads:10, unprocessed:36 4323s # [unsorted] ===> pushed new thread with id:17, number of threads:10, unprocessed:37 4323s # [unsorted] ===> pushed new thread with id:35, number of threads:10, unprocessed:38 4323s # [unsorted] ===> pushed new thread with id:40, number of threads:10, unprocessed:39 4323s # [unsorted] ===> pushed new thread with id:95, number of threads:10, unprocessed:40 4323s # [unsorted] ===> pushed new thread with id:66, number of threads:10, unprocessed:41 4323s # [unsorted] ===> pushed new thread with id:9, number of threads:10, unprocessed:42 4323s # [unsorted] ===> pushed new thread with id:59, number of threads:10, unprocessed:43 4323s # [unsorted] ===> pushed new thread with id:37, number of threads:10, unprocessed:44 4323s # [unsorted] ===> pushed new thread with id:34, number of threads:10, unprocessed:45 4323s # [unsorted] ===> pushed new thread with id:55, number of threads:10, unprocessed:46 4323s # [unsorted] ===> pushed new thread with id:2, number of threads:10, unprocessed:47 4323s # [unsorted] ===> pushed new thread with id:38, number of threads:10, unprocessed:48 4323s # [unsorted] ===> pushed new thread with id:70, number of threads:10, unprocessed:49 4323s # [unsorted] ===> pushed new thread with id:33, number of threads:10, unprocessed:50 4323s # [unsorted] ===> pushed new thread with id:91, number of threads:10, unprocessed:51 4323s # [unsorted] ===> pushed new thread with id:10, number of threads:10, unprocessed:52 4323s # [unsorted] ===> pushed new thread with id:77, number of threads:10, unprocessed:53 4323s # [unsorted] ===> pushed new thread with id:48, number of threads:10, unprocessed:54 4323s # [unsorted] ===> pushed new thread with id:51, number of threads:10, unprocessed:55 4323s # [unsorted] ===> pushed new thread with id:78, number of threads:10, unprocessed:56 4323s # [unsorted] ===> pushed new thread with id:17, number of threads:10, unprocessed:57 4323s # [unsorted] ===> pushed new thread with id:43, number of threads:10, unprocessed:58 4323s # [unsorted] ===> pushed new thread with id:80, number of threads:10, unprocessed:59 4323s # [unsorted] ===> pushed new thread with id:4, number of threads:10, unprocessed:60 4323s # [unsorted] ===> pushed new thread with id:78, number of threads:10, unprocessed:61 4323s # [unsorted] ===> pushed new thread with id:52, number of threads:10, unprocessed:62 4323s # [unsorted] ===> pushed new thread with id:51, number of threads:10, unprocessed:63 4323s # [unsorted] ===> pushed new thread with id:3, number of threads:10, unprocessed:64 4323s # [unsorted] ===> pushed new thread with id:2, number of threads:10, unprocessed:65 4323s # [unsorted] ===> pushed new thread with id:63, number of threads:10, unprocessed:66 4323s # [unsorted] ===> pushed new thread with id:45, number of threads:10, unprocessed:67 4323s # [unsorted] ===> pushed new thread with id:84, number of threads:10, unprocessed:68 4323s # [unsorted] ===> pushed new thread with id:72, number of threads:10, unprocessed:69 4323s # [unsorted] ===> pushed new thread with id:52, number of threads:10, unprocessed:70 4323s # [unsorted] ===> pushed new thread with id:89, number of threads:10, unprocessed:71 4323s # [unsorted] ===> pushed new thread with id:58, number of threads:10, unprocessed:72 4323s # [unsorted] ===> pushed new thread with id:60, number of threads:10, unprocessed:73 4323s # [unsorted] ===> pushed new thread with id:65, number of threads:10, unprocessed:74 4323s # [unsorted] ===> pushed new thread with id:86, number of threads:10, unprocessed:75 4323s # [unsorted] ===> pushed new thread with id:40, number of threads:10, unprocessed:76 4323s # [unsorted] ===> pushed new thread with id:29, number of threads:10, unprocessed:77 4323s # [unsorted] ===> pushed new thread with id:37, number of threads:10, unprocessed:78 4323s # [unsorted] ===> pushed new thread with id:79, number of threads:10, unprocessed:79 4323s # [unsorted] ===> pushed new thread with id:16, number of threads:10, unprocessed:80 4323s # [unsorted] ===> pushed new thread with id:48, number of threads:10, unprocessed:81 4323s # [unsorted] ===> pushed new thread with id:33, number of threads:10, unprocessed:82 4323s # [unsorted] ===> pushed new thread with id:69, number of threads:10, unprocessed:83 4323s # [unsorted] ===> pushed new thread with id:43, number of threads:10, unprocessed:81 4323s # [unsorted] ===> pushed new thread with id:56, number of threads:10, unprocessed:81 4323s ok 4 /threadpool/no-sort 4323s # [ sorted] ===> pushed new thread with id:68, number of threads:0, unprocessed:1 4323s # [ sorted] ===> pushed new thread with id:49, number of threads:0, unprocessed:2 4323s # [ sorted] ===> pushed new thread with id:40, number of threads:0, unprocessed:3 4323s # [ sorted] ===> pushed new thread with id:72, number of threads:0, unprocessed:4 4323s # [ sorted] ===> pushed new thread with id:70, number of threads:0, unprocessed:5 4323s # [ sorted] ===> pushed new thread with id:58, number of threads:0, unprocessed:6 4323s # [ sorted] ===> pushed new thread with id:63, number of threads:0, unprocessed:7 4323s # [ sorted] ===> pushed new thread with id:59, number of threads:0, unprocessed:8 4323s # [ sorted] ===> pushed new thread with id:11, number of threads:0, unprocessed:9 4323s # [ sorted] ===> pushed new thread with id:99, number of threads:0, unprocessed:10 4323s # [ sorted] ===> pushed new thread with id:65, number of threads:0, unprocessed:11 4323s # [ sorted] ===> pushed new thread with id:84, number of threads:0, unprocessed:12 4323s # [ sorted] ===> pushed new thread with id:59, number of threads:0, unprocessed:13 4323s # [ sorted] ===> pushed new thread with id:76, number of threads:0, unprocessed:14 4323s # [ sorted] ===> pushed new thread with id:39, number of threads:0, unprocessed:15 4323s # [ sorted] ===> pushed new thread with id:60, number of threads:0, unprocessed:16 4323s # [ sorted] ===> pushed new thread with id:68, number of threads:0, unprocessed:17 4323s # [ sorted] ===> pushed new thread with id:84, number of threads:0, unprocessed:18 4323s # [ sorted] ===> pushed new thread with id:83, number of threads:0, unprocessed:19 4323s # [ sorted] ===> pushed new thread with id:94, number of threads:0, unprocessed:20 4323s # [ sorted] ===> pushed new thread with id:48, number of threads:0, unprocessed:21 4323s # [ sorted] ===> pushed new thread with id:60, number of threads:0, unprocessed:22 4323s # [ sorted] ===> pushed new thread with id:45, number of threads:0, unprocessed:23 4323s # [ sorted] ===> pushed new thread with id:95, number of threads:0, unprocessed:24 4323s # [ sorted] ===> pushed new thread with id:34, number of threads:0, unprocessed:25 4323s # [ sorted] ===> pushed new thread with id:31, number of threads:0, unprocessed:26 4323s # [ sorted] ===> pushed new thread with id:18, number of threads:0, unprocessed:27 4323s # [ sorted] ===> pushed new thread with id:38, number of threads:0, unprocessed:28 4323s # [ sorted] ===> pushed new thread with id:88, number of threads:0, unprocessed:29 4323s # [ sorted] ===> pushed new thread with id:79, number of threads:0, unprocessed:30 4323s # [ sorted] ===> pushed new thread with id:57, number of threads:0, unprocessed:31 4323s # [ sorted] ===> pushed new thread with id:20, number of threads:0, unprocessed:32 4323s # [ sorted] ===> pushed new thread with id:17, number of threads:0, unprocessed:33 4323s # [ sorted] ===> pushed new thread with id:59, number of threads:0, unprocessed:34 4323s # [ sorted] ===> pushed new thread with id:74, number of threads:0, unprocessed:35 4323s # [ sorted] ===> pushed new thread with id:69, number of threads:0, unprocessed:36 4323s # [ sorted] ===> pushed new thread with id:32, number of threads:0, unprocessed:37 4323s # [ sorted] ===> pushed new thread with id:47, number of threads:0, unprocessed:38 4323s # [ sorted] ===> pushed new thread with id:29, number of threads:0, unprocessed:39 4323s # [ sorted] ===> pushed new thread with id:61, number of threads:0, unprocessed:40 4323s # [ sorted] ===> pushed new thread with id:30, number of threads:0, unprocessed:41 4323s # [ sorted] ===> pushed new thread with id:26, number of threads:0, unprocessed:42 4323s # [ sorted] ===> pushed new thread with id:88, number of threads:0, unprocessed:43 4323s # [ sorted] ===> pushed new thread with id:61, number of threads:0, unprocessed:44 4323s # [ sorted] ===> pushed new thread with id:17, number of threads:0, unprocessed:45 4323s # [ sorted] ===> pushed new thread with id:54, number of threads:0, unprocessed:46 4323s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:47 4323s # [ sorted] ===> pushed new thread with id:98, number of threads:0, unprocessed:48 4323s # [ sorted] ===> pushed new thread with id:28, number of threads:0, unprocessed:49 4323s # [ sorted] ===> pushed new thread with id:93, number of threads:0, unprocessed:50 4323s # [ sorted] ===> pushed new thread with id:3, number of threads:0, unprocessed:51 4323s # [ sorted] ===> pushed new thread with id:87, number of threads:0, unprocessed:52 4323s # [ sorted] ===> pushed new thread with id:33, number of threads:0, unprocessed:53 4323s # [ sorted] ===> pushed new thread with id:34, number of threads:0, unprocessed:54 4323s # [ sorted] ===> pushed new thread with id:65, number of threads:0, unprocessed:55 4323s # [ sorted] ===> pushed new thread with id:70, number of threads:0, unprocessed:56 4323s # [ sorted] ===> pushed new thread with id:53, number of threads:0, unprocessed:57 4323s # [ sorted] ===> pushed new thread with id:66, number of threads:0, unprocessed:58 4323s # [ sorted] ===> pushed new thread with id:10, number of threads:0, unprocessed:59 4323s # [ sorted] ===> pushed new thread with id:14, number of threads:0, unprocessed:60 4323s # [ sorted] ===> pushed new thread with id:41, number of threads:0, unprocessed:61 4323s # [ sorted] ===> pushed new thread with id:29, number of threads:0, unprocessed:62 4323s # [ sorted] ===> pushed new thread with id:90, number of threads:0, unprocessed:63 4323s # [ sorted] ===> pushed new thread with id:65, number of threads:0, unprocessed:64 4323s # [ sorted] ===> pushed new thread with id:93, number of threads:0, unprocessed:65 4323s # [ sorted] ===> pushed new thread with id:54, number of threads:0, unprocessed:66 4323s # [ sorted] ===> pushed new thread with id:66, number of threads:0, unprocessed:67 4323s # [ sorted] ===> pushed new thread with id:86, number of threads:0, unprocessed:68 4323s # [ sorted] ===> pushed new thread with id:4, number of threads:0, unprocessed:69 4323s # [ sorted] ===> pushed new thread with id:21, number of threads:0, unprocessed:70 4323s # [ sorted] ===> pushed new thread with id:68, number of threads:0, unprocessed:71 4323s # [ sorted] ===> pushed new thread with id:34, number of threads:0, unprocessed:72 4323s # [ sorted] ===> pushed new thread with id:27, number of threads:0, unprocessed:73 4323s # [ sorted] ===> pushed new thread with id:20, number of threads:0, unprocessed:74 4323s # [ sorted] ===> pushed new thread with id:100, number of threads:0, unprocessed:75 4323s # [ sorted] ===> pushed new thread with id:22, number of threads:0, unprocessed:76 4323s # [ sorted] ===> pushed new thread with id:94, number of threads:0, unprocessed:77 4323s # [ sorted] ===> pushed new thread with id:72, number of threads:0, unprocessed:78 4323s # [ sorted] ===> pushed new thread with id:29, number of threads:0, unprocessed:79 4323s # [ sorted] ===> pushed new thread with id:72, number of threads:0, unprocessed:80 4323s # [ sorted] ===> pushed new thread with id:79, number of threads:0, unprocessed:81 4323s # [ sorted] ===> pushed new thread with id:8, number of threads:0, unprocessed:82 4323s # [ sorted] ===> pushed new thread with id:56, number of threads:0, unprocessed:83 4323s # [ sorted] ===> pushed new thread with id:19, number of threads:0, unprocessed:84 4323s # [ sorted] ===> pushed new thread with id:87, number of threads:0, unprocessed:85 4323s # [ sorted] ===> pushed new thread with id:21, number of threads:0, unprocessed:86 4323s # [ sorted] ===> pushed new thread with id:57, number of threads:0, unprocessed:87 4323s # [ sorted] ===> pushed new thread with id:80, number of threads:0, unprocessed:88 4323s # [ sorted] ===> pushed new thread with id:21, number of threads:0, unprocessed:89 4323s # [ sorted] ===> pushed new thread with id:26, number of threads:0, unprocessed:90 4323s # [ sorted] ===> pushed new thread with id:29, number of threads:0, unprocessed:91 4323s # [ sorted] ===> pushed new thread with id:90, number of threads:0, unprocessed:92 4323s # [ sorted] ===> pushed new thread with id:21, number of threads:0, unprocessed:93 4323s # [ sorted] ===> pushed new thread with id:15, number of threads:0, unprocessed:94 4323s # [ sorted] ===> pushed new thread with id:91, number of threads:0, unprocessed:95 4323s # [ sorted] ===> pushed new thread with id:80, number of threads:0, unprocessed:96 4323s # [ sorted] ===> pushed new thread with id:34, number of threads:0, unprocessed:97 4323s # [ sorted] ===> pushed new thread with id:21, number of threads:0, unprocessed:98 4323s # [ sorted] ===> pushed new thread with id:8, number of threads:0, unprocessed:99 4323s # [ sorted] ===> pushed new thread with id:32, number of threads:0, unprocessed:100 4323s # Starting thread pool processing 4323s ok 5 /threadpool/sort 4324s ok 6 /threadpool/stop-unused-multiple 4324s # slow test /threadpool/stop-unused-multiple executed in 0.60 secs 4324s # Pool idle thread count: 0, unprocessed jobs: 42 4324s # Pool idle thread count: 0, unprocessed jobs: 0 4324s # Pool idle thread count: 0, unprocessed jobs: 0 4325s # Pool idle thread count: 10, unprocessed jobs: 0 4325s # Pool idle thread count: 10, unprocessed jobs: 0 4325s # Pool idle thread count: 10, unprocessed jobs: 0 4325s # Pool idle thread count: 10, unprocessed jobs: 0 4326s # Pool idle thread count: 10, unprocessed jobs: 0 4326s # Pool idle thread count: 10, unprocessed jobs: 0 4326s # Pool idle thread count: 10, unprocessed jobs: 0 4326s # Pool idle thread count: 10, unprocessed jobs: 0 4327s # Pool idle thread count: 10, unprocessed jobs: 0 4327s # Pool idle thread count: 10, unprocessed jobs: 0 4327s Executing: glib/thread-pool-slow.test 4327s # Pool idle thread count: 10, unprocessed jobs: 0 4327s # Pool idle thread count: 10, unprocessed jobs: 0 4328s # Pool idle thread count: 10, unprocessed jobs: 0 4328s # Pool idle thread count: 10, unprocessed jobs: 0 4328s # Pool idle thread count: 10, unprocessed jobs: 0 4328s # Pool idle thread count: 10, unprocessed jobs: 0 4329s # Pool idle thread count: 10, unprocessed jobs: 0 4329s # Pool idle thread count: 10, unprocessed jobs: 0 4329s # Pool idle thread count: 10, unprocessed jobs: 0 4329s # Pool idle thread count: 10, unprocessed jobs: 0 4330s # Pool idle thread count: 10, unprocessed jobs: 0 4330s # Pool idle thread count: 10, unprocessed jobs: 0 4330s # Pool idle thread count: 10, unprocessed jobs: 0 4330s # Pool idle thread count: 10, unprocessed jobs: 0 4331s # Pool idle thread count: 10, unprocessed jobs: 0 4331s # Pool idle thread count: 10, unprocessed jobs: 0 4331s # Pool idle thread count: 10, unprocessed jobs: 0 4331s # Pool idle thread count: 10, unprocessed jobs: 0 4332s # Pool idle thread count: 10, unprocessed jobs: 0 4332s # Pool idle thread count: 10, unprocessed jobs: 0 4332s Executing: glib/thread-pool-slow.test 4332s # Pool idle thread count: 10, unprocessed jobs: 0 4332s # Pool idle thread count: 10, unprocessed jobs: 0 4333s # Pool idle thread count: 10, unprocessed jobs: 2 4333s # Pool idle thread count: 8, unprocessed jobs: 0 4333s # Pool idle thread count: 8, unprocessed jobs: 0 4333s # Pool idle thread count: 8, unprocessed jobs: 0 4333s # Pool idle thread count: 10, unprocessed jobs: 0 4333s # Pool idle thread count: 10, unprocessed jobs: 0 4334s # Pool idle thread count: 10, unprocessed jobs: 0 4334s # Pool idle thread count: 10, unprocessed jobs: 0 4334s # Pool idle thread count: 10, unprocessed jobs: 0 4334s # Pool idle thread count: 10, unprocessed jobs: 0 4335s # Pool idle thread count: 2, unprocessed jobs: 0 4335s # Pool idle thread count: 2, unprocessed jobs: 0 4335s # Pool idle thread count: 2, unprocessed jobs: 0 4335s # Pool idle thread count: 2, unprocessed jobs: 0 4336s # Pool idle thread count: 2, unprocessed jobs: 0 4336s # Pool idle thread count: 2, unprocessed jobs: 0 4336s # Pool idle thread count: 2, unprocessed jobs: 0 4336s # Pool idle thread count: 2, unprocessed jobs: 0 4337s # Pool idle thread count: 2, unprocessed jobs: 0 4337s # Pool idle thread count: 2, unprocessed jobs: 0 4337s Executing: glib/thread-pool-slow.test 4337s # Pool idle thread count: 2, unprocessed jobs: 0 4337s # Pool idle thread count: 2, unprocessed jobs: 0 4338s # Pool idle thread count: 2, unprocessed jobs: 0 4338s # Pool idle thread count: 2, unprocessed jobs: 0 4338s # Pool idle thread count: 2, unprocessed jobs: 0 4338s # Pool idle thread count: 2, unprocessed jobs: 0 4339s # Pool idle thread count: 2, unprocessed jobs: 0 4339s # Pool idle thread count: 2, unprocessed jobs: 0 4339s # Pool idle thread count: 2, unprocessed jobs: 0 4339s # Pool idle thread count: 2, unprocessed jobs: 0 4340s # Pool idle thread count: 2, unprocessed jobs: 0 4340s # Pool idle thread count: 2, unprocessed jobs: 0 4340s # Pool idle thread count: 2, unprocessed jobs: 0 4340s # Pool idle thread count: 2, unprocessed jobs: 0 4341s # Pool idle thread count: 2, unprocessed jobs: 0 4341s # Pool idle thread count: 2, unprocessed jobs: 0 4341s # Pool idle thread count: 2, unprocessed jobs: 0 4341s # Pool idle thread count: 2, unprocessed jobs: 0 4342s # Pool idle thread count: 2, unprocessed jobs: 0 4342s # Pool idle thread count: 2, unprocessed jobs: 0 4342s Executing: glib/thread-pool-slow.test 4342s # Pool idle thread count: 2, unprocessed jobs: 0 4342s # Pool idle thread count: 2, unprocessed jobs: 0 4343s # Pool idle thread count: 2, unprocessed jobs: 0 4343s # Pool idle thread count: 2, unprocessed jobs: 0 4343s ok 7 /threadpool/idle-time 4343s # slow test /threadpool/idle-time executed in 19.56 secs 4343s # End of threadpool tests 4343s PASS: glib/thread-pool-slow.test 4343s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.7s; system=0.3s; maxrss=3244 4345s autopkgtest [14:08:29]: test thread-pool-slow: -----------------------] 4347s autopkgtest [14:08:31]: test thread-pool-slow: - - - - - - - - - - results - - - - - - - - - - 4347s thread-pool-slow PASS 4348s autopkgtest [14:08:32]: test threadtests: preparing testbed 4352s Reading package lists... 4353s Building dependency tree... 4353s Reading state information... 4355s Starting pkgProblemResolver with broken count: 0 4355s Starting 2 pkgProblemResolver with broken count: 0 4355s Done 4356s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 4361s autopkgtest [14:08:45]: test threadtests: [----------------------- 4362s Running test: glib/threadtests.test 4362s TAP version 14 4362s # random seed: R02S2cafb41b5fb598b5b0581eaea424d81f 4362s 1..5 4362s # Start of GObject tests 4363s ok 1 /GObject/threaded-object-init 4367s ok 2 /GObject/threaded-weak-ref 4367s # slow test /GObject/threaded-weak-ref executed in 4.08 secs 4367s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2394 4367s # /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 4367s Executing: glib/threadtests.test 4368s ok 3 /GObject/threaded-toggle-notify 4368s # slow test /GObject/threaded-toggle-notify executed in 0.87 secs 4368s ok 4 /GObject/threaded-g-pointer-bit-unlock-and-set 4368s # Start of threaded-weak-ref tests 4368s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 4368s # /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. 4368s ok 5 /GObject/threaded-weak-ref/on-finalization 4368s # End of threaded-weak-ref tests 4368s # End of GObject tests 4368s PASS: glib/threadtests.test 4368s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=2.2s; system=4.1s; maxrss=2836 4369s autopkgtest [14:08:53]: test threadtests: -----------------------] 4371s autopkgtest [14:08:55]: test threadtests: - - - - - - - - - - results - - - - - - - - - - 4371s threadtests PASS 4372s autopkgtest [14:08:56]: test timeout: preparing testbed 4376s Reading package lists... 4377s Building dependency tree... 4377s Reading state information... 4378s Starting pkgProblemResolver with broken count: 0 4379s Starting 2 pkgProblemResolver with broken count: 0 4379s Done 4380s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 4385s autopkgtest [14:09:09]: test timeout: [----------------------- 4386s Running test: glib/timeout.test 4386s TAP version 14 4386s # random seed: R02S2595e47ee7a1daece9585cdd6d0f78b0 4386s 1..5 4386s # Start of timeout tests 4386s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642052 4389s ok 1 /timeout/seconds 4389s # slow test /timeout/seconds executed in 2.11 secs 4391s ok 2 /timeout/seconds-once 4391s # slow test /timeout/seconds-once executed in 2.10 secs 4391s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1600 4391s Executing: glib/timeout.test 4393s ok 3 /timeout/weeks-overflow 4393s # slow test /timeout/weeks-overflow executed in 2.11 secs 4393s ok 4 /timeout/far-future-ready-time 4396s Executing: glib/timeout.test 4401s Executing: glib/timeout.test 4403s ok 5 /timeout/rounding 4403s # slow test /timeout/rounding executed in 10.52 secs 4403s # End of timeout tests 4403s PASS: glib/timeout.test 4403s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.1s; system=0.1s; maxrss=2268 4404s autopkgtest [14:09:28]: test timeout: -----------------------] 4406s autopkgtest [14:09:30]: test timeout: - - - - - - - - - - results - - - - - - - - - - 4406s timeout PASS 4408s autopkgtest [14:09:32]: test timer: preparing testbed 4411s Reading package lists... 4413s Building dependency tree... 4413s Reading state information... 4414s Starting pkgProblemResolver with broken count: 0 4415s Starting 2 pkgProblemResolver with broken count: 0 4415s Done 4418s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 4422s autopkgtest [14:09:46]: test timer: [----------------------- 4423s Running test: glib/timer.test 4423s TAP version 14 4423s # random seed: R02Sdbf03744d94d8d433fd168bc0d762901 4423s 1..10 4423s # Start of timer tests 4423s ok 1 /timer/basic 4423s ok 2 /timer/stop 4423s ok 3 /timer/continue 4423s ok 4 /timer/reset 4423s ok 5 /timer/is_active 4423s # End of timer tests 4423s # Start of timeval tests 4423s ok 6 /timeval/add 4423s ok 7 /timeval/from-iso8601 4423s ok 8 /timeval/to-iso8601 4423s # Start of to-iso8601 tests 4423s ok 9 /timeval/to-iso8601/overflow 4423s # End of to-iso8601 tests 4423s # End of timeval tests 4423s # Start of usleep tests 4423s ok 10 /usleep/with-zero-wait 4423s # End of usleep tests 4423s PASS: glib/timer.test 4424s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.1s; system=0.0s; maxrss=2392 4424s autopkgtest [14:09:48]: test timer: -----------------------] 4427s timer PASS 4427s autopkgtest [14:09:51]: test timer: - - - - - - - - - - results - - - - - - - - - - 4428s autopkgtest [14:09:52]: test 1065022-futureproofing: preparing testbed 4620s autopkgtest [14:13:04]: testbed dpkg architecture: riscv64 4621s autopkgtest [14:13:05]: testbed apt version: 3.0.0 4623s autopkgtest [14:13:07]: @@@@@@@@@@@@@@@@@@@@ test bed setup 4624s autopkgtest [14:13:08]: testbed release detected to be: questing 4628s autopkgtest [14:13:12]: updating testbed package index (apt update) 4630s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [110 kB] 4630s Hit:2 http://ftpmaster.internal/ubuntu questing InRelease 4630s Hit:3 http://ftpmaster.internal/ubuntu questing-updates InRelease 4630s Hit:4 http://ftpmaster.internal/ubuntu questing-security InRelease 4631s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [171 kB] 4631s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [2029 kB] 4632s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [44.4 kB] 4632s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 Packages [197 kB] 4632s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/universe riscv64 Packages [788 kB] 4632s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/multiverse riscv64 Packages [8624 B] 4636s Fetched 3348 kB in 5s (657 kB/s) 4649s Reading package lists... 4653s autopkgtest [14:13:37]: upgrading testbed (apt dist-upgrade and autopurge) 4654s Reading package lists... 4655s Building dependency tree... 4655s Reading state information... 4657s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 4657s Starting 2 pkgProblemResolver with broken count: 0 4657s Done 4659s Entering ResolveByKeep 4660s 4661s Calculating upgrade... 4662s The following packages will be upgraded: 4662s htop libnpth0t64 libpython3.13 libpython3.13-minimal libpython3.13-stdlib 4662s nano python3.13 python3.13-gdbm python3.13-minimal usb.ids 4662s 10 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 4662s Need to get 9242 kB of archives. 4662s After this operation, 7168 B of additional disk space will be used. 4662s Get:1 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 python3.13 riscv64 3.13.3-2 [739 kB] 4662s Get:2 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 libpython3.13 riscv64 3.13.3-2 [2427 kB] 4663s Get:3 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 libpython3.13-stdlib riscv64 3.13.3-2 [2063 kB] 4663s Get:4 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 python3.13-minimal riscv64 3.13.3-2 [2401 kB] 4663s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 libpython3.13-minimal riscv64 3.13.3-2 [882 kB] 4663s Get:6 http://ftpmaster.internal/ubuntu questing/main riscv64 libnpth0t64 riscv64 1.8-3 [8790 B] 4663s Get:7 http://ftpmaster.internal/ubuntu questing/main riscv64 nano riscv64 8.4-1 [299 kB] 4663s Get:8 http://ftpmaster.internal/ubuntu questing/main riscv64 usb.ids all 2025.04.01-1 [223 kB] 4663s Get:9 http://ftpmaster.internal/ubuntu questing/main riscv64 htop riscv64 3.4.1-4 [168 kB] 4663s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/main riscv64 python3.13-gdbm riscv64 3.13.3-2 [31.5 kB] 4667s Fetched 9242 kB in 2s (5975 kB/s) 4669s (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 ... 114197 files and directories currently installed.) 4669s Preparing to unpack .../0-python3.13_3.13.3-2_riscv64.deb ... 4670s Unpacking python3.13 (3.13.3-2) over (3.13.3-1) ... 4670s Preparing to unpack .../1-libpython3.13_3.13.3-2_riscv64.deb ... 4670s Unpacking libpython3.13:riscv64 (3.13.3-2) over (3.13.3-1) ... 4672s Preparing to unpack .../2-libpython3.13-stdlib_3.13.3-2_riscv64.deb ... 4673s Unpacking libpython3.13-stdlib:riscv64 (3.13.3-2) over (3.13.3-1) ... 4675s Preparing to unpack .../3-python3.13-minimal_3.13.3-2_riscv64.deb ... 4675s Unpacking python3.13-minimal (3.13.3-2) over (3.13.3-1) ... 4677s Preparing to unpack .../4-libpython3.13-minimal_3.13.3-2_riscv64.deb ... 4678s Unpacking libpython3.13-minimal:riscv64 (3.13.3-2) over (3.13.3-1) ... 4679s Preparing to unpack .../5-libnpth0t64_1.8-3_riscv64.deb ... 4679s Unpacking libnpth0t64:riscv64 (1.8-3) over (1.8-2) ... 4680s Setting up libnpth0t64:riscv64 (1.8-3) ... 4681s (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 ... 114197 files and directories currently installed.) 4681s Preparing to unpack .../nano_8.4-1_riscv64.deb ... 4681s Unpacking nano (8.4-1) over (8.3-1) ... 4682s Preparing to unpack .../usb.ids_2025.04.01-1_all.deb ... 4682s Unpacking usb.ids (2025.04.01-1) over (2025.01.14-1) ... 4682s Preparing to unpack .../htop_3.4.1-4_riscv64.deb ... 4682s Unpacking htop (3.4.1-4) over (3.4.0-2) ... 4683s Preparing to unpack .../python3.13-gdbm_3.13.3-2_riscv64.deb ... 4683s Unpacking python3.13-gdbm (3.13.3-2) over (3.13.3-1) ... 4683s Setting up htop (3.4.1-4) ... 4683s Setting up libpython3.13-minimal:riscv64 (3.13.3-2) ... 4683s Setting up usb.ids (2025.04.01-1) ... 4683s Setting up nano (8.4-1) ... 4683s Installing new version of config file /etc/nanorc ... 4684s Setting up python3.13-minimal (3.13.3-2) ... 4696s Setting up libpython3.13-stdlib:riscv64 (3.13.3-2) ... 4696s Setting up python3.13-gdbm (3.13.3-2) ... 4696s Setting up libpython3.13:riscv64 (3.13.3-2) ... 4696s Setting up python3.13 (3.13.3-2) ... 4709s Processing triggers for systemd (257.4-1ubuntu3) ... 4710s Processing triggers for man-db (2.13.0-1) ... 4713s Processing triggers for install-info (7.1.1-1) ... 4716s Processing triggers for libc-bin (2.41-6ubuntu1) ... 4722s Reading package lists... 4723s Building dependency tree... 4723s Reading state information... 4725s Starting pkgProblemResolver with broken count: 0 4725s Starting 2 pkgProblemResolver with broken count: 0 4725s Done 4727s Solving dependencies... 4728s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 4744s Reading package lists... 4745s Building dependency tree... 4745s Reading state information... 4746s Starting pkgProblemResolver with broken count: 0 4746s Starting 2 pkgProblemResolver with broken count: 0 4746s Done 4748s The following NEW packages will be installed: 4748s dconf-gsettings-backend dconf-service dpkg-repack gsettings-desktop-schemas 4748s libdconf1 4749s 0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded. 4749s Need to get 156 kB of archives. 4749s After this operation, 654 kB of additional disk space will be used. 4749s Get:1 http://ftpmaster.internal/ubuntu questing/main riscv64 libdconf1 riscv64 0.40.0-5 [44.3 kB] 4749s Get:2 http://ftpmaster.internal/ubuntu questing/main riscv64 dconf-service riscv64 0.40.0-5 [33.6 kB] 4749s Get:3 http://ftpmaster.internal/ubuntu questing/main riscv64 dconf-gsettings-backend riscv64 0.40.0-5 [29.0 kB] 4749s Get:4 http://ftpmaster.internal/ubuntu questing/main riscv64 dpkg-repack all 1.54 [11.2 kB] 4749s Get:5 http://ftpmaster.internal/ubuntu questing/main riscv64 gsettings-desktop-schemas all 48.0-1ubuntu1 [37.6 kB] 4753s Fetched 156 kB in 0s (406 kB/s) 4753s Selecting previously unselected package libdconf1:riscv64. 4754s (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 ... 114197 files and directories currently installed.) 4754s Preparing to unpack .../libdconf1_0.40.0-5_riscv64.deb ... 4754s Unpacking libdconf1:riscv64 (0.40.0-5) ... 4754s Selecting previously unselected package dconf-service. 4754s Preparing to unpack .../dconf-service_0.40.0-5_riscv64.deb ... 4754s Unpacking dconf-service (0.40.0-5) ... 4755s Selecting previously unselected package dconf-gsettings-backend:riscv64. 4755s Preparing to unpack .../dconf-gsettings-backend_0.40.0-5_riscv64.deb ... 4755s Unpacking dconf-gsettings-backend:riscv64 (0.40.0-5) ... 4755s Selecting previously unselected package dpkg-repack. 4755s Preparing to unpack .../dpkg-repack_1.54_all.deb ... 4755s Unpacking dpkg-repack (1.54) ... 4756s Selecting previously unselected package gsettings-desktop-schemas. 4756s Preparing to unpack .../gsettings-desktop-schemas_48.0-1ubuntu1_all.deb ... 4756s Unpacking gsettings-desktop-schemas (48.0-1ubuntu1) ... 4756s Setting up dpkg-repack (1.54) ... 4756s Setting up libdconf1:riscv64 (0.40.0-5) ... 4756s Setting up dconf-service (0.40.0-5) ... 4756s Setting up dconf-gsettings-backend:riscv64 (0.40.0-5) ... 4756s Setting up gsettings-desktop-schemas (48.0-1ubuntu1) ... 4756s Processing triggers for man-db (2.13.0-1) ... 4758s Processing triggers for libglib2.0-0t64:riscv64 (2.84.1-1) ... 4759s Processing triggers for libc-bin (2.41-6ubuntu1) ... 4785s autopkgtest [14:15:49]: test 1065022-futureproofing: [----------------------- 4786s + export DEBIAN_FRONTEND=noninteractive 4786s + n=0 4786s + failed=0 4786s + binary_package=libglib2.0-0t64 4786s + future_binary_package=libglib2.0-0xyz 4786s + pwd 4786s + srcdir=/tmp/autopkgtest.LJV7sh/build.Nzr/src 4786s + mktemp -d 4786s + tmpdir=/tmp/tmp.NjJQNorgEh 4786s + cd /tmp/tmp.NjJQNorgEh 4786s + [ -e /tmp/autopkgtest.LJV7sh/build.Nzr/src/debian/tests/manual/local-1065022.sources ] 4786s + dpkg-query -W dpkg-repack 4786s dpkg-repack 1.54 4787s + dpkg-repack --generate libglib2.0-0t64 4790s dpkg-repack: warning: unknown information field 'Original-Maintainer' in input data in stanza in dpkg's status file 4790s dpkg-repack: info: created dpkg-repack.libglib2.0-0t64.QrA49_ for libglib2.0-0t64 4790s dpkg-repack: info: to build use: "dpkg-deb --build dpkg-repack.libglib2.0-0t64.QrA49_ ." 4790s + grep -q ^Breaks: dpkg-repack.libglib2.0-0t64.QrA49_/DEBIAN/control 4790s + grep -q ^Provides: dpkg-repack.libglib2.0-0t64.QrA49_/DEBIAN/control 4790s + grep -q ^Replaces: dpkg-repack.libglib2.0-0t64.QrA49_/DEBIAN/control 4790s + env binary_package=libglib2.0-0t64 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}/; -e s/^(Replaces:.*)$/$1, $ENV{binary_package}/; dpkg-repack.libglib2.0-0t64.QrA49_/DEBIAN/control 4790s + dpkg-deb --build dpkg-repack.libglib2.0-0t64.QrA49_ libglib2.0-0xyz.deb 4790s dpkg-deb: building package 'libglib2.0-0xyz' in 'libglib2.0-0xyz.deb'. 4806s + apt-get -y install ./libglib2.0-0xyz.deb 4809s Reading package lists... 4811s Building dependency tree... 4811s Reading state information... 4812s Solving dependencies... 4813s The following packages were automatically installed and are no longer required: 4813s apport-symptoms exfatprogs jq libatasmart4 libbytesize-common libbytesize1 4813s libdrm-amdgpu1 libflashrom1 libftdi1-2 libgpgme11t64 libicu76 libinih1 4813s libjq1 libjson-glib-1.0-common libnspr4 libnss3 libnvme1t64 libonig5 4813s libprotobuf-c1 python3-apport python3-certifi python3-chardet 4813s python3-configobj python3-debconf python3-markdown-it python3-mdurl 4813s python3-openssl python3-passlib python3-problem-report python3-pygments 4813s python3-requests python3-rich python3-systemd python3-urllib3 4813s Use 'sudo apt autoremove' to remove them. 4813s The following additional packages will be installed: 4813s xdg-user-dirs 4813s Suggested packages: 4813s low-memory-monitor 4813s Recommended packages: 4813s shared-mime-info 4813s The following packages will be REMOVED: 4813s apport apport-core-dump-handler bolt cloud-init cloud-init-base 4813s dconf-gsettings-backend dconf-service fwupd gir1.2-girepository-2.0 4813s gir1.2-glib-2.0 gsettings-desktop-schemas libblockdev-crypto3 4813s libblockdev-fs3 libblockdev-loop3 libblockdev-mdraid3 libblockdev-nvme3 4813s libblockdev-part3 libblockdev-swap3 libblockdev-utils3 libblockdev3 4813s libdconf1 libfwupd3 libgirepository-1.0-1 libglib2.0-0t64 libgudev-1.0-0 4813s libjcat1 libjson-glib-1.0-0 libmbim-glib4 libmbim-proxy libmm-glib0 4813s libnetplan1 libpolkit-agent-1-0 libpolkit-gobject-1-0 libqmi-glib5 4813s libqmi-proxy libqrtr-glib0 libudisks2-0 libvolume-key1 libxmlb2 4813s netplan-generator netplan.io networkd-dispatcher python3-dbus python3-gi 4813s python3-netplan shared-mime-info ubuntu-minimal udisks2 xfsprogs 4813s The following NEW packages will be installed: 4813s libglib2.0-0xyz xdg-user-dirs 4813s 0 upgraded, 2 newly installed, 49 to remove and 0 not upgraded. 4813s Need to get 18.7 kB/1699 kB of archives. 4813s After this operation, 35.0 MB disk space will be freed. 4813s Get:1 /tmp/tmp.NjJQNorgEh/libglib2.0-0xyz.deb libglib2.0-0xyz riscv64 2.84.1-1 [1680 kB] 4813s Get:2 http://ftpmaster.internal/ubuntu questing/main riscv64 xdg-user-dirs riscv64 0.18-2 [18.7 kB] 4818s Fetched 18.7 kB in 0s (42.1 kB/s) 4819s (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 ... 114266 files and directories currently installed.) 4819s Removing bolt (0.9.8-1) ... 4824s Removing cloud-init (25.1.1-0ubuntu2) ... 4824s Removing cloud-init-base (25.1.1-0ubuntu2) ... 4833s Removing gsettings-desktop-schemas (48.0-1ubuntu1) ... 4833s Removing dconf-gsettings-backend:riscv64 (0.40.0-5) ... 4833s Removing dconf-service (0.40.0-5) ... 4833s Removing fwupd (2.0.7-1) ... 4842s Removing networkd-dispatcher (2.2.4-1.1) ... 4846s Removing udisks2 (2.10.1-11ubuntu2) ... 4850s Removing libblockdev-crypto3:riscv64 (3.3.0-2) ... 4850s Removing libblockdev-fs3:riscv64 (3.3.0-2) ... 4850s Removing libblockdev-loop3:riscv64 (3.3.0-2) ... 4850s Removing libblockdev-mdraid3:riscv64 (3.3.0-2) ... 4850s Removing libblockdev-nvme3:riscv64 (3.3.0-2) ... 4851s Removing libblockdev-part3:riscv64 (3.3.0-2) ... 4851s Removing libblockdev-swap3:riscv64 (3.3.0-2) ... 4851s Removing libblockdev3:riscv64 (3.3.0-2) ... 4851s Removing libblockdev-utils3:riscv64 (3.3.0-2) ... 4851s Removing libdconf1:riscv64 (0.40.0-5) ... 4851s Removing libfwupd3:riscv64 (2.0.7-1) ... 4851s Removing shared-mime-info (2.4-5build1) ... 4852s Removing xfsprogs (6.13.0-2ubuntu1) ... 4855s Removing python3-dbus (1.3.2-5build5) ... 4857s Removing libgudev-1.0-0:riscv64 (1:238-6) ... 4857s Removing libjcat1:riscv64 (0.2.0-2build3) ... 4857s Removing libjson-glib-1.0-0:riscv64 (1.10.6+ds-2) ... 4857s Removing libqmi-proxy (1.35.6-1) ... 4857s Removing libqmi-glib5:riscv64 (1.35.6-1) ... 4858s Removing libmbim-proxy (1.31.2-0ubuntu4) ... 4858s Removing libmbim-glib4:riscv64 (1.31.2-0ubuntu4) ... 4858s Removing libmm-glib0:riscv64 (1.23.4-0ubuntu3) ... 4858s Removing ubuntu-minimal (1.549) ... 4858s Removing netplan.io (1.1.2-2ubuntu1) ... 4858s dpkg: warning: while removing netplan.io, directory '/usr/share/netplan/netplan_cli/cli/commands' not empty so not removed 4858s Removing python3-netplan (1.1.2-2ubuntu1) ... 4860s Removing netplan-generator (1.1.2-2ubuntu1) ... 4860s dpkg: warning: while removing netplan-generator, directory '/etc/netplan' not empty so not removed 4860s Removing libnetplan1:riscv64 (1.1.2-2ubuntu1) ... 4860s Removing libpolkit-agent-1-0:riscv64 (126-2) ... 4860s Removing libpolkit-gobject-1-0:riscv64 (126-2) ... 4860s Removing libqrtr-glib0:riscv64 (1.2.2-1ubuntu4) ... 4860s Removing libudisks2-0:riscv64 (2.10.1-11ubuntu2) ... 4861s Removing libvolume-key1:riscv64 (0.3.12-9) ... 4861s Removing libxmlb2:riscv64 (0.3.22-1) ... 4861s Removing apport (2.32.0-0ubuntu5) ... 4866s Removing apport-core-dump-handler (2.32.0-0ubuntu5) ... 4871s Removing python3-gi (3.50.0-4build1) ... 4873s Removing gir1.2-girepository-2.0:riscv64 (1.84.0-1) ... 4873s Removing gir1.2-glib-2.0:riscv64 (2.84.1-1) ... 4873s Removing libgirepository-1.0-1:riscv64 (1.84.0-1) ... 4873s Removing libglib2.0-0t64:riscv64 (2.84.1-1) ... 4874s Selecting previously unselected package libglib2.0-0xyz:riscv64. 4875s (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 ... 113122 files and directories currently installed.) 4875s Preparing to unpack .../libglib2.0-0xyz.deb ... 4875s Unpacking libglib2.0-0xyz:riscv64 (2.84.1-1) ... 4876s Selecting previously unselected package xdg-user-dirs. 4876s Preparing to unpack .../xdg-user-dirs_0.18-2_riscv64.deb ... 4876s Unpacking xdg-user-dirs (0.18-2) ... 4877s Setting up xdg-user-dirs (0.18-2) ... 4877s Setting up libglib2.0-0xyz:riscv64 (2.84.1-1) ... 4877s No schema files found: removed existing output file. 4877s Processing triggers for dbus (1.16.2-2ubuntu1) ... 4877s Processing triggers for initramfs-tools (0.147ubuntu1) ... 4878s update-initramfs: Generating /boot/initrd.img-6.14.0-13-generic 4879s W: No lz4 in /usr/bin:/sbin:/bin, using gzip 5101s Processing triggers for libc-bin (2.41-6ubuntu1) ... 5102s Processing triggers for man-db (2.13.0-1) ... 5110s not ok 1 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml exit status 1 5110s + assert test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 5110s + n=1not ok 2 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled exit status 1 5110s 5110s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 5110s + echo not ok 1 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml exit status 1 5110s + failed=1 5110s + assert test -s /usr/share/glib-2.0/schemas/gschemas.compiled 5110s + n=2 5110s + test -s /usr/share/glib-2.0/schemas/gschemas.compiled 5110s + echo not ok 2 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled exit status 1 5110s + failed=1 5110s not ok 3 - test -e /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 5110s not ok 4 - test -s /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 5110s not ok 5 - test -e /usr/lib/*/gio/modules/giomodule.cache exit status 1 5110s not ok 6 - test -s /usr/lib/*/gio/modules/giomodule.cache exit status 1 5110s + assert test -e /usr/lib/*/gio/modules/libdconfsettings.so 5110s + n=3 5110s + test -e /usr/lib/*/gio/modules/libdconfsettings.so 5110s + echo not ok 3 - test -e /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 5110s + failed=1 5110s + assert test -s /usr/lib/*/gio/modules/libdconfsettings.so 5110s + n=4 5110s + test -s /usr/lib/*/gio/modules/libdconfsettings.so 5110s + echo not ok 4 - test -s /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 5110s + failed=1 5110s + assert test -e /usr/lib/*/gio/modules/giomodule.cache 5110s + n=5 5110s + test -e /usr/lib/*/gio/modules/giomodule.cache 5110s + echo not ok 5 - test -e /usr/lib/*/gio/modules/giomodule.cache exit status 1 5110s + failed=1 5110s + assert test -s /usr/lib/*/gio/modules/giomodule.cache 5110s + n=6 5110s + test -s /usr/lib/*/gio/modules/giomodule.cache 5110s + echo not ok 6 - test -s /usr/lib/*/gio/modules/giomodule.cache exit status 1 5110s + failed=1 5110s + apt-get -y purge libglib2.0-0t64 5111s Reading package lists... 5112s Building dependency tree... 5112s Reading state information... 5114s The following packages were automatically installed and are no longer required: 5114s apport-symptoms exfatprogs jq libatasmart4 libbytesize-common libbytesize1 5114s libdrm-amdgpu1 libflashrom1 libftdi1-2 libgpgme11t64 libicu76 libinih1 5114s libjq1 libjson-glib-1.0-common libnspr4 libnss3 libnvme1t64 libonig5 5114s libprotobuf-c1 python3-apport python3-certifi python3-chardet 5114s python3-configobj python3-debconf python3-markdown-it python3-mdurl 5114s python3-openssl python3-passlib python3-problem-report python3-pygments 5114s python3-requests python3-rich python3-systemd python3-urllib3 5114s Use 'sudo apt autoremove' to remove them. 5114s The following packages will be REMOVED: 5114s libglib2.0-0t64* 5117s 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 5117s After this operation, 0 B of additional disk space will be used. 5118s (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 ... 113157 files and directories currently installed.) 5119s Purging configuration files for libglib2.0-0t64:riscv64 (2.84.1-1) ... 5123s + assert test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 5123s + n=7 5123s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 5123s not ok 7 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml exit status 1 5123s + echo not ok 7 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml exit status 1 5123s + not ok 8 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled exit status 1 5123s failed=1 5123s + assert test -s /usr/share/glib-2.0/schemas/gschemas.compiled 5123s + n=8 5123s + test -s /usr/share/glib-2.0/schemas/gschemas.compiled 5123s + echo not ok 8 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled exit status 1 5123s + failed=1 5123s + assert test -e /usr/lib/*/gio/modules/libdconfsettings.so 5123s + n=9 5123s + test -e /usr/lib/*/gio/modules/libdconfsettings.so 5123s + echo not ok 9 - test -e /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 5124s not ok 9 - test -e /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 5124s not ok 10 - test -s /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 5124s + failed=1 5124s + assert test -s /usr/lib/*/gio/modules/libdconfsettings.so 5124s + n=10 5124s + test -s /usr/lib/*/gio/modules/libdconfsettings.so 5124s + echo not ok 10 - test -s /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 5124s not ok 11 - test -e /usr/lib/*/gio/modules/giomodule.cache exit status 1 5124s not ok 12 - test -s /usr/lib/*/gio/modules/giomodule.cache exit status 1 5124s + failed=1 5124s + assert test -e /usr/lib/*/gio/modules/giomodule.cache 5124s + n=11 5124s + test -e /usr/lib/*/gio/modules/giomodule.cache 5124s + echo not ok 11 - test -e /usr/lib/*/gio/modules/giomodule.cache exit status 1 5124s + failed=1 5124s + assert test -s /usr/lib/*/gio/modules/giomodule.cache 5124s + n=12 5124s + test -s /usr/lib/*/gio/modules/giomodule.cache 5124s + echo not ok 12 - test -s /usr/lib/*/gio/modules/giomodule.cache exit status 1 5124s + failed=1 5124s + apt-get -y purge libglib2.0-0xyz 5124s Reading package lists... 5126s Building dependency tree... 5126s Reading state information... 5127s The following packages were automatically installed and are no longer required: 5127s apport-symptoms exfatprogs jq libatasmart4 libbytesize-common libbytesize1 5127s libdrm-amdgpu1 libflashrom1 libftdi1-2 libglib2.0-data libgpgme11t64 5127s libicu76 libinih1 libjq1 libjson-glib-1.0-common libnspr4 libnss3 5127s libnvme1t64 libonig5 libprotobuf-c1 python3-apport python3-certifi 5127s python3-chardet python3-configobj python3-debconf python3-markdown-it 5127s python3-mdurl python3-openssl python3-passlib python3-problem-report 5127s python3-pygments python3-requests python3-rich python3-systemd 5127s python3-urllib3 xdg-user-dirs 5127s Use 'sudo apt autoremove' to remove them. 5127s The following packages will be REMOVED: 5127s libglib2.0-0xyz* 5130s 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 5130s After this operation, 4319 kB disk space will be freed. 5131s (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 ... 113157 files and directories currently installed.) 5131s Removing libglib2.0-0xyz:riscv64 (2.84.1-1) ... 5132s Processing triggers for libc-bin (2.41-6ubuntu1) ... 5133s (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 ... 113132 files and directories currently installed.) 5133s Purging configuration files for libglib2.0-0xyz:riscv64 (2.84.1-1) ... 5138s ok 13 - unsuccessful as expected: test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 5138s ok 14 - unsuccessful as expected: test -e /usr/share/glib-2.0/schemas/gschemas.compiled 5138s + assert_not test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 5138s + n=13 5138s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 5138s + echo ok 13 - unsuccessful as expected: test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 5138s + assert_not test -e /usr/share/glib-2.0/schemas/gschemas.compiled 5138s + n=14 5138s + test -e /usr/share/glib-2.0/schemas/gschemas.compiled 5138s + echo ok 14 - unsuccessful as expected: test -e /usr/share/glib-2.0/schemas/gschemas.compiled 5138s + assert_not test -e /usr/lib/*/gio/modules/libdconfsettings.so 5138s + n=15 5138s + test -e /usr/lib/*/gio/modules/libdconfsettings.so 5138s ok 15 - unsuccessful as expected: test -e /usr/lib/*/gio/modules/libdconfsettings.so 5138s + echo ok 15 - unsuccessful as expected: test -e /usr/lib/*/gio/modules/libdconfsettings.so 5138s ok 16 - unsuccessful as expected: test -e /usr/lib/*/gio/modules/giomodule.cache 5138s + assert_not test -e /usr/lib/*/gio/modules/giomodule.cache 5138s + n=16 5138s + test -e /usr/lib/*/gio/modules/giomodule.cache 5138s + echo ok 16 - unsuccessful as expected: test -e /usr/lib/*/gio/modules/giomodule.cache 5138s + echo 1..16 5138s 1..16 5138s + exit 1 5139s autopkgtest [14:21:43]: test 1065022-futureproofing: -----------------------] 5141s autopkgtest [14:21:45]: test 1065022-futureproofing: - - - - - - - - - - results - - - - - - - - - - 5141s 1065022-futureproofing FLAKY non-zero exit status 1 5143s autopkgtest [14:21:47]: @@@@@@@@@@@@@@@@@@@@ summary 5143s build PASS (superficial) 5143s build-static PASS (superficial) 5143s girepository-tools PASS (superficial) 5143s libgio-2.0-dev-bin PASS (superficial) 5143s libglib2.0-dev PASS (superficial) 5143s installed-tests PASS 5143s closure-refcount PASS 5143s debugcontroller PASS 5143s gdbus-server-auth PASS 5143s gdbus-threading PASS 5143s gmenumodel PASS 5143s mainloop PASS 5143s memory-monitor-dbus PASS 5143s socket PASS 5143s testfilemonitor PASS 5143s thread-pool-slow PASS 5143s threadtests PASS 5143s timeout PASS 5143s timer PASS 5143s 1065022-futureproofing FLAKY non-zero exit status 1 5148s nova [W] Using flock in prodstack7-riscv64 5148s Creating nova instance adt-questing-riscv64-glib2.0-20250502-110436-juju-7f2275-prod-proposed-migration-environment-2-186e66bb-bad7-40ad-b287-81863b073ef4 from image adt/ubuntu-questing-riscv64-server-20250501.img (UUID 2359bd49-b5b7-4912-915a-f8dc98a06fb2)... 5148s nova [W] Timed out waiting for 9e550df0-01b1-40e6-9782-72193649e7ca to get deleted. 5148s nova [W] Using flock in prodstack7-riscv64 5148s Creating nova instance adt-questing-riscv64-glib2.0-20250502-110436-juju-7f2275-prod-proposed-migration-environment-2-186e66bb-bad7-40ad-b287-81863b073ef4 from image adt/ubuntu-questing-riscv64-server-20250501.img (UUID 2359bd49-b5b7-4912-915a-f8dc98a06fb2)... 5148s nova [W] Timed out waiting for 8f0c3caf-7482-4dde-bd8a-282d34823781 to get deleted. 5148s nova [W] Using flock in prodstack7-riscv64 5148s Creating nova instance adt-questing-riscv64-glib2.0-20250502-110436-juju-7f2275-prod-proposed-migration-environment-2-186e66bb-bad7-40ad-b287-81863b073ef4 from image adt/ubuntu-questing-riscv64-server-20250501.img (UUID 2359bd49-b5b7-4912-915a-f8dc98a06fb2)... 5148s nova [W] Timed out waiting for f176ec80-6f14-4caf-822e-2d823fba1ef2 to get deleted. 5148s nova [W] Using flock in prodstack7-riscv64 5148s Creating nova instance adt-questing-riscv64-glib2.0-20250502-110436-juju-7f2275-prod-proposed-migration-environment-2-186e66bb-bad7-40ad-b287-81863b073ef4 from image adt/ubuntu-questing-riscv64-server-20250501.img (UUID 2359bd49-b5b7-4912-915a-f8dc98a06fb2)... 5148s nova [W] Timed out waiting for 9c429aa3-fcc2-4e88-b392-2322ec354d28 to get deleted. 5148s nova [W] Using flock in prodstack7-riscv64 5148s Creating nova instance adt-questing-riscv64-glib2.0-20250502-110436-juju-7f2275-prod-proposed-migration-environment-2-186e66bb-bad7-40ad-b287-81863b073ef4 from image adt/ubuntu-questing-riscv64-server-20250501.img (UUID 2359bd49-b5b7-4912-915a-f8dc98a06fb2)... 5148s nova [W] Timed out waiting for 26055e5f-8afa-4283-ba36-384c9a92db43 to get deleted. 5148s nova [W] Using flock in prodstack7-riscv64 5148s Creating nova instance adt-questing-riscv64-glib2.0-20250502-110436-juju-7f2275-prod-proposed-migration-environment-2-186e66bb-bad7-40ad-b287-81863b073ef4 from image adt/ubuntu-questing-riscv64-server-20250501.img (UUID 2359bd49-b5b7-4912-915a-f8dc98a06fb2)... 5148s nova [W] Timed out waiting for 8aeecdb2-790d-4437-af35-24534649b3dd to get deleted.